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)

Private Function GetRectangles (
	child As ContentElement
) As ReadOnlyCollection(Of Rect)
	Implements IContentHost.GetRectangles


Type: System.Windows.ContentElement

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

Return Value

Type: System.Collections.ObjectModel.ReadOnlyCollection(Of Rect)

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

.NET Framework
Available since 3.0
Return to top