.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

ChartSheet.Move(Int32) Method

Moves the chart sheet to another location within the workbook's collection of chart sheets.

Namespace: DevExpress.Spreadsheet

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


void Move(
    int position
Sub Move(
    position As Integer


Name Type Description
position Int32

An integer value specifying the zero-based destination index of the moved chart sheet. If this value is negative or exceeds the number of items within the collection, an exception occurs.


Use the Move method to relocate chart sheets within the IWorkbook.ChartSheets collection. To obtain the actual index of the chart sheet, use the ChartSheet.Index property.

You can also rearrange chart sheets within a workbook by using methods inherited from the Sheet interface: Sheet.MoveToBeginning, Sheet.MoveBefore, Sheet.MoveAfter, or Sheet.MoveToEnd.

See Also