
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.
Value | Description |
---|---|
|
The method was successful. |
|
One or more parameters are invalid. |
|
The application does not support embedded objects. |
|
The application does not support the data type contained in pDataObject. |
|
acpStart and/or acpEnd are not within the document. |
|
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 |
|
IDL |
|
DLL |
|
See also