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

Describes one editable component or literal segment parsed from a time-span mask.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class TimeSpanMaskPart

Inheritance: objectTimeSpanMaskPart

Constructors

Initializes a part with a zero offset and a default numeric range of 0 through 2500.

C#
public TimeSpanMaskPart()

Properties

C#
public string CharValue { get; set; }

Gets or sets whether the most recently entered digit for the day part was zero.

C#
public bool HasZero { get; set; }

Gets or sets the number of characters occupied by this segment in the formatted input.

C#
public int Lenght { get; set; }

Gets or sets the mask text represented by this segment.

C#
public string MaskPart { get; set; }

Gets or sets the highest numeric value allowed for this segment.

C#
public int Maximum { get; set; }

Gets or sets the lowest numeric value allowed for this segment.

C#
public int Minimum { get; set; }

Gets or sets the zero-based starting position of the segment in the formatted input.

C#
public int Offset { get; set; }

Gets or sets whether the segment is excluded from editing and mask-part navigation.

C#
public bool ReadOnly { get; set; }

Gets or sets whether an optional millisecond mask segment can shorten its selected span when trailing fractional digits are zero.

C#
public bool TrimZeros { get; set; }

Gets or sets whether this segment represents a time unit, literal text, or a read-only mask part.

C#
public TimeSpanPartType Type { get; set; }

Gets or sets the current numeric value represented by this segment.

C#
public int Value { get; set; }

Methods

Clamps Value to the inclusive range from Minimum through Maximum.

C#
public void Validate()