Ruft das Layout für das Hintergrundbild wie in der eImageLayout-Enumeration definiert ab oder legt dieses fest.

C# | Visual Basic | Visual C++ |
public eImageLayout BackgroundImageLayout{ get; set;}
Public Property BackgroundImageLayout As eImageLayout
public: property eImageLayout BackgroundImageLayout { eImageLayout get (); void set (eImageLayout value); }

Einer der Werte von ImageLayout (Center, None, Stretch, Tile oder Zoom). None ist der Standardwert.

Geben Sie mithilfe der BackgroundImageLayout-Eigenschaft die Position und das Verhalten eines
Hintergrundbilds an, das Sie im Grid abgelegt haben. BackgroundImageLayout wird erst wirksam,
wenn Sie einen Wert für die BackgroundImage -Eigenschaft festgelegt haben.


... grid = new Grid(); grid.BackgroundImage = Image.FromFile(...); // Hintergrundbild laden grid.BackgroundImageLayout = eImageLayout.Zoom; // Layout 'Zoom' setzen ...
