Freigeben über


RichTextBlock.BaselineOffset Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets a value that represents the offset in 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)

Syntax

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

Property Value

Type: System.Double
The computed baseline for the first paragraph, or 0 if the RichTextBlock is empty.

Version Information

Silverlight

Supported in: 5

Platforms

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