HypernovaDesktop Components · docs
Binarymission
WinFormsSmart 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

MenuItemBackgroundColorGets or sets the color of the menu item background.
MenuItemBorderColorGets or sets the color of the menu item border.
MenuItemRenderingStyleGets or sets the rendering style to be used when drawing menu item (i.e. that is displayed when the button is in menubutton style).
MenuItemSelectionColorGets or sets the background color for the menu item selection.
MenuSideBarRenderingColorGets or sets the color for rendering the menu side bar.
SmoothenSelectionColorRenderingGets or sets a value indicating whether to smoothen selection color rendering.
UseGradientPaintingGets or sets a value indicating whether to use gradient painting.
ToStringReturns a String that represents the current Object.

Properties

MenuItemBackgroundColor

public Color MenuItemBackgroundColor

Gets or sets the color of the menu item background.

Value. The color of the menu item background.

MenuItemBorderColor

public Color MenuItemBorderColor

Gets or sets the color of the menu item border.

Value. The color of the menu item border.

MenuItemRenderingStyle

public MenuControls.MenuItemSelectionColorRenderingStyle 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

public Color MenuItemSelectionColor

Gets or sets the background color for the menu item selection.

Value. The background color for the menu item selection.

MenuSideBarRenderingColor

public Color MenuSideBarRenderingColor

Gets or sets the color for rendering the menu side bar.

Value. The color for rendering the the menu side bar.

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.