InkCanvas.ActiveEditingMode 属性

定义

获取 InkCanvas 的当前编辑模式。

public:
 property System::Windows::Controls::InkCanvasEditingMode ActiveEditingMode { System::Windows::Controls::InkCanvasEditingMode get(); };
public System.Windows.Controls.InkCanvasEditingMode ActiveEditingMode { get; }
member this.ActiveEditingMode : System.Windows.Controls.InkCanvasEditingMode
Public ReadOnly Property ActiveEditingMode As InkCanvasEditingMode

属性值

InkCanvas 的当前编辑模式。

示例

以下示例在 更改时报告 的值 ActiveEditingMode

void inkCanvas1_ActiveEditingModeChanged(object sender, RoutedEventArgs e)
{
    this.Title = inkCanvas1.ActiveEditingMode.ToString();
}
Private Sub inkCanvas1_ActiveEditingModeChanged(ByVal sender As Object, ByVal e As RoutedEventArgs)

    Me.Title = inkCanvas1.ActiveEditingMode.ToString()

End Sub

注解

属性ActiveEditingMode指示 的InkCanvas当前 InkCanvasEditingMode 。 假设 设置为 EditingModeInk ,并将 EditingModeInverted 设置为 EraseByPoint。 当在倒置位置使用平板电脑笔时, ActiveEditingMode 的 值为 EraseByPoint。 否则,其值为 Ink

依赖项属性信息

标识符字段 ActiveEditingModeProperty
元数据属性设置为 true

适用于