New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

Represents the collection of mask parts in a RadMaskedTextBox.

Definition

Constructors

C#
public MaskPartCollection()

Properties

Gets or sets the RadMaskedInputControl, which uses the collection.

C#
public RadMaskedTextBox Owner { get; set; }

Gets or sets the MaskedTextBoxSetting, which uses the collection.

C#
public MaskedTextBoxSetting OwnerMaskedTextBoxSetting { get; set; }

Gets a MaskPart at the specified index in the collection.

C#
public MaskPart this[int index] { get; }
Parameters:indexint

The zero-based index of the MaskPart to retrieve from the collection.

Property Value:

Use this indexer to get a MaskPart from the MaskPartCollection at the specified index, using array notation.

Methods

Appends the specified MaskPart to the end of the collection.

C#
public void Add(MaskPart part)
Parameters:partMaskPart

The MaskPart to append to the collection.

Determines whether the collection contains the specified item

C#
public bool Contains(MaskPart part)
Parameters:partMaskPart

The MaskPart to search for in the collection.

Returns:

bool

true if the collection contains the specified MaskPart; otherwise false.

Determines the index value that represents the position of the specified MaskPart in the collection.

C#
public int IndexOf(MaskPart part)
Parameters:partMaskPart

A MaskPart to search for in the collection.

Returns:

int

The zero-based index position of the specified MaskPart in the collection.

Inserts the specified MaskPart in the collection at the specified index location.

C#
public void Insert(int index, MaskPart part)
Parameters:indexint

The location in the collection to insert the MaskPart.

partMaskPart

The MaskPart to add to the collection.

Removes the specified MaskPart from the collection.

C#
public void Remove(MaskPart part)
Parameters:partMaskPart

The MaskPart to remove from the collection.