Windows Dev Center

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ITextStoreACP2::InsertEmbedded method

Inserts an embedded object at the specified character.

Syntax


HRESULT InsertEmbedded(
  [in]  DWORD         dwFlags,
  [in]  LONG          acpStart,
  [in]  LONG          acpEnd,
  [in]  IDataObject   *pDataObject,
  [out] TS_TEXTCHANGE *pChange
);

Parameters

dwFlags [in]

Must be TS_IE_CORRECTION.

acpStart [in]

Contains the starting character position where the object is inserted.

acpEnd [in]

Contains the ending character position where the object is inserted.

pDataObject [in]

Pointer to an IDataObject interface that contains data about the object inserted.

pChange [out]

Pointer to a TS_TEXTCHANGE structure that receives data about the modified text.

Return value

This method can return one of these values.

ValueDescription
S_OK

The method was successful.

E_INVALIDARG

One or more parameters are invalid.

E_NOTIMPL

The application does not support embedded objects.

TS_E_FORMAT

The application does not support the data type contained in pDataObject.

TS_E_INVALIDPOS

acpStart and/or acpEnd are not within the document.

TS_E_NOLOCK

The caller does not have a read/write lock.

 

Requirements

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Header

Textstor.h

IDL

Textstor.idl

DLL

Msctf.dll

See also

ITextStoreACP2
TS_TEXTCHANGE
TS_IE_* Constants
IDataObject

 

 

Community Additions

Show:
© 2015 Microsoft