Hello
I have a calendar with 3 different owners. how can I access the appearance object of each one (by default, the first one appears in blue, the second one in green and the last one in pink)
There are numerous appearances that control the different colors, since there are numerous elements (headers, time slots, day areas, etc.) Setting each appearance property separately is necessary in order to apply a color to a specific element.
In NetAdvantage 2006.3, an Outlook2007ColorScheme property was added, which makes it possible to apply a color scheme to an Owner "holistically", i.e., without the tediousness of setting dozens of appearance properties. The penalty is that you don't have the same flexibility that you do with direct appearance property settings, but the difference in lines of code required is considerably less.
Example:Owner owner = this.dayView.CalendarInfo.Owners.Add( "TEST" );owner.Outlook2007ColorScheme = new Outlook2007ColorScheme( Color.Pink );
Note that you must set the UltraCalendarLook.ViewStyle property to 'Office2007' in order to make use of this functionality.