index(of:)
Returns the index of the specified item.
Declaration
func index(of item: any CPListTemplateItem) -> IntParameters
- item:
The item to find in the section.
Return Value
The item’s index in the section, or NSNotFound if the section doesn’t contain the item.