SelectionBorderColor: IGxColor;
The SelectionBorderColor property determines a border color of selected table cells.
When a color is determined for selected table cells using the GxColor.CreateARGB constructor, the specified color transparency degree is not taken into account.
To determine a fill color of selected table cells, use the ITabView.SelectionColor property.
Formatting parameters of selected table cells are set by default in repository settings on the Report Formatting tab or using the IDefaultBehaviour.SelectionBorderColor, IDefaultBehaviour.SelectionColor properties.
Executing the example requires a form with a set of components:
Button. The component implementing the button named Button1.
UiErAnalyzer. The component which is a data source for the TabSheetBox component, named UiErAnalyzer1. Select an express report with a table for the component in the Object property.
TabSheetBox. The component displaying a table named TabSheetBox1. Select the UiErAnalyzer1 data source for the component in the Source property.
Add links to the Drawing, Express, Forms, and Tab system assemblies.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Express: IEaxAnalyzer;
Grid: IEaxGrid;
Tab: ITabSheet;
TabView: ITabView;
Begin
// Get express report
UiErAnalyzer1.Active := True;
Express := UiErAnalyzer1.ErAnalyzer;
// Get table
Grid := Express.Grid;
Tab := Grid.TabSheet;
// Get table view
TabView := Tab.View;
// Set border color of selected table cells
TabView.SelectionBorderColor := New GxColor.CreateRGB(60, 170, 20);
// Set fill color of selected table cells
TabView.SelectionColor := New GxColor.CreateARGB(120, 250, 50, 5);
End Sub Button1OnClick;
Clicking the button changes formatting of selected table cells by the specified border color and fill color parameters:
See also: