corelibraries-devexpress-dot-export-dot-xl-4413d534.md
Represents a single row in a worksheet.
Namespace : DevExpress.Export.Xl
Assembly : DevExpress.Printing.v25.2.Core.dll
NuGet Package : DevExpress.Printing.Core
public interface IXlRow :
IDisposable
Public Interface IXlRow
Inherits IDisposable
The following members return IXlRow objects:
The IXlRow object specifies an individual row in a worksheet and can be created using the IXlSheet.CreateRow method. Use this object’s properties and methods to manage worksheet rows. For details, see the Rows and Columns section of examples.
Note
When you finish working with the IXlRow object, call the Dispose method to release all the resources used by the object. Otherwise, generated content is not written to the output file. You can also modify the IXlRow object within the using statement ( Using block in Visual Basic).
The example below demonstrates how to create and modify a row in a worksheet. To do this, use the IXlSheet.CreateRow method. To specify where a created row should be located in a worksheet, pass a zero-based row index to the method as a parameter.
// Create a new worksheet.
using (IXlSheet sheet = document.CreateSheet())
{
// Create the third row and set its height to 40 pixels.
using (IXlRow row = sheet.CreateRow(2))
{
row.HeightInPixels = 40;
}
}
' Create a new worksheet.
Using sheet As IXlSheet = document.CreateSheet()
' Create the third row and set its height to 40 pixels.
Using row As IXlRow = sheet.CreateRow(2)
row.HeightInPixels = 40
End Using
End Using
See Also