Skip to main content
All docs
V25.1
  • DevExpress v25.1 Update — Your Feedback Matters

    Our What's New in v25.1 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.AddOleObject(String, String, Image, PointF) Method

    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.v25.1.Core.dll

    NuGet Package: DevExpress.RichEdit.Core

    #Declaration

    [Browsable(false)]
    NestedShape AddOleObject(
        string fileName,
        string progId,
        Image presentation,
        PointF location
    )

    #Parameters

    Name Type Description
    fileName String

    A path to the file associated with the OLE object.

    progId String

    The file type. You can use constant fields of the OleObjectType class to set this value.

    presentation Image

    The image that displays OLE object content.

    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