Back to Devexpress

Series.BringForward() Method

officefileapi-devexpress-dot-spreadsheet-dot-charts-dot-series-62c12999.md

latest4.8 KB
Original Source

Series.BringForward() Method

Moves the series up one in the chart view plot order.

Namespace : DevExpress.Spreadsheet.Charts

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
void BringForward()
vb
Sub BringForward

Remarks

The BringForward changes the plot order for the series within the ChartView that owns the series.

Example

View Example

csharp
Worksheet worksheet = workbook.Worksheets["chartTask3"];
workbook.Worksheets.ActiveWorksheet = worksheet;

// Create a chart and specify its location.
Chart chart = worksheet.Charts.Add(ChartType.ColumnClustered, worksheet["B2:D6"]);
chart.TopLeftCell = worksheet.Cells["H2"];
chart.BottomRightCell = worksheet.Cells["N14"];

// Change the series order.
chart.Series[1].BringForward();
vb
Dim worksheet As Worksheet = workbook.Worksheets("chartTask3")
workbook.Worksheets.ActiveWorksheet = worksheet

' Create a chart and specify its location.
Dim chart As Chart = worksheet.Charts.Add(ChartType.ColumnClustered, worksheet("B2:D6"))
chart.TopLeftCell = worksheet.Cells("H2")
chart.BottomRightCell = worksheet.Cells("N14")

' Change the series order.
chart.Series(1).BringForward()

The following code snippets (auto-collected from DevExpress Examples) contain references to the BringForward() method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-spreadsheet-chart-api/CS/SpreadsheetWPFChartAPISamples/CodeExamples/SeriesActions.cs#L38

csharp
// Change the series order.
chart.Series[1].BringForward();

winforms-spreadsheet-chart-api/CS/SpreadsheetChartAPISamples/CodeExamples/SeriesActions.cs#L38

csharp
// Change the series order.
chart.Series[1].BringForward();

spreadsheet-document-api-chart-examples/CS/SpreadsheetDocServerChartAPISamples/CodeExamples/SeriesActions.cs#L43

csharp
// Change the series order.
chart.Series[1].BringForward();

wpf-spreadsheet-chart-api/VB/SpreadsheetWPFChartAPISamples/CodeExamples/SeriesActions.vb#L42

vb
' Change the series order.
chart.Series(1).BringForward()

winforms-spreadsheet-chart-api/VB/SpreadsheetChartAPISamples/CodeExamples/SeriesActions.vb#L41

vb
' Change the series order.
chart.Series(1).BringForward()

spreadsheet-document-api-chart-examples/VB/SpreadsheetDocServerChartAPISamples/CodeExamples/SeriesActions.vb#L43

vb
' Change the series order.
            chart.Series(1).BringForward()
#End Region ' #ChangeSeriesOrder

See Also

Series Interface

Series Members

DevExpress.Spreadsheet.Charts Namespace