Worksheet::DeleteRow

Description

Delete a row in the worksheet

Syntax

BOOL DeleteRow( int nPos )

Parameters

nPos
[input] Row number with zero offset

Return

TRUE if succesful; otherwise FALSE

Examples

EX1

// First worksheet in project should have 12 rows of data to see effect
int Worksheet_DeleteRow_Ex1()
{
    WorksheetPage wp = Project.WorksheetPages(0);
    if(!wp)
        return -1;
    
    Worksheet wks(wp.GetName());
    return (int)wks.DeleteRow(11);
}

Remark

Delete a row in the worksheet

See Also

Worksheet::DeleteRows, Worksheet::InsertRow, Worksheet::AppendRows

header to Include

origin.h