SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Default implementation of an IComparer interface used with the ItemCollectionClass.Sort method to sort items in an descending fashion, based on the cell text in a specified column.
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET
Inheritance
public sealed class SortDescending;
Public NotInheritable Class SortDescending
SortDescending | Initializes a new instance of the SortDescending class. |
Compare | Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other. | |
Equals | Determines whether the specified object is equal to the current object. | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. | |
GetHashCode | Serves as the default hash function. | |
GetType | Gets the Type of the current instance. | |
MemberwiseClone | Creates a shallow copy of the current Object. | |
ReferenceEquals | Determines whether the specified Object instances are the same instance. | |
ToString | Returns a string that represents the current object. |
bool fAscending = SetSorted(e.Cell.ColumnIndex); switch (e.Cell.ColumnIndex) { default: // column 0 and 1 are sorted based on the Text property if (fAscending) sftTree1.ItemCollection.Sort(new SortAscending(e.Cell.ColumnIndex)); else sftTree1.ItemCollection.Sort(new SortDescending(e.Cell.ColumnIndex)); break; case 2: case 3: // column 2 and 3 are sorted based on the TagObject property, interpreted as a long if (fAscending) sftTree1.ItemCollection.Sort(new SortTagObjectAsLongAscending(e.Cell.ColumnIndex)); else sftTree1.ItemCollection.Sort(new SortTagObjectAsLongDescending(e.Cell.ColumnIndex)); break; }
sftTree1.ItemCollection.Sort(New SortTagObjectAsLongAscending(e.Cell.ColumnIndex)) Else sftTree1.ItemCollection.Sort(New SortTagObjectAsLongDescending(e.Cell.ColumnIndex)) End If Case Else ' column 0 and 1 are sorted based on the Text property If fAscending Then sftTree1.ItemCollection.Sort(New SortAscending(e.Cell.ColumnIndex)) Else sftTree1.ItemCollection.Sort(New SortDescending(e.Cell.ColumnIndex)) End If End Select End Sub ' ItemClick event Private Sub sftTree1_ItemClick(ByVal sender As Object, ByVal e As Softelvdm.SftTreeNET.ItemClickEventArgs) Debug.Write("** ItemClick")
See Also Classes | SftTree/NET 2.0