CGXFormulaSheet::GetStyleRowCol

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

nRow

Specifies the row id.

nCol

Specifies the column id.

style

A reference to a 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 retrieve the style from the cells-array with cell contents.

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

  • 1 (GX_VALUE_EXPRESSION) indicates that the style value should be the formula expression for the cell (or the cell text if the cell is not a formula cell).

Return Value

TRUE if style could be stored. FALSE if operation failed.

Remarks

Looks up a style in the formula engine. If called with nType equal to GX_VALUE_EXPRESSION the formula expression (if available) will be assigned to the style value. Otherwise the evaluated cell value (the result) will be assigned to the cell value.

See Also

 CGXGridCore::GetStyleRowCol  CGXFormulaSheet::GetExpressionRowCol  CGXFormulaSheet::GetTextRowCol

CGXFormulaSheet

 Class Overview |  Class Members