MonobjcMonobjc Documented Class Library
IndexWithOptionsPassingTest Method (opts, predicate)
NamespacesMonobjc.FoundationNSIndexSetIndexWithOptionsPassingTest(NSEnumerationOptions, Func<(Of <<'(NSUInteger, IntPtr, Boolean>)>>))

Returns the index of the first object that passes the predicate Block test using the specified enumeration options.

Original signature is '- (NSUInteger)indexWithOptions:(NSEnumerationOptions)opts passingTest:(BOOL (^)(NSUInteger idx, BOOL *stop))predicate'

Available in Mac OS X v10.6 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSUInteger IndexWithOptionsPassingTest(
	NSEnumerationOptions opts,
	Func<NSUInteger, IntPtr, bool> predicate
)
Public Overridable Function IndexWithOptionsPassingTest ( _
	opts As NSEnumerationOptions, _
	predicate As Func(Of NSUInteger, IntPtr, Boolean) _
) As NSUInteger
public:
virtual NSUInteger IndexWithOptionsPassingTest(
	NSEnumerationOptions opts, 
	Func<NSUInteger, IntPtr, bool>^ predicate
)
Parameters
opts (NSEnumerationOptions)
A bitmask that specifies the options for the enumeration (whether it should be performed concurrently and whether it should be performed in reverse order). See NSEnumerationOptions for the supported values.
predicate (Func<(Of <(<'NSUInteger, IntPtr, Boolean>)>)>)
The Block to apply to elements in the set.
Return Value
The index of the first object that passes the predicate test.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)