Edytuj

Udostępnij za pośrednictwem


Control.BackgroundImageLayout Property

Definition

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