Skip to main content

YearlyRule.Recurrence Property

Gets the yearly rule’s recurrence settings.

Namespace: DevExpress.Web.ASPxGantt

Assembly: DevExpress.Web.ASPxGantt.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public Yearly Recurrence { get; }

Property Value

Type Description
Yearly

Yearly recurrence settings.

Remarks

In markup:

<dx:ASPxGantt ID="Gantt" runat="server" ... /> 
    ...
    <WorkTimeRules> 
        <dx:YearlyRule IsWorkDay="false">
            <Recurrence Day="27" Month="May" />
        </dx:YearlyRule>
        <dx:YearlyRule IsWorkDay="false">
            <Recurrence Day="14" Month="February" />
        </dx:YearlyRule>
        ...
    </WorkTimeRules>
</dx:ASPxGantt>

In code:

YearlyRule yearRule1 = new YearlyRule();
yearRule1.Recurrence.Day = 27;
yearRule1.Recurrence.Month = Month.May;
yearRule1.IsWorkDay = false;

YearlyRule yearRule2 = new YearlyRule();
yearRule2.Recurrence.Day = 14;
yearRule2.Recurrence.Month = Month.February;
yearRule2.IsWorkDay = false;

Gantt.WorkTimeRules.Add(yearRule1);
Gantt.WorkTimeRules.Add(yearRule2);

Concept

Work Time Rules

Online Demos

See Also