Aspose.Cells.GridDesktopを使用してExcelファイルのデータ検証を読み込む
Contents
[
Hide
]
Aspose.Cells.GridDesktopは、Excelファイル内のデータ検証を読み込んで適用することができます。ExcelファイルをGridDesktopに読み込むと、それらのExcelファイル内のデータ検証がMicrosoft Excelで行うのと同じように機能します。
Aspose.Cells.GridDesktopを使用してExcelファイル内のデータ検証を読み込む
次のサンプルコードは、GridDesktopに含まれるいくつかのデータ検証を含むサンプルExcelファイルをインポートします。
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 | |
// The path to the documents directory. | |
string dataDir = Utils.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | |
// Import sample excel file in GridDesktop | |
gridDesktop1.ImportExcelFile(dataDir + "ValidationTesting.xlsx"); |
GridDesktopでのワークシートの削除