ITextRangeProvider.GetBoundingRectangles Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Retrieves a collection of bounding rectangles for each fully or partially visible line of text in a text range.

Namespace:  System.Windows.Automation.Provider
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Function GetBoundingRectangles As Double()
double[] GetBoundingRectangles()

Return Value

Type: array<System.Double[]
An array of bounding rectangles for each full or partial line of text in a text range. See Remarks.

Remarks

This method returns an empty array for a degenerate range.

This method returns an empty array for a text range that has screen coordinates that place it completely off-screen, are scrolled out of view, or are obscured by an overlapping window.

Version Information

Silverlight

Supported in: 5, 4

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.