ワークシートの移動
Contents
[
Hide
]
Aspose.Cells.GridDesktopはワークブック内でワークシートを移動する機能をサポートしています。
ワークブック内でワークシートを移動する
Aspose.Cells.GridDesktopは、Aspose.Cells.GridDesktop.WorksheetCollection.MoveTo()というメソッドを提供し、ワークシートを指定したインデックスに移動するために使用されます。ソースワークシートと宛先ワークシートのインデックス(ゼロベース)をパラメータとして取ります。基本的には、スプレッドシート内でワークシートを別の場所に移動するために使用されます。
次の例は、ワークブック内でワークシートを別の場所に移動する方法を示しています。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET | |
// Move the 2nd worksheet to 4th position. | |
gridDesktop1.Worksheets.MoveTo(1, 3); |