Condividi tramite


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

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

Property Value

Type: 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