InkEdit.InkMode Property

InkEdit.InkMode Property

Gets or sets a value from the InkMode enumeration type that indicates whether the InkEdit control collects ink, gestures, or both.

Definition

Visual Basic .NET Public Property InkMode As InkMode
C# public InkMode InkMode { get; set; }
Managed C++ public: __property InkMode* get_InkMode();
public: __property void set_InkMode(InkMode*);

Property Value

Microsoft.Ink.InkMode. Whether the InkEdit control collects ink, gestures, or both.

This property is read/write. This property has no default value.

Disabled0 Specifies that ink collection is disabled. No strokes are created when in this mode.
Ink1 Specifies that only ink is collected, creating a stroke.
InkAndGesture2 Specifies that ink is collected and single stroke application gestures are accepted.

Exceptions

COMException Leave Site:

Remarks

The value of this property is always Disabled if it is used on a system that has the Microsoft® Windows® XP Tablet PC Edition Software Development Kit (SDK) installed but that doesn't have recognizers present. If used on a system that has Windows XP Tablet PC Edition, the value can be set to any of the values in the InkMode enumeration type.

This property should be changed only if the Status property returns Idle.

See Also