Skip to main content

XlTableReference(IXlTable, String, 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,
    string columnName,
    XlTablePart part
)

Parameters

Name Type Description
table IXlTable

An IXlTable object that specifies the referenced table.

columnName String

A string that is the name of the column to the specified portion of which the structured reference refers.

part XlTablePart

An XlTablePart enumeration member that specifies the part of the table column to use in the reference.

Remarks

Use this constructor to create a reference to a specific part of a table column.

For example, the following code creates a reference to the header row cell of the column”Q1”, which is the cell B1 (see the image below the code snippet).

XlTableReference reference = new XlTableReference(table, "Q1", XlTablePart.Headers);

XlExport_TableReference_ColumnHeaderCell

See Also