API Reference

Class

ExcelTable

Namespace OfficeIMO.Excel
Assembly OfficeIMO.Excel
Modifiers sealed

Lightweight object model wrapper for an Excel table.

Inheritance

  • Object
  • ExcelTable

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Methods

public ExcelTable AppendDataTable(DataTable table) #
Returns: ExcelTable

Appends rows from a data table to the Excel table.

Parameters

table System.Data.DataTable requiredposition: 0
public ExcelRange AsRange() #
Returns: ExcelRange

Returns the table as a range wrapper.

public ExcelTable ClearTotals() #
Returns: ExcelTable

Clears totals row settings from the table.

public ExcelTable SetStyle(TableStyle style, Nullable<Boolean> showFirstColumn = null, Nullable<Boolean> showLastColumn = null, Nullable<Boolean> showRowStripes = null, Nullable<Boolean> showColumnStripes = null) #
Returns: ExcelTable

Applies a built-in table style and optional style flags.

Parameters

style OfficeIMO.Excel.TableStyle requiredposition: 0
showFirstColumn System.Nullable{System.Boolean} = null optionalposition: 1
showLastColumn System.Nullable{System.Boolean} = null optionalposition: 2
showRowStripes System.Nullable{System.Boolean} = null optionalposition: 3
showColumnStripes System.Nullable{System.Boolean} = null optionalposition: 4
public ExcelTable SetTotals(IDictionary<String, TotalsRowFunctionValues> byHeader) #
Returns: ExcelTable

Applies totals row functions by header name.

Parameters

byHeader System.Collections.Generic.IDictionary{System.String,DocumentFormat.OpenXml.Spreadsheet.TotalsRowFunctionValues} requiredposition: 0
public ExcelTable SortByColumn(Int32 columnOffset, Boolean ascending = true) #
Returns: ExcelTable

Sorts table rows by a 1-based column offset.

Parameters

columnOffset System.Int32 requiredposition: 0
ascending System.Boolean = true optionalposition: 1

Properties

public ExcelSheet Sheet { get; } #

Gets the worksheet that owns the table.

public String NameOrRange { get; } #

Gets the table name, display name, or A1 range used to locate the table.

public String Range { get; } #

Gets the table range when it can be resolved.