InkCanvas.ActiveEditingMode Property

 

Gets the current editing mode of the InkCanvas.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

Public ReadOnly Property ActiveEditingMode As InkCanvasEditingMode

Property Value

Type: System.Windows.Controls.InkCanvasEditingMode

The current editing mode of the InkCanvas.

The ActiveEditingMode property indicates the current InkCanvasEditingMode of the InkCanvas. Suppose that the EditingMode is set to Ink and the EditingModeInverted is set to EraseByPoint. When the tablet pen is used in an inverted position, ActiveEditingMode has a value of EraseByPoint. Otherwise, its value is Ink.

Identifier field

ActiveEditingModeProperty

Metadata properties set to true

None

The following example reports the value of ActiveEditingMode whenever it changes.

Private Sub inkCanvas1_ActiveEditingModeChanged(ByVal sender As Object, ByVal e As RoutedEventArgs)

    Me.Title = inkCanvas1.ActiveEditingMode.ToString()

End Sub 'inkCanvas1_ActiveEditingModeChanged

.NET Framework
Available since 3.0
Return to top
Show: