NestedShapeCollection.AddOleObject(String, String, Image, PointF) Method
In This Article
Adds a linked OLE object to a shape group or a drawing canvas. The object is displayed in the document as an image.
Namespace: DevExpress.XtraRichEdit.API.Native
Assembly: DevExpress.RichEdit.v24.2.Core.dll
NuGet Package: DevExpress.RichEdit.Core
#Declaration
[Browsable(false)]
NestedShape AddOleObject(
string fileName,
string progId,
Image presentation,
PointF location
)
#Parameters
Name | Type | Description |
---|---|---|
file |
String | A path to the file associated with the OLE object. |
prog |
String | The file type. You can use constant fields of the Ole |
presentation | Image | The image that displays OLE object content. |
location | Point |
An object that defines the object’s location (relative to the top left corner of the parent object). The Document. |
#Returns
Type | Description |
---|---|
Nested |
The OLE object in the group or drawing canvas. |
See Also