29 references to GetTabRect
System.Windows.Forms (5)
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
510return GetTabRect(0).Size;
System\Windows\Forms\Controls\TabControl\TabPage.cs (4)
176neighbors.Add(tabControl.RectangleToScreen(tabControl.GetTabRect(currentIndex - 1))); 182neighbors.Add(tabControl.RectangleToScreen(tabControl.GetTabRect(currentIndex + 1))); 198if (tabControl.RectangleToScreen(tabControl.GetTabRect(i)).Contains(MousePosition)) 523Rectangle rect = tabControl.GetTabRect(tabControl.SelectedIndex);
System.Windows.Forms.Design (2)
System\Drawing\Design\ColorEditor.ColorUI.cs (2)
87Rectangle rectItemSize = _tabControl.GetTabRect(0); 310Rectangle rectItemSize = _tabControl.GetTabRect(1);
System.Windows.Forms.Tests (22)
System\Windows\Forms\TabControlTests.cs (20)
3659Rectangle rect1 = control.GetTabRect(0); 3664Assert.Equal(rect1, control.GetTabRect(0)); 3667Rectangle rect2 = control.GetTabRect(1); 3691Rectangle rect1 = control.GetTabRect(0); 3696Assert.Equal(rect1, control.GetTabRect(0)); 3699Rectangle rect2 = control.GetTabRect(1); 3728Assert.Equal(expected, control.GetTabRect(0)); 3758Assert.Equal(new Rectangle(1, 2, 2, 2), control.GetTabRect(0)); 3783Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetTabRect(-1)); 3784Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetTabRect(0)); 3785Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetTabRect(1)); 3795Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetTabRect(-1)); 3796Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetTabRect(1)); 3797Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetTabRect(2)); 3804Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetTabRect(-1)); 3805Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetTabRect(0)); 3806Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetTabRect(1)); 3817Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetTabRect(-1)); 3818Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetTabRect(1)); 3819Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetTabRect(2));
System\Windows\Forms\TabPageTests.cs (2)
4993=> tabControl.RectangleToScreen(tabControl.GetTabRect(index)); 5034Rectangle expected = tabControl.RectangleToScreen(tabControl.GetTabRect(0));