Class
PortfolioSchema

Represents the schema of a PDF Portfolio, defining the fields (columns) displayed for embedded files.

Definition

Namespace:Telerik.Windows.Documents.Fixed.Model.Collections

Assembly:Telerik.Windows.Documents.Fixed.dll

Syntax:

cs-api-definition
public class PortfolioSchema : IReadOnlyList<PortfolioField>, IReadOnlyCollection<PortfolioField>, IEnumerable<PortfolioField>, IEnumerable

Inheritance: objectPortfolioSchema

Implements: IEnumerableIEnumerable<PortfolioField>IReadOnlyCollection<PortfolioField>IReadOnlyList<PortfolioField>

Properties

Count

Gets the number of fields in the schema.

Declaration

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

Property Value

int

Implements IReadOnlyCollection<PortfolioField>.Count

this[int]

Gets the field at the specified index.

Declaration

cs-api-definition
public PortfolioField this[int index] { get; }

Parameters

index

int

The zero-based index of the field to get.

Property Value

PortfolioField

The field at the specified index.

Implements IReadOnlyList<PortfolioField>.this[int]

Methods

AddCreationDateField(int)

Adds a predefined field for displaying creation dates.

Declaration

cs-api-definition
public PortfolioField AddCreationDateField(int order = 5)

Parameters

order

int

The display order of the column.

Returns

PortfolioField

The created PortfolioField.

AddDateField(string, string, int)

Adds a custom date field to the schema.

Declaration

cs-api-definition
public PortfolioField AddDateField(string key, string displayName, int order = 0)

Parameters

key

string

The unique key identifying this field.

displayName

string

The display name shown in the user interface.

order

int

The display order of the column.

Returns

PortfolioField

The created PortfolioField.

AddDescriptionField(int)

Adds a predefined field for displaying file descriptions.

Declaration

cs-api-definition
public PortfolioField AddDescriptionField(int order = 2)

Parameters

order

int

The display order of the column.

Returns

PortfolioField

The created PortfolioField.

AddFileNameField(int)

Adds a predefined field for displaying file names.

Declaration

cs-api-definition
public PortfolioField AddFileNameField(int order = 1)

Parameters

order

int

The display order of the column.

Returns

PortfolioField

The created PortfolioField.

AddModificationDateField(int)

Adds a predefined field for displaying modification dates.

Declaration

cs-api-definition
public PortfolioField AddModificationDateField(int order = 4)

Parameters

order

int

The display order of the column.

Returns

PortfolioField

The created PortfolioField.

AddNumberField(string, string, int)

Adds a custom number field to the schema.

Declaration

cs-api-definition
public PortfolioField AddNumberField(string key, string displayName, int order = 0)

Parameters

key

string

The unique key identifying this field.

displayName

string

The display name shown in the user interface.

order

int

The display order of the column.

Returns

PortfolioField

The created PortfolioField.

AddSizeField(int)

Adds a predefined field for displaying file sizes.

Declaration

cs-api-definition
public PortfolioField AddSizeField(int order = 3)

Parameters

order

int

The display order of the column.

Returns

PortfolioField

The created PortfolioField.

AddTextField(string, string, int)

Adds a custom text field to the schema.

Declaration

cs-api-definition
public PortfolioField AddTextField(string key, string displayName, int order = 0)

Parameters

key

string

The unique key identifying this field.

displayName

string

The display name shown in the user interface.

order

int

The display order of the column.

Returns

PortfolioField

The created PortfolioField.

Clear()

Removes all fields from the schema.

Declaration

cs-api-definition
public void Clear()

GetEnumerator()

Returns an enumerator that iterates through the fields.

Declaration

cs-api-definition
public IEnumerator<PortfolioField> GetEnumerator()

Returns

IEnumerator<PortfolioField>

An enumerator for the fields collection.

Implements IEnumerable<PortfolioField>.GetEnumerator()

UseDefaultSchema()

Configures the schema with default fields containing common file properties.

Declaration

cs-api-definition
public void UseDefaultSchema()