Back to Devexpress

NestedShapeCollection.AddOleObjectAsIcon(Stream, String, DocumentImageSource, PointF) Method

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-nestedshapecollection-dot-addoleobjectasicon-x28-stream-string-documentimagesource-pointf-x29.md

latest2.6 KB
Original Source

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
NestedShape AddOleObjectAsIcon(
    Stream stream,
    string progId,
    DocumentImageSource icon,
    PointF location
)
vb
Function AddOleObjectAsIcon(
    stream As Stream,
    progId As String,
    icon As DocumentImageSource,
    location As PointF
) 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.

| | icon | DocumentImageSource |

An object used to load 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

TypeDescription
NestedShape

The OLE object in the group or drawing canvas.

|

See Also

NestedShapeCollection Interface

NestedShapeCollection Members

DevExpress.XtraRichEdit.API.Native Namespace