HeaderPane
Main
Hide
Share Link
Print

EditStyle Property, SftDate Object

Defines whether the parts are edited one at a time or the text is typed freely.

Syntax

Get

C#SftDateEditStyleConstants Style = object.EditStyle;
VB.NETStyle = object.EditStyle As SftDateEditStyleConstants
C++enum SftDateEditStyleConstants Style = object->EditStyle;
enum SftDateEditStyleConstants Style = object->GetEditStyle();
CHRESULT object->get_EditStyle(enum SftDateEditStyleConstants* Style);

Put

C#SftDateEditStyleConstants object.EditStyle = Style;
VB.NETobject.EditStyle = Style As SftDateEditStyleConstants
C++enum SftDateEditStyleConstants object->EditStyle = Style;
void object->PutEditStyle(enum SftDateEditStyleConstants Style);
CHRESULT object->put_EditStyle(enum SftDateEditStyleConstants Style);

object

A SftDate object.

Style

Defines whether the parts are edited one at a time or the text is typed freely.

NameValueDescription
editSftDateSegments0Parts edited one at a time
editSftDateFreeForm1Text typed freely

Comments

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


Last Updated 11/29/2026 - (email)
© 2026 Softel vdm, Inc.