Share via


PictureBox.ImageLocation Özellik

Tanım

Görüntünün içinde görüntüleneceği yolu veya URL'yi PictureBoxalır veya ayarlar.

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

Özellik Değeri

görüntünün içinde PictureBoxgörüntüleneceği yol veya URL.

Açıklamalar

Özellik değeri gerçek bir yol (örneğin, "C:\SomeFolder\SomeSubFolder\Picture.jpg"), göreli yol ("\SomeSubFolder\Picture.jpg") veya URL (http://contoso.com/images/Picture.jpg) olabilir.

Göreli yol kullanılırsa, çalışma dizinine göre kabul edilir.

yöntemine yapılan Load bir çağrı özelliğin ImageLocation üzerine yazılır ve yöntem çağrısında belirtilen URL değerine ayarlanır ImageLocation .

Şunlara uygulanır