Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Window.DisplayGridlines Property 

True if gridlines are displayed.

Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in microsoft.office.interop.excel.dll)

Dim window1 As Window

Dim returnValue As Boolean
returnValue = window1.DisplayGridlines

Dim sampleValue As Boolean
window1.DisplayGridlines = sampleValue

bool DisplayGridlines {get; set;}
public boolean get_DisplayGridlines();
public void set_DisplayGridlines(boolean);
function get DisplayGridlines() : Boolean;
function set DisplayGridlines(Boolean);

This property applies only to worksheets and macro sheets.

This property affects only displayed gridlines. Use the PrintGridlines property to control the printing of gridlines.

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

Community Additions

© 2015 Microsoft