New to Telerik UI for WinForms? Start a free 30-day trial

Holds the format, editing range, and current numeric value of one parsed date/time mask segment.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class MaskPart

Inheritance: objectMaskPart

Constructors

C#
public MaskPart()

Fields

C#
public string charValue
C#
public bool day

Tracks whether a zero was most recently entered, so subsequent digit input can handle a leading zero.

C#
public bool hasZero

The segment's current character length in the rendered text; this can vary for localized names and optional fractional digits.

C#
public int len

The mask token or literal text associated with this segment.

C#
public string maskPart

The inclusive upper bound for the segment's numeric value.

C#
public int max

The inclusive lower bound for the segment's numeric value.

C#
public int min
C#
public bool month

The segment's starting character index in the rendered text.

C#
public int offset

Indicates that editing and selection logic should skip this segment.

C#
public bool readOnly
C#
public int start

Indicates that trailing zero fractional-second digits may be omitted from the displayed and selected segment.

C#
public bool trimsZeros

Identifies the date/time field or literal represented by this segment.

C#
public PartTypes type

The numeric value currently represented by the segment.

C#
public int value
C#
public bool year

Methods

Clamps value to the inclusive range defined by min and max.

C#
public void Validate()