TextBounds(Double, Double, Double, Double, Double, Double) 构造函数

定义

初始化 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)

参数

leading
Double

边框的前导边缘的 x 坐标。

top
Double

边界矩形上边缘的 y 坐标。

bidiWidth
Double

;边框的前导边缘和尾随边缘之间的距离。 对于从右到左的文本,此项可以为负数。

height
Double

矩形的高度。 高度必须为非负数。

textTop
Double

文本的顶部,从包含文本的行测量。

textHeight
Double

从包含文本的行度量的文本高度。

例外

leading 或不是 bidiWidth 有效的数字,或者 height 为负数或不是有效的数字。

适用于