2 writes to X
System.Windows.Forms (2)
System\Windows\Forms\Input\MouseEventArgs.cs (2)
19
X
= x;
31
X
= location.X;
109 references to X
System.Windows.Forms (88)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
888
if (!r.Contains(mevent.
X
, mevent.Y))
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (37)
3711
if ((RightToLeftInternal && e.
X
< xColumnLeftEdge - wColumn / 2)
3712
|| (!RightToLeftInternal && e.
X
> xColumnLeftEdge + wColumn / 2))
5794
int adjustedX = _editingPanel.Location.X + e.
X
;
5815
HitTestInfo hti = HitTest(me.
X
, me.Y);
5816
int mouseX = me.
X
- hti.ColumnX;
5842
if (Math.Abs(dgvcme.
X
- _lastMouseClickInfo.X) <= hotDoubleClickZone.Width / 2
5854
dgvcme.
X
,
5984
dgvcme.
X
,
6156
EndColumnResize(e.
X
);
6352
x = Math.Max(e.
X
+ _mouseBarOffset, _layout.Data.Left - 1);
6357
x = Math.Min(e.
X
+ _mouseBarOffset, _layout.Data.Right - 1);
10546
_lastHeaderShadow = e.
X
;
11956
Point ptGridCoord = ConvertCellToGridCoord(e.ColumnIndex, e.RowIndex, e.
X
, e.Y);
12739
Point ptGridCoord = ConvertCellToGridCoord(e.ColumnIndex, e.RowIndex, e.
X
, e.Y);
15002
HitTestInfo hti = HitTest(me.
X
, me.Y);
15933
HitTestInfo hti = HitTest(e.
X
, e.Y);
15947
int mouseX = e.
X
- hti.ColumnX;
16022
HitTestInfo hti = HitTest(e.
X
, e.Y);
16031
int mouseX = e.
X
- hti.ColumnX;
16068
e.
X
,
16088
e.
X
,
16118
e.
X
,
16138
e.
X
,
16174
HitTestInfo hti = HitTest(e.
X
, e.Y);
16182
_ptMouseDownGridCoord = new Point(e.
X
, e.Y);
16183
int mouseX = e.
X
- hti.ColumnX;
16250
HitTestInfo hti = HitTest(e.
X
, e.Y);
16257
MoveRowHeadersOrColumnResize(e.
X
);
16273
MoveRowHeadersOrColumnResize(e.
X
);
16330
int mouseX = e.
X
, mouseY = e.Y;
16409
HitTestInfo hti = HitTest(e.
X
, e.Y);
16417
int mouseX = e.
X
- hti.ColumnX;
16426
MouseEventArgs meTmp = new(e.Button, 2, e.
X
, e.Y, e.Delta);
16490
hti = HitTest(e.
X
, e.Y);
16495
int mouseX = e.
X
- hti.ColumnX;
25472
_lastMouseClickInfo.X = dgvcme.
X
;
29252
int mouseX = e.
X
- htiToUse.ColumnX;
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (1)
555
s_mouseInContentBounds = GetContentBounds(e.RowIndex).Contains(e.
X
, e.Y);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (3)
2928
DataGridView.CellMouseDownInContentBounds = GetContentBounds(e.RowIndex).Contains(e.
X
, e.Y);
3030
int x = e.
X
;
3985
if (GetErrorIconBounds(e.RowIndex).Contains(e.
X
, e.Y))
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (1)
908
s_mouseInContentBounds = GetContentBounds(e.RowIndex).Contains(e.
X
, e.Y);
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\DataGridViewComboBoxCell.cs (1)
1679
CheckDropDownList(e.
X
, e.Y, e.RowIndex);
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (6)
723
LinkBoundsContainPoint(e.
X
, e.Y, e.RowIndex);
730
if (LinkBoundsContainPoint(e.
X
, e.Y, e.RowIndex))
749
TrackVisitedState && LinkBoundsContainPoint(e.
X
, e.Y, e.RowIndex);
783
if (LinkBoundsContainPoint(e.
X
, e.Y, e.RowIndex))
821
if (LinkBoundsContainPoint(e.
X
, e.Y, e.RowIndex))
856
if (LinkBoundsContainPoint(e.
X
, e.Y, e.RowIndex) && TrackVisitedState)
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)
897
Link? clicked = PointInLink(e.
X
, e.Y);
926
Link? pointIn = PointInLink(e.
X
, e.Y);
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
4155
Point temp = new(e.
X
, e.Y);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (8)
2991
if (e.Button == MouseButtons.Left && SplitterInside(e.
X
) && TotalProperties != 0)
3012
Point pos = FindPosition(e.
X
, e.Y);
3027
_lastMouseDown = new Point(e.
X
, e.Y);
3032
gridEntry.OnMouseClick(e.
X
- r.X, e.Y - r.Y, e.Clicks, e.Button);
3068
point = FindPosition(e.
X
, e.Y);
3088
MoveSplitterTo(e.
X
);
3100
if (onLabel && gridItem.GetLabelToolTipLocation(e.
X
- itemRect.X, e.Y - itemRect.Y) != InvalidPoint)
3134
if (TotalProperties != 0 && (SplitterInside(e.
X
) || _flags.HasFlag(Flags.IsSplitterMove)))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (4)
394
_currentMoveType = MoveTypeFromPoint(e.
X
, e.Y);
397
_dragStart = PointToScreen(new Point(e.
X
, e.Y));
418
int cursorMoveType = MoveTypeFromPoint(e.
X
, e.Y);
429
Point dragPoint = PointToScreen(new Point(e.
X
, e.Y));
System\Windows\Forms\Controls\Splitter\Splitter.cs (3)
814
SplitBegin(e.
X
, e.Y);
823
int x = e.
X
+ Left;
825
Rectangle r = CalcSplitLine(_splitTarget, GetSplitSize(_splitTarget, e.
X
, e.Y), 0);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (6)
3313
ToolStripItem? item = GetItemAt(mea.
X
, mea.Y);
3329
Point itemRelativePoint = item.TranslatePoint(new Point(mea.
X
, mea.Y), ToolStripPointType.ToolStripCoords, ToolStripPointType.ToolStripItemCoords);
3347
ToolStripItem? item = GetItemAt(mea.
X
, mea.Y);
3385
Point itemRelativePoint = item!.TranslatePoint(new Point(mea.
X
, mea.Y), ToolStripPointType.ToolStripCoords, ToolStripPointType.ToolStripItemCoords);
3422
ToolStripItem? item = Grip.MovingToolStrip ? Grip : GetItemAt(mea.
X
, mea.Y);
3429
Point itemRelativePoint = item.TranslatePoint(new Point(mea.
X
, mea.Y), ToolStripPointType.ToolStripCoords, ToolStripPointType.ToolStripItemCoords);
System\Windows\Forms\Controls\ToolStrips\ToolStripGrip.cs (3)
120
_startLocation = TranslatePoint(new Point(mea.
X
, mea.Y), ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords);
160
Point endLocation = TranslatePoint(new Point(mea.
X
, mea.Y), ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords);
217
Point endLocation = TranslatePoint(new Point(mea.
X
, mea.Y), ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords);
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (1)
466
Point clickPoint = new(e.
X
, e.Y);
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (3)
197
if (rect.Contains(e.
X
, e.Y))
231
ButtonID mouseOver = rectUp.Contains(e.
X
, e.Y)
233
: rectDown.Contains(e.
X
, e.Y)
System\Windows\Forms\Input\MouseEventArgs.cs (1)
64
public Point Location => new(
X
, Y);
System\Windows\Forms\Layout\Containers\SplitContainer.cs (4)
1086
int x = e.
X
;
1101
Rectangle r = CalcSplitLine(GetSplitterDistance(e.
X
, e.Y), 0);
1162
SplitBegin(e.
X
, e.Y);
1185
CalcSplitLine(GetSplitterDistance(e.
X
, e.Y), 0);
System.Windows.Forms.Design (21)
System\Drawing\Design\ColorEditor.ColorPalette.cs (5)
310
Point cell2D = GetCell2DFromLocationMouse(me.
X
, me.Y);
322
if (me.Button == MouseButtons.Left && Bounds.Contains(me.
X
, me.Y))
324
Point cell2D = GetCell2DFromLocationMouse(me.
X
, me.Y);
339
Point cell2D = GetCell2DFromLocationMouse(me.
X
, me.Y);
349
int cell = GetCellFromLocationMouse(me.
X
, me.Y);
System\Windows\Forms\Design\ComponentTray.cs (10)
1227
_mouseDropLocation = new Point(e.
X
, e.Y);
1250
_mouseDragStart = new Point(e.
X
, e.Y);
1296
_mouseDragEnd.X = e.
X
;
1325
X = Math.Min(_mouseDragStart.X, e.
X
),
1327
Width = Math.Abs(e.
X
- _mouseDragStart.X),
2143
_mouseDragLast = PointToScreen(new Point(me.
X
, me.Y));
2176
Point newPt = PointToScreen(new Point(me.
X
, me.Y));
2670
return _hitTestedGlyph.Behavior.OnMouseDoubleClick(_hitTestedGlyph, e.Button, new Point(e.
X
, e.Y));
2684
return _hitTestedGlyph.Behavior.OnMouseDown(_hitTestedGlyph, e.Button, new Point(e.
X
, e.Y));
2698
return _hitTestedGlyph.Behavior.OnMouseMove(_hitTestedGlyph, e.Button, new Point(e.
X
, e.Y));
System\Windows\Forms\Design\DesignBindingPicker.cs (2)
1749
Point pt = new(e.
X
, e.Y);
2070
TreeViewHitTestInfo treeViewHitTestInfo = HitTest(new Point(e.
X
, e.Y));
System\Windows\Forms\Design\SelectionUIService.cs (3)
513
Point anchor = PointToScreen(new Point(me.
X
, me.Y));
600
Point screenCoord = PointToScreen(new Point(me.
X
, me.Y));
712
Point screenCoord = PointToScreen(new Point(me.
X
, me.Y));
System\Windows\Forms\Design\TabOrder.cs (1)
607
if (_tabGlyphs[i].Contains(e.
X
, e.Y))