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


ActualHeight (UIElement)

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

Gets the rendered height of an object.

value = object.ActualHeight

Property Value

Type: Double

The rendered height of the object.

This property is read-only.

Managed Equivalent

FrameworkElement.ActualHeight

Remarks

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

ActualHeight is also available as a property of RowDefinition.

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