2.2.4.22.7 Grid::Delete

Description

Based on the current selection, it deletes rows or columns if entire rows or columns are selected.

Syntax

BOOL Delete( BOOL bUndo = FALSE )

Parameters

bUndo

Return

TRUE if success else FALSE.

Examples

EX1

//before running please highlight one column or one row
void Grid_Delete_ex1()
{
    Worksheet wks = Project.ActiveLayer();
    if(wks)
    {
        Grid gg;
        gg.Attach(wks);
        if(gg && gg.CanDelete())
        {
            gg.Delete();
        }        
    }
}

Remark

See Also

Grid::CanDelete

Header to Include

origin.h