Table of Contents

Class Formula

Namespace
OdfKit.Spreadsheet
Assembly
OdfKit.dll

Creates spreadsheet OpenFormula formulas through strongly typed factory methods. 提供試算表 OpenFormula 公式的強型別建構入口。

public static class Formula
Inheritance
Formula
Inherited Members

Methods

Average(string)

Creates an AVERAGE formula. 建立 AVERAGE 公式。

public static OdfSpreadsheetFormula Average(string rangeAddress)

Parameters

rangeAddress string

The range to average. / 要平均的範圍。

Returns

OdfSpreadsheetFormula

The formula fragment. / 公式片段。

Cell(string)

Creates a cell reference. 建立儲存格參照。

public static OdfSpreadsheetFormula Cell(string address)

Parameters

address string

The cell address, such as A1 or Sheet1.A1. / 儲存格位址,例如 A1Sheet1.A1

Returns

OdfSpreadsheetFormula

The formula fragment. / 公式片段。

Count(string)

Creates a COUNT formula. 建立 COUNT 公式。

public static OdfSpreadsheetFormula Count(string rangeAddress)

Parameters

rangeAddress string

The range to count. / 要計數的範圍。

Returns

OdfSpreadsheetFormula

The formula fragment. / 公式片段。

CountA(string)

Creates a COUNTA formula. 建立 COUNTA 公式。

public static OdfSpreadsheetFormula CountA(string rangeAddress)

Parameters

rangeAddress string

The range to count. / 要計數的範圍。

Returns

OdfSpreadsheetFormula

The formula fragment. / 公式片段。

Function(string, params OdfSpreadsheetFormula[])

Creates a function call. 建立函式呼叫。

public static OdfSpreadsheetFormula Function(string name, params OdfSpreadsheetFormula[] arguments)

Parameters

name string

The function name. / 函式名稱。

arguments OdfSpreadsheetFormula[]

The function arguments. / 函式引數。

Returns

OdfSpreadsheetFormula

The formula fragment. / 公式片段。

Max(string)

Creates a MAX formula. 建立 MAX 公式。

public static OdfSpreadsheetFormula Max(string rangeAddress)

Parameters

rangeAddress string

The range to calculate. / 要計算的範圍。

Returns

OdfSpreadsheetFormula

The formula fragment. / 公式片段。

Min(string)

Creates a MIN formula. 建立 MIN 公式。

public static OdfSpreadsheetFormula Min(string rangeAddress)

Parameters

rangeAddress string

The range to calculate. / 要計算的範圍。

Returns

OdfSpreadsheetFormula

The formula fragment. / 公式片段。

Number(double)

Creates a numeric constant. 建立數值常數。

public static OdfSpreadsheetFormula Number(double value)

Parameters

value double

The numeric value. / 數值。

Returns

OdfSpreadsheetFormula

The formula fragment. / 公式片段。

Range(string)

Creates a cell range reference. 建立儲存格範圍參照。

public static OdfSpreadsheetFormula Range(string rangeAddress)

Parameters

rangeAddress string

The cell range, such as A1:A10. / 儲存格範圍,例如 A1:A10

Returns

OdfSpreadsheetFormula

The formula fragment. / 公式片段。

Raw(string)

Creates a raw formula fragment. 建立原始公式片段。

public static OdfSpreadsheetFormula Raw(string expression)

Parameters

expression string

The formula fragment without the of:= prefix. / 不含 of:= 前綴的公式片段。

Returns

OdfSpreadsheetFormula

The formula fragment. / 公式片段。

Sum(string)

Creates a SUM formula. 建立 SUM 公式。

public static OdfSpreadsheetFormula Sum(string rangeAddress)

Parameters

rangeAddress string

The range to sum. / 要加總的範圍。

Returns

OdfSpreadsheetFormula

The formula fragment. / 公式片段。

Text(string)

Creates a text constant. 建立文字常數。

public static OdfSpreadsheetFormula Text(string value)

Parameters

value string

The text content. / 文字內容。

Returns

OdfSpreadsheetFormula

The formula fragment. / 公式片段。