Version

GridlineColor Property

Gets or sets the color of the gridlines on the worksheet.
Syntax
public Color GridlineColor {get; set;}

Property Value

The color of the gridlines on the worksheet.
Exceptions
ExceptionDescription
System.InvalidOperationException The workbook is using a custom palette and setting this color would cause the custom palette to use too many colors.
Remarks

If the workbook is using a standard palette, the color set may be changed if it is not in the palette. In this case, the closest color in the standard palette will be used.

Requirements

Target Platforms: Android 4.4+, iOS 8+

Development Environments: Visual Studio 2015+, Visual Studio for Mac Preview, Xamarin for Visual Studio 4.2+

See Also