Share via


TextElementAutomationPeer.GetBoundingRectangleCore 方法

定义

获取 Rect,表示与此 TextElementAutomationPeer 相关联的 TextElement 的绑定矩形。 由 GetBoundingRectangle() 调用。

protected:
 override System::Windows::Rect GetBoundingRectangleCore();
[System.Security.SecurityCritical]
[System.Security.SecurityTreatAsSafe]
protected override System.Windows.Rect GetBoundingRectangleCore ();
protected override System.Windows.Rect GetBoundingRectangleCore ();
[<System.Security.SecurityCritical>]
[<System.Security.SecurityTreatAsSafe>]
override this.GetBoundingRectangleCore : unit -> System.Windows.Rect
override this.GetBoundingRectangleCore : unit -> System.Windows.Rect
Protected Overrides Function GetBoundingRectangleCore () As Rect

返回

返回包含元素坐标的 Rect,如果元素不是 EmptyHwndSource,则返回 PresentationSource

属性

适用于

另请参阅