BorderPen: IGxPen;
BorderPen: Prognoz.Platform.Interop.Drawing.GxPen;
The BordenPen property determines parameters of the data series border line.
This property is relevant for the following types of charts: area, bar, pie, mixed, and in some cases, stock charts.
Executing the example requires a form, the Button1 button located on this form, the ChartBox component and UiChart component used as a data source.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
SelectedSeries: IChartSelectedSeries;
chartPen: IGxPen;
Begin
SelectedSeries:= UiChart1.Chart.SelectedSeries;
SelectedSeries.Add (2);
chartPen := New GxPen.CreateSolid(GxColor.FromName("Green"), 1);
SelectedSeries.BorderPen := chartPen;
End Sub Button1OnClick;
Clicking Button1 highlights the data series borders with a 1-mm thick green line.
Executing the example requires a form, the Button1 button located on this form, the ChartBoxNet component and UiChartNet component used as a data source.
Imports Prognoz.Platform.Forms.Net;
Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.Chart;
Imports Prognoz.Platform.Interop.Drawing;
...
Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
SelectedSeries: IChartSelectedSeries;
color: GxColorClass_2;
chartPen: GxPenClass;
Begin
SelectedSeries:= UiChartNet1.ChartUi.Chart.SelectedSeries;
SelectedSeries.Add (2);
color := New GxColorClass_2();
color.CreateRGB(145, 120, 255);
chartPen := New GxPenClass();
chartPen.CreateSolid(Color, 3);
SelectedSeries.BorderPen := chartPen;
End Sub;
Clicking the Button1 button highlights the data series borders with a 1-mm thick color line.
See also: