Поделиться через


ActualWidth (UIElement)

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

Gets the rendered width of the object.

value = object.ActualWidth

Property Value

Type: Double

The rendered width of the object.

This property is read-only.

Managed Equivalent

FrameworkElement.ActualWidth

Remarks

ActualHeight and ActualWidth reflect the rendered height and width of the object. These properties can be different from the Height and Width properties of the TextBlock. Setting the TextWrapping property affects the ActualHeight and ActualWidth values of a TextBlock.

ActualWidth is available as a property of ColumnDefinition .

Applies To

Border (Silverlight 2)

Canvas

ColumnDefinition (Silverlight 2)

Ellipse

Glyphs

Grid (Silverlight 2)

Image

InkPresenter

Line

MediaElement

PasswordBox (Silverlight 2)

Path

Polygon

Polyline

Popup (Silverlight 2)

Rectangle

StackPanel (Silverlight 2)

TextBlock

TextBox (Silverlight 2)

See Also

Reference