BaselineOffset Property

TextBlock.BaselineOffset Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Returns a value by which each line of text is offset from a baseline.

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

public double BaselineOffset { get; }

Property Value

Type: System.Double

The amount by which each line of text is offset from the baseline, in logical pixels. NaN indicates that an optimal baseline offset is automatically calculated from the current font characteristics. The default is NaN.

The baseline is the imaginary horizontal line with which the base of each character in a line of text is aligned.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

© 2018 Microsoft