Show / Hide Table of Contents

Class OleObject

Represents an OLE Object on a sheet.

Inheritance
System.Object
OleObject
Implements
IWorksheetDrawingObject
ISheetDrawingObject
IDrawingObject
Namespace: DRIT.Spreadsheet
Assembly: DRIT.Spreadsheet.dll
Syntax
public class OleObject : object, IWorksheetDrawingObject, ISheetDrawingObject, IDrawingObject

Properties

AnchoredCell

Declaration
public Cell AnchoredCell { get; set; }
Property Value
Type Description
Cell

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
Type Description
Cell

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
Type Description
GroupShape

Position

Gets the position of the OLE object relative to its anchor.

Declaration
public Position Position { get; }
Property Value
Type Description
Position

Positioning

Gets or sets how the OLE object is positioned within a sheet.

Declaration
public AnchorProperties Positioning { get; set; }
Property Value
Type Description
AnchorProperties

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 Description
Size

Type

Gets or sets the type of the OLE object.

Declaration
public OleObjectType Type { get; set; }
Property Value
Type Description
OleObjectType

Worksheet

Gets the sheet which contains the OLE object.

Declaration
public Worksheet Worksheet { get; }
Property Value
Type Description
Worksheet

Methods

GetBytes()

Gets the binary content of the embedded or linked OLE object

Declaration
public byte[] GetBytes()
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
Type Description
Sheet

Implements

IWorksheetDrawingObject
ISheetDrawingObject
IDrawingObject
Back to top Generated by DocFX