WPF

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridTextBoxPaint - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class GridTextBoxPaint

    Inheritance
    System.Object
    GridTextBoxPaint
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.UI.Xaml.CellGrid.Helpers
    Assembly: Syncfusion.SfCellGrid.WPF.dll
    Syntax
    public static class GridTextBoxPaint

    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
    Type Description
    System.Windows.Size

    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
    Type Description
    System.Windows.Size

    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
    Type Description
    System.Windows.Size
    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved