Stroke.GetBounds Metoda

Definicja

Pobiera pole ograniczenia dla Stroke obiektu.

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

Zwraca

Struktura Rect definiująca pole ograniczenia dla Stroke obiektu.

Przykłady

W poniższym przykładzie pokazano, jak uzyskać prostokąt granicy dla Stroke obiektu.

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

Dotyczy