diff --git a/ClosedXML/Excel/Rows/IXLRow.cs b/ClosedXML/Excel/Rows/IXLRow.cs
index 3bec732..70816fb 100644
--- a/ClosedXML/Excel/Rows/IXLRow.cs
+++ b/ClosedXML/Excel/Rows/IXLRow.cs
@@ -15,6 +15,11 @@
Double Height { get; set; }
///
+ /// Clears the height for the row and defaults it to the spreadsheet row height.
+ ///
+ void ClearHeight();
+
+ ///
/// Deletes this row and shifts the rows below this one accordingly.
///
void Delete();
diff --git a/ClosedXML/Excel/Rows/XLRow.cs b/ClosedXML/Excel/Rows/XLRow.cs
index c90d458..721e29e 100644
--- a/ClosedXML/Excel/Rows/XLRow.cs
+++ b/ClosedXML/Excel/Rows/XLRow.cs
@@ -137,6 +137,12 @@
}
}
+ public void ClearHeight()
+ {
+ Height = Worksheet.RowHeight;
+ HeightChanged = false;
+ }
+
public void Delete()
{
int rowNumber = RowNumber();
diff --git a/ClosedXML_Tests/Excel/Rows/RowTests.cs b/ClosedXML_Tests/Excel/Rows/RowTests.cs
index 08172ab..bb74d4f 100644
--- a/ClosedXML_Tests/Excel/Rows/RowTests.cs
+++ b/ClosedXML_Tests/Excel/Rows/RowTests.cs
@@ -207,6 +207,10 @@
Assert.AreEqual(20, ws.Row(4).Height);
Assert.AreEqual(25, ws.Row(5).Height);
Assert.AreEqual(35, ws.Row(6).Height);
+
+ Assert.AreEqual(20, ws.Row(3).Height);
+ ws.Row(3).ClearHeight();
+ Assert.AreEqual(ws.RowHeight, ws.Row(3).Height);
}
}