TextBlock.IContentHost.GetRectangles(ContentElement) 方法

定义

此方法支持 Windows Presentation Foundation (WPF) 基础结构,不应直接从代码使用。 请改用类型安全的 GetRectanglesCore(ContentElement) 方法。

 virtual System::Collections::ObjectModel::ReadOnlyCollection<System::Windows::Rect> ^ System.Windows.IContentHost.GetRectangles(System::Windows::ContentElement ^ child) = System::Windows::IContentHost::GetRectangles;
System.Collections.ObjectModel.ReadOnlyCollection<System.Windows.Rect> IContentHost.GetRectangles(System.Windows.ContentElement child);
abstract member System.Windows.IContentHost.GetRectangles : System.Windows.ContentElement -> System.Collections.ObjectModel.ReadOnlyCollection<System.Windows.Rect>
override this.System.Windows.IContentHost.GetRectangles : System.Windows.ContentElement -> System.Collections.ObjectModel.ReadOnlyCollection<System.Windows.Rect>
Function GetRectangles (child As ContentElement) As ReadOnlyCollection(Of Rect) Implements IContentHost.GetRectangles

参数

child
ContentElement

ContentElement一个要为其生成和返回边界矩形的集合。

返回

指定 ContentElement矩形的只读集合。

实现

适用于