EnumerationMaskPart Class |
Represents a MaskPart object which accepts only a predefined set of
options.
Inheritance Hierarchy
Namespace: Kettic.AspNet.ControlsAssembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax public class EnumerationMaskPart : MaskPart
Public Class EnumerationMaskPart
Inherits MaskPart
public ref class EnumerationMaskPart : public MaskPart
type EnumerationMaskPart =
class
inherit MaskPart
end
The EnumerationMaskPart type exposes the following members.
Constructors Methods
| Name | Description |
---|
| ToString | Returns the friendly name of the part. (Overrides ObjectToString.) |
TopProperties
| Name | Description |
---|
| Items |
Gets the options collection of the part.
|
TopExamples
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);
}
Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim enumPart As 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)
End Sub
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
See Also