UIElement3DAutomationPeer.GetBoundingRectangleCore 方法

定义

返回 Rect,它表示与此 UIElement3D 关联的 UIElement3DAutomationPeer 的边框。 此方法由 GetBoundingRectangle() 调用。

protected:
 override System::Windows::Rect GetBoundingRectangleCore();
protected override System.Windows.Rect GetBoundingRectangleCore ();
override this.GetBoundingRectangleCore : unit -> System.Windows.Rect
Protected Overrides Function GetBoundingRectangleCore () As Rect

返回

Rect

包含元素坐标的 Rect

注解

如果元素不是 a 和 a HwndSource PresentationSource,则此方法返回 Rect.Empty

继承自 UIElement3DAutomationPeer 通常不需要重写 GetBoundingRectangleCore的类。

UIElement3DAutomationPeer在 .NET Framework 版本 3.5 中引入。 有关详细信息,请参见版本和依赖关系

适用于