Partilhar via


XmlMappedRange.SmartTags Property

Gets a Microsoft.Office.Interop.Excel.SmartTags object representing the identifier for the XmlMappedRange control.

Namespace:  Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)

Syntax

'Declaration
ReadOnly Property SmartTags As SmartTags
SmartTags SmartTags { get; }

Property Value

Type: Microsoft.Office.Interop.Excel.SmartTags
A Microsoft.Office.Interop.Excel.SmartTags object representing the identifier for the XmlMappedRange control.

Examples

The following code example uses the SmartTags property to display the number of smart tags of an XmlMappedRange. This code example assumes that the current worksheet contains an XmlMappedRange named CustomerLastNameCell.

Private Sub DisplaySmartTagsCount()
    MsgBox("The XmlMappedRange has " & _
        Me.CustomerLastNameCell.SmartTags.Count & " smart tags.")
End Sub
private void DisplaySmartTagsCount()
{
    MessageBox.Show("The XmlMappedRange has " +
        this.CustomerLastNameCell.SmartTags.Count + " smart tags.");
}

.NET Framework Security

See Also

Reference

XmlMappedRange Interface

Microsoft.Office.Tools.Excel Namespace