Worksheet::ShowGridLines

Description

Show or Hide the display of vertical (Column) or horizontal (Row) grid lines in a workbook

Syntax

BOOL ShowGridLines( BOOL bShowVert = TRUE, BOOL bShowHoriz = TRUE )

Parameters

bShowVert
[input] Flag to show(TRUE) or hide(FALSE) vertical grid lines in worksheet.
default is TRUE.
bShowHoriz
[input] Flag to show(TRUE) or hide(FALSE) horizontal grid lines in worksheet.
default is TRUE.

Return

Function should always return TRUE

Examples

EX1

// Toggle the state of worksheet grid lines
void Worksheet_ShowGridLines_Ex1()
{
    Worksheet wks;
    wks = Project.ActiveLayer();
    if ( wks )
    {
        BOOL bVer, bHor;
        wks.IsGridLinesShown( bVer, bHor );
        wks.ShowGridLines( !bVer, !bHor );
    }
}

Remark

Show or Hide the display of vertical (Column) or horizontal (Row) grid lines in a workbook

See Also

Worksheet::IsGridLinesShown

header to Include

origin.h