BackgroundPicture: IGxImage;
BackgroundPicture: Prognoz.Platform.Interop.Drawing.GxImage;
The BackgroundPicture property determines a background image of the entire table.
Table background image is located in the very far part of the background. The background determined for the cells (ITabCellStyle.BackgroundBrush / ITabCellStyle.BackgroundPicture) will overlap the table background.
To execute the example a form with the Button1 button placed on it, the TabSheetBox component named TabSheetBox1 and a data source for TabSheetBox1 are required. Add links to the Drawing, Tab system assemblies.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
TSheet: ITabSheet;
Begin
TSheet := TabSheetBox1.Source.GetTabSheet;
TSheet.BackgroundPicture := GxImage.FromFile("C:\Background.png");
End Sub Button1OnClick;
Clicking the button sets the image loaded from the specified file as a background for the entire table.
The requirements and result of the Fore.NET Example execution match with those in the Fore Example. Use Fore.NET analogs instead of Fore components.
Imports Prognoz.Platform.Interop.Drawing;
Imports Prognoz.Platform.Interop.Tab;
Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
TSheet: TabSheet;
GxImgCls: GxImageClass = New GxImageClassClass();
Begin
TSheet := TabSheetBoxNet1.Source.GetTabSheet();
TSheet.BackgroundPicture := GxImgCls.FromFile("C:\Background.png");
End Sub;
See also: