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()

適用於