InkCanvas.EditingModeInvertedChanged 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當 EditingModeInverted 物件的 InkCanvas 屬性變更時,就會發生。
public:
event System::Windows::RoutedEventHandler ^ EditingModeInvertedChanged;
public event System.Windows.RoutedEventHandler EditingModeInvertedChanged;
member this.EditingModeInvertedChanged : System.Windows.RoutedEventHandler
Public Custom Event EditingModeInvertedChanged As RoutedEventHandler
事件類型
範例
下列範例會檢查 屬性是否 EditingModeInverted 設定為 EraseByPoint 或 EraseByStroke 。
void inkCanvas1_EditingModeInvertedChanged(object sender, EventArgs e)
{
if (inkCanvas1.EditingModeInverted == InkCanvasEditingMode.EraseByPoint)
{
erasingModeLabel.Text = "Erase by point";
}
else if (inkCanvas1.EditingModeInverted == InkCanvasEditingMode.EraseByStroke)
{
erasingModeLabel.Text = "Erase by stroke";
}
}
Private Sub inkCanvas1_EditingModeInvertedChanged(ByVal sender As Object, ByVal e As RoutedEventArgs)
If inkCanvas1.EditingModeInverted = InkCanvasEditingMode.EraseByPoint Then
erasingModeLabel.Text = "Erase by point"
ElseIf inkCanvas1.EditingModeInverted = InkCanvasEditingMode.EraseByStroke Then
erasingModeLabel.Text = "Erase by stroke"
End If
End Sub
備註
此事件會在反向編輯模式變更之後發生。 這些變更會反映在 的 InkCanvas 屬性中 EditingModeInverted 。
路由事件資訊
識別碼欄位 | EditingModeInvertedChangedEvent |
路由策略 | 鼓 泡 |
代理人 | RoutedEventHandler |