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

適用於