Skybound Rebar

ControlRenderer Members

ControlRenderer overview

Public Static (Shared) Methods

DrawArrow Draws a triangle-style arrow at the specified location, using the given brush, size and angle.
DrawTextOverloaded. Draws text at the specified location using the specified Graphics object, font, color and rendering flags.
MeasureTextOverloaded. Provides the size, in pixels, of the specified text when drawn with the specified font and render flags.
ShouldShowFocusCues Returns whether focus cues should be shown for a specified Control.
ShouldShowKeyboardCues Returns whether keyboard cues should be shown for a specified Control.

Public Instance Constructors

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

Public Instance Properties

BackColor Gets or sets the background Color of the control.
Bounds Gets or sets the bounds of the control to draw.
Control Gets or sets the control being rendered.
Enabled Gets or sets whether the control is enabled.
Focused Gets or sets whether the control has the focus.
Font Gets or sets the Font used to draw text on the control.
ForeColor Gets or sets the Color used to draw text on the control.
Image Gets or sets the Image displayed on the control.
RightToLeft Gets or sets whether the control's elements are aligned to support locales that use right-to-left text.
ShowFocusCues Gets or sets a value that specifies whether focus cues are drawn on the control.
ShowKeyboardCues Gets or sets a value that specifies whether keyboard cues are drawn on the control.
Text Gets or sets the text displayed on the control.
TextMode Gets or sets a value that determines whether text is drawn by the .NET framework or the operating system.
UseVisualStyles Gets or sets whether visual styles should be used to draw the control when they are supported by the operating system.

Public Instance Methods

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.
GetStringFormat Returns a StringFormat instance used to draw text on the control.
GetTextRenderFlags 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 Measures the exact width of the text in the current ControlRenderer instance.
RtlTranslateOverloaded. 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 Gets the default value of the BackColor property when no specific value is assigned.
DefaultFont Gets the default value of the Font property when no specific value is assigned.
DefaultForeColor Gets the default value of the ForeColor property when no specific value is assigned.
ShouldRenderBackColor Gets a value that indicates whether the background should be rendered using the color specified by the BackColor property.
ShouldRenderText Gets a value that indicates whether text should be rendered.
ShouldUseVisualStyles 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

ControlRenderer Class | Skybound.Rebar.Rendering Namespace