Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

NestedShapeCollection.AddOleObjectAsIcon(Stream, String, Image, 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.v24.2.Core.dll

NuGet Package: DevExpress.RichEdit.Core

#Declaration

[Browsable(false)]
NestedShape AddOleObjectAsIcon(
    Stream stream,
    string progId,
    Image icon,
    RectangleF bounds
)

#Parameters

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 Image

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.

#Returns

Type Description
NestedShape

The OLE object in the group or drawing canvas.

See Also