Version

WeeklyLayoutStyle Property

Returns or sets how the days are arranged in a weekly print style.
Syntax
'Declaration
 
Public Property WeeklyLayoutStyle As WeeklyLayoutStyle
public WeeklyLayoutStyle WeeklyLayoutStyle {get; set;}
Example
The following example demonstrates how to print a weekly print style.

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

        'print one or more weeks
        Me.UltraSchedulePrintDocument1.PrintStyle = SchedulePrintStyle.Weekly

        'the weekly layout style determines how the week is displayed.
        'by default, the week is displayed using an UltraWeekView and 
        'as such days are arranged into 2 columns. there is also the
        'option of arranging the week with a dayview display the appointments
        'in the respective timeslots. the last option is to arrange
        'the week as an UltraMonthViewSingle that displays only 1 week
        'Me.UltraSchedulePrintDocument1.WeeklyLayoutStyle = WeeklyLayoutStyle.DayView
        'Me.UltraSchedulePrintDocument1.WeeklyLayoutStyle = WeeklyLayoutStyle.MonthView
        Me.UltraSchedulePrintDocument1.WeeklyLayoutStyle = WeeklyLayoutStyle.WeekView

        'the week may be split across 2 pages
        Me.UltraSchedulePrintDocument1.MaximumPagesPerWeek = 2

        'the date header area is the area above the calendar that
        'describes the range being printed. it may optionally
        'be turned off
        Me.UltraSchedulePrintDocument1.IncludeDateHeaderArea = False
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinSchedule;

			//print one or more weeks
			this.ultraSchedulePrintDocument1.PrintStyle = SchedulePrintStyle.Weekly;

			//the weekly layout style determines how the week is displayed.
			//by default, the week is displayed using an UltraWeekView and 
			//as such days are arranged into 2 columns. there is also the
			//option of arranging the week with a dayview display the appointments
			//in the respective timeslots. the last option is to arrange
			//the week as an UltraMonthViewSingle that displays only 1 week
			//this.ultraSchedulePrintDocument1.WeeklyLayoutStyle = WeeklyLayoutStyle.DayView
			//this.ultraSchedulePrintDocument1.WeeklyLayoutStyle = WeeklyLayoutStyle.MonthView
			this.ultraSchedulePrintDocument1.WeeklyLayoutStyle = WeeklyLayoutStyle.WeekView;

			//the week may be split across 2 pages
			this.ultraSchedulePrintDocument1.MaximumPagesPerWeek = 2;

			//the date header area is the area above the calendar that
			//describes the range being printed. it may optionally
			//be turned off
			this.ultraSchedulePrintDocument1.IncludeDateHeaderArea = false;
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