Click or drag to resize

PortfolioFile Class

Represents a single embedded file of a pdf portfolio.
Inheritance Hierarchy
SystemObject
  ExpertPdf.Anywhere.PDFPortfolioPortfolioFile

Namespace: ExpertPdf.Anywhere.PDFPortfolio
Assembly: ExpertPdf.Anywhere (in ExpertPdf.Anywhere.dll) Version: 22.0
Syntax
public class PortfolioFile

The PortfolioFile type exposes the following members.

Constructors
 NameDescription
Public methodPortfolioFile(String)Creates an embedded file from a file on disk (the name must include an extension).
Public methodPortfolioFile(String, Byte)Creates an embedded file with the given name from a byte array.
Public methodPortfolioFile(String, Stream)Creates an embedded file with the given name from a stream.
Top
Properties
 NameDescription
Public propertyContent The binary content of the embedded file. Before the file is added to a portfolio this is the content its constructor was given (read from disk for the file-name constructor); afterwards it is the content of the attachment itself.
Public propertyContentAsStream The binary content of the embedded file as a stream, or null when there is no content to read. Each read returns a fresh stream over a copy of the content.
Public propertyCreationDateThe creation date of the embedded file.
Public propertyDescriptionThe description of the embedded file.
Public propertyModificationDateThe modification date of the embedded file.
Public propertyNameThe name of the embedded file (must include an extension).
Top
Example
PortfolioFile file =
    new PortfolioFile("data.csv", System.IO.File.ReadAllBytes("data.csv"));
file.Description = "Monthly figures";
manager.Files.Add(file);
See Also