Share via


IHTMLTable::cols Property

Sets or retrieves the number of columns in the table.

Syntax

HRESULT IHTMLTable::get_cols(long *p);
HRESULT IHTMLTable::put_cols(long v);

Parameters

  • p
    Pointer to a variable of type long that receives the number of columns.
  • v
    long that specifies the number of columns.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

Specifying this number can speed up the processing of the table.

Windows Internet Explorer 8 will only render tables up to 1000 columns. To force Internet Explorer 7 rendering mode, see How Do I Take Advantage of the New Features in Internet Explorer 8.