IChartSelectedSeries.BorderPen

Fore Syntax

BorderPen: IGxPen;

Fore.NET Syntax

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

Description

The BordenPen property determines parameters of the data series border line.

Comments

This property is relevant for the following types of charts: area, bar, pie, mixed, and in some cases, stock charts.

Fore Example

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.

Fore.NET Example

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(145120255);
    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:

IChartSelectedSeries