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). 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.

如果您將設定BackgroundImageLayoutTile以外的專案, 您可以提高大型影像的效能。You can increase performance for large images if you set BackgroundImageLayout to something other than Tile.

適用於

另請參閱