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.
Returns
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應