SelectionBorderColor: IGxColor;
The SelectionBorderColor property determines a border color of selected cells.
Add links to the Drawing, Fore, and Metabase system assemblies.
Sub UserProc;
Var
Mb: IMetabase;
SP: ISharedParams;
DB: IDefaultBehaviour;
Begin
// Current repository
Mb := MetabaseClass.Active;
SP := Mb.SpecialObject(MetabaseSpecialObject.SharedParams).Edit As ISharedParams;
// Default settings
DB := SP.DefaultBehaviour;
// Report formatting settings
DB.SelectionBorderColor := GxColor.FromKnownColor(GxKnownColor.OliveDrab);
DB.SelectionColor := New GxColor.CreateARGB(65, 50, 88, 201);
// Save changes
(SP As IMetabaseObject).Save;
End Sub UserProc;
After executing the example, report formatting will be changed in default repository settings.
See also: