Class GridTextBoxPaint
Draws a text box control in the grid cells.
Inheritance
System.Object
GridTextBoxPaint
Namespace: Syncfusion.Windows.Controls.Grid
Assembly: Syncfusion.Grid.Wpf.dll
Syntax
public class GridTextBoxPaint : Object
Constructors
GridTextBoxPaint()
Declaration
public GridTextBoxPaint()
Properties
AllowRoundDrawTextOrigin
Gets or sets a value indicating whether [allow round draw text origin].
Declaration
public static bool AllowRoundDrawTextOrigin { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Methods
DrawText(DrawingContext, Rect, String, GridStyleInfo)
Draws the text.
Declaration
public static void DrawText(DrawingContext drawingContext, Rect textRectangle, string displayText, GridStyleInfo style)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Media.DrawingContext | drawingContext | The drawing context. |
System.Windows.Rect | textRectangle | The text rectangle. |
System.String | displayText | The display text. |
GridStyleInfo | style | The cell style. |
MeasureText(Size, String, GridStyleInfo, GridQueryBounds)
Returns the size of the text.
Declaration
public static Size MeasureText(Size textRectangle, string displayText, GridStyleInfo style, GridQueryBounds queryBounds)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Size | textRectangle | Text rectangle. |
System.String | displayText | The display text. |
GridStyleInfo | style | Cell style. |
GridQueryBounds | queryBounds | Cell bounds. |
Returns
Type | Description |
---|---|
System.Windows.Size | Size of the text. |