AutoTextEntries.Add MethodÂ
Adds an AutoText entry to the list of available AutoText entries.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)
Usage
Dim Name As String
Dim Range As Range
Dim returnValue As AutoTextEntry
Dim autoTextEntries1 As AutoTextEntries
returnValue = autoTextEntries1.Add(Name, Range)
Syntax
Function Add( _
<InAttribute()> ByVal Name As String, _
<InAttribute()> ByVal Range As Range _
) As AutoTextEntry
AutoTextEntry Add(
[In] string Name,
[In] Range Range
);
public: AutoTextEntry^ Add(
String^ Name,
Range^ Range
);
public AutoTextEntry Add(
/*in*/System.String Name,
/*in*/Range Range
);
function Add(
Name : String,
Range : Range
) : AutoTextEntry;
Parameters
- Name
A range of text that will be inserted whenever Name is typed.
- Range
The text that, when typed, initiates an AutoText entry.
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
AutoTextEntries Interface
Microsoft.Office.Interop.Word Namespace