Class Metrorender
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Tools
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class Metrorender : UpDownRenderer, IUpDownRenderer
Constructors
Metrorender(UpDownBase, Color)
Initializes a new instance of the Metrorender class.
Declaration
public Metrorender(UpDownBase upDownControl, Color _metrocolor)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.UpDownBase | upDownControl | Control to render. |
System.Drawing.Color | _metrocolor |
Fields
metroColor
Gets or sets the color scheme to render with.
Declaration
public Color metroColor
Field Value
Type |
---|
System.Drawing.Color |
Properties
BorderColor
Gets border color for UpDownControl.+ ///
Declaration
public Color BorderColor { get; }
Property Value
Type |
---|
System.Drawing.Color |
Methods
DrawArrow(Graphics, Rectangle, ButtonState, Boolean)
Draws arrow with Metro style.
Declaration
public override void DrawArrow(Graphics g, Rectangle buttonRectangle, ButtonState buttonState, bool upper)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | Graphics object |
System.Drawing.Rectangle | buttonRectangle | Rectangle where the arrow will be drawn. |
System.Windows.Forms.ButtonState | buttonState | State of button where the arrow will be drawn. |
System.Boolean | upper | Indicates whether the arrow is upper. |
Overrides
DrawScrollButton(Graphics, Rectangle, ButtonState, ButtonID)
Draws button's background, border and arrow.
Declaration
public override void DrawScrollButton(Graphics g, Rectangle buttonRectangle, ButtonState buttonState, ButtonID buttonID)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | Graphics object |
System.Drawing.Rectangle | buttonRectangle | Rectangle of button. |
System.Windows.Forms.ButtonState | buttonState | State of button. |
ButtonID | buttonID | Indicates whether the arrow is up-button or down-button. |
Overrides
DrawScrollButtonBackground(Graphics, Rectangle, ButtonState)
Draws button's background with Metro style.
Declaration
public override void DrawScrollButtonBackground(Graphics g, Rectangle buttonRectangle, ButtonState buttonState)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | Graphics object |
System.Drawing.Rectangle | buttonRectangle | Rectangle of button. |
System.Windows.Forms.ButtonState | buttonState | State of button. |
Overrides
DrawScrollButtonBorder(Graphics, Rectangle, ButtonState)
Draws button's border with Metro style.
Declaration
public override void DrawScrollButtonBorder(Graphics g, Rectangle buttonRectangle, ButtonState buttonState)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | Graphics object |
System.Drawing.Rectangle | buttonRectangle | Rectangle of button. |
System.Windows.Forms.ButtonState | buttonState | State of button. |
Overrides
Render(Graphics, ButtonState, ButtonState)
Draws button's background, border and arrow with Metro style.
Declaration
public override void Render(Graphics g, ButtonState upButtonState, ButtonState downButtonState)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | Graphics object |
System.Windows.Forms.ButtonState | upButtonState | State of up button. |
System.Windows.Forms.ButtonState | downButtonState | State of down button. |