Class
PortfolioSort

Represents sort settings for a PDF Portfolio, specifying how embedded files are ordered.

Definition

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

Assembly:Telerik.Windows.Documents.Fixed.dll

Syntax:

cs-api-definition
public class PortfolioSort

Inheritance: objectPortfolioSort

Properties

Ascending

Gets the list of ascending flags corresponding to each sort field. True indicates ascending order; false indicates descending order.

Declaration

cs-api-definition
public IReadOnlyList<bool> Ascending { get; }

Property Value

IReadOnlyList<bool>

SortFields

Gets the list of field keys used for sorting, in priority order. The first field is the primary sort key; subsequent fields break ties.

Declaration

cs-api-definition
public IReadOnlyList<string> SortFields { get; }

Property Value

IReadOnlyList<string>

Methods

AddSortField(string, bool)

Adds a sort field with the specified sort direction.

Declaration

cs-api-definition
public void AddSortField(string fieldKey, bool ascending = true)

Parameters

fieldKey

string

The key of the field to sort by (must match a field key in the schema).

ascending

bool

True for ascending order; false for descending order. Default is true.

Clear()

Clears all sort fields.

Declaration

cs-api-definition
public void Clear()