Skip to main content

XlTableReference(IXlTable, XlTablePart) Constructor

Initializes a new instance of the XlTableReference class with the specified settings.

Namespace: DevExpress.Export.Xl

Assembly: DevExpress.Printing.v24.1.Core.dll

NuGet Package: DevExpress.Printing.Core

Declaration

public XlTableReference(
    IXlTable table,
    XlTablePart part
)

Parameters

Name Type Description
table IXlTable

An IXlTable object that specifies the referenced table. This value is assigned to the XlTableReference.Table property.

part XlTablePart

An XlTablePart enumeration member specifying the part of the table to which the structured reference refers. This value is assigned to the XlTableReference.Part property.

Remarks

Use this constructor to create a reference to a specific portion of the table.

For example, the following code creates a reference to the cell range that contains the entire table, which is the cell range B2:F7 (see the image below the code snippet).

XlTableReference reference = new XlTableReference(table, XlTablePart.All);

XlExport_TableReference_EntireTable

See Also