From Microsoft (http://msdn.microsoft.com/en-us/library/system.windows.controls.textblock.lineheight(VS.95).aspx)
TextBlock.LineHeight Property
Type: System.Double
The height of each line in pixels. A value of 0 indicates that the line height is determined automatically from the current font characteristics. The default is 0.
Changing this value does not change the height of the associated text. Instead, it changes the height of the line that contains the text. To change the size of the text, use the FontSize property.
The layout of lines in a TextBlock is affected by this property and by the LineStackingStrategy property. This property affects layout only when theLineStackingStrategy property is set to BlockLineHeight.
TextBlock.LineHeight Property
Type: System.Double
The height of each line in pixels. A value of 0 indicates that the line height is determined automatically from the current font characteristics. The default is 0.
The height of each line in pixels. A value of 0 indicates that the line height is determined automatically from the current font characteristics. The default is 0.
Changing this value does not change the height of the associated text. Instead, it changes the height of the line that contains the text. To change the size of the text, use the FontSize property.
The layout of lines in a TextBlock is affected by this property and by the LineStackingStrategy property. This property affects layout only when theLineStackingStrategy property is set to BlockLineHeight.
No comments:
Post a Comment