2.2.4.9.34 DataRange::SetMask

Description

Set data in the range maksed/unmasked.

Syntax

BOOL SetMask( BOOL bMask = TRUE, BOOL bUndo = FALSE )

Parameters

bMask
[input]true to mask range, otherwise unmask
bUndo
[input]whether the action should be undoable

Return

Examples

EX1

//Set the first column of the worksheet masked.
void DataRange_SetMask_Ex1()
{
   
    Worksheet wks;
    wks.Create("ORIGIN");
    while (wks.DeleteCol(0));
    wks.AddCol("A");
    wks.AddCol("B");
 
    double rr;
    for(int j = 0; j < 2; j++)
    {
        for (int i = 0; i < 10; i++)
        {
            rr=rnd();
            wks.SetCell(i, j, rr);
        }
    }
    
    DataRange dr;
    dr.Add("Range1", wks, 0, 0, -1, 0);
    dr.SetMask();
}

Remark

See Also

Header to Include

origin.h