Click to Rate and Give Feedback
MSDN
MSDN Library
ActualWidth Property (TextBlock)

Gets the rendered width of the TextBlock.

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

Property Value

Double

The rendered width of the TextBlock.

This property is read-only.

Remarks

ActualHeight and ActualWidth reflect 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 ActualWidth.

How TextWrapping affects ActualWidth

How TextWrapping affects ActualWidth

Applies To

TextBlock

See Also

Text and Fonts Overview
ActualHeight

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker