次の方法で共有


IAdornmentElement.Baseline Property

Gets the distance (in logical pixel)s between the top of the adornment text and the baseline of the ITextViewLine.

Namespace:  Microsoft.VisualStudio.Text.Formatting
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

Syntax

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

Property Value

Type: System.Double
The distance (in logical pixel)s between the top of the adornment text and the baseline of the ITextViewLine.

Remarks

This property should be equal to TextHeight unless you plan to draw into the space between the baseline of ITextViewLine and its TextBottom. The size of the baseline affects the amount of space reserved for text on an ITextViewLine, which is used to determine the vertical size of the caret.

.NET Framework Security

See Also

Reference

IAdornmentElement Interface

Microsoft.VisualStudio.Text.Formatting Namespace