TextBlock.IContentHost.GetRectangles(ContentElement) 方法

定义

此方法支持 Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) 基础结构,不能在代码中直接使用。This method supports the Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code. 改用类型安全的 GetRectanglesCore(ContentElement) 方法。Use the type-safe GetRectanglesCore(ContentElement) method instead.

 virtual System::Collections::ObjectModel::ReadOnlyCollection<System::Windows::Rect> ^ System.Windows.IContentHost.GetRectangles(System::Windows::ContentElement ^ child) = System::Windows::IContentHost::GetRectangles;
System.Collections.ObjectModel.ReadOnlyCollection<System.Windows.Rect> IContentHost.GetRectangles (System.Windows.ContentElement child);
Function GetRectangles (child As ContentElement) As ReadOnlyCollection(Of Rect) Implements IContentHost.GetRectangles

参数

child
ContentElement

要为其生成并返回一个边框集合的 ContentElementA ContentElement for which to generate and return a collection of bounding rectangles.

返回

指定的 ContentElement 的边框的只读集合。A read-only collection of bounding rectangles for the specified ContentElement.

实现

适用于