2.2.4.46.17 Worksheet::DetachGraph

Description

Detach any graph that is attached to a given Worksheet cell

Syntax

BOOL DetachGraph( int nRow, int nCol, BOOL bColLabel = FALSE )

Parameters

nRow
[input] row index of the cell from where the graph needs to be removed
nCol
[input] column index of the cell from where the graph needs to be removed
bColLabel
[input] when not FALSE, nRow is identified as label type.

Return

returns TRUE if successful

Examples

EX1

//Detach the graph in cell(0,0) of the active sheet.
void Worksheet_DetachGraph_Ex1()
{
    Worksheet wks = Project.ActiveLayer();
    if(!wks)
        return;
        
    int nRow = 0;
    int nCol = 0;
    if(!wks.DetachGraph(nRow, nCol))
        printf("Failed to detach graph");
}

Remark

See Also

Header to Include

origin.h