Control.BackgroundImageLayout Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Property Value
One of the values of ImageLayout (Center , None, Stretch, Tile, or Zoom). Tile is the default value.
Exceptions
The specified enumeration value does not exist.
Remarks
Use the BackgroundImageLayout property to specify the position and behavior of an image you have placed onto a control. BackgroundImageLayout takes effect only if the BackgroundImage property is set.
You can increase performance for large images if you set BackgroundImageLayout to something other than Tile.
Applies to
See also
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應