Control.BackgroundImageLayout 屬性

定義

取得或設定在 ImageLayout 列舉類型中所定義的背景影像配置。

C#
public virtual System.Windows.Forms.ImageLayout BackgroundImageLayout { get; set; }

屬性值

ImageLayout

其中一個 ImageLayout 值 (CenterNoneStretchTileZoom)。 Tile 為預設值。

例外狀況

指定的列舉值不存在。

備註

BackgroundImageLayout使用 屬性來指定您已放置於控制項上的影像位置和行為。 BackgroundImageLayout 只有在設定 屬性時 BackgroundImage 才會生效。

如果您設定 BackgroundImageLayout 為 以外的 Tile 專案,您可以增加大型映射的效能。

適用於

產品 版本
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8
Windows Desktop 3.0, 3.1, 5, 6, 7

另請參閱