語言

TextBlock.IContentHost.GetRectangles(ContentElement) 方法

定義

此方法支援 Windows Presentation Foundation(WPF)基礎架構,並非直接從您的程式碼中使用。 請改用型別安全 GetRectanglesCore(ContentElement) 方法。

 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

參數

child
ContentElement

ContentElement A 生成並回傳一組有界矩形。

傳回

一個只讀的包圍矩形集合,定義為指定 ContentElement。

實作

適用於