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.
Executing the example requires a regular report with a chart on the report sheet. A unit is added to the report and the UserProc procedure is called from this unit using the hyperlink. The inspector of unit assemblies must contain links 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.
Executing the example requires 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 unit of the specified assembly in the EventsClass class. The inspector of unit assemblies must contain links 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: