InkCanvas.SelectionResized イベント

定義

ストロークや要素の選択がユーザーによってサイズ変更されたときに発生します。

public:
 event EventHandler ^ SelectionResized;
public event EventHandler SelectionResized;
member this.SelectionResized : EventHandler 
Public Custom Event SelectionResized As EventHandler 
Public Event SelectionResized As EventHandler 

イベントの種類

次の使用例は、ユーザーが選択範囲のサイズを変更した後、 InkCanvas のすべての項目を選択解除します。

void inkCanvas1_SelectionResized(object sender, EventArgs e)
{
    inkCanvas1.Select(null, null);
}
Private Sub inkCanvas1_SelectionResized(ByVal sender As Object, ByVal e As EventArgs)

    inkCanvas1.Select(Nothing, Nothing)

End Sub

注釈

このイベントは、ストロークや要素の選択がサイズ変更された後に発生します。

代わりに、ストロークや要素のサイズを変更する前に選択範囲のサイズを変更する要求を処理する必要がある場合は、イベント ハンドラーを SelectionResizing イベントに追加します。

適用対象

こちらもご覧ください