menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class CheckBoxPaint - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class CheckBoxPaint

    Draws checkbox control control in the grid cells.

    Inheritance
    System.Object
    TextBoxPaint
    CheckBoxPaint
    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()
    TextBoxPaint.CenterInRect(Rect, Size)
    TextBoxPaint.CenterPoint(Rect)
    TextBoxPaint.CultureInfo
    TextBoxPaint.DrawText(DrawingContext, Rect, String)
    TextBoxPaint.EmSize
    TextBoxPaint.FlowDirection
    TextBoxPaint.Foreground
    TextBoxPaint.FromLTRB(Double, Double, Double, Double)
    TextBoxPaint.GetFrozenBrush(Color)
    TextBoxPaint.GetTypeface(String)
    TextBoxPaint.HorizontalAlignment
    TextBoxPaint.Orientation
    TextBoxPaint.TextDecorations
    TextBoxPaint.TextWrapping
    TextBoxPaint.Trimming
    TextBoxPaint.Typeface
    TextBoxPaint.VerticalAlignment
    TextBoxPaint.WrapText
    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, 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, 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
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved