<< Return to Main Index

< Return to Class Index

CGXGridCore::SetRowHeight

virtual BOOL SetRowHeight(ROWCOL nFromRow, ROWCOL nToRow, int nHeight, int* anHeightArray = NULL, UINT flags = GX_UPDATENOW, GXCmdType ctCmd = gxDo);

nFromRow

Specifies the first row.

nToRow

Specifies the last row.

nHeight

Specifies the height for all rows.

anHeightArray

An optional pointer to an array with the row-heights for the specified cells. If it is NULL, nHeight is used for all cells.

flags

Specifies the update technique. See UpdateChangedRowHeights 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

Overridable command for specifying the row-heights for specific rows in pixels.

Note that row-heights and column-widths are stored internally with logical values. Pixel values depend on the zooming-factor and the font-size of the standard-style.

Row-heights are stored with a call to StoreRowHeight for each row. The display is updated with UpdateChangedRowHeights.

The command generates a CGXSetRowHeightCmd-object with undo-information.

The user can abort the operation.

If nHeight is greater than 0 and anHeightArray is not NULL, the command fails with an assertion.

See Also

CGXGridCore::StoreRowHeight CGXGridCore::GetRowHeight CGXGridCore::UpdateChangedRowHeights CGXGridCore::LockUpdate

CGXGridCore

Class Overview | Class Members