Class CellsHelper

Class CellsHelper

Namespace: Aspose.Cells
Assembly: Aspose.Cells.dll (25.2.0)

ヘルパー関数を提供します。

public class CellsHelper

継承

objectCellsHelper

継承されたメンバー

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

プロパティ

AltStartPath

外部の数式参照によって参照される代替スタートアップパスを取得または設定します。

public static string AltStartPath { get; set; }

プロパティ値

string

CustomImplementationFactory

特別な実装を持つインスタンスを作成するためのファクトリを取得または設定します。

public static CustomImplementationFactory CustomImplementationFactory { get; set; }

プロパティ値

CustomImplementationFactory

DPI

マシンのDPIを取得します。

public static double DPI { get; set; }

プロパティ値

double

IsCloudPlatform

Azure、AWSLambdaなどのクラウドプラットフォームで実行している場合は、このプロパティをTrueに設定してください。

public static bool IsCloudPlatform { get; set; }

プロパティ値

bool

LibraryPath

外部の数式参照によって参照されるライブラリパスを取得または設定します。

public static string LibraryPath { get; set; }

プロパティ値

string

SignificantDigits

有効桁数を取得または設定します。 デフォルト値は17です。

public static int SignificantDigits { get; set; }

プロパティ値

int

備考

現在は15または17のみ可能です。

StartupPath

外部の数式参照によって参照されるスタートアップパスを取得または設定します。

public static string StartupPath { get; set; }

プロパティ値

string

メソッド

CellIndexToName(int, int)

行と列のインデックスに基づいてセル名を取得します。

public static string CellIndexToName(int row, int column)

パラメータ

row int

行インデックス。

column int

列インデックス。

戻り値

string

セルの名前。

CellNameToIndex(string, out int, out int)

セル名に基づいてセルの行と列のインデックスを取得します。

public static void CellNameToIndex(string cellName, out int row, out int column)

パラメータ

cellName string

セルの名前。

row int

出力行インデックス

column int

出力列インデックス

ColumnIndexToName(int)

列インデックスに基づいて列名を取得します。

public static string ColumnIndexToName(int column)

パラメータ

column int

列インデックス。

戻り値

string

列の名前。

ColumnNameToIndex(string)

列名に基づいて列インデックスを取得します。

public static int ColumnNameToIndex(string columnName)

パラメータ

columnName string

列名。

戻り値

int

列インデックス。

CreateSafeSheetName(string)

指定されたシート名をチェックし、必要に応じて有効な名前を作成します。 指定されたシート名がExcelシート名の規則に準拠している場合は、元の名前を返します。 そうでない場合、文字列が制限を超えると切り詰められ、不正な文字は’ ‘で置き換えられ、再構築された文字列値が返されます。

public static string CreateSafeSheetName(string nameProposal)

パラメータ

nameProposal string

使用するシート名

戻り値

string

CreateSafeSheetName(string, char)

指定されたシート名をチェックし、必要に応じて有効な名前を作成します。 指定されたシート名がExcelシート名の規則に準拠している場合は、元の名前を返します。 そうでない場合、文字列が制限を超えると切り詰められ、不正な文字は指定された文字で置き換えられ、再構築された文字列値が返されます。

public static string CreateSafeSheetName(string nameProposal, char replaceChar)

パラメータ

nameProposal string

使用するシート名

replaceChar char

指定されたシート名の不正な文字を置き換えるために使用される文字

戻り値

string

GetDateTimeFromDouble(double, bool)

ダブル値を日付時刻値に変換します。

public static DateTime GetDateTimeFromDouble(double doubleValue, bool date1904)

パラメータ

doubleValue double

ダブル値。

date1904 bool

1904年の日付システム。

戻り値

DateTime

GetDoubleFromDateTime(DateTime, bool)

日付時刻をダブル値に変換します。

public static double GetDoubleFromDateTime(DateTime dateTime, bool date1904)

パラメータ

dateTime DateTime

日付時刻。

date1904 bool

1904年の日付システム。

戻り値

double

GetTextWidth(string, Font, double)

ポイント単位でテキストの幅を取得します。

public static double GetTextWidth(string text, Font font, double scaling)

パラメータ

text string

テキスト。

font Font

テキストのフォント。

scaling double

テキストのスケーリング。

戻り値

double

GetUsedColors(Workbook)

ワークブック内で使用されているすべての色を取得します。

public static Color[] GetUsedColors(Workbook workbook)

パラメータ

workbook Workbook

ワークブックオブジェクト。

戻り値

Color[]

使用されている色。

GetVersion()

リリースバージョンを取得します。

public static string GetVersion()

戻り値

string

リリースバージョン。

InitForDotNetCore()

.NetCoreプログラムの初期化を行います。 すべての.NetCore初期化のためにこのメソッドを最初に呼び出すことをお勧めします。 例えば: CellsHelper.InitForDotNetCore(); Workbook wb = new Workbook();

public static void InitForDotNetCore()

MergeFiles(string[], string, string)

いくつかの大きなxlsファイルをxlsファイルにマージします。

public static void MergeFiles(string[] files, string cachedFile, string destFile)

パラメータ

files string[]

ファイル。

cachedFile string

キャッシュファイル。

destFile string

目的のファイル。

備考

このメソッドは、新しいファイルにデータ、スタイル、および数式をマージすることのみをサポートします。 キャッシュファイルは、一時データを保存するために使用されます。

NeedQuoteInFormula(string)

シートの名前をシングルクォートで囲む必要があるかどうかを示します。

public static bool NeedQuoteInFormula(string sheetName)

パラメータ

sheetName string

シートの名前

戻り値

bool

RowIndexToName(int)

行インデックスに基づいて行名を取得します。

public static string RowIndexToName(int row)

パラメータ

row int

行インデックス。

戻り値

string

行の名前。

RowNameToIndex(string)

行名に基づいて行インデックスを取得します。

public static int RowNameToIndex(string rowName)

パラメータ

rowName string

行名。

戻り値

int

行インデックス。

 日本語