2.2.4.22.2 Grid::CanDelete

Description

Based on the current selection, it determines whether it is possible to delete if entire rows or columns are selected.

Syntax

BOOL CanDelete( )

Parameters

Return

TRUE if entire rows or columns are selected else FALSE.

Examples

EX1

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

Remark

See Also

Grid::Delete

Header to Include

origin.h