Skybound Rebar

RebarButtonRenderer Members

RebarButtonRenderer overview

Public Instance Constructors

RebarButtonRenderer Overloaded. Initializes a new instance of the RebarButtonRenderer class.

Public Instance Properties

BackColor (inherited from ControlRenderer) Gets or sets the background Color of the control.
BandType Gets or sets the type of band that contains the button.
Bounds (inherited from ControlRenderer) Gets or sets the bounds of the control to draw.
ButtonType Gets or sets the type of the button.
Checked Gets or sets whether the button is checked.
Control (inherited from ControlRenderer) Gets or sets the control being rendered.
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.
HotLightEffect Gets or sets the effect used to render the image on the button when it is in a "hot" state.
Image (inherited from ControlRenderer) Gets or sets the Image displayed on the control.
RightToLeft (inherited from ControlRenderer) Gets or sets whether the control's elements are aligned to support locales that use right-to-left 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.
State Gets or sets the current state of the button.
Text (inherited from ControlRenderer) Gets or sets the text displayed on the control.
TextAlign Gets or sets the the alignment of text on the button.
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 drop-down arrow of the button onto a specified Graphics object.
DrawBackground Draws the background of the button onto a specified Graphics object.
DrawBorders Draws the borders of the button onto a specified Graphics object.
DrawImage Draws the image for the button into a specified Graphics object.
DrawText Draws the text of the button onto a specified Graphics object.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetButtonRectangle Returns the bounding rectangle for the button. If the button is a RebarButtonType.MenuOrPush, the drop-down rectangle is excluded.
GetDropDownRectangle Gets the bounding rectangle for the drop-down button of the button if its type is RebarButtonType.MenuOrPush.
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.
GetImageRectangle Gets the bounding rectangle for the image for this button.
GetStringFormat (inherited from ControlRenderer) Returns a StringFormat instance used to draw text on the control.
GetTextRectangle Gets the bounding rectangle for the text for the button.
GetTextRenderFlags (inherited from ControlRenderer) Gets a TextRenderFlags value which can be passed to DrawText or MeasureText in order to draw text on the current control.
GetType (inherited from Object)Gets the Type of the current instance.
MeasureTextExact (inherited from ControlRenderer) Measures the exact width of the text in the current ControlRenderer instance.
MeasureWidth Measures and returns the recommended width of the button.
RenderButton Renders the button 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.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Properties

DefaultBackColor (inherited from ControlRenderer) Gets the default value of the BackColor property when no specific value is assigned.
DefaultFont (inherited from ControlRenderer) Gets the default value of the Font property when no specific value is assigned.
DefaultForeColorThis member overrides DefaultForeColor.
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

RebarButtonRenderer Class | Skybound.Rebar.Rendering Namespace