<< Return to Main Index

< Return to Class Index

CGXWrappedGrid::SetWGRowBaseStyle

virtual BOOL SetWGRowBaseStyle(ROWCOL nFromWGRow, ROWCOL nToWGRow, const CGXStyle& style, GXModifyType mt = gxOverride, const CObArray* pCellsArray = NULL, UINT flags = GX_UPDATENOW, GXCmdType ctCmd = gxDo);

nFromWGRow

Specifies the first logical row.

nToWGRow

Specifies the last logical row.

style

A reference to a style-object which should be applied to the cells.

mt

Modify-Type: gxOverride, gxApplyNew, gxCopy or gxExclude (see the CGXStyle::ChangeStyle). If you want to remove style objects, you should pass gxRemove to mt and NULL to pStyle.

pCellsArray

An optional pointer to an array-object with the cell contents. The size of the array must be range.GetWidth( )*range.GetHeight( ) cells. If pCellsArray is NULL, pStyle must not be NULL.

flags

Specifies the update technique. See UpdateStyleRange for more information.

ctCmd

Specifies if the executed command is undone (gxUndo), redone (gxRedo), executed the first time (gxDo) or rolled back (gxRollback).

Return Value

TRUE if the command has been successfully executed; it is FALSE if the command failed or if the user aborted the operation.

Remarks

Call this method to set the base style of one or more logical columns.

This method just calls into SetStyleRange after converting the logical rows into absolute rows.

See Also

CGXWrappedGrid::SetWGColBaseStyle

CGXWrappedGrid

Class Overview | Class Members