DateNavigator.AutoSize Property

Gets or sets whether the control's size is determined by its content, i.e., by the number and layout of displayed months.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v20.1.dll

Declaration

[DefaultValue(false)]
public override bool AutoSize { get; set; }
<DefaultValue(False)>
Public Overrides Property AutoSize As Boolean

Property Value

Type Default Description
Boolean

false

True to set the control dimensions to display the month grid as specified by the CalendarControlBase.RowCount and CalendarControlBase.ColumnCount properties; otherwise, false.

Remarks

The AutoSize property specifies whether the number of months displayed in the DateNavigator control and their layout are changed when the control is resized.

If the AutoSize is set to false (default), the control automatically calculates the number of months to display, and their layout. When the control is resized, the number of displayed months can change.

If the AutoSize is set to true, the control's size is calculated to best fit the grid composed of months arranged in CalendarControlBase.RowCount rows and CalendarControlBase.ColumnCount columns. When the control is resized, the layout of months and their number do not change.

See Also