Class OleObject
Represents an OLE Object on a sheet.
Inheritance
System.Object
OleObject
Assembly: DRIT.Spreadsheet.dll
Syntax
public class OleObject : object, IWorksheetDrawingObject, ISheetDrawingObject, IDrawingObject
Properties
AnchoredCell
Declaration
public Cell AnchoredCell { get; set; }
Property Value
AutoLoad
Gets or sets whether the host application for the embedded object shall be called to load the object data automatically when the parent workbook is opened.
Declaration
public bool AutoLoad { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
AutoUpdate
Indicates whether the linked object updates the cached data automatically or only when the container requests an update, only present if the embedded object is linked.
Declaration
public bool AutoUpdate { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
BottomRightCell
Declaration
public Cell BottomRightCell { get; }
Property Value
DisplayAsIcon
Gets or sets whether the OLE Object is displayed as an icon.
Declaration
public bool DisplayAsIcon { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
FileName
Declaration
public string FileName { get; }
Property Value
| Type |
Description |
| System.String |
|
ImagePath
Declaration
public string ImagePath { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Link
Declaration
public string Link { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Name
Gets ors sets the name of the OLE object.
Declaration
public string Name { get; set; }
Property Value
| Type |
Description |
| System.String |
|
ParentGroup
Declaration
public GroupShape ParentGroup { get; }
Property Value
Position
Gets the position of the OLE object relative to its anchor.
Declaration
public Position Position { get; }
Property Value
Positioning
Gets or sets how the OLE object is positioned within a sheet.
Declaration
public AnchorProperties Positioning { get; set; }
Property Value
ProgID
Gets or sets the ProgID of the embedded object.
Declaration
public string ProgID { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Size
Gets the Size of the OLE object.
Declaration
public Size Size { get; }
Property Value
Type
Gets or sets the type of the OLE object.
Declaration
public OleObjectType Type { get; set; }
Property Value
Worksheet
Gets the sheet which contains the OLE object.
Declaration
public Worksheet Worksheet { get; }
Property Value
Methods
GetBytes()
Gets the binary content of the embedded or linked OLE object
Declaration
Returns
| Type |
Description |
| System.Byte[] |
|
GetImageBytes()
Declaration
public byte[] GetImageBytes()
Returns
| Type |
Description |
| System.Byte[] |
|
SaveAs(String)
Declaration
public void SaveAs(string path)
Parameters
| Type |
Name |
Description |
| System.String |
path |
|
SaveImageAs(String)
Declaration
public void SaveImageAs(string path)
Parameters
| Type |
Name |
Description |
| System.String |
path |
|
Explicit Interface Implementations
ISheetDrawingObject.Sheet
Declaration
Sheet ISheetDrawingObject.Sheet { get; }
Returns
Implements