NestedShapeCollection.AddOleObjectAsIcon(Stream, String, Image, PointF) 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.1.Core.dll
NuGet Packages: DevExpress.RichEdit.Core, DevExpress.Win.Navigation
Declaration
[Browsable(false)]
NestedShape AddOleObjectAsIcon(
Stream stream,
string progId,
Image icon,
PointF location
)
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. |
location | PointF | An object that defines the object’s 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