WPF

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class CompoundFile - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class CompoundFile

    This is compound file implementation based on standard COM-objects.

    Inheritance
    System.Object
    CompoundFile
    Implements
    ICompoundFile
    System.IDisposable
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.CompoundFile.DocIO.Native
    Assembly: Syncfusion.DocIO.Base.dll
    Syntax
    public class CompoundFile : ICompoundFile, IDisposable

    Constructors

    CompoundFile()

    Default constructor. Creates native compound file in memory.

    Declaration
    public CompoundFile()

    CompoundFile(Stream)

    Creates new instance of the compound file based on the specified stream.

    Declaration
    public CompoundFile(Stream stream)
    Parameters
    Type Name Description
    System.IO.Stream stream

    Stream to extract data from.

    CompoundFile(String, STGM)

    Creates new instance of the compound file based on the file name and open flags.

    Declaration
    public CompoundFile(string fileName, STGM options)
    Parameters
    Type Name Description
    System.String fileName

    Name of the file to parse.

    STGM options

    Storage options.

    Properties

    Directory

    Gets the directory

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

    RootStorage

    Returns root storage object for this file.

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

    Methods

    Dispose()

    Frees all allocated resources.

    Declaration
    public void Dispose()

    Flush()

    Flushes all internal buffers.

    Declaration
    public void Flush()

    Save(Stream)

    Saves compound file into stream

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

    Stream to save data into.

    Save(String)

    Saves compound file into file.

    Declaration
    public void Save(string fileName)
    Parameters
    Type Name Description
    System.String fileName

    Name of the file to save into.

    SaveILockBytesIntoStream(Stream)

    Saves internal ILockBytes into stream.

    Declaration
    public void SaveILockBytesIntoStream(Stream stream)
    Parameters
    Type Name Description
    System.IO.Stream stream

    Stream to save into.

    Implements

    ICompoundFile
    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved