Прочетете на английски Редактиране

Споделяне чрез


Control.BackgroundImageLayout Property

Definition

Gets or sets the background image layout as defined in the ImageLayout enumeration.

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

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

Продукт Версии
.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, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

See also