2.2.4.46.54 Worksheet::IsWriteProtected

Description

Check the worksheet's selected range whether has write protected column or not.

Syntax

BOOL IsWriteProtected( int nBegin = 0, int nEnd = -1 )

Parameters

nBegin
[input] beginning of the range(0 offset). default is 0.
nEnd
[input] end of the range. if nEnd is -1 then analize to last column of worksheet.
default is -1.

Return

TRUE if there is write protected column within the range between nBegin and nEnd. FALSE otherwise

Examples

EX1

//Check if there is write protected column.
void Worksheet_IsWriteProtected_Ex1()
{
    Worksheet wks = Project.ActiveLayer();        
    if(!wks)
        return;
    
    if(wks.IsWriteProtected())
        printf("write protected column exist");
    else
        printf("no write protected column");
}

Remark

See Also

Column::IsWriteProtected

Header to Include

origin.h