SelectionBorderPen: IGxPenBase;
SelectionBorderPen: Prognoz.Platform.Interop.Drawing.IGxPenBase;
The SelectionBorderPen property determines selection border parameters.
To determine whether the mouse click is used to select parent elements, use the IVZTreeMap.UseSelectOnClick property.
Executing the example requires that the repository contains an express report with the EXPRESS identifier. Displaying of the Tree Map visualizer is set up in the express report.
Add links to the Metabase, Express, Visualizators, Drawing system assemblies.
Sub UserProc;
Var
MB: IMetabase;
EaxAnalyzer: IEaxAnalyzer;
TreeMap: IVZTreeMap;
Begin
MB := MetabaseClass.Active;
EaxAnalyzer := MB.ItemById("EXPRESS").Edit As IEaxAnalyzer;
TreeMap := EaxAnalyzer.TreeMap.TreeMap;
TreeMap.UseSelectOnClick := True;
// Set parameters of selection border
TreeMap.SelectionBorderPen.Color := New GxColor.CreateRGB(65, 105, 225);
// Save express report
(EaxAnalyzer As IMetabaseObject).Save;
End Sub UserProc;
After executing the example
The requirements and result of the Fore.NET example execution match with those in the Fore example.
Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.Visualizators;
Imports Prognoz.Platform.Interop.Drawing;
…
Public Shared Sub Main(Params: StartParams);
Var
MB: IMetabase;
EaxAnalyzer: IEaxAnalyzer;
TreeMap: IVZTreeMap;
Color: GxColor;
Begin
MB := Params.Metabase;
EaxAnalyzer := MB.ItemById["EXPRESS"].Edit() As IEaxAnalyzer;
TreeMap := EaxAnalyzer.TreeMap.TreeMap;
TreeMap.UseSelectOnClick := True;
// Set parameters of selection border
Color := New GxColor();
Color.CreateRGB(65, 105, 225);
TreeMap.SelectionBorderPen.Color := Color;
// Save express report
(EaxAnalyzer As IMetabaseObject).Save();
End Sub;
See also: