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 de 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
Structure Rect définissant le cadre englobant de l’objet Stroke .
Exemples
L’exemple suivant montre comment obtenir le rectangle de limite d’un Stroke objet.
Rect myRect = thisStroke.GetBounds();
Dim myRect As Rect = thisStroke.GetBounds()