Defines the default text handling.
Get
| C# | SftMaskDefaultHandlingConstants Style = object.DefaultHandling; |
| VB.NET | Style = object.DefaultHandling As SftMaskDefaultHandlingConstants |
| C++ | enum SftMaskDefaultHandlingConstants Style = object->DefaultHandling; enum SftMaskDefaultHandlingConstants Style = object->GetDefaultHandling(); |
| C | HRESULT object->get_DefaultHandling(enum SftMaskDefaultHandlingConstants* Style); |
Put
| C# | SftMaskDefaultHandlingConstants object.DefaultHandling = Style; |
| VB.NET | object.DefaultHandling = Style As SftMaskDefaultHandlingConstants |
| C++ | enum SftMaskDefaultHandlingConstants object->DefaultHandling = Style; void object->PutDefaultHandling(enum SftMaskDefaultHandlingConstants Style); |
| C | HRESULT object->put_DefaultHandling(enum SftMaskDefaultHandlingConstants Style); |
object
Style
Defines the default text handling.
| Name | Value | Description |
|---|---|---|
| dfltSftMaskImmediate | 0 | Immediate - If the control's contents are empty, the default text defined using the DefaultText property is restored as the default value in the control. |
| dfltSftMaskDelayed | 1 | Delayed - When the control loses the input focus and the control's contents are empty, the default text defined using the DefaultText property is restored as the default value in the control. |
The DefaultHandling property defines the default text handling.
The DefaultHandling property determines when the control contents are inspected and, if empty, the DefaultText property value is assigned to the Text property. If the DefaultText property is empty, the DefaultHandling property has no effect.
See Also SftMask Object | Object Hierarchy