PictureBox.ImageLocation 속성

정의

PictureBox에 표시할 이미지의 경로 또는 URL을 가져오거나 설정합니다.

public:
 property System::String ^ ImageLocation { System::String ^ get(); void set(System::String ^ value); };
public string ImageLocation { get; set; }
member this.ImageLocation : string with get, set
Public Property ImageLocation As String

속성 값

String

PictureBox에 표시할 이미지의 경로 또는 URL입니다.

설명

속성 값은 실제 경로(예: "C:\SomeFolder\SomeSubFolder\Picture.jpg"), 상대 경로("\SomeSubFolder\Picture.jpg") 또는 URL(http://contoso.com/images/Picture.jpg)일 수 있습니다.

상대 경로를 사용하는 경우 작업 디렉터리를 기준으로 고려됩니다.

메서드 호출이 Load 속성을 덮어쓰 ImageLocation 고 메서드 호출에 지정된 URL 값으로 설정합니다 ImageLocation .

적용 대상