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)

property double Baseline {
	double get();
}

Property Value

Type: System::Double

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

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.

Return to top
Show: