Class Directory
This class represents directory structure in the compound file.
Inheritance
System.Object
Directory
Namespace: Syncfusion.CompoundFile.DocIO.Net
Assembly: Syncfusion.DocIO.Base.dll
Syntax
public class Directory : Object
Constructors
Directory()
Default constructor.
Declaration
public Directory()
Directory(Byte[])
Initializes new instance of the directory.
Declaration
public Directory(byte[] data)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | data | Data to parse. |
Properties
Entries
Returns list of directory entries.
Declaration
public List<DirectoryEntry> Entries { get; }
Property Value
Type |
---|
System.Collections.Generic.List<DirectoryEntry> |
Methods
Add(DirectoryEntry)
Adds new entry to the collection or replaces existing empty entry with this one.
Declaration
public void Add(DirectoryEntry entry)
Parameters
Type | Name | Description |
---|---|---|
DirectoryEntry | entry | Entry to add. |
FindEmpty()
Searches for empty entry index.
Declaration
public int FindEmpty()
Returns
Type | Description |
---|---|
System.Int32 | Index of the first empty directory entry. |
Write(Stream)
Saves directory entries into specified stream.
Declaration
public void Write(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | Stream to save directory into. |