Class ContextMenuStripExVisualStyle
Represents the class to define the style of ContextMenuStripEx control.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Tools
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class ContextMenuStripExVisualStyle : VisualStyleBase, ICustomTypeDescriptor, IDisposable, IStyleInfo, ISupportInitialize, IFormattable, IConvertible, IXmlSerializable, IStyleInfoSubObject
Constructors
ContextMenuStripExVisualStyle()
Initializes a new instance of the ContextMenuStripExVisualStyle class.
Declaration
public ContextMenuStripExVisualStyle()
ContextMenuStripExVisualStyle(ContextMenuStripExStyleInfoIdentity)
Initializes a new instance of the ContextMenuStripExVisualStyle class.
Declaration
public ContextMenuStripExVisualStyle(ContextMenuStripExStyleInfoIdentity identity)
Parameters
Type | Name | Description |
---|---|---|
ContextMenuStripExStyleInfoIdentity | identity | A ContextMenuStripExStyleInfoIdentity that holds the identity for this ContextMenuStripExStyleInfoStore. |
ContextMenuStripExVisualStyle(ContextMenuStripExStyleInfoIdentity, StyleInfoStore)
Initializes a new instance of the ContextMenuStripExVisualStyle class.
Declaration
public ContextMenuStripExVisualStyle(ContextMenuStripExStyleInfoIdentity identity, StyleInfoStore store)
Parameters
Type | Name | Description |
---|---|---|
ContextMenuStripExStyleInfoIdentity | identity | A ContextMenuStripExStyleInfoIdentity that holds the identity for this ContextMenuStripExStyleInfoStore. |
StyleInfoStore | store | The store. |
Properties
BackColor
Gets or sets the background color of the ContextMenuStripEx control.
Declaration
[ThemeStudio]
public Color BackColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
BorderColor
Gets or sets the System.Drawing.Color value used to draw the border of the ContextMenuStripEx control in default state.
Declaration
[ThemeStudio]
public Color BorderColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
DefaultStyle
Gets the default ContextMenuStripExStyleInfo value.
Declaration
public static ContextMenuStripExVisualStyle DefaultStyle { get; }
Property Value
Type |
---|
ContextMenuStripExVisualStyle |
DisabledForeColor
Gets or sets the fore color value of the items of ContextMenuStripEx control in disabled state.
Declaration
[ThemeStudio]
public Color DisabledForeColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
Font
Gets or sets the System.Drawing.Font value for the drop down of ContextMenuStripEx control.
Declaration
public Font Font { get; set; }
Property Value
Type |
---|
System.Drawing.Font |
ForeColor
Gets or sets the fore color value of the ContextMenuStripEx control.
Declaration
[ThemeStudio]
public Color ForeColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
HoverBackColor
Gets or sets the background color of items of the ContextMenuStripEx control in mouse hover state.
Declaration
[ThemeStudio]
public Color HoverBackColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
HoverForeColor
Gets or sets the fore color value of the items of ContextMenuStripEx control in hover state.
Declaration
[ThemeStudio]
public Color HoverForeColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
PressedBackColor
Gets or sets the background color of items of ContextMenuStripEx control in pressed state.
Declaration
[ThemeStudio]
public Color PressedBackColor { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.Color | The System.Drawing.Color value is used to fill the background of the drop down. |
PressedForeColor
Gets or sets the fore color value of items of the ContextMenuStripEx control in pressed state
Declaration
[ThemeStudio]
public Color PressedForeColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
Methods
GetDefaultStyle()
Gets the default style value of the ContextMenuStripExVisualStyle class.
Declaration
protected override StyleInfoBase GetDefaultStyle()
Returns
Type | Description |
---|---|
StyleInfoBase | Returns the default style value. |