Selection.CreateAutoTextEntry(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.