WorkTimeRulesCollection.Add(RuleBase) Method
Adds a work time rule object to the collection.
Namespace: DevExpress.Web.ASPxGantt
Assembly: DevExpress.Web.ASPxGantt.v24.1.dll
NuGet Package: DevExpress.Web
Declaration
Parameters
Name | Type | Description |
---|---|---|
rule | RuleBase | A work time rule. |
Remarks
DailyRule rule1 = new DailyRule();
rule1.WorkTimeRanges.AddRange( new List<WorkTimeRange>
{
new WorkTimeRange(){ Start=new TimeSpan(08,00,00), End=new TimeSpan(10,00,00)},
new WorkTimeRange(){ Start=new TimeSpan(15,00,00), End=new TimeSpan(18,00,00)}
});
rule1.Recurrence.Start = new DateTime(2019, 02, 22);
rule1.Recurrence.End = new DateTime(2019, 02, 25);
ASPxGantt1.WorkTimeRules.Add(rule1);
See Also