Skip to main content

ApiListObject

Represents the ApiListObject class.

note

This functionality is available in paid ONLYOFFICE Docs editions.

Properties

NameTypeDescription
ActivebooleanIndicates whether the active cell is within the table range.
AlternativeTextstringReturns or sets the alternative text for the table.
AutoFilterApiAutoFilter | nullReturns the AutoFilter object for the table, or null.
CommentstringReturns or sets the comment (summary alternative text) for the table.
DataBodyRangeApiRange | nullReturns the range of the data rows.
DisplayNamestringReturns or sets the display name of the table.
HeaderRowRangeApiRange | nullReturns the range of the header row.
NamestringReturns or sets the display name of the table.
ParentApiWorksheetReturns the parent worksheet.
RangeApiRange | nullReturns the range of the table.
ShowAutoFilterbooleanReturns or sets whether the AutoFilter is present.
ShowAutoFilterDropDownbooleanReturns or sets whether the AutoFilter dropdown arrows are shown.
ShowHeadersbooleanReturns or sets whether the header row is displayed.
ShowTableStyleColumnStripesbooleanReturns or sets whether column stripes are applied.
ShowTableStyleFirstColumnbooleanReturns or sets whether the first column style is applied.
ShowTableStyleLastColumnbooleanReturns or sets whether the last column style is applied.
ShowTableStyleRowStripesbooleanReturns or sets whether row stripes are applied.
ShowTotalsbooleanReturns or sets whether the totals row is displayed.
SortApiSortReturns the Sort object associated with the table.
SourceTypeXlListObjectSourceTypeReturns the data source type of the table.
SummarystringReturns or sets the description of the table.
TableStylestringReturns or sets the name of the table style.
TotalsRowRangeApiRange | nullReturns the range of the totals row; null if not shown.

Methods

MethodReturnsDescription
AddListColumnApiListColumn | nullAdds a new column to the table at the specified 1-based position.
AddListRowApiListRow | nullAdds a new data row to the table at the specified 1-based position.
DeleteNoneDeletes the ListObject object and clears the cell formatting.
GetActivebooleanReturns a Boolean value that indicates whether the ListObject is active,
GetAlternativeTextstringReturns the alternative text for the table.
GetAutoFilterApiAutoFilter | nullReturns the ApiAutoFilter object representing the autofilter applied to the table.
GetCommentstringReturns the comment (summary alternative text) for the table.
GetDataBodyRangeApiRange | nullReturns the range of the data rows in the table, excluding the header row and totals row.
GetDisplayNamestringReturns the display name of the table.
GetHeaderRowRangeApiRange | nullReturns the range of the header row of the table.
GetListColumnsApiListColumn[]Returns an array of all columns in the table.
GetListRowsApiListRow[]Returns an array of all data rows in the table, excluding the header and totals rows.
GetNamestringReturns the display name of the table.
GetParentApiWorksheetReturns the ApiWorksheet object that is the parent of the table.
GetRangeApiRange | nullReturns the ApiRange object that represents the range of the table.
GetShowAutoFilterbooleanReturns whether the AutoFilter dropdown buttons are displayed on the header row of the table.
GetShowAutoFilterDropDownbooleanReturns whether the AutoFilter dropdown arrows are displayed on the header row of the table.
GetShowHeadersbooleanReturns whether the header row is displayed for the table.
GetShowTableStyleColumnStripesbooleanReturns whether banded column formatting is applied to the table.
GetShowTableStyleFirstColumnbooleanReturns whether the first column formatting is applied to the table.
GetShowTableStyleLastColumnbooleanReturns whether the last column formatting is applied to the table.
GetShowTableStyleRowStripesbooleanReturns whether banded row formatting is applied to the table.
GetShowTotalsbooleanReturns whether the totals row is displayed for the table.
GetSortApiSortReturns the Sort object for this list object.
GetSourceTypestringReturns the source type of the table. Always returns "xlSrcRange" for range-based tables.
GetSummarystringReturns the summary description (alternative text summary) for the table.
GetTableStylestringReturns the name of the table style applied to the table.
GetTotalsRowRangeApiRange | nullReturns the range of the totals row of the table.
ResizeNoneResizes the ListObject to a new range. Cells are not inserted or moved.
SetAlternativeTextNoneSets the alternative text for the table.
SetCommentNoneSets the comment (summary alternative text) for the table.
SetDisplayNamebooleanSets the display name of the table.
SetNamebooleanSets the name of the table. Equivalent to SetDisplayName.
SetShowAutoFilterNoneSets whether the AutoFilter is present on the table.
SetShowAutoFilterDropDownNoneSets whether the AutoFilter dropdown arrows are displayed on the header row of the table.
SetShowHeadersNoneSets whether the header row is displayed for the table.
SetShowTableStyleColumnStripesNoneSets whether banded column formatting is applied to the table.
SetShowTableStyleFirstColumnNoneSets whether the first column formatting is applied to the table.
SetShowTableStyleLastColumnNoneSets whether the last column formatting is applied to the table.
SetShowTableStyleRowStripesNoneSets whether banded row formatting is applied to the table.
SetShowTotalsNoneSets whether the totals row is displayed for the table.
SetSummaryNoneSets the summary description (alternative text summary) for the table.
SetTableStyleNoneSets the table style by name.
UnlistNoneRemoves the list functionality from the ListObject and converts it to a regular data range.