MaskDescriptor Class

Note: This class is new in the .NET Framework version 2.0.

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

public abstract class MaskDescriptor
public abstract class MaskDescriptor
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 datum such as the zip code, time, different date formats, and phone 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.


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 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

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

.NET Framework

Supported in: 2.0