BackgroundColor: IGxColor;
The BackgroundColor property determines workspace field color.
Executing the example requires a form with the Button1 button, the WorkspaceBox component named WorkspaceBox1 and a data source for the WorkspaceBox1.
Add links to the Andy, Drawing, Workspace system assemblies.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
ws: IWxWorkspace;
view: IWxView;
Begin
// Get workspace for editing
ws := UiWorkspace1.WxWorkspace;
view := ws.CreateView;
view := ws.Views.Item(0);
view.BackgroundColor := New GxColor.CreateRGB(0, 129, 255);
End Sub Button1OnClick;
After executing the example the color of workspace background is changed.
See also: