DisplayBorder: Boolean;
DisplayBorder: System.Boolean;
The DisplayRegion property determines whether the borders of data labels are shown.
If this property is set to True, the label border is displayed; if this property is set to False, the label border is not displayed.
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;
Begin
Chart := (PrxReport.ActiveReport.ActiveSheet As IPrxTable).TabSheet.Objects.Item(0).Extension As IChart;
Chart.Series.DisplayLabels := True;
Chart.Series.DefaultLabel.DisplayShadow := True;
Chart.Series.DefaultLabel.DisplayBorder := False;
End Sub UserProc;
After executing the example, the label is displayed with a shadow, and the label borders are not displayed.
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;
Begin
Chart := (Report.ActiveSheet As IPrxTable).TabSheet.Objects.Item[0].Extension As IChart;
Chart.Series.DisplayLabels := True;
Chart.Series.DefaultLabel.DisplayShadow : =True;
Chart.Series.DefaultLabel.DisplayBorder := False;
End Sub OnBeforeOpenReport;
After executing the example, the label is displayed with a shadow, and the label borders are not displayed.
See also: