Contents

itemNumber(in:at:)

Returns the index of the item at the specified location within the list.

Declaration

func itemNumber(in list: NSTextList, at location: Int) -> Int

Parameters

  • list:

    The text list.

  • location:

    The location of the item.

Return Value

Returns the index within the list.

See Also

Calculating ranges for common elements