Skip to main content

IXlTable.GetReference(XlTablePart) Method

Returns a reference to the specified part of the table.

Namespace: DevExpress.Export.Xl

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

NuGet Package: DevExpress.Printing.Core

Declaration

XlTableReference GetReference(
    XlTablePart part
)

Parameters

Name Type Description
part XlTablePart

An XlTablePart enumeration member specifying the part of the table to which the structured reference should refer.

Returns

Type Description
XlTableReference

An XlTableReference object that specifies the created reference.

Remarks

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

For example, the following code creates a reference to the table’s data area, which is the cell range B3:F6 (see the image below the code snippet).

XlTableReference reference = table.GetReference(XlTablePart.Data);

XlExport_TableReference_TableData

See Also