Class CheckBoxPaint
Draws checkbox control control in the grid cells.
Inherited Members
Namespace: Syncfusion.Windows.Controls.Grid
Assembly: Syncfusion.Grid.Wpf.dll
Syntax
public class CheckBoxPaint : TextBoxPaint
Constructors
CheckBoxPaint(CheckerPlacement, Boolean, Thickness, Typeface, Double, Brush)
Constructor.
Declaration
public CheckBoxPaint(CheckerPlacement checkerPlacement, bool isRound, Thickness margins, Typeface typeface, double emSize, Brush foreGround)
Parameters
Type | Name | Description |
---|---|---|
CheckerPlacement | checkerPlacement | CheckerPlacement object that indicates whether the checkbox should appear before or after the cell text. |
System.Boolean | isRound | Not implemented. |
System.Windows.Thickness | margins | Border margins. |
System.Windows.Media.Typeface | typeface | The System.Windows.Media.Typeface object. |
System.Double | emSize | Font size. |
System.Windows.Media.Brush | foreGround | Foreground brush. |
Properties
CheckBoxSize
Gets or sets the size of the checkbox control.
Declaration
public Size CheckBoxSize { get; set; }
Property Value
Type |
---|
System.Windows.Size |
CheckerPlacement
Gets or sets the CheckerPlacement for the cell.
Declaration
public CheckerPlacement CheckerPlacement { get; set; }
Property Value
Type |
---|
CheckerPlacement |
IsRound
Not implemented.
Declaration
public bool IsRound { get; set; }
Property Value
Type |
---|
System.Boolean |
Margins
Border margins.
Declaration
public Thickness Margins { get; set; }
Property Value
Type |
---|
System.Windows.Thickness |
Methods
DetermineCheckerBounds(Rect, String)
Returns the checkbox bounds.
Declaration
public Rect DetermineCheckerBounds(Rect clientRect, string text)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Rect | clientRect | The client rectangle. |
System.String | text | The cell text. |
Returns
Type |
---|
System.Windows.Rect |
DrawCheckBox(DrawingContext, Rect, String, Nullable<Boolean>, GridRenderStyleInfo)
Declaration
public void DrawCheckBox(DrawingContext dc, Rect clientRect, string text, Nullable<bool> isChecked, GridRenderStyleInfo style)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Media.DrawingContext | dc | |
System.Windows.Rect | clientRect | |
System.String | text | |
System.Nullable<System.Boolean> | isChecked | |
GridRenderStyleInfo | style |
DrawCheckBox(DrawingContext, Rect, String, Nullable<Boolean>, GridRenderStyleInfo, Boolean)
Draws the checkbox.
Declaration
public void DrawCheckBox(DrawingContext dc, Rect clientRect, string text, Nullable<bool> isChecked, GridRenderStyleInfo style, bool AllowRecycle)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Media.DrawingContext | dc | The drawing context. |
System.Windows.Rect | clientRect | The cell client rectangle. |
System.String | text | The cell text. |
System.Nullable<System.Boolean> | isChecked | If true, the checkbox will be drawn as checked; if false it will be drawn as unchecked. |
GridRenderStyleInfo | style | |
System.Boolean | AllowRecycle |
GetCheckBoxVisualStyle(CheckBox, GridStyleInfo)
Returns the checkbox VisualStyle.
Declaration
public CheckBox GetCheckBoxVisualStyle(CheckBox checkbox, GridStyleInfo style)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Controls.CheckBox | checkbox | |
GridStyleInfo | style |
Returns
Type |
---|
System.Windows.Controls.CheckBox |