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 | Leadingtop, height,或bidiWidth不是有效的數字,或height或textHeight是負數或不是有效的數字。 |
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。