Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ProfessionalColors Class

Provides Color structures that are colors of a Windows display element. This class cannot be inherited.

System.Object
  System.Windows.Forms.ProfessionalColors

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)
public sealed class ProfessionalColors

The ProfessionalColors type exposes the following members.

  NameDescription
Public propertyStatic memberButtonCheckedGradientBeginGets the starting color of the gradient used when the button is checked.
Public propertyStatic memberButtonCheckedGradientEndGets the end color of the gradient used when the button is checked.
Public propertyStatic memberButtonCheckedGradientMiddleGets the middle color of the gradient used when the button is checked.
Public propertyStatic memberButtonCheckedHighlightGets the solid color used when the button is checked.
Public propertyStatic memberButtonCheckedHighlightBorderGets the border color to use with ButtonCheckedHighlight.
Public propertyStatic memberButtonPressedBorderGets the border color to use with the ButtonPressedGradientBegin, ButtonPressedGradientMiddle, and ButtonPressedGradientEnd colors.
Public propertyStatic memberButtonPressedGradientBeginGets the starting color of the gradient used when the button is pressed down.
Public propertyStatic memberButtonPressedGradientEndGets the end color of the gradient used when the button is pressed down.
Public propertyStatic memberButtonPressedGradientMiddleGets the middle color of the gradient used when the button is pressed down.
Public propertyStatic memberButtonPressedHighlightGets the solid color used when the button is pressed down.
Public propertyStatic memberButtonPressedHighlightBorderGets the border color to use with ButtonPressedHighlight.
Public propertyStatic memberButtonSelectedBorderGets the border color to use with the ButtonSelectedGradientBegin, ButtonSelectedGradientMiddle, and ButtonSelectedGradientEnd colors.
Public propertyStatic memberButtonSelectedGradientBeginGets the starting color of the gradient used when the button is selected.
Public propertyStatic memberButtonSelectedGradientEndGets the end color of the gradient used when the button is selected.
Public propertyStatic memberButtonSelectedGradientMiddleGets the middle color of the gradient used when the button is selected.
Public propertyStatic memberButtonSelectedHighlightGets the solid color used when the button is selected.
Public propertyStatic memberButtonSelectedHighlightBorderGets the border color to use with ButtonSelectedHighlight.
Public propertyStatic memberCheckBackgroundGets the solid color to use when the check box is selected and gradients are being used.
Public propertyStatic memberCheckPressedBackgroundGets the solid color to use when the check box is selected and gradients are being used.
Public propertyStatic memberCheckSelectedBackgroundGets the solid color to use when the check box is selected and gradients are being used.
Public propertyStatic memberGripDarkGets the color to use for shadow effects on the grip or move handle.
Public propertyStatic memberGripLightGets the color to use for highlight effects on the grip or move handle.
Public propertyStatic memberImageMarginGradientBeginGets the starting color of the gradient used in the image margin of a ToolStripDropDownMenu.
Public propertyStatic memberImageMarginGradientEndGets the end color of the gradient used in the image margin of a ToolStripDropDownMenu.
Public propertyStatic memberImageMarginGradientMiddleGets the middle color of the gradient used in the image margin of a ToolStripDropDownMenu.
Public propertyStatic memberImageMarginRevealedGradientBeginGets the starting color of the gradient used in the image margin of a ToolStripDropDownMenu when an item is revealed.
Public propertyStatic memberImageMarginRevealedGradientEndGets the end color of the gradient used in the image margin of a ToolStripDropDownMenu when an item is revealed.
Public propertyStatic memberImageMarginRevealedGradientMiddleGets the middle color of the gradient used in the image margin of a ToolStripDropDownMenu when an item is revealed.
Public propertyStatic memberMenuBorderGets the border color or a MenuStrip.
Public propertyStatic memberMenuItemBorderGets the border color to use with a ToolStripMenuItem.
Public propertyStatic memberMenuItemPressedGradientBeginGets the starting color of the gradient used when a top-level ToolStripMenuItem is pressed down.
Public propertyStatic memberMenuItemPressedGradientEndGets the end color of the gradient used when a top-level ToolStripMenuItem is pressed down.
Public propertyStatic memberMenuItemPressedGradientMiddleGets the middle color of the gradient used when a top-level ToolStripMenuItem is pressed down.
Public propertyStatic memberMenuItemSelectedGets the solid color to use when a ToolStripMenuItem other than the top-level ToolStripMenuItem is selected.
Public propertyStatic memberMenuItemSelectedGradientBeginGets the starting color of the gradient used when the ToolStripMenuItem is selected.
Public propertyStatic memberMenuItemSelectedGradientEndGets the end color of the gradient used when the ToolStripMenuItem is selected.
Public propertyStatic memberMenuStripGradientBeginGets the starting color of the gradient used in the MenuStrip.
Public propertyStatic memberMenuStripGradientEndGets the end color of the gradient used in the MenuStrip.
Public propertyStatic memberOverflowButtonGradientBeginGets the starting color of the gradient used in the ToolStripOverflowButton.
Public propertyStatic memberOverflowButtonGradientEndGets the end color of the gradient used in the ToolStripOverflowButton.
Public propertyStatic memberOverflowButtonGradientMiddleGets the middle color of the gradient used in the ToolStripOverflowButton.
Public propertyStatic memberRaftingContainerGradientBeginGets the starting color of the gradient used in the ToolStripContainer.
Public propertyStatic memberRaftingContainerGradientEndGets the end color of the gradient used in the ToolStripContainer.
Public propertyStatic memberSeparatorDarkGets the color to use to for shadow effects on the ToolStripSeparator.
Public propertyStatic memberSeparatorLightGets the color to use to for highlight effects on the ToolStripSeparator.
Public propertyStatic memberStatusStripGradientBeginGets the starting color of the gradient used on the StatusStrip.
Public propertyStatic memberStatusStripGradientEndGets the end color of the gradient used on the StatusStrip.
Public propertyStatic memberToolStripBorderGets the border color to use on the bottom edge of the ToolStrip.
Public propertyStatic memberToolStripContentPanelGradientBeginGets the starting color of the gradient used in the ToolStripContentPanel.
Public propertyStatic memberToolStripContentPanelGradientEndGets the end color of the gradient used in the ToolStripContentPanel.
Public propertyStatic memberToolStripDropDownBackgroundGets the solid background color of the ToolStripDropDown.
Public propertyStatic memberToolStripGradientBeginGets the starting color of the gradient used in the ToolStrip background.
Public propertyStatic memberToolStripGradientEndGets the end color of the gradient used in the ToolStrip background.
Public propertyStatic memberToolStripGradientMiddleGets the middle color of the gradient used in the ToolStrip background.
Public propertyStatic memberToolStripPanelGradientBeginGets the starting color of the gradient used in the ToolStripPanel.
Public propertyStatic memberToolStripPanelGradientEndGets the end color of the gradient used in the ToolStripPanel.
Top
  NameDescription
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.