AutoTextEntry.Insert MethodÂ
Inserts the AutoText entry in place of the specified range.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)
Usage
Dim Where As Range
Dim RichText As Object
Dim returnValue As Range
Dim autoTextEntry1 As AutoTextEntry
returnValue = autoTextEntry1.Insert(Where, RichText)
Syntax
Function Insert( _
<InAttribute()> ByVal Where As Range, _
<InAttribute()> Optional ByRef RichText As Object _
) As Range
Range Insert(
[In] Range Where,
[In, Optional] ref object RichText
);
public: Range^ Insert(
Range^ Where,
&Object^ RichText
);
public Range Insert(
/*in*/Range Where,
/*in*/System.Object RichText
);
function Insert(
Where : Range,
RichText : Object
) : Range;
Parameters
- Where
The location for the AutoText entry.
- RichText
Whether to insert the AutoText entry with its original formatting.
Remarks
If you don't want to replace the range, use the Collapse method before using this method.
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
AutoTextEntry Interface
Microsoft.Office.Interop.Word Namespace