电子表格单元格数据接口
更多...
#include <SpreadsheetCellData.hxx>
电子表格单元格数据接口
Represents a class for Spreadsheet cell data. The data type held in the cell can be obtained from the NXOpen::SpreadsheetCellData::Type . And then the value can obtained from the correct accessor. The value and type of the cell will be changed when calling the set methods. That is if a cell was a formula, but the NXOpen::SpreadsheetCellData::SetDoubleValue is called, the type will be changed as well. It should be noted the cell value on the sheet will not updated, by calling a set method on this class. The object must then be passed into the appropriate method on NXOpen::SpreadsheetManager .
Usable only on Windows
Created in NX11.0.0.
◆ Types
Data types enum
| 枚举值 |
|---|
| TypesInt | int
|
| TypesDouble | double
|
| TypesString | string
|
| TypesLogical | logical
|
| TypesFormula | formula
|
◆ ~SpreadsheetCellData()
| virtual NXOpen::SpreadsheetCellData::~SpreadsheetCellData |
( |
| ) |
|
|
virtual |
Free resources associated with the instance. After this method is called, it is illegal to use the object. In .NET, this method is automatically called when the object is deleted by the garbage collector.
Usable only on Windows
Created in NX11.0.0.
License requirements : None
◆ DoubleValue()
| double NXOpen::SpreadsheetCellData::DoubleValue |
( |
| ) |
|
Returns the double value stored in the cell.
Usable only on Windows
Created in NX11.0.0.
License requirements : None
◆ FormulaValue()
| NXString NXOpen::SpreadsheetCellData::FormulaValue |
( |
| ) |
|
Returns the formula stored in the cell.
Usable only on Windows
Created in NX11.0.0.
License requirements : None
◆ IntValue()
| int NXOpen::SpreadsheetCellData::IntValue |
( |
| ) |
|
Returns the integer value stored in the cell.
Usable only on Windows
Created in NX11.0.0.
License requirements : None
◆ LogicalValue()
| bool NXOpen::SpreadsheetCellData::LogicalValue |
( |
| ) |
|
Returns the logical value stored the cell.
Usable only on Windows
Created in NX11.0.0.
License requirements : None
◆ SetDoubleValue()
| void NXOpen::SpreadsheetCellData::SetDoubleValue |
( |
double | doubleValue | ) |
|
Sets the double value stored in the cell.
Usable only on Windows
Created in NX11.0.0.
License requirements : None
- 参数
-
◆ SetFormulaValue() [1/2]
| void NXOpen::SpreadsheetCellData::SetFormulaValue |
( |
const char * | formulaValue | ) |
|
Sets the formula stored in the cell.
Usable only on Windows
Created in NX11.0.0.
License requirements : None
- 参数
-
| formulaValue | formula value |
◆ SetFormulaValue() [2/2]
| void NXOpen::SpreadsheetCellData::SetFormulaValue |
( |
const NXString & | formulaValue | ) |
|
Sets the formula stored in the cell.
Usable only on Windows
Created in NX11.0.0.
License requirements : None
- 参数
-
| formulaValue | formula value |
◆ SetIntValue()
| void NXOpen::SpreadsheetCellData::SetIntValue |
( |
int | intValue | ) |
|
Sets the integer value stored in the cell.
Usable only on Windows
Created in NX11.0.0.
License requirements : None
- 参数
-
◆ SetLogicalValue()
| void NXOpen::SpreadsheetCellData::SetLogicalValue |
( |
bool | logicalValue | ) |
|
Sets the logical value stored the cell.
Usable only on Windows
Created in NX11.0.0.
License requirements : None
- 参数
-
| logicalValue | logical value |
◆ SetStringValue() [1/2]
| void NXOpen::SpreadsheetCellData::SetStringValue |
( |
const char * | stringValue | ) |
|
Sets the string value stored in the cell.
Usable only on Windows
Created in NX11.0.0.
License requirements : None
- 参数
-
◆ SetStringValue() [2/2]
| void NXOpen::SpreadsheetCellData::SetStringValue |
( |
const NXString & | stringValue | ) |
|
Sets the string value stored in the cell.
Usable only on Windows
Created in NX11.0.0.
License requirements : None
- 参数
-
◆ SetType()
Sets the type of data in the cell.
Usable only on Windows
Created in NX11.0.0.
License requirements : None
- 参数
-
◆ StringValue()
| NXString NXOpen::SpreadsheetCellData::StringValue |
( |
| ) |
|
Returns the string value stored in the cell.
Usable only on Windows
Created in NX11.0.0.
License requirements : None
◆ Type()
Returns the type of data in the cell.
Usable only on Windows
Created in NX11.0.0.
License requirements : None