IContentHost.GetRectangles(ContentElement) 方法

定义

返回子元素的边框集合。

public:
 System::Collections::ObjectModel::ReadOnlyCollection<System::Windows::Rect> ^ GetRectangles(System::Windows::ContentElement ^ child);
public System.Collections.ObjectModel.ReadOnlyCollection<System.Windows.Rect> GetRectangles(System.Windows.ContentElement child);
abstract member GetRectangles : System.Windows.ContentElement -> System.Collections.ObjectModel.ReadOnlyCollection<System.Windows.Rect>
Public Function GetRectangles (child As ContentElement) As ReadOnlyCollection(Of Rect)

参数

child
ContentElement

返回边界矩形的子元素。

返回

子元素的边界矩形的集合。

例外

如果 子级 为 null。

如果该元素不是直接后代(即元素必须是该元素的 IContentHost 子级,或者是 ContentElement 该元素的 IContentHost直接后代)。

适用于