ContainerVisual::ContentBounds Property

 

Gets the bounding box for the contents of the ContainerVisual.

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

public:
property Rect ContentBounds {
	Rect get();
}

Property Value

Type: System.Windows::Rect

A Rect that specifies the bounding box.

Use the DescendantBounds property to return the union of all the content bounding boxes for all of the descendants of a ContainerVisual object, but not the object itself.

The following example shows how to retrieve the bounding rectangle of a ContainerVisual object.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show: