Control.BackgroundImageLayout 屬性
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定在 ImageLayout 列舉類型中所定義的背景影像配置。
public:
virtual property System::Windows::Forms::ImageLayout BackgroundImageLayout { System::Windows::Forms::ImageLayout get(); void set(System::Windows::Forms::ImageLayout value); };
C#
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 值 (Center、None、Stretch、Tile 或 Zoom)。 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 |