This documentation is for the old version. Go to the latest Graphics Mill docs

VirtualListView.Sort Method (Int32, Boolean)

Sorts items inside the control according to specified criteria.

Namespace: Aurigma.GraphicsMill.WinControls
Assembly: Aurigma.GraphicsMill.WinControls (in Aurigma.GraphicsMill.WinControls.dll)

Syntax

Visual Basic
Public Sub Sort ( _
	textInfoId As Integer, _
	sortAscending As Boolean _
)
C#
public void Sort(
	int textInfoId,
	bool sortAscending
)

Parameters

textInfoId

Type: System.Int32

An integer value that specify the item details identifier used as a criteria for sorting.
sortAscending

Type: System.Boolean

true if sorting should be done ascending; false if descending.

Remarks

ThumbnailListItem class provides access to the following pieces of text information:

Constant Description
TextInfoIdCreationDate File creation date.
TextInfoIdDisplayName Display name of the item (its file name without path with or without extention depending on Windows settings).
TextInfoIdFileSize File size.
TextInfoIdFileType File type name (as registered in Windows).
TextInfoIdPath Full path to the file.

If you implement your own list items, you should define identifiers of pieces of text information yourself.

See Also

Reference