Sdílet prostřednictvím


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)

Syntax

'Declaration
<BrowsableAttribute(True)> _
Public Property InkMode As InkMode
'Usage
Dim instance As InkEdit 
Dim value As InkMode 

value = instance.InkMode

instance.InkMode = value
[BrowsableAttribute(true)]
public InkMode InkMode { get; set; }
[BrowsableAttribute(true)]
public:
property InkMode InkMode {
    InkMode get ();
    void set (InkMode value);
}
public function get InkMode () : InkMode 
public function set InkMode (value : InkMode)

Property Value

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

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 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.

Examples

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 Then
    mInkEdit.InkMode = InkMode.InkAndGesture
End If
if (InkEditStatus.Idle == mInkEdit.Status)
{
    mInkEdit.InkMode = InkMode.InkAndGesture;
}

Platforms

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.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

InkEdit Class

InkEdit Members

Microsoft.Ink Namespace

InkMode