Class SplitButtonRenderer
Inheritance
System.Object
SplitButtonRenderer
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.Tools
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class SplitButtonRenderer : ISplitButtonRenderer
Constructors
SplitButtonRenderer()
Declaration
public SplitButtonRenderer()
Fields
ArrowColorDefault
Initializing Solid Brush to paint the button
Declaration
public SolidBrush ArrowColorDefault
Field Value
Type |
---|
System.Drawing.SolidBrush |
DefaultColor
Color code for Button's Default State
Declaration
public string[] DefaultColor
Field Value
Type |
---|
System.String[] |
DisabledColor
Color code for Button's Disabled State
Declaration
public string[] DisabledColor
Field Value
Type |
---|
System.String[] |
OnoverColor
Color code for Button's Actived State
Declaration
public string[] OnoverColor
Field Value
Type |
---|
System.String[] |
PressedColor
Color code for Button's Pressed State
Declaration
public string[] PressedColor
Field Value
Type |
---|
System.String[] |
Methods
DrawArrow(Int32, Int32, Int32, Int32, PaintEventArgs, Color)
Arrow have painted, and its size is depends upon the width and heigh. And location is depends upon the left and top value
Declaration
public void DrawArrow(int left, int top, int width, int height, PaintEventArgs e, Color ArrowColor)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | left | |
System.Int32 | top | |
System.Int32 | width | |
System.Int32 | height | |
System.Windows.Forms.PaintEventArgs | e | |
System.Drawing.Color | ArrowColor |
DrawBorder(PaintEventArgs, Int32, Int32, Int32, Color, Color, Color, Color, Color)
Creating the Border appearence of the Button And the Visual Style may achive throgh the Colors as an input
Declaration
public void DrawBorder(PaintEventArgs e, int width, int height, int splitwidth, Color outerColor, Color innerColor, Color arrowOuter, Color arrowInner, Color buttonInner)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.PaintEventArgs | e | |
System.Int32 | width | |
System.Int32 | height | |
System.Int32 | splitwidth | |
System.Drawing.Color | outerColor | |
System.Drawing.Color | innerColor | |
System.Drawing.Color | arrowOuter | |
System.Drawing.Color | arrowInner | |
System.Drawing.Color | buttonInner |
DrawText(PaintEventArgs, String, Font, Color, Int32, Int32, Int32)
Rendering of text.
Declaration
public void DrawText(PaintEventArgs e, string text, Font font, Color color, int totalwidth, int totalheight, int splitwidth)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.PaintEventArgs | e | |
System.String | text | |
System.Drawing.Font | font | |
System.Drawing.Color | color | |
System.Int32 | totalwidth | |
System.Int32 | totalheight | |
System.Int32 | splitwidth |