NestedShapeCollection.AddOleObject(Stream, String, DocumentImageSource, RectangleF) Method
In This Article
Adds an embedded OLE object to a shape group or a drawing canvas. The object is displayed in the document as an image.
Namespace: DevExpress.XtraRichEdit.API.Native
Assembly: DevExpress.RichEdit.v24.2.Core.dll
NuGet Package: DevExpress.RichEdit.Core
#Declaration
NestedShape AddOleObject(
Stream stream,
string progId,
DocumentImageSource presentation,
RectangleF bounds
)
#Parameters
Name | Type | Description |
---|---|---|
stream | Stream | A stream that contains data to embed in the document. |
prog |
String | Embedded content type. You can use constant fields of the Ole |
presentation | Document |
The source for the image that displays OLE object content. |
bounds | Rectangle |
An object that defines the object’s size and location (relative to the top left corner of the parent object). The Document. |
#Returns
Type | Description |
---|---|
Nested |
The OLE object in the group or drawing canvas. |
See Also