Stroke.GetBounds Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Récupère le cadre englobant pour l'objet 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
Retours
Une structure Rect qui définit le cadre englobant pour l'objet Stroke.
Exemples
L’exemple suivant montre comment obtenir le rectangle de limite pour un Stroke objet .
Rect myRect = thisStroke.GetBounds();
Dim myRect As Rect = thisStroke.GetBounds()