Control.BackgroundImageLayout 屬性

定義

取得或設定在 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). Tile 為預設值。Tile 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 設定為 Tile 以外的專案,就可以提高大型影像的效能。You can increase performance for large images if you set BackgroundImageLayout to something other than Tile.

適用於

另請參閱