IColumnManager::SetColumns method

Sets the collection of columns for the view to display.

Syntax


HRESULT SetColumns(
  [in]  const PROPERTYKEY *rgkeyOrder,
  [in]  UINT cVisible
);

Parameters

rgkeyOrder [in]

Type: const PROPERTYKEY*

A pointer to an array of PROPERTYKEY structures that specify the columns to display.

cVisible [in]

Type: UINT

The size of the rgkeyOrder array.

Return value

Type: HRESULT

Returns one of the following values:

Return codeDescription
S_OK

Collection set.

failure

Collection not set.

 

Remarks

Note  IColumnManager::SetColumns clears the state of all columns, so IColumnManager::SetColumnInfo must be called afterward to set the state of individual columns.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Shobjidl.h

IDL

Shobjidl.idl

DLL

Shell32.dll (version 5.0 or later)

 

 

Community Additions

ADD
Show:
© 2014 Microsoft