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
| Name | Type | Access | Description |
|---|---|---|---|
IconCaption | string | Read | Gets icon caption of OLE object. |
SuggestedExtension | string | Read | Gets the file extension suggested for the current embedded object if you want to save it into a file. |
SuggestedFileName | string | Read | Gets the file name suggested for the current embedded object if you want to save it into a file. |
ProgId | string | Read/Write | Gets or sets the ProgID of the OLE object. |
IsLink | bool | Read | Returns true if the OLE object is linked (when SourceFullName is specified). |
SourceFullName | string | Read/Write | Gets or sets the path and name of the source file for the linked OLE object. |
SourceItem | string | Read/Write | Gets or sets a string that is used to identify the portion of the source file that is being linked. |
AutoUpdate | bool | Read/Write | Specifies whether the link to the OLE object is automatically updated or not in Microsoft Word. |
OleIcon | bool | Read | Gets the draw aspect of the OLE object. |
IsLocked | bool | Read/Write | Specifies whether the link to the OLE object is locked from updates. |
Clsid | Guid | Read | Gets the CLSID of the OLE object. |
OlePackage | OlePackage | Read | Provide access to OlePackage if OLE object is an OLE Package. |
OleControl | OleControl | Read | Gets OleControl objects if this OLE object is an ActiveX control. |
Methods
| Signature | Description |
|---|---|
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. |