Share via


WorkbookBase.SmartTagOptions Property

Gets a Microsoft.Office.Interop.Excel.SmartTagOptions object representing the options that can be performed with a smart tag.

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

Syntax

'Declaration
Public ReadOnly Property SmartTagOptions As SmartTagOptions
    Get
public SmartTagOptions SmartTagOptions { get; }

Property Value

Type: Microsoft.Office.Interop.Excel.SmartTagOptions
A Microsoft.Office.Interop.Excel.SmartTagOptions object representing the options that can be performed with a smart tag.

Examples

The following code example uses the SmartTagOptions property to embed smart tags into the current workbook and display the indicator and button for smart tags.

This example is for a document-level customization.

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 Security

See Also

Reference

WorkbookBase Class

Microsoft.Office.Tools.Excel Namespace