Enum TextExtractionElementFormat.TextCaseMode
- Namespace
- LMKit.Extraction
- Assembly
- LM-Kit.NET.dll
Enumerates the options for converting the case of the extracted text.
public enum TextExtractionElementFormat.TextCaseMode
Fields
Unspecified = 0Leaves the text case unchanged.
UpperCase = 1Converts all alphabetic characters in the text to uppercase.
LowerCase = 2Converts all alphabetic characters in the text to lowercase.
Examples
// Force uppercase output for a country code
var country = new TextExtractionElement("CountryCode", ElementType.String);
country.Format.CaseMode = TextExtractionElementFormat.TextCaseMode.UpperCase;
// Force lowercase for an email field
var email = new TextExtractionElement("Email", ElementType.String);
email.Format.CaseMode = TextExtractionElementFormat.TextCaseMode.LowerCase;