Table of Contents

Method CompareByIsFolder

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

CompareByIsFolder(FileListBoxItem, FileListBoxItem)

Compares two FileListBoxItem objects based on whether they represent folders.

public static int CompareByIsFolder(FileListBoxItem x, FileListBoxItem y)

Parameters

x FileListBoxItem

The first FileListBoxItem to compare. Can not be null.

y FileListBoxItem

The second FileListBoxItem to compare. Can not be null.

Returns

int

A signed integer that indicates the relative order of the objects:

  • -1 if x is a folder and y is not.
  • 1 if y is a folder and x is not.
  • 0 if both objects are either folders or non-folders.

Remarks

This method prioritizes folder items over non-folder items. If both items are of the same type (either both folders or both non-folders), they are considered equal in this comparison.