共用方式為


IAdornmentElement.Baseline 屬性

取得裝飾文字頂端到的基準線之間的距離 (以邏輯像素) s ITextViewLine

命名空間:  Microsoft.VisualStudio.Text.Formatting
組件:  Microsoft.VisualStudio.Text.UI (在 Microsoft.VisualStudio.Text.UI.dll 中)

語法

'宣告
ReadOnly Property Baseline As Double
double Baseline { get; }
property double Baseline {
    double get ();
}
abstract Baseline : float with get
function get Baseline () : double

屬性值

類型:Double
裝飾文字的頂端與 ITextViewLine 的基線之間的距離 (以邏輯像素為單位)。

備註

這個屬性應該等於TextHeight除非您要繪製的空間之間的比較基準計劃ITextViewLine和它的 TextBottom。 比較基準的大小會影響保留的文字上的空間數量ITextViewLine,這用來判斷插入號的垂直大小。

.NET Framework 安全性

請參閱

參考

IAdornmentElement 介面

Microsoft.VisualStudio.Text.Formatting 命名空間