Back to Devexpress

CalendarControlBase.SelectionBehavior Property

windowsforms-devexpress-dot-xtraeditors-dot-controls-dot-calendarcontrolbase-f14380f5.md

latest3.7 KB
Original Source

CalendarControlBase.SelectionBehavior Property

Gets or sets whether calendar date ranges are selected strictly from day to day being clicked, or through the entire weeks containing those days.

Namespace : DevExpress.XtraEditors.Controls

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(CalendarSelectionBehavior.Simple)]
[DXCategory("Behavior")]
public CalendarSelectionBehavior SelectionBehavior { get; set; }
vb
<DefaultValue(CalendarSelectionBehavior.Simple)>
<DXCategory("Behavior")>
Public Property SelectionBehavior As CalendarSelectionBehavior

Property Value

TypeDefaultDescription
CalendarSelectionBehaviorSimple

A CalendarSelectionBehavior enumeration value that specifies how an end-user selects date ranges.

|

Available values:

NameDescription
Simple

Does not automatically extend the selection to the week’s start and end.

| | OutlookStyle |

Selects entire weeks

|

Remarks

If multiple dates can be selected simultaneously (see CalendarControlBase.SelectionMode), the SelectionBehavior property allows you to specify whether an end-user selects date ranges strictly from day to day being clicked (the default simple style), or the selection is automatically extended through the entire weeks containing those days (the Outlook-inspired style). See the figures below.

See Also

AddSelection

HighlightSelection

SelectedRanges

SelectionBehavior

SelectionChanged

SelectionEnd

SelectionMode

SelectionStart

SetSelection

SyncSelectionWithEditValue

UpdateSelectionWhenNavigating

ShowClearButton

CalendarControlBase Class

CalendarControlBase Members

DevExpress.XtraEditors.Controls Namespace