using System;
using ClosedXML.Excel;


namespace ClosedXML_Examples.Rows
{
    public class RowSettings : IXLExample
    {
        #region Variables

        // Public

        // Private


        #endregion

        #region Properties

        // Public

        // Private

        // Override


        #endregion

        #region Constructors

        // Public
        public RowSettings()
        {

        }


        // Private


        #endregion

        #region Events

        // Public

        // Private

        // Override


        #endregion

        #region Methods

        // Public
        public void Create(String filePath)
        {
            var workbook = new XLWorkbook();
            var ws = workbook.Worksheets.Add("Row Settings");

            var row1 = ws.Row(2);
            row1.Style.Fill.BackgroundColor = XLColor.Red;
            row1.Height = 30;

            var row2 = ws.Row(4);
            row2.Style.Fill.BackgroundColor = XLColor.DarkOrange;
            row2.Height = 3;

            workbook.SaveAs(filePath);
        }

        // Private

        // Override


        #endregion
    }
}
