Back to Devexpress

WorkTimeRulesCollection Class

aspnet-devexpress-dot-web-dot-aspxgantt-4866ab5d.md

latest3.4 KB
Original Source

WorkTimeRulesCollection Class

A collection of work time rules: DailyRule, WeeklyRule, MonthlyRule, YearlyRule.

Namespace : DevExpress.Web.ASPxGantt

Assembly : DevExpress.Web.ASPxGantt.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public class WorkTimeRulesCollection :
    Collection
vb
Public Class WorkTimeRulesCollection
    Inherits Collection

The following members return WorkTimeRulesCollection objects:

LibraryRelated API Members
ASP.NET Web Forms ControlsASPxGantt.WorkTimeRules
ASP.NET MVC ExtensionsGanttSettings.WorkTimeRules

Remarks

aspx
<dx:ASPxGantt ID="Gantt" runat="server" KeyFieldName="ID" ParentFieldName="ParentID" ... /> 
    ...
    <WorkTimeRules> 
        <dx:DailyRule>
            <WorkTimeRanges>
                <dx:WorkTimeRange Start="08:00" End="11:55" />
                <dx:WorkTimeRange Start="13:00" End="17:00" />
            </WorkTimeRanges>
        </dx:DailyRule>
        <dx:WeeklyRule IsWorkDay="false">
            <Recurrence DayOfWeek="Saturday" />
        </dx:WeeklyRule>
        <dx:WeeklyRule IsWorkDay="false">
            <Recurrence DayOfWeek="Sunday" />
        </dx:WeeklyRule>
        <dx:YearlyRule IsWorkDay="false">
            <Recurrence Day="27" Month="May" />
        </dx:YearlyRule>
        <dx:YearlyRule IsWorkDay="false">
            <Recurrence Day="14" Month="February" />
        </dx:YearlyRule>
        <dx:YearlyRule IsWorkDay="false">
            <Recurrence Day="8" Month="March" />
        </dx:YearlyRule>
    </WorkTimeRules>
</dx:ASPxGantt>

Concept

Work Time Rules

Online Demos

Implements

IList

ICollection

IEnumerable

IStateManager

DevExpress.Utils.IAssignableCollection

Inheritance

Object StateManagedCollectionBase Collection WorkTimeRulesCollection

See Also

WorkTimeRulesCollection Members

DevExpress.Web.ASPxGantt Namespace