System.Windows.Forms.ListBox.SelectedIndexCollection.Contains C# (CSharp) Method

Contains() public method

public Contains ( int selectedIndex ) : bool
selectedIndex int
return bool
			public bool Contains (int selectedIndex)
			{
				foreach (int index in selection)
					if (index == selectedIndex)
						return true;
				return false;
			}