2 writes to Delta
System.Windows.Forms (2)
System\Windows\Forms\Input\MouseEventArgs.cs (2)
23
Delta
= delta;
35
Delta
= delta;
54 references to Delta
System.Windows.Forms (28)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (11)
5760
e.
Delta
);
5797
e.
Delta
);
5857
e.
Delta
);
5927
e.
Delta
);
15992
e.
Delta
,
16012
e.
Delta
,
16042
e.
Delta
,
16062
e.
Delta
,
16348
MouseEventArgs meTmp = new(e.Button, 2, e.X, e.Y, e.
Delta
);
16478
_cumulativeVerticalWheelDelta += e.
Delta
;
16483
_cumulativeHorizontalWheelDelta += e.
Delta
;
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\PropertyGrid\PropertyGrid.cs (2)
2402
OnMouseMove(new MouseEventArgs(e.Button, e.Clicks, newPoint.X, newPoint.Y, e.
Delta
));
2418
OnMouseDown(new MouseEventArgs(e.Button, e.Clicks, newPoint.X, newPoint.Y, e.
Delta
));
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
3139
int delta = e.
Delta
> 0 ? -1 : 1;
3163
_cumulativeVerticalWheelDelta += e.
Delta
;
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (3)
3333
mea = new MouseEventArgs(mea.Button, mea.Clicks, itemRelativePoint.X, itemRelativePoint.Y, mea.
Delta
);
3389
mea = new MouseEventArgs(mea.Button, mea.Clicks, itemRelativePoint.X, itemRelativePoint.Y, mea.
Delta
);
3433
mea = new MouseEventArgs(mea.Button, mea.Clicks, itemRelativePoint.X, itemRelativePoint.Y, mea.
Delta
);
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (2)
940
_cumulativeWheelData += e.
Delta
;
970
if (e.
Delta
!= Value)
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (2)
748
_wheelDelta += e.
Delta
;
911
return new MouseEventArgs(e.Button, e.Clicks, point.X, point.Y, e.
Delta
);
System\Windows\Forms\Scrolling\ScrollableControl.cs (2)
620
pos = Math.Max(pos - e.
Delta
, 0);
636
pos = Math.Max(pos - e.
Delta
, 0);
System\Windows\Forms\Scrolling\ScrollBar.cs (1)
537
_wheelDelta += e.
Delta
;
System.Windows.Forms.Tests (26)
System\Windows\Forms\ButtonBaseTests.cs (4)
8885
Assert.Equal(0, e.
Delta
);
8921
Assert.Equal(0, e.
Delta
);
8991
Assert.Equal(0, e.
Delta
);
9035
Assert.Equal(0, e.
Delta
);
System\Windows\Forms\ControlTests.Methods.cs (8)
13480
Assert.Equal(0, e.
Delta
);
13516
Assert.Equal(0, e.
Delta
);
13590
Assert.Equal(0, e.
Delta
);
13634
Assert.Equal(0, e.
Delta
);
13815
Assert.Equal(0, e.
Delta
);
13851
Assert.Equal(0, e.
Delta
);
13921
Assert.Equal(0, e.
Delta
);
13965
Assert.Equal(0, e.
Delta
);
System\Windows\Forms\DataGridViewCellMouseEventArgsTests.cs (2)
27
Assert.Equal(mouseE.
Delta
, e.
Delta
);
System\Windows\Forms\DataGridViewColumnDividerDoubleClickEventArgsTests.cs (2)
26
Assert.Equal(mouseE.
Delta
, e.
Delta
);
System\Windows\Forms\DataGridViewRowDividerDoubleClickEventArgsTests.cs (2)
26
Assert.Equal(mouseE.
Delta
, e.
Delta
);
System\Windows\Forms\HandledMouseEventArgsTests.cs (2)
22
Assert.Equal(delta, e.
Delta
);
38
Assert.Equal(delta, e.
Delta
);
System\Windows\Forms\MouseEventArgsTests.cs (1)
22
Assert.Equal(delta, e.
Delta
);
System\Windows\Forms\TreeNodeMouseClickEventArgsTests.cs (1)
28
Assert.Equal(0, e.
Delta
);
TextBoxBaseTests.cs (4)
7268
Assert.Equal(0, e.
Delta
);
7304
Assert.Equal(0, e.
Delta
);
7378
Assert.Equal(0, e.
Delta
);
7422
Assert.Equal(0, e.
Delta
);