Class GridRadioButton
Defines the cell radio button of a GridRadioButtonCellRenderer.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Grid
Assembly: Syncfusion.Grid.Windows.dll
Syntax
public class GridRadioButton : GridCellButton, IDisposable
Remarks
This button is XP Themes enabled. It will be drawn themed if ThemesEnabled is True and the GridStyleInfo.ThemesEnabled is True for the cell.
Constructors
GridRadioButton(GridCellRendererBase, Int32)
Initializes a new GridRadioButton.
Declaration
public GridRadioButton(GridCellRendererBase renderer, int index)
Parameters
Type | Name | Description |
---|---|---|
GridCellRendererBase | renderer | The GridRadioButtonCellRenderer object which owns this button. |
System.Int32 | index | The button's index in the collection of radio buttons for this cell. |
Fields
RADIOBUTTONWIDTH
Width of the radio button.
Declaration
public static int RADIOBUTTONWIDTH
Field Value
Type |
---|
System.Int32 |
Properties
Enabled
Gets or sets a value indicating whether the button is enabled.
Declaration
public bool Enabled { get; set; }
Property Value
Type |
---|
System.Boolean |
Methods
Dispose(Boolean)
Which calls the base class dispose method.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
Overrides
DrawButton(Graphics, Rectangle, ButtonState, GridStyleInfo)
Draws a button using System.Windows.Forms.ControlPaint.DrawButton(System.Drawing.Graphics,System.Drawing.Rectangle,System.Windows.Forms.ButtonState) or if XP Themes are enabled, button will be drawn themed.
Declaration
public override void DrawButton(Graphics g, Rectangle rect, ButtonState buttonState, GridStyleInfo style)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | The System.Drawing.Graphics context of the canvas. |
System.Drawing.Rectangle | rect | The System.Drawing.Rectangle with the bounds. |
System.Windows.Forms.ButtonState | buttonState | A System.Windows.Forms.ButtonState that specifies the current state. |
GridStyleInfo | style | The style information for the cell. |