CGXData::StoreStyleRowCol

virtual BOOL StoreStyleRowCol(ROWCOL nRow, ROWCOL nCol, const CGXStyle* pStyle, GXModifyType mt, int nType = 0);

virtual BOOL StoreStyleRowCol(ROWCOL nRow, ROWCOL nCol, const CGXStyle& style, GXModifyType mt, int nType = 0);

nRow

Specifies the row id.

nCol

Specifies the column id.

pStyle

A pointer to the style-object to be stored.

style

A reference to the style-object to be stored.

mt

Modify-Type: gxOverride, gxApplyNew, gxCopy or gxRemove (see CGXStyle class).

nType

Specifies the type of information to be retrieved:

  • 0 (GX_VALUE_TEXT) specifies to store the style into the cells-array or with cell contents.

  • -1 (GX_VALUE_BASESTYLE) specifies to store the style into the cells-array with the base styles for rows, columns or the table.

  • 1 (GX_VALUE_EXPRESSION) indicates that the style value should be parsed and based on the contents a formula, number or text label should be assigned to the cell.

Return Value

Always TRUE.

Remarks

Stores a style into the cells-array (or formula engine). If called with nType = GX_VALUE_EXPRESSION the style value will be parsed (by calling SetExpressionRoweCol). Otherwise the style value will be assigned to the cell as text label (by calling SetTextRowCol).

Note:

If you don't want to change your existing code (and you don't need formula support at all) you can disable assigning expressions to cells by calling


   GXGetAppData()->m_nExpressionValueType = GX_VALUE_TEXT

See Also

 CGXGridCore::StoreStyleRowCol

CGXData

 Class Overview |  Class Members