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.
| Value | Description |
|---|---|
|
The method was successful. |
|
The method was unable to obtain a valid interface pointer to the start and/or end anchors. |
|
One or more input parameters are invalid. |
|
The application does not support embedded objects. |
|
The application does not support the data type contained in pDataObject. |
|
paStart and/or paEnd are not within the document. |
|
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 |
|
|
IDL |
|
|
DLL |
|
See also
- ITextStoreAnchor
- IDataObject
- TS_CHAR_EMBEDDED
- TS_IE_* Constants
- ITextStoreAnchor::SetText
- ITextStoreAnchor::QueryInsertEmbedded