Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Replace
Collapse the table of content
Expand the table of content

IUICollection::Replace method

Replaces an item at the specified index of the IUICollection with another item.

Syntax


HRESULT Replace(
  [in] UINT32   indexReplaced,
  [in] IUnknown *itemReplaceWith
);

Parameters

indexReplaced [in]

Type: UINT32

The zero-based index of item to be replaced in the IUICollection.

itemReplaceWith [in]

Type: IUnknown*

Pointer to the replacement item that is added to the IUICollection.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Product

Windows UI

Header

Uiribbon.h

IDL

Uiribbon.idl

DLL

Mshtml.dll

See also

IUICollection
Gallery Sample

 

 

Community Additions

ADD
Show:
© 2015 Microsoft