IContentHost.GetRectangles Method

TextBlock.IContentHost.GetRectangles Method (ContentElement)


This method supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code. Use the type-safe GetRectanglesCore method instead.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

ReadOnlyCollection<Rect> IContentHost.GetRectangles(
	ContentElement child


Type: System.Windows.ContentElement

A ContentElement for which to generate and return a collection of bounding rectangles.

Return Value

Type: System.Collections.ObjectModel.ReadOnlyCollection<Rect>

A read-only collection of bounding rectangles for the specified ContentElement.

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft