Class Office2010Renderer
Provides renderer for Office2010 theme.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Renderers
Assembly: Syncfusion.Shared.Base.dll
Syntax
public class Office2010Renderer : ClassicRenderer, IRenderer
Constructors
Office2010Renderer(ScrollBarCustomDraw, ColorTableOffice2010)
Initialize new instance of Office2010Renderer
Declaration
public Office2010Renderer(ScrollBarCustomDraw parent, ColorTableOffice2010 colorTable)
Parameters
Type | Name | Description |
---|---|---|
ScrollBarCustomDraw | parent | custom scrollbar. |
ColorTableOffice2010 | colorTable | 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 g, Rectangle rcArrow, ScrollButton type, ButtonState state)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | graphics for arrow buttons. |
System.Drawing.Rectangle | rcArrow | Arrow bounds. |
System.Windows.Forms.ScrollButton | type | type of the scroll button. |
System.Windows.Forms.ButtonState | state | 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 g, Rectangle rcBackground, ButtonState state)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | graphics for arrow buttons background. |
System.Drawing.Rectangle | rcBackground | arrow button background bounds |
System.Windows.Forms.ButtonState | state | Button state. |
Overrides
DrawThumb(Graphics, Rectangle, ButtonState)
Draws thumb for scroll. If theme is disabled than draw classic scroll.
Declaration
public override void DrawThumb(Graphics g, Rectangle rcThumb, ButtonState state)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | graphics for scroll thumb. |
System.Drawing.Rectangle | rcThumb | scroll thimb bounds. |
System.Windows.Forms.ButtonState | state | Button state. |
Overrides
GetHorizontalBrush(ref Rectangle, Color, Color)
gets the horizontal scroll brush.
Declaration
protected LinearGradientBrush GetHorizontalBrush(ref Rectangle rc, Color cl1, Color cl2)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Rectangle | rc | bounds. |
System.Drawing.Color | cl1 | Gradient top color. |
System.Drawing.Color | cl2 | Gradient bottom color. |
Returns
Type | Description |
---|---|
System.Drawing.Drawing2D.LinearGradientBrush | the Linear gradient brush. |
GetOfficeDownArrow(Int32, Int32)
Down office arrow.
Declaration
protected override Bitmap GetOfficeDownArrow(int width, int height)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | width | Arrow width. |
System.Int32 | height | Arrow height. |
Returns
Type | Description |
---|---|
System.Drawing.Bitmap | the bitmap. |
Overrides
GetOfficeDownArrowNormal(Int32, Int32)
Down Normal office arrow.
Declaration
protected Bitmap GetOfficeDownArrowNormal(int width, int height)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | width | Arrow width. |
System.Int32 | height | Arrow height. |
Returns
Type | Description |
---|---|
System.Drawing.Bitmap | the bitmap. |
GetOfficeLeftArrow(Int32, Int32)
Left office arrow.
Declaration
protected override Bitmap GetOfficeLeftArrow(int width, int height)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | width | Arrow width. |
System.Int32 | height | Arrow height. |
Returns
Type | Description |
---|---|
System.Drawing.Bitmap | the bitmap. |
Overrides
GetOfficeLeftArrowNormal(Int32, Int32)
Left Normal office arrow.
Declaration
protected Bitmap GetOfficeLeftArrowNormal(int width, int height)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | width | Arrow width. |
System.Int32 | height | Arrow height. |
Returns
Type | Description |
---|---|
System.Drawing.Bitmap | the bitmap. |
GetOfficeRightArrow(Int32, Int32)
Right office arrow.
Declaration
protected override Bitmap GetOfficeRightArrow(int width, int height)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | width | Arrow width. |
System.Int32 | height | Arrow height. |
Returns
Type | Description |
---|---|
System.Drawing.Bitmap | the bitmap. |
Overrides
GetOfficeRightArrowNormal(Int32, Int32)
Right Normal office arrow.
Declaration
protected Bitmap GetOfficeRightArrowNormal(int width, int height)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | width | Arrow width. |
System.Int32 | height | Arrow height. |
Returns
Type | Description |
---|---|
System.Drawing.Bitmap | the bitmap. |
GetOfficeThumbLinesHorizontal()
Horizontal thumb lines.
Declaration
protected Bitmap GetOfficeThumbLinesHorizontal()
Returns
Type | Description |
---|---|
System.Drawing.Bitmap | the horizontal thumb lines' Bitmap. |
GetOfficeThumbLinesVertical()
Vertical thumb lines.
Declaration
protected Bitmap GetOfficeThumbLinesVertical()
Returns
Type | Description |
---|---|
System.Drawing.Bitmap | the bitmap of the scroll thumb. |
GetOfficeUpArrow(Int32, Int32)
Up office arrow.
Declaration
protected override Bitmap GetOfficeUpArrow(int width, int height)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | width | Arrow width. |
System.Int32 | height | Arrow height. |
Returns
Type | Description |
---|---|
System.Drawing.Bitmap | the bitmap. |
Overrides
GetOfficeUpArrowNormal(Int32, Int32)
Up Normal office arrow.
Declaration
protected Bitmap GetOfficeUpArrowNormal(int width, int height)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | width | Arrow width. |
System.Int32 | height | Arrow height. |
Returns
Type | Description |
---|---|
System.Drawing.Bitmap | the bitmap. |
GetRoundedPolygon(Rectangle, Int32)
gets the rounded polygon.
Declaration
public static Point[] GetRoundedPolygon(Rectangle rc, int iRadius)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Rectangle | rc | Bounds. |
System.Int32 | iRadius | Radius of the polygon. |
Returns
Type | Description |
---|---|
System.Drawing.Point[] | the edge points. |
GetVerticalBrush(ref Rectangle, Color, Color)
gets the vertical scroll brush.
Declaration
protected LinearGradientBrush GetVerticalBrush(ref Rectangle rc, Color cl1, Color cl2)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Rectangle | rc | bounds. |
System.Drawing.Color | cl1 | Gradient top color. |
System.Drawing.Color | cl2 | Gradient bottom color. |
Returns
Type | Description |
---|---|
System.Drawing.Drawing2D.LinearGradientBrush | Returns the Linear gradient brush. |
GetVerticalBrush(Int32, Int32, Color, Color)
gets the vertical scroll brush.
Declaration
protected LinearGradientBrush GetVerticalBrush(int top, int height, Color cl1, Color cl2)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | top | top of the scroll bar rectangle |
System.Int32 | height | Height of the scroll bar rectangle |
System.Drawing.Color | cl1 | Gradient top color. |
System.Drawing.Color | cl2 | Gradient bottom color. |
Returns
Type | Description |
---|---|
System.Drawing.Drawing2D.LinearGradientBrush | Returns the Linear gradient brush. |