New to Telerik Document ProcessingStart a free 30-day trial

Attachment entry embedding arbitrary binary data into the document.

Definition

Namespace:Telerik.Windows.Documents.Fixed.Model

Assembly:Telerik.Windows.Documents.Fixed.dll

Syntax:

C#
public class EmbeddedFile : FixedDocumentElementBase, IFixedDocumentElement

Inheritance: objectFixedDocumentElementBaseEmbeddedFile

Implements: IFixedDocumentElement

Inherited Members FixedDocumentElementBase.Parent

Properties

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

C#
public CollectionItemValues CollectionItems { get; }
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.

Gets or sets the creation date of the embedded file.

C#
public DateTime? CreationDate { get; set; }
Remarks:

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

Raw embedded file bytes.

C#
public byte[] Data { get; }
Property Value:

The file data as a byte array.

Gets or sets the description of the embedded file.

C#
public string Description { get; set; }
Remarks:

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

Gets or sets the MIME type of the embedded file.

C#
public string MimeType { get; set; }
Property Value:

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

Gets or sets the modification date of the embedded file.

C#
public DateTime? ModificationDate { get; set; }
Remarks:

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

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

C#
public string Name { get; set; }
Property Value:

The filename including extension that identifies the embedded file.

Gets the size of the embedded file in bytes.

C#
public int Size { get; }
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().