TextBox.BaselineOffset Property

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

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

Syntax

'Declaration
Public ReadOnly Property BaselineOffset As Double
public double BaselineOffset { get; }

Property Value

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

Remarks

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

Version Information

Silverlight

Supported in: 5, 4

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.