Word .NET Class Library
Show/Hide TOC

# CompoundFile Class

Represents a file used to store data as virtual streams.

## Definition

Namespace: Independentsoft.IO.StructuredStorage
Assembly: Independentsoft.Office.Word (in Independentsoft.Office.Word.dll) Version: 3.0.460.1+37fe42d8e65847775742df0a70fdb403ab6fa65f
C#

    public class CompoundFile

VB

    Public Class CompoundFile

Inheritance
  Object CompoundFile

## Constructors

CompoundFile | Initializes a new instance of the CompoundFile class.
CompoundFile(Stream) | Initializes a new instance of the CompoundFile class based on the supplied stream.
CompoundFile(String) | Initializes a new instance of the CompoundFile class based on the supplied file.

## Properties

ClassId | Gets or sets compound file class ID.
FatSectorCount | Gets FAT sector count.
MajorVersion | Gets or sets major version. Allowed values are 3 (512 bytes sector size) or 4 (4096 bytes sector size).
MiniFatSectorCount | Gets count of mini FAT sectors.
MiniSectorSize | Gets size of mini sectors.
MiniStreamMaxSize | Gets maximum size of mini streams.
Root | Gets the root node.
SectorSize | Gets FAT sector size.

## Methods

Equals | (Inherited from Object)
Finalize | (Inherited from Object)
GetBytes | Gets buffer to read from this compound file.
GetHashCode | (Inherited from Object)
GetStream | Gets stream to read from this compound file.
GetType | (Inherited from Object)
MemberwiseClone | (Inherited from Object)
Open(Stream) | Opens compound file from the specified stream.
Open(String) | Opens compound file from the specified file.
Save(Stream) | Saves this compound file to the specified stream.
Save(String) | Saves this compound file to the specified file.
Save(String, Boolean) | Saves this compound file to the specified file.
ToString | (Inherited from Object)

## See Also

#### Reference

Independentsoft.IO.StructuredStorage Namespace