Back to Devexpress

TableCollection.Add(CellRange, String, Boolean) Method

officefileapi-devexpress-dot-spreadsheet-dot-tablecollection-dot-add-x28-devexpress-dot-spreadsheet-dot-cellrange-system-dot-string-system-dot-boolean-x29.md

latest2.3 KB
Original Source

TableCollection.Add(CellRange, String, Boolean) Method

Creates a table including the specified range of cells and adds it to the collection.

Namespace : DevExpress.Spreadsheet

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
Table Add(
    CellRange range,
    string name,
    bool hasHeaders
)
vb
Function Add(
    range As CellRange,
    name As String,
    hasHeaders As Boolean
) As Table

Parameters

NameTypeDescription
rangeCellRange

A CellRange object that specifies a cell range to be included in the table.

| | name | String |

A String value that specifies the table name. This value is assigned to the Table.Name property.

| | hasHeaders | Boolean |

A Boolean value that indicates whether the top row of the specified cell range will be the table header row.

|

Returns

TypeDescription
Table

A Table object that is the newly created table with the specified name.

|

See Also

Spreadsheet Tables

TableCollection Interface

TableCollection Members

DevExpress.Spreadsheet Namespace