2.2.4.46.49 Worksheet::IsGridLinesShown

Description

Reveal if vertical (Column) or horizontal (Row) grid lines are being shown in a worksheet

Syntax

BOOL IsGridLinesShown( BOOL & bShowVert, BOOL & bShowHoriz )

Parameters

bShowVert
[output] Vertical grids are shown (TRUE) or not (FALSE)
bShowHoriz
[output] Horizontal grids are shown (TRUE) or not (FALSE)

Return

Function always returns TRUE.

Variables hold TRUE if visible, otherwise FALSE.

Examples

EX1

// Print the status of worksheet grid lines
// Assume a worksheet is active
void Worksheet_IsGridLinesShown_Ex1()
{
    Worksheet wks;
    wks = Project.ActiveLayer();
    BOOL bVer, bHor;
    if ( wks )
    {
        wks.IsGridLinesShown( bVer, bHor );
        if( bVer )
            printf("Vertical grid lines are visible\n");
        else
            printf("Vertical grid lines are hidden\n");
        
        if( bHor )
            printf("Horizontal grid lines are visible\n");
        else
            printf("Horizontal grid lines are hidden\n");
    }
}

Remark

Reveal if vertical (Column) or horizontal (Row) grid lines are being shown in a worksheet

The function takes references to the variables that hold the state of each grid

See Also

Worksheet::ShowGridLines

Header to Include

origin.h