All docs
V19.2
19.2
19.1
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

Month Enum

Lists 12 months of the year.

Namespace: DevExpress.Web.ASPxGantt

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

Declaration

public enum Month
Public Enum Month

Members

Name Description
April

Specifies April.

August

Specifies August.

December

Specifies December.

February

Specifies February.

January

Specifies January.

July

Specifies July.

June

Specifies June.

March

Specifies March.

May

Specifies May.

November

Specifies November.

October

Specifies October.

September

Specifies September.

Remarks

Use the Month property to specify a month of the year.

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