SetCollectionSort

Attachments, Document properties

Description

Chooses which portfolio column the viewer sorts by, and in which direction.

Syntax

Delphi

Function TPDFlib.SetCollectionSort(Const FieldKey: WideString; Ascending: Integer): Integer;

Parameters

FieldKeyKey of a field declared with AddCollectionField.
Ascending1 sorts ascending, 0 descending.

Return values

0Empty key, or no document is selected.
1The sort was set.

See also

AddCollectionField, SetCollectionView