CGXFormulaSheet::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 stored:
-
0 (GX_VALUE_TEXT) specifies to store the style into the cells-array 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 the value into the formula engine and attaches additional formatting information if any. If called with nType = GX_VALUE_EXPRESSION the style value will be interpreted (by calling SetExpressionRowCol). Otherwise the style value will be assigned to the cell as text label (by calling SetTextRowCol).