FormFields.Add MethodÂ
Returns a FormField object that represents a new form field added at a range.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)
Usage
Dim Range As Range
Dim Type As WdFieldType
Dim returnValue As FormField
Dim formFields1 As FormFields
returnValue = formFields1.Add(Range, Type)
Syntax
Function Add( _
<InAttribute()> ByVal Range As Range, _
<InAttribute()> ByVal Type As WdFieldType _
) As FormField
FormField Add(
[In] Range Range,
[In] WdFieldType Type
);
public: FormField^ Add(
Range^ Range,
WdFieldType^ Type
);
public FormField Add(
/*in*/Range Range,
/*in*/WdFieldType Type
);
function Add(
Range : Range,
Type : WdFieldType
) : FormField;
Parameters
- Range
Required Range object. The range where you want to add the form field. If the range isn't collapsed, the form field replaces the range.
- Type
Required WdFieldType. The type of form field to add.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000
Target Platforms
See Also
Reference
FormFields Interface
Microsoft.Office.Interop.Word Namespace