Export (0) Print
Expand All

ManagementUIColorTable Class

IIS 7.0

Provides access to each color of the color table for a user interface (UI).

System..::..Object
  Microsoft.Web.Management.Client.Win32..::..ManagementUIColorTable

Namespace:  Microsoft.Web.Management.Client.Win32
Assembly:  Microsoft.Web.Management (in Microsoft.Web.Management.dll)

public abstract class ManagementUIColorTable

The ManagementUIColorTable type exposes the following members.

  NameDescription
Protected methodManagementUIColorTableInitializes a new instance of the ManagementUIColorTable class.
Top

  NameDescription
Public propertyCommandBarBorderWhen overridden in a derived class, gets the color of the command bar border.
Public propertyCommandBarButtonPressedWhen overridden in a derived class, gets the color of a command bar button in the pressed state.
Public propertyCommandBarButtonSelectedWhen overridden in a derived class, gets the color of a command bar button when the user moves the mouse pointer over it.
Public propertyCommandBarDragHandleWhen overridden in a derived class, gets the color of the move handles that appear when the user drags a command bar.
Public propertyCommandBarDragHandleShadowWhen overridden in a derived class, gets the color of the shadow that indicates that the user is dragging the command bar.
Public propertyCommandBarGradientBeginWhen overridden in a derived class, gets the starting color of the gradient of the command bar.
Public propertyCommandBarGradientEndWhen overridden in a derived class, gets the ending color of the gradient of the command bar.
Public propertyCommandBarGradientMiddleGets the middle color of the gradient of the command bar.
Public propertyCommandBarSeparatorDarkWhen overridden in a derived class, gets the color of the drop-shadow effects on the command bar.
Public propertyCommandBarSeparatorLightGets the color used for the highlight effects on the command bar.
Public propertyContentBackgroundGradientBeginWhen overridden in a derived class, gets the starting color of the background gradient used in the user interface (UI).
Public propertyContentBackgroundGradientEndWhen overridden in a derived class, gets the ending color of the background gradient used in the user interface (UI).
Public propertyContentBorderWhen overridden in a derived class, gets the color of the border of the user interface (UI).
Public propertyHyperlinkWhen overridden in a derived class, gets the color of an active hyperlink that the user has not clicked in the command bar.
Public propertyHyperlinkPressedWhen overridden in a derived class, gets the color of an active hyperlink that the user has clicked in the command bar.
Public propertyImageMarginGradientBeginWhen overridden in a derived class, gets the starting color of the image margin gradient.
Public propertyImageMarginGradientEndWhen overridden in a derived class, gets the ending color of the image margin gradient.
Public propertyImageMarginGradientMiddleWhen overridden in a derived class, gets the middle color of the image margin gradient.
Public propertyMenuBarGradientBeginWhen overridden in a derived class, gets the starting color of the menu bar gradient.
Public propertyMenuBarGradientEndWhen overridden in a derived class, gets the ending color of the menu bar gradient.
Public propertyMenuBorderWhen overridden in a derived class, gets the border color of a menu bar.
Public propertyOverflowButtonGradientBeginWhen overridden in a derived class, gets the starting color of the gradient of the toolbar overflow button.
Public propertyOverflowButtonGradientEndWhen overridden in a derived class, gets the ending color of the gradient of the toolbar overflow button.
Public propertyPaddingBackColorWhen overridden in a derived class, gets the color of the toolbar padding.
Public propertyTaskFormProgressDarkWhen overridden in a derived class, gets the starting color of the progress indicator.
Public propertyTaskFormProgressLightWhen overridden in a derived class, gets the ending color of the progress indicator.
Public propertyTaskPanelDisabledWhen overridden in a derived class, gets the color of a user interface (UI) pane when the task is disabled.
Public propertyTaskSectionHeaderWhen overridden in a derived class, gets the color of the user interface (UI) of a task section.
Top

  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top

The ManagementUIColorTable class provides the color palette for painting the UI. Use the properties available in the ManagementUIColorTable class to determine the colors for UI controls (for example, dialog boxes, message boxes, buttons, progress indicators, or pages) that you are creating.

The current color scheme is based on the current system theme.

Notes to Inheritors

When you inherit from ManagementUIColorTable, you must override all properties in this class.

The following example gets the Color value of each property in the ManagementUIColorTable class and then displays the property name and color value on a page. The background color is set to the color value of the displayed property.

