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

    Draws a text box control in the grid cells.

    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.Windows.Controls.Grid
    Assembly: Syncfusion.Grid.Wpf.dll
    Syntax
    public class GridTextBoxPaint

    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

    true if [allow round draw text origin]; otherwise, false.

    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.

    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved