HeaderPane
Main
Hide
Share Link
Print

MaxRangeDays Property, SftDateCalendar Object

Defines the maximum number of days in a range (0 for no limit).

Syntax

Get

C#int Days = object.MaxRangeDays;
VB.NETDays = object.MaxRangeDays As Integer
C++long Days = object->MaxRangeDays;
long Days = object->GetMaxRangeDays();
CHRESULT object->get_MaxRangeDays(long* Days);

Put

C#int object.MaxRangeDays = Days;
VB.NETobject.MaxRangeDays = Days As Integer
C++long object->MaxRangeDays = Days;
void object->PutMaxRangeDays(long Days);
CHRESULT object->put_MaxRangeDays(long Days);

object

A SftDateCalendar object.

Days

Defines the maximum number of days in a range (0 for no limit).

Comments

The MaxRangeDays property defines the maximum length of a range the user can select (range selection mode, see SftCalendar.SelectionMode and SftDate.SelectionMode). The default is 0, no limit. A range that would be longer ends at the maximum. A negative value causes an error. p The limit applies to the user's selection only, not to a range set using the SetRange method. p The setting applies to a month calendar control and to the dropdown calendar of a date field control.

See Also SftDateCalendar Object | Object Hierarchy | Ranges


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