Version

CalendarDetailsBreakMode Enumeration

Enumeration used by the UltraSchedulePrintDocument.CalendarDetailsBreakMode to determine when a page break should be inserted when printing a CalendarDetails style UltraSchedulePrintDocument.PrintStyle
Syntax
'Declaration
 
Public Enum CalendarDetailsBreakMode 
   Inherits System.Enum
public enum CalendarDetailsBreakMode : System.Enum 
Members
MemberDescription
DayA page break will be inserted when a new day is encountered.
MonthA page break will be inserted when a new month is encountered.
NoneActivities may be rendered together regardless of when they occur. The page will only break when there is no more room to render the remainder of the activity.
WeekA page break will be inserted when a new week is encountered.
YearA page break will be inserted when a new year is encountered.
Example
The following example demonstrates how to print a calendar details print style.

Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinSchedule

        'print the activity in the date range
        Me.UltraSchedulePrintDocument1.PrintStyle = SchedulePrintStyle.CalendarDetails

        'the 'CalendarDetailsBreakMode' allows control over when to start a new
        'page. by default, no page breaks will be inserted - each detail is printed
        'as long as there is room for the header of the item (the time range and subject)
        'in this case, a page break will be inserted when each new date is encountered
        Me.UltraSchedulePrintDocument1.CalendarDetailsBreakMode = CalendarDetailsBreakMode.Day

        'the 'CalendarDetailsHeaderAppearance' affects the display of the time range
        'and subject/location section of each calendar details item
        Me.UltraSchedulePrintDocument1.CalendarDetailsHeaderAppearance.FontData.Name = "Tahoma"
        Me.UltraSchedulePrintDocument1.CalendarDetailsHeaderAppearance.FontData.Underline = DefaultableBoolean.True
        Me.UltraSchedulePrintDocument1.CalendarDetailsHeaderAppearance.FontData.SizeInPoints = 14

        'the 'CalendarDetailsDescriptionAppearance' affects the display of the 
        'appointment description for each calendar details item
        Me.UltraSchedulePrintDocument1.CalendarDetailsDescriptionAppearance.FontData.Name = "Tahoma"
        Me.UltraSchedulePrintDocument1.CalendarDetailsDescriptionAppearance.FontData.SizeInPoints = 12
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinSchedule;

			//print the activity in the date range
			this.ultraSchedulePrintDocument1.PrintStyle = SchedulePrintStyle.CalendarDetails;

			//the 'CalendarDetailsBreakMode' allows control over when to start a new
			//page. by default, no page breaks will be inserted - each detail is printed
			//as long as there is room for the header of the item (the time range and subject)
			//in this case, a page break will be inserted when each new date is encountered
			this.ultraSchedulePrintDocument1.CalendarDetailsBreakMode = CalendarDetailsBreakMode.Day;

			//the 'CalendarDetailsHeaderAppearance' affects the display of the time range
			//and subject/location section of each calendar details item
			this.ultraSchedulePrintDocument1.CalendarDetailsHeaderAppearance.FontData.Name = "Tahoma";
			this.ultraSchedulePrintDocument1.CalendarDetailsHeaderAppearance.FontData.Underline = DefaultableBoolean.True;
			this.ultraSchedulePrintDocument1.CalendarDetailsHeaderAppearance.FontData.SizeInPoints = 14;

			//the 'CalendarDetailsDescriptionAppearance' affects the display of the 
			//appointment description for each calendar details item
			this.ultraSchedulePrintDocument1.CalendarDetailsDescriptionAppearance.FontData.Name = "Tahoma";
			this.ultraSchedulePrintDocument1.CalendarDetailsDescriptionAppearance.FontData.SizeInPoints = 12;
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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