パブリック API Aspose.Cells 8.0.1 の変更点

Cells クラスに追加された MemorySetting プロパティ

Cells クラスには、セル データのメモリ使用量を最適化するために使用できる MemorySetting プロパティが公開されているため、全体的なメモリ コストが削減されます。次の例は、最適化モードで大きなデータをワークシートに書き込む方法を示しています。

C#

 //Instantiate a new Workbook

Workbook book = new Workbook();

//Set the memory preferences

book.Settings.MemorySetting = MemorySetting.MemoryPreference;

//To change the memory setting of existing sheets, please change memory setting for them manually:

Cells cells = book.Worksheets[0].Cells;

cells.MemorySetting = MemorySetting.MemoryPreference;

//Input large dataset into the cells of the worksheet

//Your code goes here

Workbook オブジェクトによって自動的に作成された既定のシートでは、メモリ設定は機能しません。既存のシートのメモリ設定を変更するには、データ操作を実行する前にメモリ設定を手動で適用してください。