获取一个 Microsoft.Office.Interop.Excel.SmartTagOptions 对象,该对象表示通过智能标记可以执行的选项。
命名空间: Microsoft.Office.Tools.Excel
程序集: Microsoft.Office.Tools.Excel.v4.0.Utilities(在 Microsoft.Office.Tools.Excel.v4.0.Utilities.dll 中)
语法
声明
Public ReadOnly Property SmartTagOptions As SmartTagOptions
Get
public SmartTagOptions SmartTagOptions { get; }
属性值
类型:Microsoft.Office.Interop.Excel.SmartTagOptions
Microsoft.Office.Interop.Excel.SmartTagOptions 对象,表示通过智能标记可以执行的选项。
示例
下面的代码示例使用 SmartTagOptions 属性将智能标记嵌入当前工作簿中,并显示智能标记的指示符和按钮。
此示例针对的是文档级自定义项。
Private Sub WorkbookSmartTagOptions()
Me.SmartTagOptions.DisplaySmartTags = _
Excel.XlSmartTagDisplayMode.xlIndicatorAndButton
Me.SmartTagOptions.EmbedSmartTags = True
End Sub
private void WorkbookSmartTagOptions()
{
this.SmartTagOptions.DisplaySmartTags =
Excel.XlSmartTagDisplayMode.xlIndicatorAndButton;
this.SmartTagOptions.EmbedSmartTags = true;
}
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。