Back to Devexpress

NestedShapeCollection.AddOleObject(Stream, String, DocumentImageSource, RectangleF) Method

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-nestedshapecollection-dot-addoleobject-x28-stream-string-documentimagesource-rectanglef-x29.md

latest2.7 KB
Original Source

NestedShapeCollection.AddOleObject(Stream, String, DocumentImageSource, RectangleF) Method

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.v25.2.Core.dll

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
NestedShape AddOleObject(
    Stream stream,
    string progId,
    DocumentImageSource presentation,
    RectangleF bounds
)
vb
Function AddOleObject(
    stream As Stream,
    progId As String,
    presentation As DocumentImageSource,
    bounds As RectangleF
) As NestedShape

Parameters

NameTypeDescription
streamStream

A stream that contains data to embed in the document.

| | progId | String |

Embedded content type. You can use constant fields of the OleObjectType class to set this value.

| | presentation | DocumentImageSource |

The source for the image that displays OLE object content.

| | bounds | RectangleF |

An object that defines the object’s size and location (relative to the top left corner of the parent object). The Document.Unit property specifies measurement units.

|

Returns

TypeDescription
NestedShape

The OLE object in the group or drawing canvas.

|

See Also

NestedShapeCollection Interface

NestedShapeCollection Members

DevExpress.XtraRichEdit.API.Native Namespace