PictureBox.ImageLocation Propriété
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.
Obtient ou définit le chemin d’accès ou l’URL de l’image à afficher dans le PictureBox.
public:
property System::String ^ ImageLocation { System::String ^ get(); void set(System::String ^ value); };
public string ImageLocation { get; set; }
public string? ImageLocation { get; set; }
member this.ImageLocation : string with get, set
Public Property ImageLocation As String
Valeur de propriété
Chemin d’accès ou URL de l’image à afficher dans le PictureBox.
Remarques
La valeur de propriété peut être un chemin d’accès réel (par exemple, «C:\SomeFolder\SomeSubFolder\Picture.jpg»), un chemin relatif («\SomeSubFolder\Picture.jpg») ou une URL (http://contoso.com/images/Picture.jpg).
Si un chemin d’accès relatif est utilisé, il est considéré par rapport au répertoire de travail.
Un appel à la Load méthode remplace la ImageLocation propriété, en définissant ImageLocation sur la valeur d’URL spécifiée dans l’appel de méthode.