RichTextBox.BaselineOffset Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets a value that represents the offset in logical pixels from the top of the content to the baseline of the first paragraph. The baseline of the paragraph is the baseline of the first line in it.
Assembly: System.Windows (in System.Windows.dll)
Property Value
Type: System.DoubleThe computed baseline for the first paragraph, or 0 if the RichTextBox is empty.
The baseline is the imaginary horizontal line that the base of each character of text is aligned. The baseline offset is the distance from the top of the control to the baseline. When embedded elements are present, their baselines are aligned with the text baseline. The baseline for all elements is their height, except for TextBlock, TextBox and RichTextBox. As a result, embedded text elements are aligned at their bottom to the text baseline, except text controls/elements