This documentation is archived and is not being maintained.

PageSetup.PrintGridlines Property 

True if cell gridlines are printed on the page. Applies only to worksheets.

Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in

Dim pageSetup1 As PageSetup

Dim returnValue As Boolean
returnValue = pageSetup1.PrintGridlines

Dim sampleValue As Boolean
pageSetup1.PrintGridlines = sampleValue

bool PrintGridlines {get; set;}
public boolean get_PrintGridlines();
public void set_PrintGridlines(boolean);
function get PrintGridlines() : Boolean;
function set PrintGridlines(Boolean);

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms