Height (UIElement)


Gets or sets the height of an object.

<object Height="Double"  .../>
value = object.Height
object.Height = value

Type: Double

The height of the object.

This property is read/write. The default value is 0.

Many of the UIElement-derived objects are also derived from Shape. Not all the Shape classes typically use Height or Width to specify their appearance. Instead, they use specific properties that might define a set of points. In this case, a Height or Width is calculated but not typically set directly.

TextBlock is a container object that displays text within it. The size of that text can influence the size of the rendered TextBlock.

Community Additions