IContentHost.GetRectangles Method (ContentElement)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: