Gets or sets the format priority. If one date has several styles applied to it, only the highest in priority is taken into account.
Namespace: MindFusion.Scheduling
Assembly: MindFusion.Scheduling
C# Copy Code |
---|
public int Priority { get; set; } |
Visual Basic Copy Code |
---|
Public Property Priority As Integer |
An integer value specifying the priority of this style.
When a time cell is included in the time intervals of several DateStyle or DayOfWeekStyle objects, the style that has the highest priority is used.
Note |
---|
If you want the overlapping styles for a single date to cascade, you have to specify different priorities for them. |
The following example illustrates how to create overlapping DateStyle objects for a specific date in a Month view. The example creates two date styles - one for the time range 03/15 - 03/20 and another for the time range 03/18 - 03/24. The two styles have different priorities to allow cascading. If both styles have had the same priorities, only the second style would have been used for the dates in the overlapped range (03/18 - 03/20).
C# Copy Code |
---|
DateStyle style1 = new DateStyle(); |
Visual Basic Copy Code |
---|
Dim style1 As New DateStyle() |