[]
Defines the rectangle for a text fragment in TextLayout.
public class TextRect
Public Class TextRect
Name | Description |
---|---|
TextRect(int, int, float, float, float, float, bool, bool, bool, bool) | Initializes a new instance of the TextRect class with the specified coordinates, size, and flags. |
Name | Description |
---|---|
Bottom | Gets the y-coordinate of the bottom edge of this TextRect, in graphic units. |
CodePointCount | Gets the number of text fragment's code points. |
CodePointIndex | Gets the index of the text fragment's first code point. |
Height | Gets the height of this TextRect, in graphic units. |
Left | Gets the x-coordinate of the left edge of this TextRect, in graphic units. |
Right | Gets the x-coordinate of the right edge of this TextRect, in graphic units. |
RightToLeft | Indicates if the text fragment should appear from right to left. |
RotateSidewaysCounterclockwise | Indicates if sideways should be rotated counterclockwise. |
Sideways | Indicates if the text fragment should appear rotated 90 or -90 degrees. |
Top | Gets the y-coordinate of the top edge of this TextRect, in graphic units. |
Vertical | Indicates if the text fragment should appear upright with vertical reading direction. |
Width | Gets the width of this TextRect, in graphic units. |
X | Gets the x-coordinate of the left edge of this TextRect, in graphic units. |
Y | Gets the y-coordinate of the top edge of this TextRect, in graphic units. |
Name | Description |
---|---|
ToRectangleF() | Converts an TextRect to RectangleF. |
Name | Description |
---|---|
explicit operator RectangleF(TextRect) | Performs an explicit conversion from TextRect to RectangleF. |