Cells.UnhideRow

Cells.UnhideRow method

Unhides a row.

public void UnhideRow(int row, double height)
ParameterTypeDescription
rowInt32Row index.
heightDoubleRow height. The row’s height will be changed only when the row is hidden and given height value is positive.

Examples

using System;
using Aspose.Cells;

namespace AsposeCellsExamples
{
    public class CellsMethodUnhideRowWithInt32DoubleDemo
    {
        public static void Run()
        {
            // Create a new workbook
            Workbook workbook = new Workbook();
            
            // Access the first worksheet
            Worksheet worksheet = workbook.Worksheets[0];
            
            // Hide row 5
            worksheet.Cells.HideRow(5);
            
            // Unhide row 5 with a height of 12.75
            worksheet.Cells.UnhideRow(5, 12.75);
            
            // Save the workbook
            workbook.Save("output.xlsx");
        }
    }
}

See Also