Defines whether the parts are edited one at a time or the text is typed freely.
Get
| C# | SftDateEditStyleConstants Style = object.EditStyle; |
| VB.NET | Style = object.EditStyle As SftDateEditStyleConstants |
| C++ | enum SftDateEditStyleConstants Style = object->EditStyle; enum SftDateEditStyleConstants Style = object->GetEditStyle(); |
| C | HRESULT object->get_EditStyle(enum SftDateEditStyleConstants* Style); |
Put
| C# | SftDateEditStyleConstants object.EditStyle = Style; |
| VB.NET | object.EditStyle = Style As SftDateEditStyleConstants |
| C++ | enum SftDateEditStyleConstants object->EditStyle = Style; void object->PutEditStyle(enum SftDateEditStyleConstants Style); |
| C | HRESULT object->put_EditStyle(enum SftDateEditStyleConstants Style); |
object
Style
Defines whether the parts are edited one at a time or the text is typed freely.
| Name | Value | Description |
|---|---|---|
| editSftDateSegments | 0 | Parts edited one at a time |
| editSftDateFreeForm | 1 | Text typed freely |
The EditStyle property defines how the user edits the value of a date field control. The default is editSftDateSegments. p In segment editing, the user edits one part (day, month, year, ...) at a time, typing digits or changing the part with the Up and Down keys. In free-form editing, the field holds a text box. The text is parsed in the format of the field, then leniently in the formats of the culture; "=Today", "=Yesterday", "=Tomorrow" and "=Now" are accepted as well. The application can parse the text itself in the TextParsing event, for example to accept "+3" for three days from today. Text that cannot be parsed restores the value, with a beep. p Keys typed into the text box of free-form editing raise the KeyDown event, but not KeyPress and KeyUp.
See Also SftDate Object | Object Hierarchy | Editing