Click or drag to resize

FolderViewGetItemIndex Method

Gets an item index using a predicate.

Namespace:  callback.ShellBoost.Core.WindowsShell
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
public int GetItemIndex(
	Func<Item, bool> predicate,
	SVGIO flags = SVGIO.SVGIO_FLAG_VIEWORDER,
	bool throwOnError = true
)

Parameters

predicate
Type: SystemFuncItem, Boolean
The predicate.
flags (Optional)
Type: callback.ShellBoost.Core.WindowsShellSVGIO
The flags.
throwOnError (Optional)
Type: SystemBoolean
true to throw error; otherwise false.

Return Value

Type: Int32
The item's index or -1 if it was not found.
Exceptions
ExceptionCondition
ArgumentNullExceptionpredicate is null.
See Also