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
| FieldKey | Key of a field declared with AddCollectionField. |
|---|---|
| Ascending | 1 sorts ascending, 0 descending. |
Return values
| 0 | Empty key, or no document is selected. |
|---|---|
| 1 | The sort was set. |