TextBlock.GetRectanglesCore(ContentElement) 方法

定义

返回指定的 ContentElement 的边框的只读集合。Returns a read-only collection of bounding rectangles for a specified 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

要为其生成并返回一个边框集合的 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.

异常

childnullchild is null.

注解

集合中的每个边框对应于 ContentElement中的一条内容。Each bounding rectangle in the collection corresponds to a line of content in the ContentElement.

适用于