Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
185
Calendar owner's appearance
posted

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)

 

Parents
No Data
Reply
  • 69832
    Offline posted

    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.

Children
No Data