dotnetCHARTING Send comments on this topic.
CalendarPattern Constructor(TimeInterval,TimeInterval,String)
See Also  Example
dotnetCHARTING Namespace > CalendarPattern Class > CalendarPattern Constructor : CalendarPattern Constructor(TimeInterval,TimeInterval,String)


mappedTimeUnit
wholeTimeUnit
timePattern
Initializes a new instance of the CalendarPattern class with time units and a string pattern.

Syntax

Visual Basic (Declaration)  
Public Function New( _
   ByVal mappedTimeUnit As TimeInterval, _
   ByVal wholeTimeUnit As TimeInterval, _
   ByVal timePattern As String _
)
Visual Basic (Usage) Copy Code
Dim mappedTimeUnit As TimeInterval
Dim wholeTimeUnit As TimeInterval
Dim timePattern As String
 
Dim instance As CalendarPattern(mappedTimeUnit, wholeTimeUnit, timePattern)
C#  
public CalendarPattern( 
   TimeInterval mappedTimeUnit,
   TimeInterval wholeTimeUnit,
   string timePattern
)

Parameters

mappedTimeUnit
wholeTimeUnit
timePattern

Example

This instantiates a new CallendarPattern of a week marking the saturday and sunday.
C# Copy Code
CalendarPattern newPattern = new CalendarPattern(TimeInterval.Day,TimeInterval.Week,"1000001");
    

See Also