共用方式為


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

Definition

Initializes a new instance of TextBounds.

public:
 TextBounds(double leading, double top, double bidiWidth, double height, double textTop, double textHeight);
public:
 TextBounds(double leading, double top, double bidiWidth, double height, double textTop, double textHeight);
 TextBounds(double leading, double top, double bidiWidth, double height, double textTop, double textHeight);
public TextBounds (double leading, double top, double bidiWidth, double height, double textTop, double textHeight);
new Microsoft.VisualStudio.Text.Formatting.TextBounds : double * double * double * double * double * double -> Microsoft.VisualStudio.Text.Formatting.TextBounds
Public Sub New (leading As Double, top As Double, bidiWidth As Double, height As Double, textTop As Double, textHeight As Double)

Parameters

leading
Double

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

top
Double

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

bidiWidth
Double

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

height
Double

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

textTop
Double

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

textHeight
Double

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

Exceptions

leading or bidiWidth is not a valid number, or height is negative or not a valid number.

Applies to