IContentHost::GetRectangles Method (ContentElement^)
.NET Framework (current version)
Returns a collection of bounding rectangles for a child element.
Assembly: PresentationCore (in PresentationCore.dll)
Parameters
- child
-
Type:
System.Windows::ContentElement^
The child element that the bounding rectangles are returned for.
Return Value
Type: System.Collections.ObjectModel::ReadOnlyCollection<Rect>^A collection of bounding rectangles for a child element.
| Exception | Condition |
|---|---|
| ArgumentNullException | If child is null. |
| ArgumentException | If the element is not a direct descendant (i.e. element must be a child of the IContentHost or a ContentElement which is a direct descendant of the IContentHost). |
.NET Framework
Available since 3.0
Available since 3.0
Show: