Windows apps
Collapse the table of content
Expand the table of content
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.

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

 

 

Show:
© 2017 Microsoft