Click or drag to resize

FolderViewGetItemIndex Method

Gets an item index using a predicate.

Namespace:  ShellBoost.Core.WindowsShell
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.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: 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