Share via


LineStackingStrategy

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

Gets or sets the mechanism by which a line box is determined for each line of text in a TextBlock object.

<TextBlock LineStackingStrategy="MaxHeight"/>
- or -
<TextBlock LineStackingStrategy="BlockLineHeight"/>
value = object.LineStackingStrategy
object.LineStackingStrategy = value

Property Value

Type: Enumeration

The value is one of the following:

  • MaxHeight. The stack height is based on calculating the height of the tallest line. This is the default.

  • BlockLineHeight. The stack height is determined by the block-element line height.

This property is read/write.

Managed Equivalent

LineStackingStrategy

Applies To

TextBlock

Version Information

Silverlight 2