語言

TextBlock.GetRectanglesCore(ContentElement) 方法

定義

回傳一組只讀的包圍矩形集合,定義特定 ContentElement。

protected:
 virtual System::Collections::ObjectModel::ReadOnlyCollection<System::Windows::Rect> ^ GetRectanglesCore(System::Windows::ContentElement ^ child);
protected virtual System.Collections.ObjectModel.ReadOnlyCollection<System.Windows.Rect> GetRectanglesCore(System.Windows.ContentElement child);
abstract member GetRectanglesCore : System.Windows.ContentElement -> System.Collections.ObjectModel.ReadOnlyCollection<System.Windows.Rect>
override this.GetRectanglesCore : System.Windows.ContentElement -> System.Collections.ObjectModel.ReadOnlyCollection<System.Windows.Rect>
Protected Overridable Function GetRectanglesCore (child As ContentElement) As ReadOnlyCollection(Of Rect)

參數

child
ContentElement

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

傳回

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

例外狀況

child 是 null。

備註

集合中每個邊界矩形對應於 中的一行內容 ContentElement。

適用於