This documentation is archived and is not being maintained.

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)

public abstract class MaskDescriptor

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.

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

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

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0
Show: