Column::IsWriteProtected

Description

Determine if a column is write protected.

Syntax

BOOL IsWriteProtected( DWORD dwCtrl = OAM_DATA_RANGE )

Parameters

dwCtrl
[input] enumerated as OBJECTACCESSMASK

Return

TRUE if column is write protected, FALSE otherwise.

Examples

EX1

// Report write protection status of columns
void    Column_IsWriteProtected_Ex1()
{
    Worksheet    wks = Project.ActiveLayer();
    Column        col;
    BOOL        bRet;
    for( int ii = 0 ; ii < wks.GetNumCols() ; ii++ )
    {
        if( wks.Columns(ii).IsWriteProtected() )
            printf("Column %u is WRITE PROTECTED\n", ii);
        else
            printf("Column %u is NOT write protected\n", ii);
    }
}

Remark

Determine if a column is write protected.

See Also

Worksheet::IsWriteProtected

Header to Include

origin.h