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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.