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)

Syntax

'Declaration
Function Add ( _
    Name As String, _
    ByRef Range As Object, _
    ByRef Properties As Object _
) As SmartTag
'Usage
Dim instance As SmartTags
Dim Name As String
Dim Range As Object
Dim Properties As Object
Dim returnValue As SmartTag

returnValue = instance.Add(Name, Range, _
    Properties)
SmartTag Add(
    string Name,
    ref Object Range,
    ref Object Properties
)

Parameters

  • Name
    Type: System.String
    Required String. The name of the smart tag.
  • Range
    Type: System.Object%
    Optional Object. The range to which to apply the smart tag.
  • Properties
    Type: System.Object%
    Optional Object. Properties that apply to the smart tag.

Return Value

Type: Microsoft.Office.Interop.Word.SmartTag

See Also

Reference

SmartTags Interface

SmartTags Members

Microsoft.Office.Interop.Word Namespace