Class ChevronPainter
This class allows users to simply draw chevron button with different Themes and Styles.
Inheritance
System.Object
ChevronPainter
Namespace: Syncfusion.Drawing
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class ChevronPainter : Object
Constructors
ChevronPainter()
Declaration
public ChevronPainter()
Fields
DEF_BORDER_WIDTH
Chevron button border width.
Declaration
public const int DEF_BORDER_WIDTH = 1
Field Value
| Type |
|---|
| System.Int32 |
Methods
BlendColor(Color, Color)
Blends 30% of menu selection color.
Declaration
public static Color BlendColor(Color selectionColor, Color backColor)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.Color | selectionColor | |
| System.Drawing.Color | backColor |
Returns
| Type |
|---|
| System.Drawing.Color |
DrawChevron(Graphics, Rectangle, VisualStyle, Boolean)
Draws chevron arrows with specified style.
Declaration
public static void DrawChevron(Graphics g, Rectangle chevronButtonBounds, VisualStyle style, bool isRightToLeft)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.Graphics | g | |
| System.Drawing.Rectangle | chevronButtonBounds | |
| VisualStyle | style | |
| System.Boolean | isRightToLeft |
DrawChevronButton(Graphics, Rectangle, VisualStyle, ButtonsState, Boolean)
Draws chevron button.
Declaration
public static void DrawChevronButton(Graphics g, Rectangle chevronBounds, VisualStyle style, ButtonsState state, bool isRightToLeft)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.Graphics | g | Graphics object to draw on. |
| System.Drawing.Rectangle | chevronBounds | Chevron button bounds. |
| VisualStyle | style | Visual style to draw chevron with. |
| ButtonsState | state | Button state to draw chevron with. |
| System.Boolean | isRightToLeft | Indicates whether to draw chevron in RightToLeft mode. |
DrawDropDownButtonHighlight(Graphics, Rectangle, VisualStyle, ButtonsState)
Draws highlighted chevron background with specified style, button state and themes used.
Declaration
public static void DrawDropDownButtonHighlight(Graphics g, Rectangle chevronBounds, VisualStyle style, ButtonsState state)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.Graphics | g | |
| System.Drawing.Rectangle | chevronBounds | |
| VisualStyle | style | |
| ButtonsState | state |