[]
        
(Showing Draft Content)

C1.Win.C1Input.ParseInfo

ParseInfo Class

Contains settings affecting parsing, that is, converting a string to the required data type.

Inheritance
ParseInfo
Namespace: C1.Win.C1Input
Assembly: C1.Win.C1Input.4.8.dll
Syntax
[TypeConverter(typeof(GenericInheritConverter))]
public class ParseInfo : MarshalByRefObject, IDisposable, ICustomTypeDescriptor

Properties

Name Description
CaseSensitive

True if string comparisons are case-sensitive; otherwise, False.

CustomFormat

Custom format specifier (in parsing used for DateTime and Boolean types only).

DateTimeStyle

Determines the styles (flags) permitted in input strings representing date/time.

EmptyAsNull

If True, empty strings are interpreted as null values (DbNull).

ErrorMessage

Error message shown in the standard message box and/or in the exception.

FormatType

The format used for parsing.

Inherit

Manages inheritance of the ParseInfo properties from the host control properties.

NullText

The string representing DbNull value.

NumberStyle

Determines the styles (flags) permitted in input strings representing numbers.

TrimEnd

If True, trailing spaces are removed before parsing.

TrimStart

If True, leading spaces are removed before parsing.

Methods

Name Description
IsTextDbNull(string, CultureInfo)

Returns True if the argument represents a null value (DBNull).

Parse(string, Type, out object, ErrorInfo)

Converts text to the specified data type.

ParseBoolean(string, FormatTypeEnum, CultureInfo)

Converts the text to a Boolean value.

ParseDateTime(string, FormatTypeEnum, CultureInfo)

Converts text to a value using one of DateTime formats.

ParseFixed(string, FormatTypeEnum, CultureInfo)

Converts the text to a Decimal value using a fixed numeric format.

ParseFloat(string, FormatTypeEnum, CultureInfo)

Converts the text to a Double value using a float numeric format.

ParseInteger(string, FormatTypeEnum, CultureInfo)

Converts the text to Int64 value using an integer numeric format.

Reset()

Resets whole ParseInfo property of base control

ResetCaseSensitive()

This method is for internal use only.

ResetCustomFormat()

This method is for internal use only.

ResetEmptyAsNull()

This method is for internal use only.

ResetErrorMessage()

This method is for internal use only.

ResetFormatType()

This method is for internal use only.

ResetNullText()

This method is for internal use only.

ResetTrimEnd()

This method is for internal use only.

ResetTrimStart()

This method is for internal use only.

ShouldSerializeCaseSensitive()

This method is for internal use only.

ShouldSerializeCustomFormat()

This method is for internal use only.

ShouldSerializeEmptyAsNull()

This method is for internal use only.

ShouldSerializeErrorMessage()

This method is for internal use only.

ShouldSerializeFormatType()

This method is for internal use only.

ShouldSerializeNullText()

This method is for internal use only.

ShouldSerializeTrimEnd()

This method is for internal use only.

ShouldSerializeTrimStart()

This method is for internal use only.