Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
InkEdit Class
 InkMode Property
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
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)
Visual Basic (Declaration)
<BrowsableAttribute(True)> _
Public Property InkMode As InkMode
Visual Basic (Usage)
Dim instance As InkEdit
Dim value As InkMode

value = instance.InkMode

instance.InkMode = value
C#
[BrowsableAttribute(true)]
public InkMode InkMode { get; set; }
Visual C++
[BrowsableAttribute(true)]
public:
property InkMode InkMode {
    InkMode get ();
    void set (InkMode value);
}
JScript
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.

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.

Visual Basic
If InkEditStatus.Idle = mInkEdit.Status Then
    mInkEdit.InkMode = InkMode.InkAndGesture
End If
C#
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
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker