Class OleObjects
Represents the Ole objects implementation
Inheritance
System.Object
    OleObjects
  Implements
System.Collections.Generic.IList<IOleObject>
    System.Collections.Generic.ICollection<IOleObject>
    System.Collections.Generic.IEnumerable<IOleObject>
    System.Collections.IEnumerable
  Namespace: Syncfusion.XlsIO.Implementation
Assembly: Syncfusion.XlsIO.UWP.dll
Syntax
public class OleObjects : List<IOleObject>, IOleObjects, IList<IOleObject>, ICollection<IOleObject>, IEnumerable<IOleObject>, IEnumerable
  Constructors
OleObjects(WorksheetImpl)
Initializes new instance of the collection.
Declaration
public OleObjects(WorksheetImpl sheet)
  Parameters
| Type | Name | Description | 
|---|---|---|
| WorksheetImpl | sheet | Parent worksheet.  | 
      
Methods
Add(Stream, Image, OleObjectType)
Adds the OLE object to the oleobjects collection
Declaration
public IOleObject Add(Stream oleStream, Image image, OleObjectType type)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.IO.Stream | oleStream | The System.IO.Stream represents the OLE file stream.  | 
      
| Image | image | The instance for the OLE image.  | 
      
| OleObjectType | type | Type of OLE object.  | 
      
Returns
| Type | Description | 
|---|---|
| IOleObject | newly created OLE object.  | 
      
Add(Stream, Image, String)
Adds the OLE object to the oleobjects collection, only for object type as package
Declaration
public IOleObject Add(Stream oleStream, Image image, string fileExtension)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.IO.Stream | oleStream | The System.IO.Stream represents the OLE file stream.  | 
      
| Image | image | The instance for the OLE image.  | 
      
| System.String | fileExtension | The string that specifies the file extension.  | 
      
Returns
| Type | Description | 
|---|---|
| IOleObject | newly created OLE object.  | 
      
AddLink(String, Image)
Adds the OLE object to the oleobjects collection with field type LINK.
Declaration
public IOleObject AddLink(string filePath, Image image)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | filePath | The string that specifies the valid file path of the linked file.  | 
      
| Image | image | The instance for the OLE image.  | 
      
Returns
| Type | Description | 
|---|---|
| IOleObject | newly created OLE object.  | 
      
Implements
      System.Collections.Generic.IList<>
  
  
      System.Collections.Generic.ICollection<>
  
  
      System.Collections.Generic.IEnumerable<>
  
  
      System.Collections.IEnumerable