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

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

int Bottom { get; }

Property Value

int:

The y-axis value of the bottom of the bounds.

Height

Gets the height of the bounds.

int Height { get; }

Property Value

int:

The height of the bounds.

IsRightToLeft

Gets 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

Gets the x-axis position of the left side of the bounds. Getting this property is equivalent to getting the bounds's X property.

int Left { get; }

Property Value

int:

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

Rect

Gets a native rectangle that specifies the bounds.

Rectangle Rect { get; }

Property Value

Rectangle:

A native rectangle that specifies the bounds.

Right

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

int Right { get; }

Property Value

int:

The x-axis value of the right side of the bounds.

Top

Gets the y-axis position of the top of the bounds. Getting this property is equivalent to getting the bounds's Y property.

int Top { get; }

Property Value

int:

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

Width

Gets the width of the bounds.

int Width { get; }

Property Value

int:

The width of the bounds.

X

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

int X { get; }

Property Value

int:

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

Y

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

int Y { get; }

Property Value

int:

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