IsGridLinesShown
Reveal if vertical (Column) or horizontal (Row) grid lines are being shown in a worksheet
BOOL IsGridLinesShown( BOOL & bShowVert, BOOL & bShowHoriz )
Function always returns TRUE.
Variables hold TRUE if visible, otherwise FALSE.
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"); } }
The function takes references to the variables that hold the state of each grid
Worksheet::ShowGridLines
origin.h