Skybound Rebar

RebarMenuItemRenderer Members

RebarMenuItemRenderer overview

Public Static (Shared) Methods

DrawCheck Draws a check mark or radio check onto the specified Graphics surface.

Public Instance Constructors

RebarMenuItemRenderer Constructor Initializes a new instance of a RebarMenuItemRenderer.

Public Instance Properties

ArrowColor Gets or sets the color used to draw the submenu arrow. Assigning Empty to this property will cause the default color to be used.
BackColor (inherited from ControlRenderer) Gets or sets the background Color of the control.
Bounds (inherited from ControlRenderer) Gets or sets the bounds of the control to draw.
Checked Gets or sets whether the menu item is checked.
Control (inherited from ControlRenderer) Gets or sets the control being rendered.
DefaultItem Gets or sets whether this item is drawn as the default menu item (bold).
Enabled (inherited from ControlRenderer) Gets or sets whether the control is enabled.
Focused (inherited from ControlRenderer) Gets or sets whether the control has the focus.
Font (inherited from ControlRenderer) Gets or sets the Font used to draw text on the control.
ForeColor (inherited from ControlRenderer) Gets or sets the Color used to draw text on the control.
Image (inherited from ControlRenderer) Gets or sets the Image displayed on the control.
IsParent Gets or sets whether the menu item has any subitems. This determines whether or not a submenu arrow is drawn by the DrawArrow method.
IsSeparator Gets whether the item is a separator bar.
ParentBounds Gets the bounding rectangle of the parent menu in which this item is being drawn.
RadioCheck Gets or sets whether a small circle is drawn instead of a check mark when the item is checked.
RightToLeft (inherited from ControlRenderer) Gets or sets whether the control's elements are aligned to support locales that use right-to-left text.
Selected Gets or sets whether the menu item is selected.
ShortcutText Gets or sets the text displayed as the shortcut text.
ShowFocusCues (inherited from ControlRenderer) Gets or sets a value that specifies whether focus cues are drawn on the control.
ShowKeyboardCues (inherited from ControlRenderer) Gets or sets a value that specifies whether keyboard cues are drawn on the control.
Text (inherited from ControlRenderer) Gets or sets the text displayed on the control.
TextMode (inherited from ControlRenderer) Gets or sets a value that determines whether text is drawn by the .NET framework or the operating system.
UseVisualStyles (inherited from ControlRenderer) Gets or sets whether visual styles should be used to draw the control when they are supported by the operating system.

Public Instance Methods

DrawArrow Draws the submenu arrow to the specified Graphics surface.
DrawBackground Draws the background of the menu item to the specified Graphics surface.
DrawImage Draws the image or check mark for the menu item to the specified Graphics surface.
DrawText Draws the text for the menu item to the specified Graphics surface.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetImageBounds Returns the bounds in which the image should be drawn.
GetStringFormat (inherited from ControlRenderer) Returns a StringFormat instance used to draw text on the control.
GetTextBounds Returns the bounds in which the menu item text should be drawn.
GetTextRenderFlagsThis member overrides GetTextRenderFlags.
GetType (inherited from Object)Gets the Type of the current instance.
MeasureItem Measures the minimum dimensions of the menu item.
MeasureTextExact (inherited from ControlRenderer) Measures the exact width of the text in the current ControlRenderer instance.
RenderItem Renders the current menu item onto a specified Graphics object.
RtlTranslate (inherited from ControlRenderer)Overloaded. Translates a rectangle within the bounds of the current renderer to support right-to-left layouts.
SuppressStandardArrow Prevents the system from drawing the default submenu arrow for a menu item. Call this method from a DrawItem event handler for a MenuItem.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Properties

DefaultArrowColor Gets the default value of the ArrowColor property when no specific value is assigned.
DefaultBackColorThis member overrides DefaultBackColor.
DefaultFontThis member overrides DefaultFont.
DefaultForeColorThis member overrides DefaultBackColor.
ShouldRenderBackColor (inherited from ControlRenderer) Gets a value that indicates whether the background should be rendered using the color specified by the BackColor property.
ShouldRenderText (inherited from ControlRenderer) Gets a value that indicates whether text should be rendered.
ShouldUseVisualStyles (inherited from ControlRenderer) Gets whether visual styles should be used to draw the control.

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

RebarMenuItemRenderer Class | Skybound.Rebar.Rendering Namespace