New to Telerik Document ProcessingStart a free 30-day trial

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:

C#
public class PortfolioSort

Inheritance: objectPortfolioSort

Methods

Adds a sort field with the specified sort direction.

C#
public void AddSortField(string fieldKey, bool ascending = true)
Parameters:fieldKeystring

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

ascendingbool

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

Clears all sort fields.

C#
public void Clear()

Properties

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

C#
public IReadOnlyList<bool> Ascending { get; }

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

C#
public IReadOnlyList<string> SortFields { get; }