2 writes to Clicks
System.Windows.Forms (2)
System\Windows\Forms\Input\MouseEventArgs.cs (2)
20Clicks = clicks; 32Clicks = clicks;
60 references to Clicks
System.Windows.Forms (34)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (14)
5749if (dgvme == DataGridViewMouseEvent.MouseDown && e.Clicks == 1) 5757e.Clicks, 5784&& e.Clicks == 1 5850if (e.Clicks == 2) 11922_dataGridViewOper[OperationResizingOperationAboutToStart] = (e.Clicks == 1); 11952if (e.Clicks == 1) 11965if (e.Clicks == 1) 12020if (e.Clicks == 1) 12034if (e.Clicks == 1) 15989e.Clicks, 16009e.Clicks, 16039e.Clicks, 16059e.Clicks, 25388Debug.Assert(dgvcme.Clicks == 1);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
3040DataGridView.OnCommonCellContentClick(e.ColumnIndex, e.RowIndex, e.Clicks > 1);
System\Windows\Forms\Controls\DataGridView\DataGridViewCellMouseEventArgs.cs (1)
14: base(e?.Button ?? MouseButtons.None, e?.Clicks ?? 0, localX, localY, e?.Delta ?? 0)
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnDividerDoubleClickEventArgs.cs (1)
9: base(e?.Button ?? MouseButtons.None, e?.Clicks ?? 0, e?.X ?? 0, e?.Y ?? 0, e?.Delta ?? 0, e?.Handled ?? false)
System\Windows\Forms\Controls\DataGridView\DataGridViewRowDividerDoubleClickEventArgs.cs (1)
9: base((e.OrThrowIfNull()).Button, e.Clicks, e.X, e.Y, e.Delta, e.Handled)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (2)
836if (!Enabled || e.Clicks > 1) 870if (!Enabled || e.Clicks > 1 || _receivedDoubleClick)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (2)
2402OnMouseMove(new MouseEventArgs(e.Button, e.Clicks, newPoint.X, newPoint.Y, e.Delta)); 2418OnMouseDown(new MouseEventArgs(e.Button, e.Clicks, newPoint.X, newPoint.Y, e.Delta));
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (3)
2575if (e.Clicks % 2 == 0) 2958if (e.Clicks == 2) 2992gridEntry.OnMouseClick(e.X - r.X, e.Y - r.Y, e.Clicks, e.Button);
System\Windows\Forms\Controls\Splitter\Splitter.cs (1)
813if (e.Button == MouseButtons.Left && e.Clicks == 1)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (3)
3333mea = new MouseEventArgs(mea.Button, mea.Clicks, itemRelativePoint.X, itemRelativePoint.Y, mea.Delta); 3389mea = new MouseEventArgs(mea.Button, mea.Clicks, itemRelativePoint.X, itemRelativePoint.Y, mea.Delta); 3433mea = new MouseEventArgs(mea.Button, mea.Clicks, itemRelativePoint.X, itemRelativePoint.Y, mea.Delta);
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (2)
681if (e.Clicks == 2 && e.Button == MouseButtons.Left) 911return new MouseEventArgs(e.Button, e.Clicks, point.X, point.Y, e.Delta);
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (1)
121if (e.Clicks == 2 && e.Button == MouseButtons.Left)
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownEdit.cs (1)
44if (e.Clicks == 2 && e.Button == MouseButtons.Left)
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
1142if (e.Button == MouseButtons.Left && e.Clicks == 1 && !IsSplitterFixed)
System.Windows.Forms.Tests (26)
System\Windows\Forms\ButtonBaseTests.cs (4)
8882Assert.Equal(expectedClicks, e.Clicks); 8918Assert.Equal(expectedClicks, e.Clicks); 8988Assert.Equal(expectedClicks, e.Clicks); 9032Assert.Equal(expectedClicks, e.Clicks);
System\Windows\Forms\ControlTests.Methods.cs (8)
13477Assert.Equal(expectedClicks, e.Clicks); 13513Assert.Equal(expectedClicks, e.Clicks); 13587Assert.Equal(expectedClicks, e.Clicks); 13631Assert.Equal(expectedClicks, e.Clicks); 13812Assert.Equal(expectedClicks, e.Clicks); 13848Assert.Equal(expectedClicks, e.Clicks); 13918Assert.Equal(expectedClicks, e.Clicks); 13962Assert.Equal(expectedClicks, e.Clicks);
System\Windows\Forms\DataGridViewCellMouseEventArgsTests.cs (2)
24Assert.Equal(mouseE.Clicks, e.Clicks);
System\Windows\Forms\DataGridViewColumnDividerDoubleClickEventArgsTests.cs (2)
23Assert.Equal(mouseE.Clicks, e.Clicks);
System\Windows\Forms\DataGridViewRowDividerDoubleClickEventArgsTests.cs (2)
23Assert.Equal(mouseE.Clicks, e.Clicks);
System\Windows\Forms\HandledMouseEventArgsTests.cs (2)
19Assert.Equal(clicks, e.Clicks); 35Assert.Equal(clicks, e.Clicks);
System\Windows\Forms\MouseEventArgsTests.cs (1)
19Assert.Equal(clicks, e.Clicks);
System\Windows\Forms\TreeNodeMouseClickEventArgsTests.cs (1)
25Assert.Equal(clicks, e.Clicks);
TextBoxBaseTests.cs (4)
7265Assert.Equal(expectedClicks, e.Clicks); 7301Assert.Equal(expectedClicks, e.Clicks); 7375Assert.Equal(expectedClicks, e.Clicks); 7419Assert.Equal(expectedClicks, e.Clicks);