IRichEditOle::ConvertObject method

Converts an object to a new type. This call reloads the object but does not force an update; the caller must do this.

Syntax


HRESULT ConvertObject(
  LONG iob,
  REFCLSID rclsidNew,
  LPCSTR lpstrUserTypeNew
);

Parameters

iob

Type: LONG

Index of the object to convert. If this parameter is REO_IOB_SELECTION, the selected object is to be converted.

rclsidNew

Type: REFCLSID

Class identifier of the class to which the object is converted.

lpstrUserTypeNew

Type: LPCSTR

User-visible type name of the class to which the object is converted.

Return value

Type: HRESULT

Returns S_OK on success, or a failure code otherwise. E_INVALIDARG is returned if the index is invalid.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Richole.h

DLL

Msftedit.dll

See also

IRichEditOle

 

 

Community Additions

ADD
Show:
© 2015 Microsoft