MaskDescriptor MaskDescriptor MaskDescriptor MaskDescriptor Class

Definition

Defines a set of members for derived classes to provide options for the masked text box UI type editor.

public ref class MaskDescriptor abstract
public abstract class MaskDescriptor
type MaskDescriptor = class
Public MustInherit Class MaskDescriptor
Inheritance
MaskDescriptorMaskDescriptorMaskDescriptorMaskDescriptor

Remarks

The MaskDescriptor abstract class defines the common set of properties that all mask descriptors must implement. You can use mask descriptors to create predefined mask options for use in the UI type editor for the MaskedTextBox. For example, Visual Studio provides predefined masks for data such as the Postal Code, time, different date formats, and telephone number. All predefined masks will be associated with the MaskedTextProvider parsing engine.

You can discover MaskDescriptor types at design time by querying the ITypeDiscoveryService service provider.

Constructors

MaskDescriptor() MaskDescriptor() MaskDescriptor() MaskDescriptor()

Initializes a new instance of the MaskDescriptor class.

Properties

Culture Culture Culture Culture

Gets the CultureInfo representing the locale the mask is authored for.

Mask Mask Mask Mask

Gets the mask being defined.

Name Name Name Name

Gets the user-friendly name of the mask.

Sample Sample Sample Sample

Gets a sample of a formatted string for the mask.

ValidatingType ValidatingType ValidatingType ValidatingType

Gets the type providing validation associated with the mask.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified MaskDescriptor is equal to the current MaskDescriptor.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as a hash function for a particular type.

GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
IsValidMaskDescriptor(MaskDescriptor) IsValidMaskDescriptor(MaskDescriptor) IsValidMaskDescriptor(MaskDescriptor) IsValidMaskDescriptor(MaskDescriptor)

Returns a value indicating whether the specified mask descriptor is valid and can be added to the masks list.

IsValidMaskDescriptor(MaskDescriptor, String) IsValidMaskDescriptor(MaskDescriptor, String) IsValidMaskDescriptor(MaskDescriptor, String) IsValidMaskDescriptor(MaskDescriptor, String)

Returns a value indicating whether the specified mask descriptor is valid, and provides an error description if it is not valid.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

Applies to

See also