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

傳回

ReadOnlyCollection<Rect>

指定之 ContentElement 的周框唯讀集合。

例外狀況

childnull

備註

集合中的每個周框都對應至 中的 ContentElement 一行內容。

適用於