Click or drag to resize
EnumerationMaskPart Class
Represents a MaskPart object which accepts only a predefined set of options.
Inheritance Hierarchy
SystemObject
  Kettic.AspNet.ControlsMaskPart
    Kettic.AspNet.ControlsEnumerationMaskPart

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
public class EnumerationMaskPart : MaskPart

The EnumerationMaskPart type exposes the following members.

Constructors
  NameDescription
Public methodEnumerationMaskPart
Top
Methods
  NameDescription
Public methodToString
Returns the friendly name of the part.
(Overrides ObjectToString.)
Top
Properties
  NameDescription
Public propertyItems
Gets the options collection of the part.
Top
Examples
This example demonstrates how to add an EnumerationMaskPart object in the MaskParts property of KaxMaskedTextBox.
private void Page_Load(object sender, System.EventArgs e)
{ 
    EnumerationMaskPart enumPart = new EnumerationMaskPart();
    enumPart.Items.Add("Mon");
    enumPart.Items.Add("Two");
    enumPart.Items.Add("Wed");
    enumPart.Items.Add("Thu");
    enumPart.Items.Add("Fri");
    enumPart.Items.Add("Sat");
    enumPart.Items.Add("Sun");

    KaxMaskedTextBox1.MaskParts.Add(enumPart);
}
See Also