名前とインデックス
Contents
[
Hide
]
行と列のインデックスから Cell の名前を取得
行と列のインデックスがあれば、セルの名前を見つけることができます。この記事では、その方法について説明します。 Aspose.Cells は、ICellsHelper.CellIndexToName_i メソッドを提供します。開発者は、行と列のインデックスを提供する場合にセルの名前を取得できます。
行と列のインデックスが 1 から始まる Microsoft Excel とは異なり、Aspose.Cells は行と列のインデックスを 0 から数え始めます。
次のサンプル コードは、ICellsHelper.CellIndexToName_i を使用して、既知の行と列のインデックスが指定されたセルの名前にアクセスする方法を示しています。コードは次の出力を生成します。
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-C | |
intrusive_ptr<ICellsHelper> cellsHelper = new ICellsHelper(); | |
String name = cellsHelper->CellIndexToName_i(3, 5); |
Cell 名前から行と列のインデックスを取得
名前からセルの行と列のインデックスを見つけることができます。この記事では、その方法について説明します。 Aspose.Cells は、開発者がセルの名前から行と列のインデックスを取得できるようにする ICellsHelper.CellNameToIndex_i メソッドを提供します。
行と列のインデックスが 1 から始まる Microsoft Excel とは異なり、Aspose.Cells は行と列のインデックスを 0 から数え始めます。
次のサンプル コードは、CellsHelper.CellNameToIndex を使用して、セルの名前から行と列のインデックスを取得する方法を示しています。コードは次の出力を生成します。
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-C | |
int row; | |
int column; | |
intrusive_ptr<ICellsHelper> cellsHelper = new ICellsHelper(); | |
cellsHelper->CellNameToIndex_i(new String("C4"), row, column); |