LEADTOOLS Windows Forms (Leadtools.WinForms assembly)

Sorter Property (RasterThumbnailBrowser)

Show in webframe





Gets or sets the sorting comparer for the control.
Syntax
[BrowsableAttribute(false)]
public IComparer Sorter {get; set;}
'Declaration
 
<BrowsableAttribute(False)>
Public Property Sorter As IComparer
'Usage
 
Dim instance As RasterThumbnailBrowser
Dim value As IComparer
 
instance.Sorter = value
 
value = instance.Sorter

            

            
[BrowsableAttribute(false)]
public:
property IComparer^ Sorter {
   IComparer^ get();
   void set (    IComparer^ value);
}

Property Value

An IComparer that represents the sorting comparer for the control.
Remarks

The Sorter property allows you to specify the object that performs the sorting of items in the RasterImageList. You can use the Sorter property in combination with the Sort method to perform custom sorting. For example, you could create a class (that implements the System.Collections.IComparer interface) to support custom sorting in the RasterImageList control.

To control the sort order, use the RasterImageList.Sorting property.

By default the RasterImageList.Sorting algorithm sorts items alphabetically based on the Text property of each list item.

Set the Sorter property to null (Nothing in Visual Basic) to fall back to the default sorter.

Note: Setting the value of the Sorter property causes the Sort method to be called automatically.

Example
Requirements

Target Platforms

See Also

Reference

RasterThumbnailBrowser Class
RasterThumbnailBrowser Members

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.