{
    ArrayList settings = (ArrayList)e.Result;
    IManagementUIService uiService = (IManagementUIService)
        base.GetService(typeof(IManagementUIService));
    ListViewItem item01 = new ListViewItem();
    item01.Text = "CommandBarBorder";
    item01.SubItems.Add(uiService.Colors.CommandBarBorder.ToString());
    item01.BackColor = uiService.Colors.CommandBarBorder;
    ListView.Items.Add(item01);
    ListViewItem item02 = new ListViewItem();
    item02.Text = "CommandBarButtonPressed";
    item02.SubItems.Add(uiService.Colors.CommandBarButtonPressed.ToString());
    item02.BackColor = uiService.Colors.CommandBarButtonPressed;
    ListView.Items.Add(item02);
    ListViewItem item03 = new ListViewItem();
    item03.Text = "CommandBarButtonSelected";
    item03.SubItems.Add(uiService.Colors.CommandBarButtonSelected.ToString());
    item03.BackColor = uiService.Colors.CommandBarButtonSelected;
    ListView.Items.Add(item03);
    ListViewItem item04 = new ListViewItem();
    item04.Text = "CommandBarDragHandle";
    item04.SubItems.Add(uiService.Colors.CommandBarDragHandle.ToString());
    item04.BackColor = uiService.Colors.CommandBarDragHandle;
    ListView.Items.Add(item04);
    ListViewItem item05 = new ListViewItem();
    item05.Text = "CommandBarDragHandleShadow";
    item05.SubItems.Add(uiService.Colors.CommandBarDragHandleShadow.ToString());
    item05.BackColor = uiService.Colors.CommandBarDragHandleShadow;
    ListView.Items.Add(item05);
    ListViewItem item06 = new ListViewItem();
    item06.Text = "CommandBarGradientBegin";
    item06.SubItems.Add(uiService.Colors.CommandBarGradientBegin.ToString());
    item06.BackColor = uiService.Colors.CommandBarGradientBegin;
    ListView.Items.Add(item06);
    ListViewItem item07 = new ListViewItem();
    item07.Text = "CommandBarGradientEnd";
    item07.SubItems.Add(uiService.Colors.CommandBarGradientEnd.ToString());
    item07.BackColor = uiService.Colors.CommandBarGradientEnd;
    ListView.Items.Add(item07);
    ListViewItem item08 = new ListViewItem();
    item08.Text = "CommandBarGradientMiddle";
    item08.SubItems.Add(uiService.Colors.CommandBarGradientMiddle.ToString());
    item08.BackColor = uiService.Colors.CommandBarGradientMiddle;
    ListView.Items.Add(item08);
    ListViewItem item09 = new ListViewItem();
    item09.Text = "CommandBarSeparatorDark";
    item09.SubItems.Add(uiService.Colors.CommandBarSeparatorDark.ToString());
    item09.BackColor = uiService.Colors.CommandBarSeparatorDark;
    ListView.Items.Add(item09);
    ListViewItem item10 = new ListViewItem();
    item10.Text = "CommandBarSeparatorLight";
    item10.SubItems.Add(uiService.Colors.CommandBarSeparatorLight.ToString());
    item10.BackColor = uiService.Colors.CommandBarSeparatorLight;
    ListView.Items.Add(item10);
    ListViewItem item11 = new ListViewItem();
    item11.Text = "ContentBackgroundGradientBegin";
    item11.SubItems.Add(uiService.Colors.ContentBackgroundGradientBegin.ToString());
    item11.BackColor = uiService.Colors.ContentBackgroundGradientBegin;
    ListView.Items.Add(item11);
    ListViewItem item12 = new ListViewItem();
    item12.Text = "ContentBackgroundGradientEnd";
    item12.SubItems.Add(uiService.Colors.ContentBackgroundGradientEnd.ToString());
    item12.BackColor = uiService.Colors.ContentBackgroundGradientEnd;
    ListView.Items.Add(item12);
    ListViewItem item13 = new ListViewItem();
    item13.Text = "ContentBorder";
    item13.SubItems.Add(uiService.Colors.ContentBorder.ToString());
    item13.BackColor = uiService.Colors.ContentBorder;
    ListView.Items.Add(item13);
    ListViewItem item14 = new ListViewItem();
    item14.Text = "Hyperlink";
    item14.SubItems.Add(uiService.Colors.Hyperlink.ToString());
    item14.BackColor = uiService.Colors.Hyperlink;
    ListView.Items.Add(item14);
    ListViewItem item15 = new ListViewItem();
    item15.Text = "HyperlinkPressed";
    item15.SubItems.Add(uiService.Colors.HyperlinkPressed.ToString());
    item15.BackColor = uiService.Colors.HyperlinkPressed;
    ListView.Items.Add(item15);
    ListViewItem item16 = new ListViewItem();
    item16.Text = "ImageMarginGradientBegin";
    item16.SubItems.Add(uiService.Colors.ImageMarginGradientBegin.ToString());
    item16.BackColor = uiService.Colors.ImageMarginGradientBegin;
    ListView.Items.Add(item16);
    ListViewItem item17 = new ListViewItem();
    item17.Text = "ImageMarginGradientEnd";
    item17.SubItems.Add(uiService.Colors.ImageMarginGradientEnd.ToString());
    item17.BackColor = uiService.Colors.ImageMarginGradientEnd;
    ListView.Items.Add(item17);
    ListViewItem item18 = new ListViewItem();
    item18.Text = "ImageMarginGradientMiddle";
    item18.SubItems.Add(uiService.Colors.ImageMarginGradientMiddle.ToString());
    item18.BackColor = uiService.Colors.ImageMarginGradientMiddle;
    ListView.Items.Add(item18);
    ListViewItem item19 = new ListViewItem();
    item19.Text = "MenuBarGradientBegin";
    item19.SubItems.Add(uiService.Colors.MenuBarGradientBegin.ToString());
    item19.BackColor = uiService.Colors.MenuBarGradientBegin;
    ListView.Items.Add(item19);
    ListViewItem item20 = new ListViewItem();
    item20.Text = "MenuBarGradientEnd";
    item20.SubItems.Add(uiService.Colors.MenuBarGradientEnd.ToString());
    item20.BackColor = uiService.Colors.MenuBarGradientEnd;
    ListView.Items.Add(item20);
    ListViewItem item21 = new ListViewItem();
    item21.Text = "MenuBorder";
    item21.SubItems.Add(uiService.Colors.MenuBorder.ToString());
    item21.BackColor = uiService.Colors.MenuBorder;
    ListView.Items.Add(item21);
    ListViewItem item22 = new ListViewItem();
    item22.Text = "OverflowButtonGradientBegin";
    item22.SubItems.Add(uiService.Colors.OverflowButtonGradientBegin.ToString());
    item22.BackColor = uiService.Colors.OverflowButtonGradientBegin;
    ListView.Items.Add(item22);
    ListViewItem item23 = new ListViewItem();
    item23.Text = "OverflowButtonGradientEnd";
    item23.SubItems.Add(uiService.Colors.OverflowButtonGradientEnd.ToString());
    item23.BackColor = uiService.Colors.OverflowButtonGradientEnd;
    ListView.Items.Add(item23);
    ListViewItem item24 = new ListViewItem();
    item24.Text = "PaddingBackColor";
    item24.SubItems.Add(uiService.Colors.PaddingBackColor.ToString());
    item24.BackColor = uiService.Colors.PaddingBackColor;
    ListView.Items.Add(item24);
    ListViewItem item25 = new ListViewItem();
    item25.Text = "TaskFormProgressDark";
    item25.SubItems.Add(uiService.Colors.TaskFormProgressDark.ToString());
    item25.BackColor = uiService.Colors.TaskFormProgressDark;
    ListView.Items.Add(item25);
    ListViewItem item26 = new ListViewItem();
    item26.Text = "TaskFormProgressLight";
    item26.SubItems.Add(uiService.Colors.TaskFormProgressLight.ToString());
    item26.BackColor = uiService.Colors.TaskFormProgressLight;
    ListView.Items.Add(item26);
    ListViewItem item27 = new ListViewItem();
    item27.Text = "TaskPanelDisabled";
    item27.SubItems.Add(uiService.Colors.TaskPanelDisabled.ToString());
    item27.BackColor = uiService.Colors.TaskPanelDisabled;
    ListView.Items.Add(item27);
    ListViewItem item28 = new ListViewItem();
    item28.Text = "TaskSectionHeader";
    item28.SubItems.Add(uiService.Colors.TaskSectionHeader.ToString());
    item28.BackColor = uiService.Colors.TaskSectionHeader;
    ListView.Items.Add(item28);
}


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2014 Microsoft