次の方法で共有


ActionEventArgs.Properties プロパティ (2007 System)

更新 : 2007 年 11 月

スマート タグ用に実装されているすべてのプロパティを取得します。

名前空間 :  Microsoft.Office.Tools.Excel
アセンブリ :  Microsoft.Office.Tools.Excel.v9.0 (Microsoft.Office.Tools.Excel.v9.0.dll 内)

構文

'宣言
Public ReadOnly Property Properties As ISmartTagProperties
'使用
Dim instance As ActionEventArgs
Dim value As ISmartTagProperties

value = instance.Properties
public ISmartTagProperties Properties { get; }

プロパティ値

型 : ISmartTagProperties

スマート タグ用に実装されているすべてのプロパティ。

解説

ISmartTagProperties インターフェイスは、Microsoft Office 2003 スマート タグ ソフトウェア開発キット (SDK: Software Development Kit) に入っています。このインターフェイスをコードで使用するには、[参照の追加] ダイアログ ボックスの [COM] タブで、Microsoft Smart Tags 2.0 Type Library への参照を追加します。

Click イベント用ハンドラのコード例を次に示します。イベント ハンドラは Properties プロパティを使用して、スマート タグ プロパティのキー付きコレクションからプロパティ値を取得します。次のコード例は、SmartTag クラス用のより大きなコード例の一部です。この例では、[参照の追加] ダイアログ ボックスの [COM] タブで、Microsoft Smart Tags 2.0 Type Library への参照が追加してあると仮定しています。

この例は、ドキュメント レベルのカスタマイズ用に作成されています。

' This action displays the property value for the term.
Private Sub Action1_Click(ByVal sender As Object, _
    ByVal e As ActionEventArgs) Handles Action1.Click

    Dim propertyBag As ISmartTagProperties = e.Properties
    Dim key As String = "Key1"
    MsgBox("The corresponding value of " & _
        key & " is: " & propertyBag.Read(key))
End Sub
// This action displays the property value for the term.
private void Action1_Click(object sender, ActionEventArgs e)
{
    ISmartTagProperties propertyBag = e.Properties;
    string key = "Key1";
    MessageBox.Show("The corresponding value of " + key +
        " is: " + propertyBag.get_Read(key));
}

アクセス許可

  • 直前の呼び出し元に対する完全な信頼。このメンバは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

参照

ActionEventArgs クラス

ActionEventArgs メンバ

Microsoft.Office.Tools.Excel 名前空間