IChartLabel.BorderPen

Fore Syntax

BorderPen: IGxPen;

Fore.NET Syntax

BorderPen : Prognoz.Platform.Interop.Drawing.IGxPen;

Description

The BordenPen property determines parameters of the label border line.

Fore Example

To execute this example, create a regular report with a chart on the report sheet. A module is to be added to the report and the UserProc procedure is called from this module using the hyperlink. The inspector of module assemblies should contain references to the Chart, Report, Tab and Drawing system assemblies.

  Sub UserProc;
 Var
   Chart: IChart;
   BPen: IGxPen;
 Begin
    Chart := (PrxReport.ActiveReport.ActiveSheet As IPrxTable).TabSheet.Objects.Item(0).Extension As IChart;
    Chart.Series.DisplayLabels := True;
    BPen := New GxPen.CreateSolid(New GxColor.CreateARGB(150,0,0,150),1.01);
    Chart.Series.DefaultLabel.BorderPen := Bpen;
 End Sub UserProc;

After executing the example, the labels have the blue border.

Fore.NET Example

To execute this example, create a regular report with a chart and an external legend on the report sheet. The .NET assembly is added to the report to handle report events. The OnBeforeOpenReport event is described in the module of the specified assembly in the EventsClass class. The inspector of module assemblies should contain references to the Chart, Report, Tab and Drawing system assemblies.

  Public Override Sub OnBeforeOpenReport(Report:IPrxReport; Var Cancel:Boolean);
  Var
    Chart: IChart;
    Bpen: GxPenClass=New GxPenClass();
    ColorCl: GxColorClass_2 = New GxColorClass_2();
  Begin
    Chart := (Report.ActiveSheet As IPrxTable).TabSheet.Objects.Item[0].Extension As IChart;
    Chart.Series.DisplayLabels := True;
    ColorCl.CreateARGB(25500255);
    Bpen.CreateSolid(ColorCl,1);
    Chart.Series.DefaultLabel.BorderPen := Bpen;
  End Sub OnBeforeOpenReport;

After opening the report, the labels have the blue border.

See also:

IChartLabel