Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 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

OleFormat.InsertType Property

Indicates whether the OLE object is embedded in the document or linked to a file.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v24.2.Core.dll

NuGet Package: DevExpress.RichEdit.Core

#Declaration

OleInsertType InsertType { get; }

#Property Value

Type Description
OleInsertType

An enumeration member that specifies how the OLE object is inserted into the document.

Available values:

Name Description
Embedded

The OLE object’s data is embedded in the document.

Linked

The OLE object is linked to a file.

#Remarks

The following example retrieves all linked objects from the document:

using System.Linq;
// ...

Document document = wordProcessor.Document;
List<DrawingObject> linkedObjects = document.Shapes.Flatten()
.Where(x => x.Type == ShapeType.OleObject && 
x.OleFormat.InsertType == OleInsertType.Linked)
.ToList();
See Also