初始化 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 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。