Class RichTextPaint
Inheritance
System.Object
RichTextPaint
Namespace: Syncfusion.Windows.Controls.Grid.GridCellRenderer
Assembly: Syncfusion.Grid.Wpf.dll
Syntax
public class RichTextPaint : Object
Constructors
RichTextPaint()
Default constructor.
Declaration
public RichTextPaint()
Properties
Margin
Gets or sets the margins.
Declaration
public Thickness Margin { get; set; }
Property Value
Type |
---|
System.Windows.Thickness |
Methods
DrawRichText(DrawingContext, Rect, GridStyleInfo)
Draws the UpDown Control in the cell rectangle.
Declaration
public Thickness DrawRichText(DrawingContext dc, Rect rc, GridStyleInfo style)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Media.DrawingContext | dc | The drawing context. |
System.Windows.Rect | rc | Cell rectangle. |
GridStyleInfo | style | Cell style information. |
Returns
Type | Description |
---|---|
System.Windows.Thickness | Cell margins. |
SubtractBorderMargins(Rect, Thickness)
Removes border margins to get cells client area.
Declaration
public Rect SubtractBorderMargins(Rect cellRect, Thickness mi)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Rect | cellRect | Cell rectangle. |
System.Windows.Thickness | mi | The border margins. |
Returns
Type | Description |
---|---|
System.Windows.Rect | Returns the cells client area. |