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