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.v24.1.Core.dll
NuGet Package: DevExpress.Spreadsheet.Core
Declaration
Parameters
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. |
Remarks
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.