[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.FileSpecification.RelatedFile

Class FileSpecification.RelatedFile

Namespace
GrapeCity.Documents.Pdf
Assembly
GcDocs.Pdf.dll

Represents information about a related file.

public class FileSpecification.RelatedFile : IOwnedObject
Inheritance
FileSpecification.RelatedFile
Implements
Inherited Members

Constructors

RelatedFile(string, EmbeddedFileStream)

Initializes a new instance of the FileSpecification.RelatedFile class.

public RelatedFile(string fileName, EmbeddedFileStream embeddedFileStream)

Parameters

fileName string

The name of the related file.

embeddedFileStream EmbeddedFileStream

The file content.

Properties

EmbeddedFileStream

Gets a EmbeddedFileStream holding the file content.

public EmbeddedFileStream EmbeddedFileStream { get; }

Property Value

EmbeddedFileStream

FileInfo

Gets the FileSpecification.FileInfo object owning this object.

public FileSpecification.FileInfo FileInfo { get; }

Property Value

FileSpecification.FileInfo

FileName

Gets the file name of the related file.

public string FileName { get; }

Property Value

string

FileSpecification

Gets the FileSpecification object owning this object.

public FileSpecification FileSpecification { get; }

Property Value

FileSpecification

Methods

GetStream()

Gets a Stream containing the content of this FileSpecification.RelatedFile, or null if the file specification is empty.

Important: this Stream must be disposed after use.

public Stream GetStream()

Returns

Stream

A Stream with the content of this FileSpecification.RelatedFile, or null if it is empty. If not null, the stream must be disposed after use!