TextBounds 构造函数

初始化 TextBounds 的新实例。

命名空间:  Microsoft.VisualStudio.Text.Formatting
程序集:  Microsoft.VisualStudio.Text.UI(在 Microsoft.VisualStudio.Text.UI.dll 中)

语法

声明
Public Sub New ( _
    leading As Double, _
    top As Double, _
    bidiWidth As Double, _
    height As Double, _
    textTop As Double, _
    textHeight As Double _
)
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
)
new : 
        leading:float * 
        top:float * 
        bidiWidth:float * 
        height:float * 
        textTop:float * 
        textHeight:float -> TextBounds
public function TextBounds(
    leading : double, 
    top : double, 
    bidiWidth : double, 
    height : double, 
    textTop : double, 
    textHeight : double
)

参数

  • leading
    类型:Double

    边框前边缘的 x 坐标位置。

  • top
    类型:Double

    边框上边缘的 y 坐标。

  • bidiWidth
    类型:Double

    限制的边框前边缘之间的距离。 对于从右到左的文本,这可能为负数。

  • height
    类型:Double

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

  • textTop
    类型:Double

    文本顶部(从包含文本的行度量)。

  • textHeight
    类型:Double

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

异常

异常 条件
ArgumentOutOfRangeException

Leading, top, height或 bidiWidth 不是有效数字时,或者 height 或 textHeight 为负或没有有效的数字。

.NET Framework 安全性

请参阅

参考

TextBounds 结构

Microsoft.VisualStudio.Text.Formatting 命名空间