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
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 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。