バージョン

MonthlyLayoutStyle 列挙体

Monthly スタイルのUltraSchedulePrintDocument.PrintStyle の印刷方法を指定するために UltraSchedulePrintDocument.MonthlyLayoutStyle に使用される列挙体。
シンタックス
'宣言
 
Public Enum MonthlyLayoutStyle 
   Inherits System.Enum
public enum MonthlyLayoutStyle : System.Enum 
メンバ
メンバ解説
FiveWeeksPerPageデフォルトの月レイアウトスタイル。印刷操作の開始日を含む週から、1ページに5週間ずつ印刷されます。
OneMonthPerPageこのオプションを使用した場合は、特定の月のすべての週が1ページに印刷されます。
OneMonthPerPageExactこれは、Outlookの月間スタイルで使用されている「Print Exactly One Month Per Page」オプションと同じです。このオプションを使用した場合は、特定の月のすべての週が1ページに印刷されますが、先頭日と後続日、およびそのアクティビティは印刷されません。
使用例
Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinSchedule

        'print one or more months
        Me.UltraSchedulePrintDocument1.PrintStyle = SchedulePrintStyle.Monthly

        'by default, a monthly print style starts with the week containing
        'the start date and prints 5 weeks per page until the last date
        'is printed. optionally, the print may be changed to always print
        'all the days of each month on a separate page. further, a setting
        'of 'OneMonthPerPageExact' may be used to prevent any leading or 
        'trailing days from being rendered
        'me.UltraSchedulePrintDocument1.MonthlyLayoutStyle = MonthlyLayoutStyle.FiveWeeksPerPage
        'me.UltraSchedulePrintDocument1.MonthlyLayoutStyle = MonthlyLayoutStyle.OneMonthPerPage
        Me.UltraSchedulePrintDocument1.MonthlyLayoutStyle = MonthlyLayoutStyle.OneMonthPerPageExact

        'by default, whether weekends are compressed is based on the settings
        'of the ultramonthviewsingle that is created for the print operation.
        'this may be overriden using the 'CompressWeekends' property. in this
        'case we do not want to compress the weekend days - each should be
        'displayed in its own column
        Me.UltraSchedulePrintDocument1.CompressWeekends = DefaultableBoolean.False

        'the print document also contains an option to hide non-working days -
        'i.e. DayOfWeek object's whose IsWorkingDay is false. in this case,
        'we want to print every day of the week including weekends
        Me.UltraSchedulePrintDocument1.ExcludeNonWorkingDays = False

        'the month may be split across 2 pages so that half of the
        'days of the week are printed on the first page and the second
        'half is rendered on the second page
        Me.UltraSchedulePrintDocument1.MaximumPagesPerMonth = 2
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinSchedule;

			//print one or more months
			this.ultraSchedulePrintDocument1.PrintStyle = SchedulePrintStyle.Monthly;

			//by default, a monthly print style starts with the week containing
			//the start date and prints 5 weeks per page until the last date
			//is printed. optionally, the print may be changed to always print
			//all the days of each month on a separate page. further, a setting
			//of 'OneMonthPerPageExact' may be used to prevent any leading or 
			//trailing days from being rendered
			//me.UltraSchedulePrintDocument1.MonthlyLayoutStyle = MonthlyLayoutStyle.FiveWeeksPerPage
			//me.UltraSchedulePrintDocument1.MonthlyLayoutStyle = MonthlyLayoutStyle.OneMonthPerPage
			this.ultraSchedulePrintDocument1.MonthlyLayoutStyle = MonthlyLayoutStyle.OneMonthPerPageExact;

			//by default, whether weekends are compressed is based on the settings
			//of the ultramonthviewsingle that is created for the print operation.
			//this may be overriden using the 'CompressWeekends' property. in this
			//case we do not want to compress the weekend days - each should be
			//displayed in its own column
			this.ultraSchedulePrintDocument1.CompressWeekends = DefaultableBoolean.False;

			//the print document also contains an option to hide non-working days -
			//i.e. DayOfWeek object//s whose IsWorkingDay is false. in this case,
			//we want to print every day of the week including weekends
			this.ultraSchedulePrintDocument1.ExcludeNonWorkingDays = false;

			//the month may be split across 2 pages so that half of the
			//days of the week are printed on the first page and the second
			//half is rendered on the second page
			this.ultraSchedulePrintDocument1.MaximumPagesPerMonth = 2;
参照