Skip to main content
A newer version of this page is available. .

Yearly.Month Property

Specifies a month to which the rule is applied.

Namespace: DevExpress.Web.ASPxGantt

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

Declaration

[DefaultValue(Month.January)]
public Month Month { get; set; }

Property Value

Type Default Description
Month **January**

A month.

Available values:

Show 12 items
Name Description
January

Specifies January.

February

Specifies February.

March

Specifies March.

April

Specifies April.

May

Specifies May.

June

Specifies June.

July

Specifies July.

August

Specifies August.

September

Specifies September.

October

Specifies October.

November

Specifies November.

December

Specifies December.

Remarks

Declaratively:

<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