TextInput.EditType(WdTextFormFieldType, Object, Object, Object) Method

Definition

Sets options for the specified text form field.

public void EditType (Microsoft.Office.Interop.Word.WdTextFormFieldType Type, ref object Default, ref object Format, ref object Enabled);
abstract member EditType : Microsoft.Office.Interop.Word.WdTextFormFieldType * obj * obj * obj -> unit
Public Sub EditType (Type As WdTextFormFieldType, Optional ByRef Default As Object, Optional ByRef Format As Object, Optional ByRef Enabled As Object)

Parameters

Type
WdTextFormFieldType

Required WdTextFormFieldType. The text box type.WdTextFormFieldType can be one of these constants: wdCalculationText wdCurrentDateText wdCurrentTimeText wdDateText wdNumberText wdRegularText

Default
Object

Optional Object. The default text that appears in the text box.

Format
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
Object

Optional Object. True to enable the form field for text entry.

Applies to