XmlMappedRange.SmartTags 属性

获取一个 Microsoft.Office.Interop.Excel.SmartTags 对象,该对象表示 XmlMappedRange 控件的标识符。

命名空间:  Microsoft.Office.Tools.Excel
程序集:  Microsoft.Office.Tools.Excel(在 Microsoft.Office.Tools.Excel.dll 中)

语法

声明
ReadOnly Property SmartTags As SmartTags
    Get
SmartTags SmartTags { get; }

属性值

类型:Microsoft.Office.Interop.Excel.SmartTags
一个 Microsoft.Office.Interop.Excel.SmartTags 对象,表示 XmlMappedRange 控件的标识符。

示例

下面的代码示例使用 SmartTags 属性显示 XmlMappedRange 的智能标记数。 此代码示例假定当前工作表包含一个名为 CustomerLastNameCell 的 XmlMappedRange

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 安全性

请参见

参考

XmlMappedRange 接口

Microsoft.Office.Tools.Excel 命名空间