OleFormat

Overview

OleFormat is a class in Aspose.Words FOSS for .NET.

Provides access to the data of an OLE object or ActiveX control.

This class provides 4 methods for working with OleFormat objects in .NET programs. Available methods include: GetOleEntry, GetRawData, Save. All public members are accessible to any .NET application after installing the Aspose.Words FOSS for .NET package. Properties: AutoUpdate, Clsid, IconCaption, IsLink, IsLocked, OleControl, and 7 more.

Properties

NameTypeAccessDescription
IconCaptionstringReadGets icon caption of OLE object.
SuggestedExtensionstringReadGets the file extension suggested for the current embedded object if you want to save it into a file.
SuggestedFileNamestringReadGets the file name suggested for the current embedded object if you want to save it into a file.
ProgIdstringRead/WriteGets or sets the ProgID of the OLE object.
IsLinkboolReadReturns true if the OLE object is linked (when SourceFullName is specified).
SourceFullNamestringRead/WriteGets or sets the path and name of the source file for the linked OLE object.
SourceItemstringRead/WriteGets or sets a string that is used to identify the portion of the source file that is being linked.
AutoUpdateboolRead/WriteSpecifies whether the link to the OLE object is automatically updated or not in Microsoft Word.
OleIconboolReadGets the draw aspect of the OLE object.
IsLockedboolRead/WriteSpecifies whether the link to the OLE object is locked from updates.
ClsidGuidReadGets the CLSID of the OLE object.
OlePackageOlePackageReadProvide access to OlePackage if OLE object is an OLE Package.
OleControlOleControlReadGets OleControl objects if this OLE object is an ActiveX control.

Methods

SignatureDescription
Save(stream: Stream)Calls Save(stream) on this OleFormat instance.
Save(fileName: string)Saves the data of the embedded object into a file with the specified name.
GetOleEntry(oleEntryName: string)Calls GetOleEntry(oleEntryName) on this OleFormat instance.
GetRawData()Gets OLE object raw data.

See Also