Back to Devexpress

WeekIntervalCollection.CompressWeekend Property

corelibraries-devexpress-dot-xtrascheduler-dot-weekintervalcollection.md

latest2.0 KB
Original Source

WeekIntervalCollection.CompressWeekend Property

Gets or sets a value which specifies whether the weekend days ( Saturday and Sunday ) should always persist in the collection together.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.Core.dll

NuGet Package : DevExpress.Scheduler.Core

Declaration

csharp
public bool CompressWeekend { get; set; }
vb
Public Property CompressWeekend As Boolean

Property Value

TypeDescription
Boolean

true to compress weekends; otherwise, false.

|

Remarks

This property is used when defining the start and end dates of the week intervals within the collection. For instance, if CompressWeekend is set to true , and SchedulerOptionsViewBase.FirstDayOfWeek is set to Sunday , then the week interval will contain Saturday (from this week) and Sunday (from the next week) together. Also in this case the Sunday of this week will not be contained in the collection.

See Also

FirstDayOfWeek

WeekIntervalCollection Class

WeekIntervalCollection Members

DevExpress.XtraScheduler Namespace