This documentation is for the old version. Go to the latest Graphics Mill docs

IImageList.IndexOfKey Method (Object, Boolean)

Returns a zero-based index of the specified key in the list.

Namespace: Aurigma.GraphicsMill.WinControls
Assembly: Aurigma.GraphicsMill.WinControls (in Aurigma.GraphicsMill.WinControls.dll)

Syntax

Visual Basic
Function IndexOfKey ( _
	key As Object, _
	useDefaultImageIndex As Boolean _
) As Integer
C#
                int IndexOfKey(
	Object key,
	bool useDefaultImageIndex
)

Parameters

key

Type: System.Object

The key to locate in the list.
useDefaultImageIndex

Type: System.Boolean

A value specifying whether to use the default image, if no index exists for the key. If false, -1 will be returned, even if the default image exists.

Return Value

A zero-based index of key, if key is found in the list; otherwise, -1 or the index of the default image.

See Also

Reference