2.2.4.32.17 OriginObject::GetGrid

Description

Worked on grid frame window like Worksheet, MatrixLayer to set the grid related format

Syntax

void GetGrid( Grid & grid )

Parameters

grid
[output]the grid object want to return

Return

Examples

EX1

void OriginObject_GetGrid_Ex1()
{
    Worksheet wks = Project.ActiveLayer();
    if(wks)
    {        
        Grid grid;
        wks.GetGrid(grid);
        
        BOOL bVert, bHoriz;
        grid.IsGridLinesShown(&bVert, &bHoriz);
        grid.ShowGridLines(!bVert, !bHoriz);
    }
}

Remark

See Also

Header to Include

origin.h