Version

GetDefaultMask Method (XamMaskedEditor)

Gets the default mask for the editor. When the owner doesn't provide any mask, value of this property will be used as the default mask. Default value is null. You should only override this property if your editor only supports a specific type. For example, DateTimeEditor only supports Date. Editing numbers, or strings do not make sense for a date time editor. So for such editors, override and return a default mask for that editor.
Syntax
'Declaration
 
Protected Friend Overridable Function GetDefaultMask( _
   ByVal dataType As Type, _
   ByVal formatProvider As IFormatProvider _
) As String
protected internal virtual string GetDefaultMask( 
   Type dataType,
   IFormatProvider formatProvider
)

Parameters

dataType
formatProvider
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also