MaskDescriptor Class

MaskDescriptor Class

 

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

Namespace:   System.Windows.Forms.Design
Assembly:  System.Design (in System.Design.dll)

System.Object
  System.Windows.Forms.Design.MaskDescriptor

public abstract class MaskDescriptor

NameDescription
System_CAPS_protmethodMaskDescriptor()

Initializes a new instance of the MaskDescriptor class.

NameDescription
System_CAPS_pubpropertyCulture

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

System_CAPS_pubpropertyMask

Gets the mask being defined.

System_CAPS_pubpropertyName

Gets the user-friendly name of the mask.

System_CAPS_pubpropertySample

Gets a sample of a formatted string for the mask.

System_CAPS_pubpropertyValidatingType

Gets the type providing validation associated with the mask.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified MaskDescriptor is equal to the current MaskDescriptor.(Overrides Object.Equals(Object).)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as a hash function for a particular type.(Overrides Object.GetHashCode().)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticIsValidMaskDescriptor(MaskDescriptor)

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

System_CAPS_pubmethodSystem_CAPS_staticIsValidMaskDescriptor(MaskDescriptor, String)

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

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Overrides Object.ToString().)

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.

.NET Framework
Available since 2.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft