共用方式為


TextElementAutomationPeer.GetBoundingRectangleCore 方法

定義

取得代表與此 TextElementAutomationPeer 相關聯之 TextElement 週框的 Rect。 由 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

包含項目座標的 Rect,如果項目不是 EmptyHwndSource,則為 PresentationSource

屬性

適用於

另請參閱