Leadtools.Forms.Ocr Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
StringMaximumLength Property
See Also 
Leadtools.Forms.Ocr Namespace > IOcrSettingDescriptor Interface : StringMaximumLength Property



Gets the maximum number of characters allowed in the value of the string setting.

Syntax

Visual Basic (Declaration) 
Overridable ReadOnly Property StringMaximumLength As Integer
Visual Basic (Usage)Copy Code
Dim instance As IOcrSettingDescriptor
Dim value As Integer
 
value = instance.StringMaximumLength
C# 
virtual int StringMaximumLength {get;}
C++/CLI 
virtual property int StringMaximumLength {
   int get();
}

Return Value

Maximum number of characters allowed in the value of the string setting.

Example

For an example, refer to IOcrSettingManager.

Remarks

You should not pass a string that contain more characters than StringMaximumLength when setting the value of a string setting.

If the string setting has no limit on the number of characters allowed, StringMaximumLength will be set to -1.

This member is only valid if ValueType is OcrSettingValueType.String.

For a list of supported engine-specific settings and their meanings, refer to OCR engine-specific Settings.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

StringMaximumLength requires an OCR module license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features