TextBounds Constructor (Double, Double, Double, Double, Double, Double)

 

Initializes a new instance of TextBounds.

Namespace:   Microsoft.VisualStudio.Text.Formatting
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

public:
TextBounds(
	double leading,
	double top,
	double bidiWidth,
	double height,
	double textTop,
	double textHeight
)

Parameters

leading
Type: System::Double

The x-coordinate of the leading edge of the bounding rectangle.

top
Type: System::Double

The y-coordinate of the top edge of the bounding rectangle.

bidiWidth
Type: System::Double

The distance between the leading and trailing edges of the bounding rectangle. This can be negative for right-to-left text.

height
Type: System::Double

The height of the rectangle. The height must be non-negative.

textTop
Type: System::Double

The top of the text, measured from the line that contains the text.

textHeight
Type: System::Double

The height of the text, measured from the line that contains the text.

Exception Condition
ArgumentOutOfRangeException

Leading, top, height, or bidiWidth is not a valid number, or height or textHeight is negative or not a valid number.

Return to top
Show: