LineStackingStrategy

Silverlight

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

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.

Silverlight 2

Community Additions

ADD
Show: