NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
NXOpen::SpreadsheetCellData类 参考

电子表格单元格数据接口 更多...

#include <SpreadsheetCellData.hxx>

类 NXOpen::SpreadsheetCellData 继承关系图:
NXOpen::TransientObject

Public 类型

enum  Types {
  TypesInt , TypesDouble , TypesString , TypesLogical ,
  TypesFormula
}

Public 成员函数

double DoubleValue ()
NXString FormulaValue ()
int IntValue ()
bool LogicalValue ()
void SetDoubleValue (double doubleValue)
void SetFormulaValue (const char *formulaValue)
void SetFormulaValue (const NXString &formulaValue)
void SetIntValue (int intValue)
void SetLogicalValue (bool logicalValue)
void SetStringValue (const char *stringValue)
void SetStringValue (const NXString &stringValue)
void SetType (NXOpen::SpreadsheetCellData::Types cellType)
NXString StringValue ()
NXOpen::SpreadsheetCellData::Types Type ()
virtual ~SpreadsheetCellData ()
Public 成员函数 继承自 NXOpen::TransientObject
void * GetHandle ()

详细描述

电子表格单元格数据接口

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

参数
doubleValuedouble value

◆ 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

参数
formulaValueformula 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

参数
formulaValueformula 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

参数
intValueint value

◆ 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

参数
logicalValuelogical 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

参数
stringValuestring value

◆ 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

参数
stringValuestring value

◆ SetType()

void NXOpen::SpreadsheetCellData::SetType ( NXOpen::SpreadsheetCellData::Types cellType)

Sets the type of data in the cell.
Usable only on Windows

Created in NX11.0.0.

License requirements : None

参数
cellTypecelltype

◆ 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()

NXOpen::SpreadsheetCellData::Types NXOpen::SpreadsheetCellData::Type ( )

Returns the type of data in the cell.
Usable only on Windows

Created in NX11.0.0.

License requirements : None