Edit

Share via


Selection.CreateAutoTextEntry(String, String) Method

Definition

Adds a new AutoTextEntry object to the AutoTextEntries collection, based on the current selection.

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

Parameters

Name
String

Required String. The text the user must type to call the new AutoText entry.

StyleName
String

Required String. The category in which the new AutoText entry will be listed on the AutoText menu.

Returns

Applies to