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
)

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
Return to top
Show: