Back to Devexpress

Yearly.Month Property

wpf-devexpress-dot-xpf-dot-gantt-dot-yearly-af50d99a.md

latest1.6 KB
Original Source

Yearly.Month Property

Gets or sets month when the rule is applied. This is a dependency property.

Namespace : DevExpress.Xpf.Gantt

Assembly : DevExpress.Xpf.Gantt.v25.2.dll

NuGet Package : DevExpress.Wpf.Gantt

Declaration

csharp
public int Month { get; set; }
vb
Public Property Month As Integer

Property Value

TypeDescription
Int32

A month number.

|

Remarks

Use the Day and Month properties to specify a date when the rule is applied.

Example

xaml
<dxgn:GanttControl ItemsSource="{Binding Tasks}">
    <dxgn:GanttControl.View>
        <dxgn:GanttView
            NonworkingDayDisplayMode="Show"
            NonworkingTimeDisplayMode="Show">
            <dxgn:GanttView.WorkdayRules>
                <!-- Marks January, 1 a nonworking day -->
                <dxgn:WorkdayRule IsWorkday="False" Recurrence="{dxgn:Yearly Day=1, Month=1}" />
            </dxgn:GanttView.WorkdayRules>
        </dxgn:GanttView>
    </dxgn:GanttControl.View>
</dxgn:GanttControl>

See Also

Yearly Class

Yearly Members

DevExpress.Xpf.Gantt Namespace