XlTableReference(IXlTable, String, String, XlTablePart) Constructor
Initializes a new instance of the XlTableReference class with the specified settings.
Namespace: DevExpress.Export.Xl
Assembly: DevExpress.Printing.v24.2.Core.dll
NuGet Package: DevExpress.Printing.Core
#Declaration
public XlTableReference(
IXlTable table,
string firstColumnName,
string lastColumnName,
XlTablePart part
)
#Parameters
Name | Type | Description |
---|---|---|
table | IXl |
An IXl |
first |
String | A string that is the name of the column specifying the left bound of the referenced range. This value is assigned to the Xl |
last |
String | A string that is the name of the column specifying the right bound of the referenced range. This value is assigned to the Xl |
part | Xl |
An Xl |
#Remarks
Use this constructor to create a reference to a specific portion of the table between two columns, including these columns.
For example, the following code creates a reference to the totals of the “Q1” through “Q4” columns, which is the cell range B6:E6 (see the image below the code snippet).