.netCHARTING v10.5 Documentation
Members 


dotnetCHARTING Namespace : CalendarPattern Class
CalendarPattern Class
Specifies a calendar pattern such as weekends in a week.
Object Model
CalendarPattern ClassCalendarPattern ClassCalendarPattern Class
Syntax
'Declaration
 
Public Class CalendarPattern 
'Usage
 
Dim instance As CalendarPattern
public class CalendarPattern 
Remarks

The pattern is represented by an array of boolean values. CalendarPattern.PatternFromString can be used to quickly create patterns using simple strings. A week pattern would look like this: "0000000". A zero for each day of the week. To indicate weekends the pattern will be "1000001". The time units must also be specified.

Each one or zero represents a day:
myCalendarPattern.PatternUnit = TimeInterval.Day


The entire pattern represents a week:
myCalendarPattern.CalendarUnit = TimeInterval.Week


The above calendar pattern will flag each saturday and sunday in a given, time span.

Inheritance Hierarchy

System.Object
   dotnetCHARTING.CalendarPattern

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also