This documentation is archived and is not being maintained.

InkEdit.InkMode Property

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

Namespace:  Microsoft.Ink
Assembly:  Microsoft.Ink (in Microsoft.Ink.dll)

public InkMode InkMode { get; set; }

Property Value

Type: Microsoft.Ink.InkMode
An InkMode value indicating whether the InkEdit control collects ink, gesture, or both.

The value of this property is always Disabled if it is used on a system that has the Microsoft Windows XP Tablet PC Edition SDK installed but where no recognizers are 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 the InkEditStatus enumeration value, Idle.

In this example, a check is made to see if the Status property is currently set to Idle. If so, the InkEdit control is set to collect both ink and gestures.

if (InkEditStatus.Idle == mInkEdit.Status)
    mInkEdit.InkMode = InkMode.InkAndGesture;

Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.0