Gets or sets the height of each line of content.
Assembly: PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation
[<TypeConverterAttribute(typeof(LengthConverter))>] member LineHeight : float with get, set
<object LineHeight="double"/> - or - <object LineHeight="qualifiedDouble"/> - or - <object LineHeight="Auto"/>
Property ValueType: System.Double
The height of each line in device independent pixels with a value range of 0.0034 to 160000. A value of Double.NaN (equivalent to an attribute value of "Auto") causes the line height to be determined automatically from the current font characteristics. The default is Double.NaN.
The following example shows how to set the attribute of a Block element.
The following figure shows how the previous example renders.
The following figure shows how the same example renders with the default setting of =Double.NaN.
The following example shows how to set the property programmatically.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.