Control.BackgroundImageLayout Control.BackgroundImageLayout Control.BackgroundImageLayout Control.BackgroundImageLayout Property

定义

获取或设置在 ImageLayout 枚举中定义的背景图像布局。Gets or sets the background image layout as defined in the ImageLayout enumeration.

public:
 virtual property System::Windows::Forms::ImageLayout BackgroundImageLayout { System::Windows::Forms::ImageLayout get(); void set(System::Windows::Forms::ImageLayout value); };
public virtual System.Windows.Forms.ImageLayout BackgroundImageLayout { get; set; }
member this.BackgroundImageLayout : System.Windows.Forms.ImageLayout with get, set
Public Overridable Property BackgroundImageLayout As ImageLayout

属性值

ImageLayout 的值(CenterNoneStretchTileZoom)之一。One of the values of ImageLayout (Center , None, Stretch, Tile, or Zoom). 默认值为 TileTile is the default value.

异常

指定的枚举值不存在。The specified enumeration value does not exist.

注解

使用BackgroundImageLayout属性指定的位置和已放置到控件上的图像的行为。Use the BackgroundImageLayout property to specify the position and behavior of an image you have placed onto a control. BackgroundImageLayout 仅当将生效BackgroundImage属性设置。BackgroundImageLayout takes effect only if the BackgroundImage property is set.

如果您设置,可以提高大型图像的性能BackgroundImageLayout到以外的其他TileYou can increase performance for large images if you set BackgroundImageLayout to something other than Tile.

适用于

另请参阅