Class CompoundFile
This is compound file implementation based on standard COM-objects.
Inheritance
System.Object
CompoundFile
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Syncfusion.CompoundFile.XlsIO.Native
Assembly: Syncfusion.XlsIO.Base.dll
Syntax
public class CompoundFile : ICompoundFile, IDisposable
Constructors
CompoundFile()
Default constructor. Creates native compound file in memory.
Declaration
public CompoundFile()
CompoundFile(Stream)
Creates new instance of the compound file based on the specified stream.
Declaration
public CompoundFile(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | Stream to extract data from. |
CompoundFile(String, STGM)
Creates new instance of the compound file based on the file name and open flags.
Declaration
public CompoundFile(string fileName, STGM options)
Parameters
Type | Name | Description |
---|---|---|
System.String | fileName | Name of the file to parse. |
STGM | options | Storage options. |
Properties
RootStorage
Returns root storage object for this file.
Declaration
public ICompoundStorage RootStorage { get; }
Property Value
Type | Description |
---|---|
ICompoundStorage |
Methods
Dispose()
Frees all allocated resources.
Declaration
public void Dispose()
Flush()
Flushes all internal buffers.
Declaration
public void Flush()
Save(Stream)
Saves compound file into stream
Declaration
public void Save(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | Stream to save data into. |
Save(String)
Saves compound file into file.
Declaration
public void Save(string fileName)
Parameters
Type | Name | Description |
---|---|---|
System.String | fileName | Name of the file to save into. |
SaveILockBytesIntoStream(Stream)
Saves internal ILockBytes into stream.
Declaration
public void SaveILockBytesIntoStream(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | Stream to save into. |
Implements
System.IDisposable