WinForms

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class UpDownRenderer

    Show / Hide Table of Contents

    Class UpDownRenderer

    Basic abstract class for rendering UpDownBase control.

    Inheritance
    System.Object
    UpDownRenderer
    Metrorender
    UpDownExtRenderer
    UpDownOffice2007Renderer
    UpDownOffice2010Renderer
    Implements
    IUpDownRenderer
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.Windows.Forms.Tools
    Assembly: Syncfusion.Tools.Windows.dll
    Syntax
    public abstract class UpDownRenderer : IUpDownRenderer

    Constructors

    UpDownRenderer(UpDownBase)

    Declaration
    public UpDownRenderer(UpDownBase upDownControl)
    Parameters
    Type Name Description
    System.Windows.Forms.UpDownBase upDownControl

    Properties

    DownButtonRectangle

    Gets the bounds of down-button.

    Declaration
    protected Rectangle DownButtonRectangle { get; }
    Property Value
    Type Description
    System.Drawing.Rectangle

    UpButtonRectangle

    Gets the bounds of up-button.

    Declaration
    protected Rectangle UpButtonRectangle { get; }
    Property Value
    Type Description
    System.Drawing.Rectangle

    UpDownButtons

    Gets the up-down buttons of rendering control.

    Declaration
    protected Control UpDownButtons { get; }
    Property Value
    Type Description
    System.Windows.Forms.Control

    UpDownControl

    Gets the control that is rendering.

    Declaration
    protected UpDownBase UpDownControl { get; }
    Property Value
    Type Description
    System.Windows.Forms.UpDownBase

    UpDownSpinOrientation

    Gets the spin orientation of rendering control.

    Declaration
    protected Orientation UpDownSpinOrientation { get; }
    Property Value
    Type Description
    System.Windows.Forms.Orientation

    UpDownTextBox

    Gets the text box of rendering control.

    Declaration
    protected Control UpDownTextBox { get; }
    Property Value
    Type Description
    System.Windows.Forms.Control

    Methods

    DrawArrow(Graphics, Rectangle, ButtonState, Boolean)

    Draws arrow.

    Declaration
    public abstract 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.

    DrawScrollButton(Graphics, Rectangle, ButtonState, ButtonID)

    Draws button's background, border and arrow.

    Declaration
    public virtual 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.

    DrawScrollButtonBackground(Graphics, Rectangle, ButtonState)

    Draws button's background.

    Declaration
    public abstract 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.

    DrawScrollButtonBorder(Graphics, Rectangle, ButtonState)

    Draws button's border.

    Declaration
    public abstract 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.

    Layout()

    Recalculates and sets button's rectangles.

    Declaration
    public void Layout()

    Render(Graphics, ButtonState, ButtonState)

    Draws up and down buttons.

    Declaration
    public virtual 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.

    Implements

    IUpDownRenderer
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved