Enum GridlineType

GridlineType enumeration

Enumerates grid line Type.

public enum GridlineType

Values

NameValueDescription
Dotted0Represents dotted line.
Hair1Represents hair line.

Examples

using System;
using Aspose.Cells;

namespace AsposeCellsExamples
{
    public class CellsClassGridlineTypeDemo
    {
        public static void Run()
        {
            // Create a new workbook
            Workbook workbook = new Workbook();
            
            // Access the first worksheet
            Worksheet worksheet = workbook.Worksheets[0];
            
            // Create save options and set gridline type
            DocxSaveOptions saveOptions = new DocxSaveOptions();
            saveOptions.GridlineType = GridlineType.Dotted;
            
            // Add some sample data to see gridlines
            worksheet.Cells["A1"].PutValue("Sample Data");
            worksheet.Cells["B2"].PutValue(123);
            worksheet.Cells["C3"].PutValue(DateTime.Now);
            
            // Save the workbook with the save options
            workbook.Save("GridlineTypeDemo.docx", saveOptions);
        }
    }
}

See Also