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

為其傳回週框的子項目。

傳回

子項目之周框 (Bounding Rectangle) 的集合。

例外狀況

如果 child 為 Null。

如果專案不是直接子代 (亦即,元素必須是 的 IContentHost 子系,或是 ContentElement) 的直接子系 IContentHost

適用於