IXlSheet.CreateRow() Method
Creates a new row in the worksheet and returns the IXlRow object.
Namespace: DevExpress.Export.Xl
Assembly: DevExpress.Printing.v19.1.Core.dll
Declaration
Returns
Type | Description |
---|---|
IXlRow | An IXlRow object that is the newly created row. |
Example
Note
A complete sample project is available at https://github.com/DevExpress-Examples/xl-export-api-examples-t253492
// Create a worksheet.
using (IXlSheet sheet = document.CreateSheet()) {
// Create the first row and set its height to 40 pixels.
using (IXlRow row = sheet.CreateRow()) {
row.HeightInPixels = 40;
}
// Hide the third row in the worksheet.
using (IXlRow row = sheet.CreateRow(2)) {
row.IsHidden = true;
}
}
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the CreateRow() method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
See Also