AutoCorrectEntries.Add MethodÂ
Adds a plain-text AutoCorrect entry to the list of available AutoCorrect entries.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)
Usage
Dim Name As String
Dim Value As String
Dim returnValue As AutoCorrectEntry
Dim autoCorrectEntries1 As AutoCorrectEntries
returnValue = autoCorrectEntries1.Add(Name, Value)
Syntax
Function Add( _
<InAttribute()> ByVal Name As String, _
<InAttribute()> ByVal Value As String _
) As AutoCorrectEntry
AutoCorrectEntry Add(
[In] string Name,
[In] string Value
);
public: AutoCorrectEntry^ Add(
String^ Name,
String^ Value
);
public AutoCorrectEntry Add(
/*in*/System.String Name,
/*in*/System.String Value
);
function Add(
Name : String,
Value : String
) : AutoCorrectEntry;
Parameters
- Name
The text you want to have automatically inserted whenever the text specified by Name is typed.
- Value
The text you want to have automatically replaced with the text specified by Value.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000
Target Platforms
See Also
Reference
AutoCorrectEntries Interface
Microsoft.Office.Interop.Word Namespace