Class ToggleButtonRenderer
Provides a standard interface for ToggleButtonRenderer.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Tools
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class ToggleButtonRenderer : IToggleButtonRenderer
Constructors
ToggleButtonRenderer()
Create a new instance of ToggleButtonRenderer class.
Declaration
public ToggleButtonRenderer()
Methods
DrawButton(PaintEventArgs, ToggleButtonState, DisplayType, Font, ActiveStateCollection, InactiveStateCollection, RightToLeft, Boolean, ToggleButton)
Represents for Drawing the Button Frame for ToggleButton.
Declaration
public void DrawButton(PaintEventArgs e, ToggleButtonState toggleState, DisplayType displayMode, Font font, ActiveStateCollection activeState, InactiveStateCollection inactiveState, RightToLeft righttoLeft, bool isMouseHover, ToggleButton toggleButton)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.PaintEventArgs | e | The System.Windows.Forms.PaintEventArgs event. |
ToggleButtonState | toggleState | It contains togglestate of togglebutton. |
DisplayType | displayMode | It contains displaymodes of togglebutton. |
System.Drawing.Font | font | It contains that font style. |
ActiveStateCollection | activeState | Represents an active state. |
InactiveStateCollection | inactiveState | Represents an inactive. |
System.Windows.Forms.RightToLeft | righttoLeft | It contains righttoleft alignment is applied or not in text. |
System.Boolean | isMouseHover | If true, the mouse hover on the button. Otherwise, false. |
ToggleButton | toggleButton | Represents a control that displays the text and image in a style format. |
DrawSlider(PaintEventArgs, Point, ToggleButtonState, SliderCollection, Font, RightToLeft, Boolean, Boolean, ToggleButton)
Represents for Drawing the Slider in ToggleButton.
Declaration
public void DrawSlider(PaintEventArgs e, Point p, ToggleButtonState toggleState, SliderCollection slider, Font font, RightToLeft righttoLeft, bool isMouseMove, bool isMouseHover, ToggleButton toggleButton)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.PaintEventArgs | e | The System.Windows.Forms.PaintEventArgsevent. |
System.Drawing.Point | p | Represents the value of position. |
ToggleButtonState | toggleState | It contains togglestate of togglebutton. |
SliderCollection | slider | Represents the collection of slider. |
System.Drawing.Font | font | Represents the font style. |
System.Windows.Forms.RightToLeft | righttoLeft | It contains righttoleft alignment is applied or not in text. |
System.Boolean | isMouseMove | If true, the mouse is move on the button. Otherwise, false. |
System.Boolean | isMouseHover | If true, the mouse hover on the button. Otherwise, false. |
ToggleButton | toggleButton |