System.Windows.Forms.ListBox.GetItemDisplayRectangle C# (CSharp) Method

GetItemDisplayRectangle() private method

private GetItemDisplayRectangle ( int index, int first_displayble ) : Rectangle
index int
first_displayble int
return System.Drawing.Rectangle
		internal Rectangle GetItemDisplayRectangle (int index, int first_displayble)
		{
			Rectangle item_rect;
			Rectangle first_item_rect = GetItemRectangle (first_displayble);
			item_rect = GetItemRectangle (index);
			item_rect.X -= first_item_rect.X;
			item_rect.Y -= first_item_rect.Y;
			
			// Subtract the checkboxes from the width
			if (this is CheckedListBox)
				item_rect.Width -= 14;

			return item_rect;
		}