Class UpDownPaint
Inheritance
System.Object
UpDownPaint
Namespace: Syncfusion.Windows.Controls.Grid
Assembly: Syncfusion.Grid.Wpf.dll
Syntax
public class UpDownPaint : Object
Constructors
UpDownPaint()
Default constructor.
Declaration
public UpDownPaint()
Properties
Margin
Gets or sets the margins.
Declaration
public Thickness Margin { get; set; }
Property Value
Type |
---|
System.Windows.Thickness |
Methods
DrawUpdown(DrawingContext, Rect, String, GridStyleInfo)
Draws the UpDown Control in the cell rectangle.
Declaration
public Thickness DrawUpdown(DrawingContext dc, Rect rc, string text, GridStyleInfo style)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Media.DrawingContext | dc | The drawing context. |
System.Windows.Rect | rc | Cell rectangle. |
System.String | text | Text to be drawn over the UpDown Control. |
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. |