Class MetroRenderer
The metro renderer for scrollbar
Implements
Inherited Members
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
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
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
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
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
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
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
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. |