Control.BackgroundImageLayout Proprietà

Definizione

Ottiene o imposta il layout dell'immagine di sfondo definito nell'enumerazione ImageLayout.

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

Valore della proprietà

Uno dei valori di ImageLayout (Center, None, Stretch, Tile o Zoom). Tile è il valore predefinito.

Eccezioni

Il valore di enumerazione specificato non esiste.

Commenti

Utilizzare la BackgroundImageLayout proprietà per specificare la posizione e il comportamento di un'immagine inserita in un controllo . BackgroundImageLayout ha effetto solo se la BackgroundImage proprietà è impostata.

È possibile aumentare le prestazioni per le immagini di grandi dimensioni se si imposta su BackgroundImageLayout un valore diverso da Tile.

Si applica a

Vedi anche