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
rangeAddressstringThe range to average. / 要平均的範圍。
Returns
- OdfSpreadsheetFormula
The formula fragment. / 公式片段。
Cell(string)
Creates a cell reference. 建立儲存格參照。
public static OdfSpreadsheetFormula Cell(string address)
Parameters
addressstringThe cell address, such as
A1orSheet1.A1. / 儲存格位址,例如A1或Sheet1.A1。
Returns
- OdfSpreadsheetFormula
The formula fragment. / 公式片段。
Count(string)
Creates a COUNT formula.
建立 COUNT 公式。
public static OdfSpreadsheetFormula Count(string rangeAddress)
Parameters
rangeAddressstringThe range to count. / 要計數的範圍。
Returns
- OdfSpreadsheetFormula
The formula fragment. / 公式片段。
CountA(string)
Creates a COUNTA formula.
建立 COUNTA 公式。
public static OdfSpreadsheetFormula CountA(string rangeAddress)
Parameters
rangeAddressstringThe 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
namestringThe function name. / 函式名稱。
argumentsOdfSpreadsheetFormula[]The function arguments. / 函式引數。
Returns
- OdfSpreadsheetFormula
The formula fragment. / 公式片段。
Max(string)
Creates a MAX formula.
建立 MAX 公式。
public static OdfSpreadsheetFormula Max(string rangeAddress)
Parameters
rangeAddressstringThe range to calculate. / 要計算的範圍。
Returns
- OdfSpreadsheetFormula
The formula fragment. / 公式片段。
Min(string)
Creates a MIN formula.
建立 MIN 公式。
public static OdfSpreadsheetFormula Min(string rangeAddress)
Parameters
rangeAddressstringThe range to calculate. / 要計算的範圍。
Returns
- OdfSpreadsheetFormula
The formula fragment. / 公式片段。
Number(double)
Creates a numeric constant. 建立數值常數。
public static OdfSpreadsheetFormula Number(double value)
Parameters
valuedoubleThe numeric value. / 數值。
Returns
- OdfSpreadsheetFormula
The formula fragment. / 公式片段。
Range(string)
Creates a cell range reference. 建立儲存格範圍參照。
public static OdfSpreadsheetFormula Range(string rangeAddress)
Parameters
rangeAddressstringThe 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
expressionstringThe 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
rangeAddressstringThe range to sum. / 要加總的範圍。
Returns
- OdfSpreadsheetFormula
The formula fragment. / 公式片段。
Text(string)
Creates a text constant. 建立文字常數。
public static OdfSpreadsheetFormula Text(string value)
Parameters
valuestringThe text content. / 文字內容。
Returns
- OdfSpreadsheetFormula
The formula fragment. / 公式片段。