IContentHost.GetRectangles(ContentElement) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回子元素的边框集合。
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直接后代)。