RichTextBox.BaselineOffset Property

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.

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)

public double BaselineOffset { get; }

Property Value

Type: System.Double
The 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

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2015 Microsoft