System.Windows.Forms.ToolStripPanel.TabIndexComparer.Compare C# (CSharp) Method

Compare() public method

public Compare ( object x, object y ) : int
x object
y object
return int
			public int Compare (object x, object y)
			{
				if (!(x is Control) || !(y is Control))
					throw new ArgumentException ();

				return (x as Control).TabIndex - (y as Control).TabIndex;
			}
			#endregion
ToolStripPanel.TabIndexComparer