Skip to main content
A newer version of this page is available. .
All docs
V21.2
.NET Framework 4.5.2+

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.v21.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.

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