Version

CalendarLookCategories Enumeration

Categories for use when saving and loading the properties of the UltraCalendarLook
Syntax
'Declaration
 
Public Enum CalendarLookCategories 
   Inherits System.Enum
public enum CalendarLookCategories : System.Enum 
Members
MemberDescription
AllAll properties and collections
AppearancesCollectionThe appearances collection
DateCollectionsThe Date related collections (e.g. DaysOfWeekLook, MonthsOfYearLook, etc.)
DaysOfMonthLookThe DaysOfMonthLook collection
DaysOfWeekLookThe DaysOfWeekLook collection
DaysOfYearLookThe DaysOfYearLook collection
GeneralAll component level properties
MonthsOfYearLookThe MonthsOfYearLook collection
NoneNo customization options are allowed. Note, this is a flagged enumeratior so None is only honored when not combined with other values from the enumeration.
WeeksOfYearLookThe WeeksOfYearLook collection
YearsAll date specific objects (DayLook, YearLook, etc.)
Example
The following example demonstrates how to call UltraCalendarLook's Save method to save UltraCalendarLook data to a binary stream.

Imports System.Diagnostics
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinSchedule

	Private Sub Button12_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button12.Click

		Try
			Dim stream As New FileStream("C:\\Layout.bin", FileMode.OpenOrCreate)
			stream.Seek(0, SeekOrigin.Begin)

			Try
				Me.UltraCalendarLook1.Save(stream, CalendarLookCategories.All)
			Catch
				MessageBox.Show(Me, "Error encountered while saving to stream!", "Save Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
			End Try

			stream.Close()
		Catch
			Debug.WriteLine("Error encountered while saving stream!")
		End Try

	End Sub
using System.Diagnostics;
using Infragistics.Win;
using Infragistics.Win.UltraWinSchedule;

		private void button12_Click(object sender, System.EventArgs e)
		{

			try
			{
				FileStream stream = new FileStream("C:\\Layout.bin", FileMode.OpenOrCreate);
				stream.Seek(0, SeekOrigin.Begin);

				try
				{
					this.ultraCalendarLook1.Save(stream, CalendarLookCategories.All);
				}
				catch
				{
					MessageBox.Show(this, "Error encountered while saving to stream!", "Save Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
				}

				stream.Close();
			}
			catch
			{
				Debug.WriteLine("Error encountered while saving stream!");
			}

		}
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