Worksheet::RemoveEmbedding

Description

Remove embeddings at a given Worksheet cell

Syntax

BOOL RemoveEmbedding( int nRow, int nCol, BOOL bColLabel = FALSE, BOOL bUndo = TRUE )

Parameters

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

Return

returns TRUE if successful

Examples

EX1

//Remove embeddings at a given Worksheet cell. 
void Worksheet_RemoveEmbedding_Ex1()
{
    Worksheet wks = Project.ActiveLayer();
    if(!wks)
        return;
        
    int nRow = 0;
    int nCol = 0;
    if(!wks.RemoveEmbedding(nRow, nCol))
        printf("Failed to detach graph");
}

Remark

See Also

header to Include

origin.h