alexa
menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class CompoundFile

    .Net compound file implementation.

    Inheritance
    object
    CompoundFile
    Implements
    ICompoundFile
    IDisposable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Syncfusion.CompoundFile.XlsIO.Net
    Assembly: Syncfusion.XlsIO.NET.dll
    Syntax
    public class CompoundFile : ICompoundFile, IDisposable

    Constructors

    CompoundFile()

    Default constructor.

    Declaration
    public CompoundFile()

    CompoundFile(Stream)

    Default constructor.

    Declaration
    public CompoundFile(Stream stream)
    Parameters
    Type Name Description
    Stream stream

    Properties

    Directory

    Declaration
    public Directory Directory { get; }
    Property Value
    Type
    Directory

    Root

    Returns root storage.

    Declaration
    public ICompoundStorage Root { get; }
    Property Value
    Type
    ICompoundStorage

    RootStorage

    Returns root storage object for this file.

    Declaration
    public ICompoundStorage RootStorage { get; }
    Property Value
    Type
    ICompoundStorage

    Methods

    CheckHeader(Stream)

    Checks whether stream header belongs to compound file.

    Declaration
    public static bool CheckHeader(Stream stream)
    Parameters
    Type Name Description
    Stream stream

    Stream to check.

    Returns
    Type Description
    bool

    True if stream probably contains compound file data.

    Dispose()

    Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

    Declaration
    public void Dispose()

    Flush()

    Flushes content into internal buffer.

    Declaration
    public void Flush()

    GetSectorOffset(int, ushort)

    Gets offset to the sector.

    Declaration
    [CLSCompliant(false)]
    public static long GetSectorOffset(int sectorIndex, ushort sectorShift)
    Parameters
    Type Name Description
    int sectorIndex

    Zero-based sector index.

    ushort sectorShift

    Sector shift (2^sectorShift = sector size).

    Returns
    Type Description
    long

    Offset to the required sector.

    GetSectorOffset(int, ushort, int)

    Gets offset to the sector.

    Declaration
    [CLSCompliant(false)]
    public static long GetSectorOffset(int sectorIndex, ushort sectorShift, int headerSize)
    Parameters
    Type Name Description
    int sectorIndex

    Zero-based sector index.

    ushort sectorShift

    Sector shift (2^sectorShift = sector size).

    int headerSize

    Size of the header.

    Returns
    Type Description
    long

    Offset to the required sector.

    Open(Stream)

    Declaration
    public void Open(Stream stream)
    Parameters
    Type Name Description
    Stream stream

    Save(Stream)

    Saves compound file into stream.

    Declaration
    public void Save(Stream stream)
    Parameters
    Type Name Description
    Stream stream

    Stream to save data into.

    Implements

    ICompoundFile
    IDisposable
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved