Class DirectoryEntry
Represents single directory entry in the compound file.
Inheritance
Inherited Members
Namespace: Syncfusion.CompoundFile.DocIO.Net
Assembly: Syncfusion.DocIO.Base.dll
Syntax
public class DirectoryEntry
Constructors
DirectoryEntry(Byte[], Int32, Int32)
Initializes new instance of the entry.
Declaration
public DirectoryEntry(byte[] data, int offset, int entryId)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | data | Data of the new entry. |
System.Int32 | offset | Offset to the entry data. |
System.Int32 | entryId | Entry id. |
DirectoryEntry(String, DirectoryEntry.EntryType, Int32)
Initializes new instance of the entry.
Declaration
public DirectoryEntry(string name, DirectoryEntry.EntryType type, int entryId)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of the new entry. |
DirectoryEntry.EntryType | type | Type of the new entry. |
System.Int32 | entryId | Id of the new entry. |
Fields
LastOffset
Declaration
public int LastOffset
Field Value
Type |
---|
System.Int32 |
LastSector
Last sector id.
Declaration
public int LastSector
Field Value
Type |
---|
System.Int32 |
SizeInFile
Size of a single directory entry.
Declaration
public const int SizeInFile = 128
Field Value
Type |
---|
System.Int32 |
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 |
---|
System.Int32 |
Color
Entry "color" in red-black tree.
Declaration
public byte Color { get; set; }
Property Value
Type |
---|
System.Byte |
DateCreate
Create time-stamp for a storage.
Declaration
public DateTime DateCreate { get; set; }
Property Value
Type |
---|
System.DateTime |
DateModify
Modify time-stamp for a storage.
Declaration
public DateTime DateModify { get; set; }
Property Value
Type |
---|
System.DateTime |
EntryId
Returns entry id. Read-only.
Declaration
public int EntryId { get; }
Property Value
Type |
---|
System.Int32 |
LeftId
Id of the left-sibling.
Declaration
public int LeftId { get; set; }
Property Value
Type |
---|
System.Int32 |
Name
Entry name.
Declaration
public string Name { get; set; }
Property Value
Type |
---|
System.String |
Reserved
Reserved. Must be zero.
Declaration
public int Reserved { get; set; }
Property Value
Type |
---|
System.Int32 |
RightId
Id of the right-sibling.
Declaration
public int RightId { get; set; }
Property Value
Type |
---|
System.Int32 |
Size
Stream size.
Declaration
public uint Size { get; set; }
Property Value
Type |
---|
System.UInt32 |
StartSector
Starting stream sector.
Declaration
public int StartSector { get; set; }
Property Value
Type |
---|
System.Int32 |
StorageFlags
User flags of this storage.
Declaration
public int StorageFlags { get; set; }
Property Value
Type |
---|
System.Int32 |
StorageGuid
Storage CLSID.
Declaration
public Guid StorageGuid { get; set; }
Property Value
Type |
---|
System.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 |
---|---|---|
System.IO.Stream | stream | Stream to write data into. |