Grid::ShowGridLines

Description

Set show/hide grid lines

Syntax

BOOL ShowGridLines( BOOL bVert, BOOL bShow, BOOL bUndo = FALSE )

Parameters

bVert
[input] true for vertical lines, else for horizontal lines.
bShow
[input] true to set show
bUndo
[input] true to support undo

Return

TRUE if success else FALSE.

Examples

EX1

void Grid_ShowGridLines_ex1()
{
    Worksheet wks = Project.ActiveLayer();
    if(wks)
    {
        Grid gg;
        gg.Attach(wks);
        
        BOOL bVer, bHer;
        gg.IsGridLinesShown(&bVer, &bHer);
        
        gg.ShowGridLines(true, !bVer);
        gg.ShowGridLines(false, !bHer);
    }
}

Remark

See Also

Grid::IsGridLinesShown

header to Include

origin.h