Edit

Share via


AutoTextEntries.Add(String, Range) Method

Definition

Adds an AutoText entry to the list of available AutoText entries.

public:
 Microsoft::Office::Interop::Word::AutoTextEntry ^ Add(System::String ^ Name, Microsoft::Office::Interop::Word::Range ^ Range);
public Microsoft.Office.Interop.Word.AutoTextEntry Add (string Name, Microsoft.Office.Interop.Word.Range Range);
abstract member Add : string * Microsoft.Office.Interop.Word.Range -> Microsoft.Office.Interop.Word.AutoTextEntry
Public Function Add (Name As String, Range As Range) As AutoTextEntry

Parameters

Name
String

A range of text that will be inserted whenever Name is typed.

Range
Range

The text that, when typed, initiates an AutoText entry.

Returns

Applies to