InkCanvas.SelectionResized 活動
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當使用者調整了部分筆劃和/或元素的大小時,會發生這種情況。
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 程序。