28 references to TabControlAction
System.Windows.Forms (8)
System\Windows\Forms\Controls\TabControl\TabControl.cs (4)
1950TabControlCancelEventArgs tcc = new(SelectedTab, SelectedIndex, false, TabControlAction.Selecting); 1954OnSelected(new TabControlEventArgs(SelectedTab, SelectedIndex, TabControlAction.Selected)); 1993TabControlCancelEventArgs tcc = new(SelectedTab, SelectedIndex, false, TabControlAction.Deselecting); 1997OnDeselected(new TabControlEventArgs(SelectedTab, SelectedIndex, TabControlAction.Deselected));
System\Windows\Forms\Controls\TabControl\TabControlCancelEventArgs.cs (2)
18TabControlAction action) 39public TabControlAction Action { get; }
System\Windows\Forms\Controls\TabControl\TabControlEventArgs.cs (2)
14public TabControlEventArgs(TabPage? tabPage, int tabPageIndex, TabControlAction action) 34public TabControlAction Action { get; }
System.Windows.Forms.Tests (20)
System\Windows\Forms\TabControlCancelEventArgsTests.cs (5)
10yield return new object[] { null, -2, false, TabControlAction.Selecting - 1 }; 11yield return new object[] { new TabPage(), -1, true, TabControlAction.Selecting }; 12yield return new object[] { new TabPage(), 0, false, TabControlAction.Selected }; 13yield return new object[] { new TabPage(), 1, true, TabControlAction.Selected }; 18public void Ctor_TabPage_Int_Bool_TabControlAction(TabPage tabPage, int tabPageIndex, bool cancel, TabControlAction action)
System\Windows\Forms\TabControlEventArgsTests.cs (5)
10yield return new object[] { null, -2, TabControlAction.Selecting - 1 }; 11yield return new object[] { new TabPage(), -1, TabControlAction.Selecting }; 12yield return new object[] { new TabPage(), 0, TabControlAction.Selected }; 13yield return new object[] { new TabPage(), 1, TabControlAction.Selected }; 18public void Ctor_TabPage_Int_TabControlAction(TabPage tabPage, int tabPageIndex, TabControlAction action)
System\Windows\Forms\TabControlTests.cs (10)
2225Assert.Equal(TabControlAction.Deselecting, e.Action); 2239Assert.Equal(TabControlAction.Deselected, e.Action); 2251Assert.Equal(TabControlAction.Selecting, e.Action); 2263Assert.Equal(TabControlAction.Selected, e.Action); 2338Assert.Equal(TabControlAction.Deselecting, e.Action); 2416Assert.Equal(TabControlAction.Deselecting, e.Action); 2430Assert.Equal(TabControlAction.Deselected, e.Action); 2442Assert.Equal(TabControlAction.Selecting, e.Action); 4110yield return new object[] { new TabControlEventArgs(null, 0, TabControlAction.Deselecting) }; 4189yield return new object[] { new TabControlCancelEventArgs(null, 0, true, TabControlAction.Deselecting) };