Export (0) Print
Expand All

ITextStoreAnchor::InsertEmbedded method

Syntax


HRESULT InsertEmbedded(
  [in]  DWORD dwFlags,
  [in]  IAnchor *paStart,
  [in]  IAnchor *paEnd,
  [in]  IDataObject *pDataObject
);

Parameters

dwFlags [in]

Must be TS_IE_CORRECTION.

paStart [in]

Pointer to the anchor at the start of the object to be inserted.

paEnd [in]

Pointer to the anchor at the end of the object to be inserted.

pDataObject [in]

Pointer to an IDataObject data object.

Return value

This method can return one of these values.

ValueDescription
S_OK

The method was successful.

E_FAIL

The method was unable to obtain a valid interface pointer to the start and/or end anchors.

E_INVALIDARG

One or more input 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

paStart and/or paEnd are not within the document.

TS_E_NOLOCK

The caller does not have a read/write lock.

 

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps | Windows Store apps]

Minimum supported server

Windows 2000 Server [desktop apps | Windows Store apps]

Redistributable

TSF 1.0 on Windows 2000 Professional

Header

Textstor.h

IDL

Textstor.idl

DLL

Msctf.dll

See also

ITextStoreAnchor
IDataObject
TS_CHAR_EMBEDDED
TS_IE_* Constants
ITextStoreAnchor::SetText
ITextStoreAnchor::QueryInsertEmbedded

 

 

Community Additions

ADD
Show:
© 2014 Microsoft