SmartTags.Add MethodÂ
Gets a SmartTag object that represents a new smart tag added to a document.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)
Usage
Dim Name As String
Dim Range As Object
Dim Properties As Object
Dim returnValue As SmartTag
Dim smartTags1 As SmartTags
returnValue = smartTags1.Add(Name, Range, Properties)
Syntax
Function Add( _
<InAttribute()> ByVal Name As String, _
<InAttribute()> Optional ByRef Range As Object, _
<InAttribute()> Optional ByRef Properties As Object _
) As SmartTag
SmartTag Add(
[In] string Name,
[In, Optional] ref object Range,
[In, Optional] ref object Properties
);
public: SmartTag^ Add(
String^ Name,
&Object^ Range,
&Object^ Properties
);
public SmartTag Add(
/*in*/System.String Name,
/*in*/System.Object Range,
/*in*/System.Object Properties
);
function Add(
Name : String,
Range : Object,
Properties : Object
) : SmartTag;
Parameters
- Name
Required String. The name of the smart tag.
- Range
Optional Object. The range to which to apply the smart tag.
- Properties
Optional Object. Properties that apply to the smart tag.
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
SmartTags Interface
Microsoft.Office.Interop.Word Namespace