TextBlock.IContentHost.GetRectangles(ContentElement) Method

Definition

此方法支援 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);
abstract member System.Windows.IContentHost.GetRectangles : System.Windows.ContentElement -> System.Collections.ObjectModel.ReadOnlyCollection<System.Windows.Rect>
override this.System.Windows.IContentHost.GetRectangles : System.Windows.ContentElement -> System.Collections.ObjectModel.ReadOnlyCollection<System.Windows.Rect>
Function GetRectangles (child As ContentElement) As ReadOnlyCollection(Of Rect) Implements IContentHost.GetRectangles

Parameters

child
ContentElement

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

Returns

ReadOnlyCollection<Rect>

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

Implements

Applies to