Språk

Stroke.GetBounds Metod

Definition

Hämtar avgränsningsrutan för Stroke objektet.

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

Returer

En Rect struktur som definierar avgränsningsrutan för Stroke objektet.

Exempel

I följande exempel visas hur du hämtar gränsrektangeln för ett Stroke objekt.

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

Gäller för