VisualTreeHelper::GetContentBounds Method (Visual^)
.NET Framework 4.6 and 4.5
Returns the cached bounding box rectangle for the specified Visual.
PresentationCore (in PresentationCore.dll)
static Rect GetContentBounds(
Call the GetDescendantBounds method to return the union of all the content bounding boxes for all the descendants of a visual object, which includes the Visual itself.
The following example shows how to retrieve the bounding rectangle of a Visual object.
No code example is currently available or this language may not be supported.
Return to top
Available since 3.0