AutoCorrectEntries.AddRichText(String, Range) 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.
Creates a formatted AutoCorrect entry, preserving all text attributes of the specified range.
public:
Microsoft::Office::Interop::Word::AutoCorrectEntry ^ AddRichText(System::String ^ Name, Microsoft::Office::Interop::Word::Range ^ Range);
public Microsoft.Office.Interop.Word.AutoCorrectEntry AddRichText (string Name, Microsoft.Office.Interop.Word.Range Range);
abstract member AddRichText : string * Microsoft.Office.Interop.Word.Range -> Microsoft.Office.Interop.Word.AutoCorrectEntry
Public Function AddRichText (Name As String, Range As Range) As AutoCorrectEntry
Parameters
- Name
- String
The formatted text that Microsoft Word will insert automatically whenever Name
is typed.
- Range
- Range
The text to replace automatically with Range
.
Returns
Remarks
The RichText property for entries added by using this method returns True. If this method isn't used, inserted AutoCorrect entries conform to the current style.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for