Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ActualHeight Property (TextBlock)

Gets the rendered height of the TextBlock.

XAML
Cannot be used in XAML.
Scripting
value = object.ActualHeight

Property Value

Double

The rendered height of the TextBlock.

This property is read-only.

Remarks

ActualHeight and ActualWidth specify the rendered height and width of the TextBlock. These properties can be different than the Height and Width properties of the TextBlock. Setting the TextWrapping property affects the ActualHeight and ActualWidth values of the TextBlock. The following illustration shows how the TextWrapping property affects ActualHeight; in both cases the Height was specified as 20.

How TextWrapping affects ActualHeight

How TextWrapping affects ActualHeight

Applies To

TextBlock

See Also

Text and Fonts Overview
ActualWidth

Community Additions

Show:
© 2015 Microsoft