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