Back to Devexpress

Monthly Class

aspnet-devexpress-dot-web-dot-aspxgantt-05ebc3df.md

latest2.2 KB
Original Source

Monthly Class

Contains settings for a monthly recurrence pattern.

Namespace : DevExpress.Web.ASPxGantt

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

NuGet Package : DevExpress.Web

Declaration

csharp
public class Monthly :
    Weekly
vb
Public Class Monthly
    Inherits Weekly

The following members return Monthly objects:

Remarks

In markup:

aspx
<dx:ASPxGantt ID="Gantt" runat="server" ...>
  ...
    <WorkTimeRules>
        <dx:MonthlyRule IsWorkDay="false">
            <Recurrence DayOfWeek="Monday" DayOfWeekOccurrence="Second" CalculateByDayOfWeek="true" />
        </dx:MonthlyRule>
    </WorkTimeRules>
</dx:ASPxGantt>

In code:

csharp
MonthlyRule monthlyRule = new MonthlyRule();
monthlyRule.IsWorkDay = false;
monthlyRule.Recurrence.DayOfWeek = DayOfWeek.Monday;
monthlyRule.Recurrence.DayOfWeekOccurrence = DayOfWeekMonthlyOccurrence.Second;
monthlyRule.Recurrence.CalculateByDayOfWeek = true;
Gantt.WorkTimeRules.Add(monthlyRule);

Concept

Work Time Rules

Online Demos

Inheritance

Object Daily Weekly Monthly Yearly

See Also

Monthly Members

ASPxGantt - 'How To' Examples

DevExpress.Web.ASPxGantt Namespace