Class CompoundFile
This is compound file implementation based on standard COM-objects.
Inheritance
System.Object
    CompoundFile
  Inherited Members
      System.Object.Equals(System.Object)
    
      System.Object.Equals(System.Object, System.Object)
    
      System.Object.GetHashCode()
    
      System.Object.GetType()
    
      System.Object.MemberwiseClone()
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
      System.Object.ToString()
    
Namespace: Syncfusion.CompoundFile.DocIO.Native
Assembly: Syncfusion.DocIO.Base.dll
Syntax
public class CompoundFile : ICompoundFile, IDisposableConstructors
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
Directory
Gets the directory
Declaration
public Directory Directory { get; }Property Value
| Type | 
|---|
| Directory | 
RootStorage
Returns root storage object for this file.
Declaration
public ICompoundStorage RootStorage { get; }Property Value
| Type | 
|---|
| 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