语言

Stroke.GetBounds 方法

定义

检索对象的 Stroke 边界框。

public:
 virtual System::Windows::Rect GetBounds();
public virtual System.Windows.Rect GetBounds();
abstract member GetBounds : unit -> System.Windows.Rect
override this.GetBounds : unit -> System.Windows.Rect
Public Overridable Function GetBounds () As Rect

返回

定义 Rect 对象的边界框 Stroke 的结构。

示例

以下示例演示如何获取对象的边界矩形 Stroke 。

Rect myRect = thisStroke.GetBounds();
Dim myRect As Rect = thisStroke.GetBounds()

适用于