LinePen: IGxPen;
LinePen: Prognoz.Platform.Interop.Drawing.GxPen;
The LinePen property determines parameters for a line of selected chart data series. Changes in the series line are displayed only for the following chart types: line, radar, scatter, stock and mixed.
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;
pen: IGxPen;
Begin
SelectedSeries:= UiChart1.Chart.SelectedSeries;
SelectedSeries.LinePen:= New GxPen.CreateSolid(New GxColor.CreateARGB(255, 0, 0, 255), 1.00);
SelectedSeries.SelectAll(True, True);
End Sub Button1OnClick;
After executing the example, the lines of the selected data series are displayed in blue with the thickness of 1 mm.
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;
...
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.LinePen := chartPen;
After executing the example, the lines of the selected data series are displayed in purple with the thickness of 3 mm.
See also: