Skip to main content
All docs
V23.2

NestedShapeCollection.AddOleObjectAsIcon(String, DocumentImageSource, RectangleF) Method

Adds a linked 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.v23.2.Core.dll

NuGet Packages: DevExpress.RichEdit.Core, DevExpress.Win.Navigation

Declaration

NestedShape AddOleObjectAsIcon(
    string fileName,
    DocumentImageSource icon,
    RectangleF bounds
)

Parameters

Name Type Description
fileName String

A path to the file associated with the OLE object.

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.

Returns

Type Description
NestedShape

The OLE object in the group or drawing canvas.

See Also