Share via


InkEdit.RecoTimeout Property

Gets or sets the length of time, in milliseconds, between the last stroke collected and the onset of text recognition.

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

Syntax

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

value = instance.RecoTimeout

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

Property Value

Type: System.Int32
The length of time, in milliseconds, between the last stroke collected and the onset of text recognition.

Remarks

If you set the RecoTimeout property to zero, you prevent ink from being replaced by the recognized text.

If you set the RecoTimeout property to a negative number, you generate an ArgumentException.

Examples

In this example, the RecoTimeout property is increased from the default value of 2000 milliseconds to 3000 milliseconds.

' Increase the recognition timeout. The default is 2000 milliseconds 
If InkEditStatus.Idle = mInkEdit.Status Then
    mInkEdit.RecoTimeout = 3000
End If
// Increase the recognition timeout. The default is 2000 milliseconds 
if (InkEditStatus.Idle == mInkEdit.Status)
{
    mInkEdit.RecoTimeout = 3000;
}

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