ワークシートの移動
Contents
[
Hide
]
Aspose.Cells.GridDesktop は、ワークブック内でのワークシートの移動をサポートしています。
ワークブック内でワークシートを移動する
Aspose.Cells.GridDesktop は、指定されたインデックスにワークシートを移動するために使用される Aspose.Cells.GridDesktop.WorksheetCollection.MoveTo() メソッドを提供します。ソース ワークシートとデスティネーション ワークシートのインデックス (0 から始まる) をパラメーターとして受け取ります。基本的に、ワークシートを同じスプレッドシート内の別の場所に移動するために使用されます。
次の例は、ワークシートをブック内の別の場所に移動する方法を示しています。
This file contains 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); |