Version

CalendarInfoCategories Enumeration

Categories for use when saving and loading the properties of the UltraCalendarInfo
Syntax
'Declaration
 
Public Enum CalendarInfoCategories 
   Inherits System.Enum
public enum CalendarInfoCategories : System.Enum 
Members
MemberDescription
AllAll properties
AppearancesCollectionThe appearances collection
AppointmentsThe appointments collection
DateCollectionsAll date related collections (e.g. DaysOfWeek, WeeksOfYear, etc.)
DateSettingsThe DateSettings collection.
DaysOfMonthThe DaysOfMonth collection
DaysOfWeekThe DaysOfWeek collection
DaysOfYearThe DaysOfYear collection
GeneralAll component level properties
HolidaysThe holidays collection
MonthsOfYearThe MonthsOfYear 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.
NotesThe notes collection
OwnersThe Owners collection
ProjectsThe Projects collection.
ReservedFor internal use only
TasksThe Tasks collection.
WeeksOfYearThe WeeksOfYear collection
YearsAll date specific objects
Example
This example uses the Save and Load methods to save the state of one UltraCalendarInfo object and load it into another one.

Imports Infragistics.Win
Imports Infragistics.Win.UltraWinSchedule
Imports System.IO
Imports System.Globalization

    Private Sub button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button1.Click

        '	Create a new memory stream
        Dim stream As System.IO.MemoryStream = New System.IO.MemoryStream()

        '	Save the state of the UltraCalendarInfo object to the memory stream
        Me.ultraCalendarInfo1.Save(stream, CalendarInfoCategories.All)

        '	Create a new instance of the UltraCalendarInfo object
        Dim calendarInfo As UltraCalendarInfo = New UltraCalendarInfo()

        '	Reset the stream position before we load the data
        stream.Position = 0

        '	Load the state of the saved UltraCalendarInfo object to the new one
        calendarInfo.Load(stream, CalendarInfoCategories.All)

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

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

			//	Create a new memory stream
			System.IO.MemoryStream stream = new System.IO.MemoryStream();

			//	Save the state of the UltraCalendarInfo object to the memory stream
			this.ultraCalendarInfo1.Save( stream, CalendarInfoCategories.All );

			//	Create a new instance of the UltraCalendarInfo object
			UltraCalendarInfo calendarInfo = new UltraCalendarInfo();

			//	Reset the stream position before we load the data
			stream.Position = 0;

			//	Load the state of the saved UltraCalendarInfo object to the new one
			calendarInfo.Load( stream, CalendarInfoCategories.All );

		}
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