Skip to main content
All docs
.NET Framework 4.5.2+

NestedShapeCollection.AddOleObjectAsIcon(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 icon.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v22.2.Core.dll

NuGet Package: DevExpress.RichEdit.Core


NestedShape AddOleObjectAsIcon(
    Stream stream,
    string progId,
    DocumentImageSource icon,
    RectangleF bounds


Name Type Description
stream Stream

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.

icon DocumentImageSource

An object used to load the icon for the OLE object.

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.


Type Description

The OLE object in the group or drawing canvas.

See Also