Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IContentHost.GetRectangles Method (ContentElement)


Returns a collection of bounding rectangles for a child element.

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

ReadOnlyCollection<Rect> GetRectangles(
	ContentElement 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

If child is null.


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
Return to top
© 2017 Microsoft