Class UpDownOffice2010Renderer
Renders UpDownBase control with Office2010 style.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Tools
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class UpDownOffice2010Renderer : UpDownRenderer, IUpDownRenderer
Constructors
UpDownOffice2010Renderer(UpDownBase, Office2010Theme)
Initializes a new instance of the UpDownOffice2010Renderer class.
Declaration
public UpDownOffice2010Renderer(UpDownBase upDownControl, Office2010Theme scheme)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.UpDownBase | upDownControl | Control to render. |
Office2010Theme | scheme | Color scheme of Office2010 style. |
Properties
BorderColor
Gets border color for UpDownControl.
Declaration
public Color BorderColor { get; }
Property Value
Type |
---|
System.Drawing.Color |
ColorSheme
Gets or sets the color scheme to render with.
Declaration
public Office2010Theme ColorSheme { get; set; }
Property Value
Type |
---|
Office2010Theme |
Methods
DrawArrow(Graphics, Rectangle, ButtonState, Boolean)
Draws arrow with Office2010 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 Office2010 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 Office2010 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
OnColorSchemeChanged()
Changes the color table according color scheme.
Declaration
protected virtual void OnColorSchemeChanged()
Render(Graphics, ButtonState, ButtonState)
Draws button's background, border and arrow with Office2010 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. |