Class GridTextBoxPaint
Inheritance
System.Object
GridTextBoxPaint
Assembly: Syncfusion.SfCellGrid.WPF.dll
Syntax
public static class GridTextBoxPaint : Object
Methods
DrawFormattedText(SfCellGrid, DrawingContext, String, Rect, GridStyleInfo, Object)
Draws the text using FormattedText.
Declaration
public static void DrawFormattedText(SfCellGrid grid, DrawingContext drawingContext, string displayText, Rect cellRect, GridStyleInfo style, object textElement)
Parameters
Type |
Name |
Description |
SfCellGrid |
grid |
|
System.Windows.Media.DrawingContext |
drawingContext |
|
System.String |
displayText |
|
System.Windows.Rect |
cellRect |
|
GridStyleInfo |
style |
|
System.Object |
textElement |
|
DrawGlyphs(SfCellGrid, DrawingContext, String, Rect, GridStyleInfo, Object)
Draws the text using GlyphRun which is faster than FormattedText.
Declaration
public static void DrawGlyphs(SfCellGrid grid, DrawingContext drawingContext, string displayText, Rect cellRect, GridStyleInfo style, object textElement)
Parameters
Type |
Name |
Description |
SfCellGrid |
grid |
|
System.Windows.Media.DrawingContext |
drawingContext |
|
System.String |
displayText |
|
System.Windows.Rect |
cellRect |
|
GridStyleInfo |
style |
|
System.Object |
textElement |
|
DrawText(SfCellGrid, DrawingContext, String, Rect, GridStyleInfo, Object)
Draws the text using either GlyphRun or FormattedText.
Declaration
public static void DrawText(this SfCellGrid grid, DrawingContext drawingContext, string displayText, Rect cellRect, GridStyleInfo style, object textElement)
Parameters
Type |
Name |
Description |
SfCellGrid |
grid |
|
System.Windows.Media.DrawingContext |
drawingContext |
|
System.String |
displayText |
|
System.Windows.Rect |
cellRect |
|
GridStyleInfo |
style |
|
System.Object |
textElement |
|
MeasureText(SfCellGrid, String, GridStyleInfo, FlowDirection, Double, Boolean, Int32, out Object)
Measure the text using either GlyphRun or FormattedText.
Declaration
public static Size MeasureText(SfCellGrid grid, string text, GridStyleInfo style, FlowDirection flowDirection, double cellWidth, bool wraptext, int lineCount, out object textElement)
Parameters
Type |
Name |
Description |
SfCellGrid |
grid |
|
System.String |
text |
|
GridStyleInfo |
style |
|
System.Windows.FlowDirection |
flowDirection |
|
System.Double |
cellWidth |
|
System.Boolean |
wraptext |
|
System.Int32 |
lineCount |
|
System.Object |
textElement |
|
Returns
MeasureTextUsingFormattedText(SfCellGrid, String, GridStyleInfo, Double, Boolean, Int32, out Object)
Measure the text using FormattedText.
Declaration
public static Size MeasureTextUsingFormattedText(SfCellGrid grid, string text, GridStyleInfo style, double cellWidth, bool wraptext, int lineCount, out object textElement)
Parameters
Type |
Name |
Description |
SfCellGrid |
grid |
|
System.String |
text |
|
GridStyleInfo |
style |
|
System.Double |
cellWidth |
|
System.Boolean |
wraptext |
|
System.Int32 |
lineCount |
|
System.Object |
textElement |
|
Returns
MeasureTextUsingGlyphs(SfCellGrid, String, GridStyleInfo, out Boolean, out Object)
Measure the text using GlyphRun which is faster than FormattedText.
Declaration
public static Size MeasureTextUsingGlyphs(SfCellGrid grid, string text, GridStyleInfo style, out bool isCalculated, out object textElement)
Parameters
Type |
Name |
Description |
SfCellGrid |
grid |
|
System.String |
text |
|
GridStyleInfo |
style |
|
System.Boolean |
isCalculated |
|
System.Object |
textElement |
|
Returns