Back to Devexpress

Month Enum

aspnet-devexpress-dot-web-dot-aspxgantt-4be01684.md

latest2.5 KB
Original Source

Month Enum

Lists 12 months of the year.

Namespace : DevExpress.Web.ASPxGantt

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

NuGet Package : DevExpress.Web

Declaration

csharp
public enum Month
vb
Public Enum Month

Members

NameDescription
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.

|

The following properties accept/return Month values:

Remarks

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

In markup:

aspx
<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:

csharp
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

ASPxGantt - 'How To' Examples

DevExpress.Web.ASPxGantt Namespace