menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class MetroRenderer - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class MetroRenderer

    The metro renderer for scrollbar

    Inheritance
    System.Object
    BasicRenderer
    ClassicRenderer
    MetroRenderer
    ScrollControlThemeRenderer
    Implements
    IRenderer
    Inherited Members
    BasicRenderer.IsVerticalScrollBar
    BasicRenderer.m_isVerticalScroll
    BasicRenderer.m_parent
    BasicRenderer.Parent
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.Windows.Forms
    Assembly: Syncfusion.Shared.Base.dll
    Syntax
    public class MetroRenderer : ClassicRenderer, IRenderer

    Constructors

    MetroRenderer()

    Declaration
    public MetroRenderer()

    MetroRenderer(ScrollBarCustomDraw)

    Initializes a new instance of the MetroRenderer class.

    Declaration
    public MetroRenderer(ScrollBarCustomDraw parent)
    Parameters
    Type Name Description
    ScrollBarCustomDraw parent

    The parent control

    MetroRenderer(ScrollBarCustomDraw, MetroColorTable)

    Initializes a new instance of the MetroRenderer class.

    Declaration
    public MetroRenderer(ScrollBarCustomDraw parent, MetroColorTable colorTable)
    Parameters
    Type Name Description
    ScrollBarCustomDraw parent

    The parent control.

    MetroColorTable colorTable

    The metro color table.

    Fields

    m_isEnableOffice2013Style

    Declaration
    public bool m_isEnableOffice2013Style
    Field Value
    Type
    System.Boolean

    Properties

    EnableOffice2013Style

    Indicates whether scrollBar style is EnableOffice2013Style

    Declaration
    public bool EnableOffice2013Style { get; set; }
    Property Value
    Type
    System.Boolean

    Methods

    DrawArrowButton(Graphics, Rectangle, ScrollButton, ButtonState)

    Draws arrow button of scroll. If theme is disabled than draw classic scroll.

    Declaration
    public override void DrawArrowButton(Graphics gfx, Rectangle rcArrow, ScrollButton type, ButtonState state)
    Parameters
    Type Name Description
    System.Drawing.Graphics gfx

    The graphics.

    System.Drawing.Rectangle rcArrow

    The bounds of arrow.

    System.Windows.Forms.ScrollButton type

    The scroll button type.

    System.Windows.Forms.ButtonState state

    The scroll button state.

    Overrides
    ClassicRenderer.DrawArrowButton(Graphics, Rectangle, ScrollButton, ButtonState)

    DrawBackground(Graphics, Rectangle, ButtonState)

    Draws background of scroll. If theme is disabled than draw classic scroll.

    Declaration
    public override void DrawBackground(Graphics gfx, Rectangle rcBackground, ButtonState state)
    Parameters
    Type Name Description
    System.Drawing.Graphics gfx

    The graphics.

    System.Drawing.Rectangle rcBackground

    The bounds of background.

    System.Windows.Forms.ButtonState state

    The scroll button state.

    Overrides
    ClassicRenderer.DrawBackground(Graphics, Rectangle, ButtonState)

    DrawThumb(Graphics, Rectangle, ButtonState)

    Draws scroll thumb. If theme is disabled than draw classic scroll.

    Declaration
    public override void DrawThumb(Graphics gfx, Rectangle rcThumb, ButtonState state)
    Parameters
    Type Name Description
    System.Drawing.Graphics gfx
    System.Drawing.Rectangle rcThumb
    System.Windows.Forms.ButtonState state
    Overrides
    ClassicRenderer.DrawThumb(Graphics, Rectangle, ButtonState)

    GetDownArrowNormal(Int32, Int32)

    Returns the normal down arrow.

    Declaration
    protected Bitmap GetDownArrowNormal(int width, int height)
    Parameters
    Type Name Description
    System.Int32 width

    The width of the arrow.

    System.Int32 height

    The height of the arrow.

    Returns
    Type Description
    System.Drawing.Bitmap

    The bitmap.

    GetLeftArrowNormal(Int32, Int32)

    Returns the normal left arrow.

    Declaration
    protected Bitmap GetLeftArrowNormal(int width, int height)
    Parameters
    Type Name Description
    System.Int32 width

    The width of the arrow.

    System.Int32 height

    The height of the arrow.

    Returns
    Type Description
    System.Drawing.Bitmap

    The bitmap.

    GetOfficeDownArrow(Int32, Int32)

    Returns the pushed or checked state down arrow.

    Declaration
    protected override Bitmap GetOfficeDownArrow(int width, int height)
    Parameters
    Type Name Description
    System.Int32 width

    The width of the arrow.

    System.Int32 height

    The height of the arrow.

    Returns
    Type Description
    System.Drawing.Bitmap

    The bitmap.

    Overrides
    ClassicRenderer.GetOfficeDownArrow(Int32, Int32)

    GetOfficeDownArrowPushed(Int32, Int32)

    Returns the pushed or checked state down arrow.

    Declaration
    protected Bitmap GetOfficeDownArrowPushed(int width, int height)
    Parameters
    Type Name Description
    System.Int32 width

    The width of the arrow.

    System.Int32 height

    The height of the arrow.

    Returns
    Type Description
    System.Drawing.Bitmap

    The bitmap.

    GetOfficeLeftArrow(Int32, Int32)

    Returns the pushed or checked state left arrow.

    Declaration
    protected override Bitmap GetOfficeLeftArrow(int width, int height)
    Parameters
    Type Name Description
    System.Int32 width

    The width of the arrow.

    System.Int32 height

    The height of the arrow.

    Returns
    Type Description
    System.Drawing.Bitmap

    The bitmap.

    Overrides
    ClassicRenderer.GetOfficeLeftArrow(Int32, Int32)

    GetOfficeLeftArrowPushed(Int32, Int32)

    Returns the pushed or checked state left arrow.

    Declaration
    protected Bitmap GetOfficeLeftArrowPushed(int width, int height)
    Parameters
    Type Name Description
    System.Int32 width

    The width of the arrow.

    System.Int32 height

    The height of the arrow.

    Returns
    Type Description
    System.Drawing.Bitmap

    The bitmap.

    GetOfficeRightArrow(Int32, Int32)

    Returns the pushed or checked state right arrow.

    Declaration
    protected override Bitmap GetOfficeRightArrow(int width, int height)
    Parameters
    Type Name Description
    System.Int32 width

    The width of the arrow.

    System.Int32 height

    The height of the arrow.

    Returns
    Type Description
    System.Drawing.Bitmap

    The bitmap.

    Overrides
    ClassicRenderer.GetOfficeRightArrow(Int32, Int32)

    GetOfficeRightArrowPushed(Int32, Int32)

    Returns the pushed or checked state right arrow.

    Declaration
    protected Bitmap GetOfficeRightArrowPushed(int width, int height)
    Parameters
    Type Name Description
    System.Int32 width

    The width of the arrow.

    System.Int32 height

    The height of the arrow.

    Returns
    Type Description
    System.Drawing.Bitmap

    The bitmap.

    GetOfficeUpArrow(Int32, Int32)

    Returns the pushed or checked state up arrow.

    Declaration
    protected override Bitmap GetOfficeUpArrow(int width, int height)
    Parameters
    Type Name Description
    System.Int32 width

    The width of the arrow.

    System.Int32 height

    The height of the arrow.

    Returns
    Type Description
    System.Drawing.Bitmap

    The bitmap.

    Overrides
    ClassicRenderer.GetOfficeUpArrow(Int32, Int32)

    GetOfficeUpArrowPushed(Int32, Int32)

    Returns the pushed or checked state up arrow.

    Declaration
    protected Bitmap GetOfficeUpArrowPushed(int width, int height)
    Parameters
    Type Name Description
    System.Int32 width

    The width of the arrow.

    System.Int32 height

    The height of the arrow.

    Returns
    Type Description
    System.Drawing.Bitmap

    The bitmap.

    GetRightArrowNormal(Int32, Int32)

    Returns the normal right arrow.

    Declaration
    protected Bitmap GetRightArrowNormal(int width, int height)
    Parameters
    Type Name Description
    System.Int32 width

    The width of the arrow.

    System.Int32 height

    The height of the arrow.

    Returns
    Type Description
    System.Drawing.Bitmap

    The bitmap.

    GetUpArrowNormal(Int32, Int32)

    Returns the normal up arrow.

    Declaration
    protected Bitmap GetUpArrowNormal(int width, int height)
    Parameters
    Type Name Description
    System.Int32 width

    The width of the arrow.

    System.Int32 height

    The height of the arrow.

    Returns
    Type Description
    System.Drawing.Bitmap

    The bitmap.

    Implements

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