IHeaderCtrl::DeleteColumn

[This is preliminary documentation and subject to change.]

Removes a column from the header of the result view.

HRESULT DeleteColumn(
  int nCol  // Index of the column to be removed
);
 

Parameter

nCol
[in] Zero-based index that identifies the column to be removed.

Return Values

S_OK
The column was successfully deleted.
E_UNEXPECTED
The current result view is not the console-provided default view.
E_INVALIDARG
The nCol parameter is not a valid column index.

Remarks

If a column is removed, all columns with indexes greater than the one removed are adjusted down by one.

Notes to Callers

DeleteColumn returns E_FAIL when an item has already been inserted into the result view.

See Also

IHeaderCtrl