MonobjcMonobjc Documented Class Library
ComboBoxIndexOfItemWithStringValue Method (aComboBox, aString)
NamespacesMonobjc.AppKitINSComboBoxDataSourceComboBoxIndexOfItemWithStringValue(NSComboBox, NSString)

Returns the index of the combo box item matching the specified string.

Original signature is '- (NSUInteger)comboBox:(NSComboBox *)aComboBox indexOfItemWithStringValue:(NSString *)aString'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
NSUInteger ComboBoxIndexOfItemWithStringValue(
	NSComboBox aComboBox,
	NSString aString
Function ComboBoxIndexOfItemWithStringValue ( _
	aComboBox As NSComboBox, _
	aString As NSString _
) As NSUInteger
NSUInteger ComboBoxIndexOfItemWithStringValue(
	NSComboBox^ aComboBox, 
	NSString^ aString
aComboBox (NSComboBox)
The combo box.
aString (NSString)
The string to match against the items in the combo box. If the datasource implementscomboBox:completedString:, this is the string returned by that method. Otherwise, it is the text that the user has typed.
Return Value
The index for the item that matches the specified string, or NSNotFound if no item matches.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)