SelectionOperations.Subscribe メソッド

編集コンテキストでの選択が変更された場合に呼び出されるコールバック メソッドを追加します。

名前空間:  Microsoft.Windows.Design.Interaction
アセンブリ:  Microsoft.Windows.Design.Interaction (Microsoft.Windows.Design.Interaction.dll 内)

構文

'宣言
Public Shared Sub Subscribe ( _
    context As EditingContext, _
    handler As SubscribeContextCallback(Of Selection) _
)
public static void Subscribe(
    EditingContext context,
    SubscribeContextCallback<Selection> handler
)
public:
static void Subscribe(
    EditingContext^ context, 
    SubscribeContextCallback<Selection^>^ handler
)
static member Subscribe : 
        context:EditingContext * 
        handler:SubscribeContextCallback<Selection> -> unit 
public static function Subscribe(
    context : EditingContext, 
    handler : SubscribeContextCallback<Selection>
)

パラメーター

例外

例外 条件
ArgumentNullException

context または handler が nullnull 参照 (Visual Basic では Nothing) です。

.NET Framework セキュリティ

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

参照

参照

SelectionOperations クラス

Microsoft.Windows.Design.Interaction 名前空間

Selection

SelectionCommands

SelectionTool

EditingContext

その他の技術情報

WPF デザイナーの機能拡張アーキテクチャ