In This Article

ITextBounds Interface

Provides the base requirements for an object that describes the location, size, and flow direction of a range of text.

public interface ITextBounds

Properties

Bottom

The y-axis value of the bottom of the bounds (Y + Height).

int Bottom { get; }

Property Value

int

Height

The height of the bounds.

int Height { get; }

Property Value

int

IsRightToLeft

Indicates whether the bounds use a right-to-left flow direction.

bool IsRightToLeft { get; }

Property Value

bool:

true if the bounds use a right-to-left flow direction; otherwise, false.

Left

The x-axis position of the left side of the bounds.

int Left { get; }

Property Value

int

Remarks

Getting this property is equivalent to getting the bounds's X property.

Rect

A native rectangle that specifies the bounds.

Rectangle Rect { get; }

Property Value

Rectangle

Right

The x-axis value of the right side of the bounds (X + Width).

int Right { get; }

Property Value

int

Top

The y-axis position of the top of the bounds.

int Top { get; }

Property Value

int

Remarks

Getting this property is equivalent to getting the bounds's Y property.

Width

The width of the bounds.

int Width { get; }

Property Value

int

X

The x-axis position of the left side of the bounds.

int X { get; }

Property Value

int

Y

The y-axis position of the top of the bounds.

int Y { get; }

Property Value

int

Extension Methods