Control.BackgroundImageLayout Property


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

 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

Property Value


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. 仅当设置了 BackgroundImage 属性时,BackgroundImageLayout 才会生效。BackgroundImageLayout takes effect only if the BackgroundImage property is set.

如果将 BackgroundImageLayout 设置为 Tile以外的其他内容,则可以提高大型映像的性能。You can increase performance for large images if you set BackgroundImageLayout to something other than Tile.

Applies to

See also