編集

次の方法で共有


PictureBox.ErrorImage Property

Definition

Gets or sets the image to display when an error occurs during the image-loading process or if the image load is canceled.

public:
 property System::Drawing::Image ^ ErrorImage { System::Drawing::Image ^ get(); void set(System::Drawing::Image ^ value); };
public System.Drawing.Image ErrorImage { get; set; }
public System.Drawing.Image? ErrorImage { get; set; }
member this.ErrorImage : System.Drawing.Image with get, set
Public Property ErrorImage As Image

Property Value

An Image to display if an error occurs during the image-loading process or if the image load is canceled.

Remarks

If no ErrorImage is specified, a default error image is displayed.

Applies to