[]
        
(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
object
FileSpecification.RelatedFile
Implements
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

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 System.IO.Stream containing the content of this FileSpecification.RelatedFile, or null if the file specification is empty.

Important: this System.IO.Stream must be disposed after use.

public Stream GetStream()

Returns

System.IO.Stream

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