Class DirectoryEntry
Represents single directory entry in the compound file.
Inherited Members
Namespace: Syncfusion.CompoundFile.XlsIO.Net
Assembly: Syncfusion.XlsIO.NET.dll
Syntax
public class DirectoryEntry
Constructors
DirectoryEntry(byte[], int, int)
Initializes new instance of the entry.
Declaration
public DirectoryEntry(byte[] data, int offset, int entryId)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | data | Data of the new entry. |
| int | offset | Offset to the entry data. |
| int | entryId | Entry id. |
DirectoryEntry(string, EntryType, int)
Initializes new instance of the entry.
Declaration
public DirectoryEntry(string name, DirectoryEntry.EntryType type, int entryId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Name of the new entry. |
| DirectoryEntry.EntryType | type | Type of the new entry. |
| int | entryId | Id of the new entry. |
Fields
LastOffset
Declaration
public int LastOffset
Field Value
| Type |
|---|
| int |
LastSector
Last sector id.
Declaration
public int LastSector
Field Value
| Type |
|---|
| int |
SizeInFile
Size of a single directory entry.
Declaration
public const int SizeInFile = 128
Field Value
| Type |
|---|
| int |
Properties
ChildId
Id of the child acting as the root of all the children of thes element (if entry type if Storage).
Declaration
public int ChildId { get; set; }
Property Value
| Type |
|---|
| int |
Color
Entry "color" in red-black tree.
Declaration
public byte Color { get; set; }
Property Value
| Type |
|---|
| byte |
DateCreate
Create time-stamp for a storage.
Declaration
public DateTime DateCreate { get; set; }
Property Value
| Type |
|---|
| DateTime |
DateModify
Modify time-stamp for a storage.
Declaration
public DateTime DateModify { get; set; }
Property Value
| Type |
|---|
| DateTime |
EntryId
Returns entry id. Read-only.
Declaration
public int EntryId { get; }
Property Value
| Type |
|---|
| int |
LeftId
Id of the left-sibling.
Declaration
public int LeftId { get; set; }
Property Value
| Type |
|---|
| int |
Name
Entry name.
Declaration
public string Name { get; set; }
Property Value
| Type |
|---|
| string |
Reserved
Reserved. Must be zero.
Declaration
public int Reserved { get; set; }
Property Value
| Type |
|---|
| int |
RightId
Id of the right-sibling.
Declaration
public int RightId { get; set; }
Property Value
| Type |
|---|
| int |
Size
Stream size.
Declaration
public uint Size { get; set; }
Property Value
| Type |
|---|
| uint |
StartSector
Starting stream sector.
Declaration
public int StartSector { get; set; }
Property Value
| Type |
|---|
| int |
StorageFlags
User flags of this storage.
Declaration
public int StorageFlags { get; set; }
Property Value
| Type |
|---|
| int |
StorageGuid
Storage CLSID.
Declaration
public Guid StorageGuid { get; set; }
Property Value
| Type |
|---|
| Guid |
Type
Entry type.
Declaration
public DirectoryEntry.EntryType Type { get; set; }
Property Value
| Type |
|---|
| DirectoryEntry.EntryType |
Methods
Write(Stream)
Writes directory entry data inside specified stream.
Declaration
public void Write(Stream stream)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | stream | Stream to write data into. |