Share via


TextInput.EditType Method

Sets options for the specified text form field.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Sub EditType ( _
    Type As WdTextFormFieldType, _
    ByRef Default As Object, _
    ByRef Format As Object, _
    ByRef Enabled As Object _
)
'Usage
Dim instance As TextInput
Dim Type As WdTextFormFieldType
Dim Default As Object
Dim Format As Object
Dim Enabled As Object

instance.EditType(Type, Default, Format, _
    Enabled)
void EditType(
    WdTextFormFieldType Type,
    ref Object Default,
    ref Object Format,
    ref Object Enabled
)

Parameters

  • Default
    Type: System.Object%
    Optional Object. The default text that appears in the text box.
  • Format
    Type: System.Object%
    Optional Object. The formatting string used to format the text, number, or date (for example, "0.00," "Title Case," or "M/d/yy"). For more examples of formats, see the list of formats for the specified text form field type in the Text Form Field Options dialog box.
  • Enabled
    Type: System.Object%
    Optional Object. True to enable the form field for text entry.

See Also

Reference

TextInput Interface

TextInput Members

Microsoft.Office.Interop.Word Namespace