Class ScrollControlThemeRenderer
Renderer for VisualStyle based theme
Implements
Inherited Members
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 ScrollControlThemeRenderer : MetroRenderer, IRenderer
Constructors
ScrollControlThemeRenderer()
Declaration
public ScrollControlThemeRenderer()
ScrollControlThemeRenderer(ScrollBarCustomDraw)
Initializes a new instance of the ScrollControlThemeRenderer class.
Declaration
public ScrollControlThemeRenderer(ScrollBarCustomDraw parent)
Parameters
Type | Name | Description |
---|---|---|
ScrollBarCustomDraw | parent | The parent control |
ScrollControlThemeRenderer(ScrollBarCustomDraw, MetroColorTable)
Initializes a new instance of the ScrollControlThemeRenderer class.
Declaration
public ScrollControlThemeRenderer(ScrollBarCustomDraw parent, MetroColorTable colorTable)
Parameters
Type | Name | Description |
---|---|---|
ScrollBarCustomDraw | parent | The parent control. |
MetroColorTable | colorTable | The metro color table. |
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 |