PictureBox.InitialImage 属性

定义

获取或设置在加载主图像时显示在 PictureBox 控件中的图像。Gets or sets the image displayed in the PictureBox control when the main image is loading.

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

属性值

Image

在加载主图像时显示在图片框控件中的 ImageThe Image displayed in the picture box control when the main image is loading.

注解

如果未 InitialImage 指定,则显示默认图像。If no InitialImage is specified, a default image is displayed. InitialImage在的中心始终显示非拉伸的 PictureBoxThe InitialImage is always displayed non-stretched, in the center of the PictureBox.

适用于