[]
        
(Showing Draft Content)

GrapeCity.Documents.Text.TextRect

Class TextRect

Namespace
GrapeCity.Documents.Text
Assembly
GcDocs.Imaging.dll

Defines the rectangle for a text fragment in TextLayout.

public class TextRect
Inheritance
object
TextRect
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

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.

public TextRect(int codePointIndex, int codePointCount, float x, float y, float width, float height, bool rightToLeft, bool vertical, bool sideways, bool rotateSidewaysCounterclockwise)

Parameters

codePointIndex int

Index of the first code point in the text fragment.

codePointCount int

The number of code points in the text fragment.

x float

The X coordinate of the rectangle.

y float

The Y coordinate of the rectangle.

width float

The width of the rectangle.

height float

The height of the rectangle.

rightToLeft bool

Indicates if the text fragment should appear from right to left.

vertical bool

Indicates if the text fragment should appear upright with vertical reading direction.

sideways bool

Indicates if the text fragment should appear rotated 90 or -90 degrees.

rotateSidewaysCounterclockwise bool

Indicates if sideways should be rotated counterclockwise.

Properties

Bottom

Gets the y-coordinate of the bottom edge of this TextRect, in graphic units.

public float Bottom { get; }

Property Value

float

CodePointCount

Gets the number of text fragment's code points.

public int CodePointCount { get; }

Property Value

int

CodePointIndex

Gets the index of the text fragment's first code point.

public int CodePointIndex { get; }

Property Value

int

Height

Gets the height of this TextRect, in graphic units.

public float Height { get; }

Property Value

float

Left

Gets the x-coordinate of the left edge of this TextRect, in graphic units.

public float Left { get; }

Property Value

float

Right

Gets the x-coordinate of the right edge of this TextRect, in graphic units.

public float Right { get; }

Property Value

float

RightToLeft

Indicates if the text fragment should appear from right to left.

public bool RightToLeft { get; }

Property Value

bool

RotateSidewaysCounterclockwise

Indicates if sideways should be rotated counterclockwise.

public bool RotateSidewaysCounterclockwise { get; }

Property Value

bool

Sideways

Indicates if the text fragment should appear rotated 90 or -90 degrees.

public bool Sideways { get; }

Property Value

bool
See Also

Top

Gets the y-coordinate of the top edge of this TextRect, in graphic units.

public float Top { get; }

Property Value

float

Vertical

Indicates if the text fragment should appear upright with vertical reading direction.

public bool Vertical { get; }

Property Value

bool

Width

Gets the width of this TextRect, in graphic units.

public float Width { get; }

Property Value

float

X

Gets the x-coordinate of the left edge of this TextRect, in graphic units.

public float X { get; }

Property Value

float

Y

Gets the y-coordinate of the top edge of this TextRect, in graphic units.

public float Y { get; }

Property Value

float

Methods

ToRectangleF()

Converts an TextRect to System.Drawing.RectangleF.

public RectangleF ToRectangleF()

Returns

System.Drawing.RectangleF

Operators

explicit operator RectangleF(TextRect)

Performs an explicit conversion from TextRect to System.Drawing.RectangleF.

public static explicit operator RectangleF(TextRect rect)

Parameters

rect TextRect

Returns

System.Drawing.RectangleF