WorkbookBase.SmartTagOptions-Eigenschaft

Ruft ein Microsoft.Office.Interop.Excel.SmartTagOptions-Objekt ab, das die mit einem Smarttag ausführbaren Optionen darstellt.

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; }

Eigenschaftswert

Typ: Microsoft.Office.Interop.Excel.SmartTagOptions
Ein Microsoft.Office.Interop.Excel.SmartTagOptions-Objekt, das die mit einem Smarttag ausführbaren Optionen darstellt.

Beispiele

Im folgenden Codebeispiel wird die SmartTagOptions-Eigenschaft verwendet, um Smarttags in die aktuelle Arbeitsmappe einzubetten und den Indikator und die Schaltfläche für Smarttags anzuzeigen.

Dieses Beispiel bezieht sich auf eine Anpassung auf Dokumentebene.

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-Sicherheit

Siehe auch

Referenz

WorkbookBase Klasse

Microsoft.Office.Tools.Excel-Namespace