次の方法で共有


XmlMappedRange.SmartTags プロパティ

XmlMappedRange コントロールの識別子を表す Microsoft.Office.Interop.Excel.SmartTags オブジェクトを取得します。

名前空間:  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
XmlMappedRange コントロールの識別子を表す Microsoft.Office.Interop.Excel.SmartTags オブジェクトを返します。

次のコード例は、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 名前空間