System.Windows.Forms.TextBox.AutoCompleteListBox.GetItemBounds C# (CSharp) Method

GetItemBounds() private method

private GetItemBounds ( int index ) : Rectangle
index int
return System.Drawing.Rectangle
			Rectangle GetItemBounds (int index)
			{
				int pos = index - top_item;
				Rectangle bounds = new Rectangle (0, pos * item_height, Width, item_height);
				if (vscroll.Visible)
					bounds.Width -= vscroll.Width;

				return bounds;
			}