WinForms › Smart Button › ContextMenuProperties
ContextMenuProperties
class.NET Framework 4.8Binarymission.WinForms.Controls.ButtonControls
A helper class to support setting up custom /user defined drawing properties for the drop-down context menu (used when the control style is set to MenuButton style (refer to details of this style in the ButtonStyles enumeration).
public class ContextMenuProperties
Members at a glance
MenuItemBackgroundColor | Gets or sets the color of the menu item background. |
MenuItemBorderColor | Gets or sets the color of the menu item border. |
MenuItemRenderingStyle | Gets or sets the rendering style to be used when drawing menu item (i.e. that is displayed when the button is in menubutton style). |
MenuItemSelectionColor | Gets or sets the background color for the menu item selection. |
MenuSideBarRenderingColor | Gets or sets the color for rendering the menu side bar. |
SmoothenSelectionColorRendering | Gets or sets a value indicating whether to smoothen selection color rendering. |
UseGradientPainting | Gets or sets a value indicating whether to use gradient painting. |
ToString | Returns a String that represents the current Object. |
Properties
SmoothenSelectionColorRendering
public bool SmoothenSelectionColorRendering
Gets or sets a value indicating whether to smoothen selection color rendering.
Value. true if to smoothen selection color rendering; otherwise, false .
UseGradientPainting
public bool UseGradientPainting
Gets or sets a value indicating whether to use gradient painting.
Value. true if to use gradient painting; otherwise, false .
Methods
ToString
public override string ToString()
Returns a String that represents the current Object.
Returns. A String that represents the current Object.