Class
EmbeddedFile

Attachment entry embedding arbitrary binary data into the document.

Definition

Namespace:Telerik.Windows.Documents.Fixed.Model

Assembly:Telerik.Windows.Documents.Fixed.dll

Syntax:

cs-api-definition
public class EmbeddedFile : FixedDocumentElementBase, IFixedDocumentElement

Inheritance: objectFixedDocumentElementBaseEmbeddedFile

Implements: IFixedDocumentElement

Inherited Members FixedDocumentElementBase.Parent

Properties

CollectionItems

Gets the collection item values for this embedded file in a PDF Portfolio.

Declaration

cs-api-definition
public CollectionItemValues CollectionItems { get; }

Property Value

CollectionItemValues

Remarks

These values correspond to custom fields defined in the portfolio schema (Schema). Use this property to set metadata that appears in the portfolio's columns when viewing embedded files.

CreationDate

Gets or sets the creation date of the embedded file.

Declaration

cs-api-definition
public DateTime? CreationDate { get; set; }

Property Value

DateTime?

Remarks

This value is displayed in the Created column of a PDF Portfolio when the schema includes an AddCreationDateField().

Data

Raw embedded file bytes.

Declaration

cs-api-definition
public byte[] Data { get; }

Property Value

byte[]

The file data as a byte array.

Description

Gets or sets the description of the embedded file.

Declaration

cs-api-definition
public string Description { get; set; }

Property Value

string

Remarks

This value is displayed in the Description column of a PDF Portfolio when the schema includes an AddDescriptionField().

MimeType

Gets or sets the MIME type of the embedded file.

Declaration

cs-api-definition
public string MimeType { get; set; }

Property Value

string

The MIME type string (e.g., "application/xml", "text/xml", etc.). If not specified, the default value of "application/octet-stream" will be used.

ModificationDate

Gets or sets the modification date of the embedded file.

Declaration

cs-api-definition
public DateTime? ModificationDate { get; set; }

Property Value

DateTime?

Remarks

This value is displayed in the Modified column of a PDF Portfolio when the schema includes an AddModificationDateField().

Name

Gets or sets the attachment's display file name (including extension) shown in viewer UIs.

Declaration

cs-api-definition
public string Name { get; set; }

Property Value

string

The filename including extension that identifies the embedded file.

Size

Gets the size of the embedded file in bytes.

Declaration

cs-api-definition
public int Size { get; }

Property Value

int

Remarks

This value is automatically calculated from the Data property and is displayed in the Size column of a PDF Portfolio when the schema includes an AddSizeField().