ContainerVisual::ContentBounds Property
.NET Framework (current version)
Gets the bounding box for the contents of the ContainerVisual.
Assembly: PresentationCore (in PresentationCore.dll)
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.
.NET Framework
Available since 3.0
Available since 3.0
Show: