170 writes to X
System.Drawing (1)
commonui\System\Drawing\Point.cs (1)
264
X
+= dx;
System.Web.DataVisualization (3)
Common\General\LegendColumns.cs (3)
2368
point1.
X
= seriesMarkerPosition.X;
2372
point2.
X
= seriesMarkerPosition.Right;
2423
point.
X
= (int)(seriesMarkerPosition.X + seriesMarkerPosition.Width/2f);
System.Windows.Forms (89)
winforms\Managed\System\Resources\ResXResourceReader.cs (1)
373
pt.
X
= lineInfo.LinePosition;
winforms\Managed\System\WinForms\ComboBox.cs (2)
6068
middle.
X
-= (dropDownRect.Width % 2);
6072
middle.
X
+= (dropDownRect.Width % 2);
winforms\Managed\System\WinForms\Control.cs (3)
16510
logPixels.
X
= UnsafeNativeMethods.GetDeviceCaps(new HandleRef(null, dc), NativeMethods.LOGPIXELSX);
17021
pt.
X
= (LogPixels.X * x + hiMetricPerInch / 2) / hiMetricPerInch;
17605
pt.
X
= (hiMetricPerInch * x + (LogPixels.X >> 1)) / LogPixels.X;
winforms\Managed\System\WinForms\DataGridView.cs (1)
2977
ptFirstDisplayedCellAddress.
X
= this.FirstDisplayedColumnIndex;
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (2)
2443
middle.
X
+= (dropRect.Width % 2);
2465
middle.
X
+= ((dropRect.Width + 1) % 2);
winforms\Managed\System\WinForms\DataGridViewMethods.cs (19)
12928
this.ptMouseEnteredCell.
X
= e.ColumnIndex;
12962
this.ptMouseEnteredCell.
X
= -2;
16540
this.ptMouseDownCell.
X
= hti.col;
16593
this.ptMouseEnteredCell.
X
= this.ptMouseEnteredCell.Y = -2;
17836
this.ptCurrentCellCache.
X
= -1;
17848
this.ptCurrentCellCache.
X
= this.ptCurrentCell.X;
17855
this.ptCurrentCellCache.
X
= -1;
19357
pt.
X
+= Width;
25971
this.ptMouseDownCell.
X
= -2;
26717
this.ptAnchorCell.
X
= dataGridViewColumn.Index;
26722
this.ptAnchorCell.
X
= -1;
26872
this.ptCurrentCell.
X
= columnIndex;
26991
this.ptCurrentCell.
X
= columnIndex;
27000
this.ptAnchorCell.
X
= columnIndex;
27065
this.ptAnchorCell.
X
= columnIndex;
27137
this.ptCurrentCell.
X
= -1;
27143
this.ptAnchorCell.
X
= -1;
28235
this.ptCurrentCellCache.
X
= this.ptCurrentCell.X;
29244
this.ptMouseEnteredCell.
X
= this.ptMouseEnteredCell.Y = -2;
winforms\Managed\System\WinForms\DataGridViewUtilities.cs (9)
389
ptTextLocation.
X
= cellBounds.X;
394
ptTextLocation.
X
= cellBounds.X + (cellBounds.Width - sizeText.Width) / 2;
399
ptTextLocation.
X
= cellBounds.Right - sizeText.Width;
404
ptTextLocation.
X
= cellBounds.X;
409
ptTextLocation.
X
= cellBounds.X + (cellBounds.Width - sizeText.Width) / 2;
414
ptTextLocation.
X
= cellBounds.Right - sizeText.Width;
419
ptTextLocation.
X
= cellBounds.X;
424
ptTextLocation.
X
= cellBounds.X + (cellBounds.Width - sizeText.Width) / 2;
429
ptTextLocation.
X
= cellBounds.Right - sizeText.Width;
winforms\Managed\System\WinForms\Form.cs (5)
1192
loc.
X
-= screen.X;
4460
p.
X
= (ownerRect.left + ownerRect.right - s.Width) / 2;
4462
p.
X
= screenRect.X;
4464
p.
X
= screenRect.X + screenRect.Width - s.Width;
4507
p.
X
= Math.Max(screenRect.X,screenRect.X + (screenRect.Width - Width)/2);
winforms\Managed\System\WinForms\Layout\DockAndAnchorLayout.cs (1)
83
location.
X
-= newSize.Width - oldBounds.Width;
winforms\Managed\System\WinForms\Layout\FlowLayout.cs (1)
233
location.
X
+= requiredSize.Width;
winforms\Managed\System\WinForms\Layout\LayoutUtils.cs (1)
377
point.
X
= point.Y;
winforms\Managed\System\WinForms\Printing\PrintPreviewControl.cs (10)
581
offset.
X
-= Position.X;
596
lastImageSize.
X
= 0;
617
lastImageSize.
X
+= imagePixels.X;
735
locPos.
X
= AdjustScroll(m, pos, maxPos, true);
743
position.
X
= Math.Min(position.X, virtualSize.Width - Width);
745
if (position.X < 0) position.
X
= 0;
827
locPos.
X
= pos;
846
locPos.
X
= pos;
898
locPos.
X
= pos;
910
locPos.
X
= pos;
winforms\Managed\System\WinForms\PropertyGrid.cs (1)
4668
pt.
X
= temp.x;
winforms\Managed\System\WinForms\PropertyGridInternal\GridToolTip.cs (1)
191
locPoint.
X
-= overHang;
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (3)
1641
loc.
X
= Math.Min(rectScreen.X + rectScreen.Width - size.Width,
1720
loc.
X
= Math.Min(rectScreen.X + rectScreen.Width - size.Width,
1927
pt.
X
= ROWVALUE;
winforms\Managed\System\WinForms\StatusBar.cs (1)
751
lastClick.
X
= e.X;
winforms\Managed\System\WinForms\StatusStrip.cs (1)
378
noMansLand.
X
+= ClientSize.Width + 1;
winforms\Managed\System\WinForms\ToolStripComboBox.cs (1)
739
middle.
X
+= (dropDownRect.Width % 2);
winforms\Managed\System\WinForms\ToolStripDropDown.cs (2)
1251
offset.
X
= - dropDownBounds.Width;
1262
offset.
X
= - dropDownBounds.Width;
winforms\Managed\System\WinForms\ToolStripDropDownItem.cs (5)
315
offset.
X
= -dropDownBounds.Width + this.Width;
325
offset.
X
= -dropDownBounds.Width + this.Width;
329
offset.
X
= this.Width;
332
offset.
X
-= 1;
337
offset.
X
= -dropDownBounds.Width;
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (4)
420
nextPoint.
X
= checkRectangle.Right + scaledCheckPadding.Right + scaledImagePadding.Left;
461
nextPoint.
X
= checkAndImageMarginWidth+1;
472
nextPoint.
X
= imageMarginBounds.Right+ scaledTextPadding.Left;
477
nextPoint.
X
= textRectangle.Right+ scaledTextPadding.Right + scaledArrowPadding.Left;
winforms\Managed\System\WinForms\ToolStripItem.cs (3)
3867
toPoint.
X
+= currentToolStripItemLocation.X;
3876
fromPoint.
X
+= currentToolStripItemLocation.X;
3888
fromPoint.
X
-= currentToolStripItemLocation.X;
winforms\Managed\System\WinForms\ToolStripPanel.cs (2)
1145
cursorLoc.
X
+= toolStripToDrag.GripRectangle.Width /2;
1150
cursorLoc.
X
= Cursor.Position.X;
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (5)
1106
start.
X
= overflowBoundsFill.Right +1;
1107
end.
X
= overflowBoundsFill.Right;
1126
top1.
X
= overflowBoundsFill.Right + 1;
1127
top2.
X
= overflowBoundsFill.Right;
1446
middle.
X
+= (dropDownRect.Width % 2);
winforms\Managed\System\WinForms\ToolStripSplitStackLayout.cs (2)
231
noMansLand.
X
+= toolStrip.ClientSize.Width + 1;
493
itemLocation.
X
= bounds.X;
winforms\Managed\System\WinForms\ToolTip.cs (2)
1577
p.
X
= visibleRect.left + (visibleRect.right - visibleRect.left)/2;
2165
moveToLocation.
X
= screen.WorkingArea.Right - tipSize.Width;
winforms\Managed\System\WinForms\Triangle.cs (1)
125
points[i].
X
+= xOffset;
System.Windows.Forms.DataVisualization (3)
Common\General\LegendColumns.cs (3)
2368
point1.
X
= seriesMarkerPosition.X;
2372
point2.
X
= seriesMarkerPosition.Right;
2423
point.
X
= (int)(seriesMarkerPosition.X + seriesMarkerPosition.Width/2f);
System.Workflow.Activities (17)
Designers\StateDesigner.Layouts.cs (6)
462
origin.
X
+= ambientTheme.Margin.Width;
465
origin.
X
+= _imageSize.Width + ImagePadding;
788
location.
X
+= layout.Size.Width + _breadCrumbSeparatorSize.Width;
983
origin.
X
+= margin.Width;
1368
origin.
X
+= ActiveDesignerPadding;
1385
origin.
X
= bounds.Left + (bounds.Width - activeDesignerSize.Width) / 2;
Designers\StateMachineDesignerPaint.cs (4)
288
p1.
X
-= radius;
291
p1.
X
+= radius;
306
p2.
X
+= radius;
309
p2.
X
-= radius;
Designers\WhileDesigner.cs (4)
54
points[0].
X
= bounds.Left + bounds.Width / 2;
56
points[1].
X
= bounds.Right - compositeDesignerTheme.ConnectorSize.Width / 3;
58
points[2].
X
= bounds.Right - compositeDesignerTheme.ConnectorSize.Width / 3;
60
points[3].
X
= connectionPoint.X;
Rules\Design\Dialogs\IntellisenseTextBox.cs (3)
427
clientPoint.
X
-= 6;
431
clientPoint.
X
= this.GetPositionFromCharIndex(0).X - 6;
500
clientPoint.
X
-= 6;
System.Workflow.ComponentModel (55)
AuthoringOM\Design\ActivityPreviewDesigner.cs (2)
583
this.separatorLine[0].
X
= bounds.Left + e.AmbientTheme.Margin.Width;
587
this.separatorLine[1].
X
= bounds.Right - e.AmbientTheme.Margin.Width;
AuthoringOM\Design\Connector.cs (5)
1819
begin.
X
= Math.Min(Math.Max(begin.X, enclosingRectangle.Left + 1), enclosingRectangle.Right - 1);
2128
r2.
X
-= margin.Width;
2174
r4.
X
+= margin.Width;
2475
direction.
X
= Math.Sign(direction.X);
2695
newPoint.
X
= int.MaxValue;
AuthoringOM\Design\DesignerHelpers.cs (5)
332
gridStart.
X
= viewableRectangle.X - (viewableRectangle.X % ambientTheme.GridSize.Width);
1028
gridStart.
X
= viewableRectangle.X - (viewableRectangle.X % gridUnit.Width);
1190
location.
X
= ((location.X / snapSize.Width) * snapSize.Width) + (((location.X % snapSize.Width) > snapSize.Width / 2) ? snapSize.Width : 0);
1888
leftTop.
X
= Math.Min(leftTop.X, point.X);
1890
rightBottom.
X
= Math.Max(rightBottom.X, point.X);
AuthoringOM\Design\DesignerWidgets.cs (3)
3245
descRectanglePos.
X
= this.bounds.Left + this.bounds.Width / 2 - this.previewModeDescRectangle.Width / 2 + this.previewModeButtonRectangle.Width + margin.Width;
3250
previewModeBitmapPos.
X
= descRectanglePos.X - (this.previewModeButtonRectangle.Width + margin.Width);
3260
location.
X
= this.canvasBounds.Left + this.canvasBounds.Width / 2 - PreviewDesigner.Size.Width / 2;
AuthoringOM\Design\FreeFormDesigner.cs (5)
791
newLocation.
X
= Math.Min(newLocation.X, childRectangle.Left);
1116
leftTop.
X
= (activityDesigner.Bounds.Left < leftTop.X) ? activityDesigner.Bounds.Left : leftTop.X;
1118
rightBottom.
X
= (rightBottom.X < activityDesigner.Bounds.Right) ? activityDesigner.Bounds.Right : rightBottom.X;
1129
leftTop.
X
= (connector.Bounds.Left < leftTop.X) ? connector.Bounds.Left : leftTop.X;
1131
rightBottom.
X
= (rightBottom.X < connector.Bounds.Right) ? connector.Bounds.Right : rightBottom.X;
AuthoringOM\Design\MessageFilters\AutoScrollExpandMessageFilter.cs (2)
189
scrollPosition.
X
= scrollPosition.X - AmbientTheme.ScrollUnit;
191
scrollPosition.
X
= scrollPosition.X + AmbientTheme.ScrollUnit;
AuthoringOM\Design\MessageFilters\ZoomingMessageFilter.cs (1)
182
center.
X
-= layoutOrigin.X; center.Y -= layoutOrigin.Y;
AuthoringOM\Design\ParallelActivityDesigner.cs (16)
351
parallelLinks[0].
X
= bounds.Left + bounds.Width / 2;
353
parallelLinks[1].
X
= bounds.Left + bounds.Width / 2;
358
parallelLinks[0].
X
= firstDesignerConnections[0].X;
360
parallelLinks[1].
X
= lastDesignerConnections[0].X;
365
parallelLinks[0].
X
= firstDesignerConnections[firstDesignerConnections.Count - 1].X;
367
parallelLinks[1].
X
= lastDesignerConnections[lastDesignerConnections.Count - 1].X;
372
parallelLinks[0].
X
= bounds.Left + bounds.Width / 2;
374
parallelLinks[1].
X
= bounds.Left + bounds.Width / 2;
385
connectingLine[0].
X
= designerConnections[0].X;
387
connectingLine[1].
X
= designerConnections[0].X;
392
connectingLine[0].
X
= designerConnections[connectionCount - 1].X;
394
connectingLine[1].
X
= designerConnections[connectionCount - 1].X;
434
connectorPoints[0].
X
= dropTargetRectangle.X + dropTargetRectangle.Width / 2;
436
connectorPoints[1].
X
= firstDesignerConnections[0].X;
450
connectorPoints[0].
X
= lastDesignerConnections[0].X;
452
connectorPoints[1].
X
= dropTargetRectangle.X + dropTargetRectangle.Width / 2;
AuthoringOM\Design\StructuredCompositeActivityDesigner.cs (1)
544
location.
X
+= (Size.Width - activeDesigner.Size.Width) / 2;
AuthoringOM\Design\WorkflowLayouts.cs (5)
389
alignment.
X
= (totalPrintableArea.Width - rootDesignerSize.Width) / 2;
390
alignment.
X
= Math.Max(alignment.X, selectionSize.Width + selectionSize.Width / 2);
662
bitmapDrawingPoint.
X
= pageLayoutData.ViewablePageBounds.X + Math.Abs(pageLayoutData.LogicalPageBounds.X - intersectedViewPort.X);
805
pageLocation.
X
= (column * this.pageSize.Width) + ((column + 1) * PageSeparator.Width);
809
viewablePageLocation.
X
= pageLocation.X + PageMargins.Left;
AuthoringOM\Design\WorkflowPrinting.cs (7)
158
scaledAlignment.
X
= Convert.ToInt32(Math.Ceiling((float)this.workflowAlignment.X / this.scaling));
346
this.totalPrintablePages.
X
= Convert.ToInt32(Math.Ceiling((this.scaling * (float)rootDesignerSize.Width) / (float)printableArea.Width));
347
this.totalPrintablePages.
X
= Math.Max(this.totalPrintablePages.X, 1);
355
this.workflowAlignment.
X
= (int)(((float)this.totalPrintablePages.X * (float)printableArea.Width / this.scaling - (float)rootDesignerSize.Width) / 2.0f * this.scaling);
360
this.workflowAlignment.
X
= Math.Max(this.workflowAlignment.X, selectionSize.Width + selectionSize.Width / 2);
369
this.currentPrintablePage.
X
++;
374
this.currentPrintablePage.
X
= 0;
AuthoringOM\Design\WorkflowView.cs (3)
466
value.
X
= Math.Min(value.X, hScrollBar.Maximum - hScrollBar.LargeChange + 1);
467
value.
X
= Math.Max(value.X, hScrollBar.Minimum);
926
scrollPosition.
X
= reader.ReadInt32();
System.WorkflowServices (2)
System\Workflow\ComponentModel\Design\ActivityDesignerHighlighter.cs (2)
107
scrollPosition.
X
-= viewSize.Width / 2;
129
scrollPosition.
X
-= viewSize.Width / 2;
1573 references to X
System.Drawing (50)
commonui\System\Drawing\Advanced\GPPOINT.cs (1)
33
X = pt.
X
;
commonui\System\Drawing\Advanced\GPPOINTF.cs (1)
29
X = (float) pt.
X
;
commonui\System\Drawing\Advanced\GraphicsPath.cs (9)
543
pt.
X
,
667
pt.
X
,
730
AddLine(pt1.
X
, pt1.Y, pt2.
X
, pt2.Y);
880
AddBezier(pt1.
X
, pt1.Y, pt2.
X
, pt2.Y, pt3.
X
, pt3.Y, pt4.
X
, pt4.Y);
1386
GPRECT rect = new GPRECT(origin.
X
, origin.Y, 0, 0);
commonui\System\Drawing\BufferedGraphics.cs (1)
161
SafeNativeMethods.BitBlt(refTargetDC, targetLoc.
X
, targetLoc.Y, virtualSize.Width, virtualSize.Height,
commonui\System\Drawing\BufferedGraphicsContext.cs (3)
170
surface = CreateBuffer(destDc, -targetLoc.
X
, -targetLoc.Y, targetRectangle.Width, targetRectangle.Height);
177
surface = CreateBuffer(targetDC, -targetLoc.
X
, -targetLoc.Y, targetRectangle.Width, targetRectangle.Height);
405
compatGraphics.TranslateTransform(-targetLoc.
X
, -targetLoc.Y);
commonui\System\Drawing\Graphics.cs (14)
520
int status = SafeNativeMethods.Gdip.GdipSetRenderingOrigin(new HandleRef(this, this.NativeGraphics), value.
X
, value.Y);
862
CopyFromScreen(upperLeftSource.
X
, upperLeftSource.Y, upperLeftDestination.
X
, upperLeftDestination.Y, blockRegionSize);
880
CopyFromScreen(upperLeftSource.
X
, upperLeftSource.Y, upperLeftDestination.
X
, upperLeftDestination.Y, blockRegionSize, copyPixelOperation);
1222
DrawLine(pen, pt1.
X
, pt1.Y, pt2.
X
, pt2.Y);
1375
DrawBezier(pen, pt1.
X
, pt1.Y, pt2.
X
, pt2.Y, pt3.
X
, pt3.Y, pt4.
X
, pt4.Y);
2808
DrawImage(image, point.
X
, point.Y);
2865
DrawImage(image, point.
X
, point.Y);
4311
int status = SafeNativeMethods.Gdip.GdipIsVisiblePointI(new HandleRef(this, this.NativeGraphics), point.
X
, point.Y, out isVisible);
commonui\System\Drawing\Point.cs (12)
127
return new PointF(p.
X
, p.Y);
137
return new Size(p.
X
, p.Y);
164
/// whether the values of the <see cref='System.Drawing.Point.
X
'/> and <see cref='System.Drawing.Point.Y'/> properties of the two <see cref='System.Drawing.Point'/>
169
return left.
X
== right.
X
&& left.Y == right.Y;
176
/// of the <see cref='System.Drawing.Point.
X
'/> or <see cref='System.Drawing.Point.Y'/> properties of the two
191
return new Point(pt.
X
+ sz.Width, pt.Y + sz.Height);
200
return new Point(pt.
X
- sz.Width, pt.Y - sz.Height);
243
return comp.
X
== this.
X
&& comp.Y == this.Y;
273
Offset(p.
X
, p.Y);
285
return "{X=" +
X
.ToString(CultureInfo.CurrentCulture) + ",Y=" + Y.ToString(CultureInfo.CurrentCulture) + "}";
commonui\System\Drawing\PointConverter.cs (2)
127
args[nArg++] = intConverter.ConvertToString(context, culture, pt.
X
);
137
return new InstanceDescriptor(ctor, new object[] {pt.
X
, pt.Y});
commonui\System\Drawing\Printing\PrinterUnitConvert.cs (1)
57
Convert(value.
X
, fromUnit, toUnit),
commonui\System\Drawing\Rectangle.cs (4)
71
this.x = location.
X
;
103
X = value.
X
;
354
return Contains(pt.
X
, pt.Y);
488
Offset(pos.
X
, pos.Y);
commonui\System\Drawing\Region.cs (1)
912
int status = SafeNativeMethods.Gdip.GdipIsVisibleRegionPointI(new HandleRef(this, nativeRegion), point.
X
, point.Y,
commonui\System\Drawing\Size.cs (1)
55
width = pt.
X
;
System.Web.DataVisualization (5)
Common\General\ChartGraphics.cs (2)
2572
leftLine[2].X = (float)Math.Round((double)center.
X
- labelSize.Width/2F - 1F);
2579
rightLine[2].X = (float)Math.Round((double)center.
X
+ labelSize.Width/2F - 1F);
Common\General\Legend.cs (2)
474
legendPosition.Location.
X
,
511
legendPosition.Location.
X
+ this.GetBorderSize() + this._offset.Width,
Common\General\LegendColumns.cs (1)
2458
PointF pointF = new PointF(point.
X
, point.Y);
System.Windows.Forms (1106)
misc\GDI\DeviceContext2.cs (1)
491
IntUnsafeNativeMethods.SetViewportOrgEx( new HandleRef( this, this.Hdc ), newOrigin.
X
, newOrigin.Y, oldOrigin );
misc\GDI\WindowsGraphics2.cs (6)
95
IntUnsafeNativeMethods.MoveToEx(hdc, p.
X
, p.Y, null);
96
IntUnsafeNativeMethods.AngleArc(hdc, p.
X
, p.Y, radius, startAngle, sweepAngle);
97
IntUnsafeNativeMethods.LineTo(hdc, p.
X
, p.Y);
167
Rectangle bounds = new Rectangle( pt.
X
, pt.Y, Int32.MaxValue, Int32.MaxValue );
652
DrawLine(pen, p1.
X
, p1.Y, p2.
X
, p2.Y);
winforms\Managed\System\Resources\ResXDataNode.cs (7)
496
string newMessage = SR.GetString(SR.TypeLoadException, typeName, dataNodeInfo.ReaderPosition.Y, dataNodeInfo.ReaderPosition.
X
);
497
XmlException xml = new XmlException(newMessage, null, dataNodeInfo.ReaderPosition.Y, dataNodeInfo.ReaderPosition.
X
);
524
string newMessage = SR.GetString(SR.NotSupported, typeName, dataNodeInfo.ReaderPosition.Y, dataNodeInfo.ReaderPosition.
X
, nse.Message);
525
XmlException xml = new XmlException(newMessage, nse, dataNodeInfo.ReaderPosition.Y, dataNodeInfo.ReaderPosition.
X
);
536
string newMessage = SR.GetString(SR.TypeLoadException, typeName, dataNodeInfo.ReaderPosition.Y, dataNodeInfo.ReaderPosition.
X
);
537
XmlException xml = new XmlException(newMessage, null, dataNodeInfo.ReaderPosition.Y, dataNodeInfo.ReaderPosition.
X
);
809
result.ReaderPosition = new Point(this.ReaderPosition.
X
, this.ReaderPosition.Y);
winforms\Managed\System\Resources\ResXResourceReader.cs (5)
407
string newMessage = SR.GetString(SR.SerializationException, reader[ResXResourceWriter.TypeStr], pt.Y, pt.
X
, se.Message);
408
XmlException xml = new XmlException(newMessage, se, pt.Y, pt.
X
);
415
string newMessage = SR.GetString(SR.InvocationException, reader[ResXResourceWriter.TypeStr], pt.Y, pt.
X
, tie.InnerException.Message);
416
XmlException xml = new XmlException(newMessage, tie.InnerException, pt.Y, pt.
X
);
429
XmlException xmlEx = new XmlException(e.Message, e, pt.Y, pt.
X
);
winforms\Managed\System\WinForms\AxHost.cs (2)
3617
Bounds = new Rectangle(location.
X
, location.Y, ocxExtent.Width, ocxExtent.Height);
3621
Bounds = new Rectangle(location.
X
, location.Y, newSize.Width, newSize.Height);
winforms\Managed\System\WinForms\Button.cs (1)
306
if (UnsafeNativeMethods.WindowFromPoint(pt.
X
, pt.Y) == Handle && !ValidationCancelled) {
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (1)
576
imageBounds.X = imageStart.
X
+ 1;
winforms\Managed\System\WinForms\CheckBox.cs (1)
648
if (UnsafeNativeMethods.WindowFromPoint(pt.
X
, pt.Y) == Handle) {
winforms\Managed\System\WinForms\ComboBox.cs (12)
1786
OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, Ptlc.
X
, Ptlc.Y, 0));
1802
OnMouseDown(new MouseEventArgs(MouseButtons.Middle, 1, Ptmc.
X
, Ptmc.Y, 0));
1818
OnMouseDown(new MouseEventArgs(MouseButtons.Right, 1, Ptrc.
X
, Ptrc.Y, 0));
1832
OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, Ptl.
X
, Ptl.Y, 0));
1870
OnMouseUp(new MouseEventArgs(MouseButtons.Left, 1, pt.
X
, pt.Y, 0));
1883
OnMouseDown(new MouseEventArgs(MouseButtons.Middle, 1, P.
X
, P.Y, 0));
1901
OnMouseDown(new MouseEventArgs(MouseButtons.Right, 1, Pt.
X
, Pt.Y, 0));
1924
OnMouseUp(new MouseEventArgs(MouseButtons.Right, 1, ptRBtnUp.
X
, ptRBtnUp.Y, 0));
1943
OnMouseMove(new MouseEventArgs(MouseButtons, 0, point.
X
, point.Y, 0));
6076
new Point(middle.
X
- Offset2Pixels, middle.Y - 1),
6077
new Point(middle.
X
+ Offset2Pixels + 1, middle.Y - 1),
6078
new Point(middle.
X
, middle.Y + Offset2Pixels)
winforms\Managed\System\WinForms\ContextMenu.cs (1)
233
pos.
X
,
winforms\Managed\System\WinForms\Control.cs (13)
3236
SetBounds(value.
X
, value.Y, width, height, BoundsSpecified.Location);
6485
IntPtr hwnd = UnsafeNativeMethods.ChildWindowFromPointEx(new HandleRef(null, Handle), pt.
X
, pt.Y, value);
9418
cliprect.Offset(-offs.
X
,-offs.Y);
10089
NativeMethods.POINT point = new NativeMethods.POINT(p.
X
, p.Y);
10106
NativeMethods.POINT point = new NativeMethods.POINT(p.
X
, p.Y);
10382
clientOffset = new Point(clientOffset.
X
- windowRect.left, clientOffset.Y - windowRect.top);
13503
SendMessage(NativeMethods.WM_CONTEXTMENU, this.Handle, NativeMethods.Util.MAKELPARAM(pt.
X
, pt.Y));
13510
if (GetState(STATE_MOUSEPRESSED) && !IsDisposed && UnsafeNativeMethods.WindowFromPoint(pt.
X
, pt.Y) == Handle) {
13555
p.
X
,
16960
pSizel.cx = pt.
X
;
17021
pt.X = (LogPixels.
X
* x + hiMetricPerInch / 2) / hiMetricPerInch;
17605
pt.X = (hiMetricPerInch * x + (LogPixels.
X
>> 1)) / LogPixels.
X
;
winforms\Managed\System\WinForms\ControlPaint.cs (5)
362
bool result = SafeNativeMethods.BitBlt(targetHDC, destinationLocation.
X
, destinationLocation.Y, destWidth, destHeight,
364
sourceLocation.
X
, sourceLocation.Y, (int) copyPixelOperation);
466
transform.Translate(scrollOffset.
X
,scrollOffset.Y);
1834
SafeNativeMethods.MoveToEx(new HandleRef(null, dc), start.
X
, start.Y, null);
1835
SafeNativeMethods.LineTo(new HandleRef(null, dc), end.
X
, end.Y);
winforms\Managed\System\WinForms\Cursor.cs (1)
317
UnsafeNativeMethods.SetCursorPos(value.
X
, value.Y);
winforms\Managed\System\WinForms\DataGrid.cs (4)
4071
if (localGridRows[row].OnMouseDown(p.
X
, p.Y,
4259
if (!localGridRows[rowOver].OnMouseMove(p.
X
, p.Y, layout.RowHeaders, alignToRight) && gridState[GRIDSTATE_dragging]) {
6532
return HitTest(position.
X
, position.Y);
9185
HitTestInfo hti = DataGrid.HitTest(client.
X
, client.Y);
winforms\Managed\System\WinForms\DataGridRelationshipRow.cs (1)
778
points[1] = new Point(points[0].
X
, bounds.Y + 2*indent + base.Height);
winforms\Managed\System\WinForms\DataGridView.cs (25)
1480
if (this.ptCurrentCell.
X
!= -1 /*&& !this.IsCurrentCellInEditMode*/ && ColumnEditable(this.ptCurrentCell.
X
))
2180
if (this.ptCurrentCell.
X
== -1 && this.ptCurrentCell.Y == -1)
2184
Debug.Assert(this.ptCurrentCell.
X
>= 0 && ptCurrentCell.Y >= 0);
2185
Debug.Assert(this.ptCurrentCell.
X
< this.Columns.Count);
2188
return dataGridViewRow.Cells[this.ptCurrentCell.
X
];
2192
if ((value != null && (value.RowIndex != this.ptCurrentCell.Y || value.ColumnIndex != this.ptCurrentCell.
X
)) ||
2193
(value == null && this.ptCurrentCell.
X
!= -1))
2249
Debug.Assert(this.ptCurrentCell.
X
>= 0 && this.ptCurrentCell.
X
< this.Columns.Count);
2253
DataGridViewCell dataGridViewCell = dataGridViewRow.Cells[this.ptCurrentCell.
X
];
2263
if (this.ptCurrentCell.
X
== -1)
2269
bool previousVisibleColumnExists = (null != this.Columns.GetPreviousColumn(this.Columns[this.ptCurrentCell.
X
], DataGridViewElementStates.Visible, DataGridViewElementStates.None));
2280
if (this.ptCurrentCell.
X
== -1)
2287
bool nextVisibleColumnExists = (null != this.Columns.GetNextColumn(this.Columns[this.ptCurrentCell.
X
], DataGridViewElementStates.Visible, DataGridViewElementStates.None));
2298
if (this.ptCurrentCell.
X
== -1)
2319
if (this.ptCurrentCell.
X
== -1)
2907
if (firstDisplayedCellAddress.
X
>= 0)
2909
return this.Rows[firstDisplayedCellAddress.Y].Cells[firstDisplayedCellAddress.
X
]; // unshares the row of first displayed cell
3130
if (this.ptCurrentCell.
X
>= 0 &&
3206
if (this.ptCurrentCell.
X
>= 0 &&
3445
!this.Columns[this.ptCurrentCell.
X
].Frozen &&
3582
if (this.ptCurrentCell.
X
== -1)
3921
this.ptCurrentCell.
X
!= -1 &&
4001
if (this.ptCurrentCell.
X
!= -1 &&
winforms\Managed\System\WinForms\DataGridViewAccessibleObject.cs (1)
197
HitTestInfo hti = this.owner.HitTest(pt.
X
, pt.Y);
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (9)
491
return this.ColumnIndex == this.DataGridView.MouseDownCellAddress.
X
&& rowIndex == this.DataGridView.MouseDownCellAddress.Y;
592
this.ColumnIndex == this.DataGridView.MouseDownCellAddress.
X
&&
616
if (e.ColumnIndex == this.DataGridView.MouseDownCellAddress.
X
&&
714
bool cellCurrent = (ptCurrentCell.
X
== this.ColumnIndex && ptCurrentCell.Y == rowIndex);
771
this.DataGridView.MouseEnteredCellAddress.
X
== this.ColumnIndex &&
844
this.DataGridView.MouseEnteredCellAddress.
X
== this.ColumnIndex &&
888
this.DataGridView.MouseEnteredCellAddress.
X
== this.ColumnIndex &&
949
(this.DataGridView.CurrentCellAddress.Y == rowIndex && this.DataGridView.CurrentCellAddress.
X
== this.ColumnIndex))
981
(this.DataGridView.CurrentCellAddress.Y == rowIndex && this.DataGridView.CurrentCellAddress.
X
== this.ColumnIndex))
winforms\Managed\System\WinForms\DataGridViewCell.cs (5)
502
return ptCurrentCell.
X
!= -1 &&
503
ptCurrentCell.
X
== this.ColumnIndex &&
1799
if (this.ColumnIndex == ptCurrentCell.
X
&& rowIndex == ptCurrentCell.Y)
3103
if (ptCurrentCell.
X
!= -1 &&
3104
ptCurrentCell.
X
== this.ColumnIndex &&
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (14)
509
return ptCurrentCell.
X
== this.ColumnIndex &&
604
if (ptCurrentCell.
X
== this.ColumnIndex &&
886
return this.ColumnIndex == this.DataGridView.MouseDownCellAddress.
X
&& rowIndex == this.DataGridView.MouseDownCellAddress.Y;
914
if (ptCurrentCell.
X
== this.ColumnIndex &&
1024
this.ColumnIndex == this.DataGridView.MouseDownCellAddress.
X
&&
1048
if (e.ColumnIndex == this.DataGridView.MouseDownCellAddress.
X
&&
1084
Debug.Assert((position.
X
>= 0) && (position.
X
< this.DataGridView.Columns.Count));
1088
int visibleColumnIndex = this.DataGridView.Columns.ColumnIndexToActualDisplayIndex(position.
X
, DataGridViewElementStates.Visible);
1182
if (ptCurrentCell.
X
== this.ColumnIndex &&
1242
ptCurrentCell.
X
== this.ColumnIndex &&
1261
this.DataGridView.MouseEnteredCellAddress.
X
== this.ColumnIndex &&
1376
this.DataGridView.MouseEnteredCellAddress.
X
== this.ColumnIndex &&
1514
this.DataGridView.MouseEnteredCellAddress.
X
== this.ColumnIndex &&
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (49)
837
this.DataGridView.MouseEnteredCellAddress.
X
== this.ColumnIndex)
1030
sortGlyphLocation.
X
,
1032
sortGlyphLocation.
X
+ sortGlyphWidth/2-1,
1035
sortGlyphLocation.
X
+1,
1037
sortGlyphLocation.
X
+ sortGlyphWidth/2-1,
1040
sortGlyphLocation.
X
+ sortGlyphWidth/2,
1042
sortGlyphLocation.
X
+ sortGlyphWidth-2,
1045
sortGlyphLocation.
X
+ sortGlyphWidth/2,
1047
sortGlyphLocation.
X
+ sortGlyphWidth-3,
1050
sortGlyphLocation.
X
,
1052
sortGlyphLocation.
X
+ sortGlyphWidth-2,
1059
sortGlyphLocation.
X
,
1061
sortGlyphLocation.
X
+ sortGlyphWidth / 2 - 1,
1064
sortGlyphLocation.
X
+1,
1066
sortGlyphLocation.
X
+ sortGlyphWidth / 2 - 1,
1069
sortGlyphLocation.
X
+ sortGlyphWidth / 2,
1071
sortGlyphLocation.
X
+ sortGlyphWidth - 2,
1074
sortGlyphLocation.
X
+ sortGlyphWidth / 2,
1076
sortGlyphLocation.
X
+ sortGlyphWidth - 3,
1079
sortGlyphLocation.
X
,
1081
sortGlyphLocation.
X
+ sortGlyphWidth - 2,
1090
sortGlyphLocation.
X
+ line,
1092
sortGlyphLocation.
X
+ sortGlyphWidth - line - 1,
1096
sortGlyphLocation.
X
+ sortGlyphWidth / 2,
1098
sortGlyphLocation.
X
+ sortGlyphWidth / 2,
1113
sortGlyphLocation.
X
,
1115
sortGlyphLocation.
X
+sortGlyphWidth/2-1,
1118
sortGlyphLocation.
X
+1,
1120
sortGlyphLocation.
X
+sortGlyphWidth/2-1,
1123
sortGlyphLocation.
X
+sortGlyphWidth/2,
1125
sortGlyphLocation.
X
+sortGlyphWidth-2,
1128
sortGlyphLocation.
X
+sortGlyphWidth/2,
1130
sortGlyphLocation.
X
+sortGlyphWidth-3,
1133
sortGlyphLocation.
X
,
1135
sortGlyphLocation.
X
+sortGlyphWidth-2,
1142
sortGlyphLocation.
X
,
1144
sortGlyphLocation.
X
+sortGlyphWidth/2-1,
1147
sortGlyphLocation.
X
+1,
1149
sortGlyphLocation.
X
+sortGlyphWidth/2-1,
1152
sortGlyphLocation.
X
+sortGlyphWidth/2,
1154
sortGlyphLocation.
X
+sortGlyphWidth-2,
1157
sortGlyphLocation.
X
+sortGlyphWidth/2,
1159
sortGlyphLocation.
X
+sortGlyphWidth-3,
1162
sortGlyphLocation.
X
,
1164
sortGlyphLocation.
X
+sortGlyphWidth-2,
1173
sortGlyphLocation.
X
+ line,
1175
sortGlyphLocation.
X
+ sortGlyphWidth - line - 1,
1179
sortGlyphLocation.
X
+ sortGlyphWidth / 2,
1181
sortGlyphLocation.
X
+ sortGlyphWidth / 2,
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (11)
1912
if (ptCurrentCell.
X
== e.ColumnIndex && ptCurrentCell.Y == e.RowIndex)
2127
this.DataGridView.MouseEnteredCellAddress.
X
== this.ColumnIndex;
2134
this.DataGridView.MouseEnteredCellAddress.
X
== this.ColumnIndex &&
2153
bool cellCurrent = ptCurrentCell.
X
== this.ColumnIndex && ptCurrentCell.Y == rowIndex;
2449
new Point(middle.
X
- offset2X, middle.Y - 1),
2450
new Point(middle.
X
+ offset2X + 1, middle.Y - 1),
2451
new Point(middle.
X
, middle.Y + offset2Y)
2468
Point pt1 = new Point(middle.
X
- (nonXPTriangleWidth - 1) / 2, middle.Y - nonXPTriangleHeight);
2469
Point pt2 = new Point(middle.
X
+ (nonXPTriangleWidth - 1) / 2, middle.Y - nonXPTriangleHeight);
2473
g.DrawLine(SystemPens.ControlText, pt1.
X
, pt1.Y, pt2.
X
, pt2.Y);
winforms\Managed\System\WinForms\DataGridViewDataConnection.cs (4)
765
Debug.Assert(this.owner.CurrentCellAddress.
X
== -1);
1320
int columnIndex = this.owner.CurrentCellAddress.
X
== -1 ? this.owner.FirstDisplayedColumnIndex : this.owner.CurrentCellAddress.
X
;
1363
if (rowIndex == this.owner.CurrentCellAddress.Y && columnIndex == this.owner.CurrentCellAddress.
X
)
winforms\Managed\System\WinForms\DataGridViewHeaderCell.cs (3)
537
return this.ColumnIndex == this.DataGridView.MouseDownCellAddress.
X
&&
578
if (this.ColumnIndex == this.DataGridView.MouseDownCellAddress.
X
&&
602
Debug.Assert(this.ColumnIndex == this.DataGridView.MouseDownCellAddress.
X
);
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (1)
946
ptCurrentCell.
X
== this.ColumnIndex &&
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (1)
1017
bool cellCurrent = ptCurrentCell.
X
== this.ColumnIndex && ptCurrentCell.Y == rowIndex;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (683)
38
if (cellAddress.
X
< 0 || cellAddress.
X
>= this.Columns.Count)
49
int visibleColumnIndex = this.Columns.ColumnIndexToActualDisplayIndex(cellAddress.
X
, DataGridViewElementStates.Visible);
2593
if (this.ptCurrentCell.
X
== -1)
2615
Debug.Assert(this.ptCurrentCell.
X
>= 0 && this.ptCurrentCell.
X
< this.Columns.Count);
2623
!ColumnEditable(this.ptCurrentCell.
X
))
2639
DataGridViewCellCancelEventArgs dgvcce = new DataGridViewCellCancelEventArgs(this.ptCurrentCell.
X
, this.ptCurrentCell.Y);
2647
if (this.ptCurrentCell.
X
> -1)
2656
!ColumnEditable(this.ptCurrentCell.
X
))
2758
InvalidateCellPrivate(this.ptCurrentCell.
X
, this.ptCurrentCell.Y);
3071
if (this.ptCurrentCell.
X
!= -1)
3075
int oldCurrentCellX = this.ptCurrentCell.
X
;
3134
dgvdee2 = new DataGridViewDataErrorEventArgs(exception, this.ptCurrentCell.
X
,
3159
InvalidateCellPrivate(this.ptCurrentCell.
X
, this.ptCurrentCell.Y);
3163
else if (this.ptCurrentCell.
X
== -1 && this.Focused)
3245
int oldCurrentCellX = this.ptCurrentCell.
X
;
3250
if (currentCellDirty || this.ptCurrentCell.Y == -1 || this.ptCurrentCell.
X
== -1)
3347
if (this.ptCurrentCell.
X
> -1)
3466
if (this.ptCurrentCell.
X
!= -1 &&
3470
InvalidateCellPrivate(this.ptCurrentCell.
X
, -1);
3800
Debug.Assert(this.ptCurrentCell.
X
> -1);
3803
if (this.ptCurrentCell.
X
== -1)
3807
OnCellLeave(ref dataGridViewCurrentCell, this.ptCurrentCell.
X
, this.ptCurrentCell.Y);
3811
if (this.ptCurrentCell.
X
== -1)
3815
OnRowLeave(ref dataGridViewCurrentCell, this.ptCurrentCell.
X
, this.ptCurrentCell.Y);
3825
if (this.ptCurrentCell.
X
> -1 && this.ptCurrentCell.Y > -1)
3827
InvalidateCellPrivate(this.ptCurrentCell.
X
/*columnIndex*/, this.ptCurrentCell.Y /*rowIndex*/);
3834
if (this.ptCurrentCell.
X
== -1)
3838
if (OnCellValidating(ref dataGridViewCurrentCell, this.ptCurrentCell.
X
, this.ptCurrentCell.Y, context))
3842
if (this.ptCurrentCell.
X
== -1)
3846
OnRowEnter(ref dataGridViewCurrentCell, this.ptCurrentCell.
X
, this.ptCurrentCell.Y, true /*canCreateNewRow*/, true /*validationFailureOccurred*/);
3850
if (this.ptCurrentCell.
X
== -1)
3854
OnCellEnter(ref dataGridViewCurrentCell, this.ptCurrentCell.
X
, this.ptCurrentCell.Y);
3856
if (this.ptCurrentCell.
X
== -1)
3861
this.ptCurrentCell.
X
,
3872
if (this.ptCurrentCell.
X
== -1)
3876
OnCellValidated(ref dataGridViewCurrentCell, this.ptCurrentCell.
X
, this.ptCurrentCell.Y);
3881
if (this.ptCurrentCell.
X
== -1 || !this.IsCurrentCellInEditMode)
3900
Debug.Assert(this.ptCurrentCell.
X
> -1);
3901
if (this.ptCurrentCell.
X
== -1)
3905
if (OnCellValidating(ref dataGridViewCurrentCell, this.ptCurrentCell.
X
, this.ptCurrentCell.Y, context))
3907
if (this.ptCurrentCell.
X
== -1)
3912
this.ptCurrentCell.
X
,
3935
if (this.ptCurrentCell.
X
== -1)
3940
this.ptCurrentCell.
X
,
3973
if (this.ptCurrentCell.
X
== -1)
3977
OnCellValidated(ref dataGridViewCurrentCell, this.ptCurrentCell.
X
, this.ptCurrentCell.Y);
4031
Debug.Assert(this.ptCurrentCell.
X
> -1);
4032
if (this.ptCurrentCell.
X
== -1)
4036
int columnIndex = this.ptCurrentCell.
X
;
4082
int columnIndexTmp = this.ptCurrentCell.
X
;
4143
this.ptCurrentCell.
X
== -1 &&
5799
Debug.Assert(this.ptCurrentCell.
X
!= -1);
5800
int adjustedX = this.editingPanel.Location.
X
+ e.X;
5804
adjustedX += this.editingControl.Location.
X
;
5985
Debug.Assert(this.ptCurrentCell.
X
!= -1);
5996
Debug.Assert(this.ptCurrentCell.
X
!= -1);
6207
if (this.ptCurrentCell.
X
== -1)
6216
int curColIndex = this.ptCurrentCell.
X
;
6249
if (curRowIndex != this.ptCurrentCell.Y || curColIndex != this.ptCurrentCell.
X
)
6273
InvalidateCellPrivate(this.ptCurrentCell.
X
, this.ptCurrentCell.Y);
6294
InvalidateCellPrivate(this.ptCurrentCell.
X
, this.ptCurrentCell.Y);
8769
if (this.ptAnchorCell.
X
!= -1 &&
8770
this.Columns[this.ptAnchorCell.
X
].Frozen &&
8804
if (this.ptAnchorCell.
X
!= -1 &&
8805
(!this.Columns[this.ptAnchorCell.
X
].Frozen ||
8948
(this.ptAnchorCell.
X
!= -1 && !this.Columns[this.ptAnchorCell.
X
].Frozen)
8950
(this.ptCurrentCell.
X
!= -1 && !this.Columns[this.ptCurrentCell.
X
].Frozen)
9789
HitTestInfo hti = HitTest(ptMouse.
X
, ptMouse.Y);
9790
int xOffset, yOffset, mouseX = ptMouse.
X
, mouseY = ptMouse.Y;
9800
hti = HitTest(ptMouse.
X
+(this.RightToLeftInternal?1:-1)*(xOffset+normOffset), mouseY);
9810
hti = HitTest(ptMouse.
X
+(this.RightToLeftInternal?1:-1)*(xOffset+normOffset), ptMouse.Y-yOffset-(yOffset/Math.Abs(yOffset)));
9814
hti = HitTest(ptMouse.
X
+(this.RightToLeftInternal?1:-1)*(xOffset+normOffset), mouseY);
9853
Debug.Assert(this.ptCurrentCell.
X
== dataGridViewCell.ColumnIndex);
9854
dataGridViewCell = this.Rows[this.ptCurrentCell.Y].Cells[this.ptCurrentCell.
X
]; // unshare the edited cell
9866
dgvdee = new DataGridViewDataErrorEventArgs(exception, this.ptCurrentCell.
X
,
9907
dgvdee = new DataGridViewDataErrorEventArgs(exception, this.ptCurrentCell.
X
,
10284
this.ptCurrentCell.
X
!= -1)
10569
if (firstDisplayedCellAddress.
X
!= -1 &&
10574
bool success = SetAndSelectCurrentCellAddress(firstDisplayedCellAddress.
X
,
10693
Debug.Assert(this.ptCurrentCell.
X
>= 0 && this.ptCurrentCell.
X
< this.Columns.Count);
12278
HitTestInfo hti = HitTest(ptGridCoord.
X
, ptGridCoord.Y);
12285
Debug.Assert(this.ptMouseDownCell.
X
== hti.col);
12340
BeginMouseColumnResize(ptGridCoord.
X
, hti.mouseBarOffset, columnIndex);
12367
BeginColumnRelocation(ptGridCoord.
X
, hti.col);
12405
BeginRowHeadersResize(ptGridCoord.
X
, hti.mouseBarOffset);
12424
if (this.ptCurrentCell.
X
== -1)
12440
if (this.ptCurrentCell.
X
>= 0 &&
12441
(this.ptCurrentCell.
X
!= hti.col || this.ptCurrentCell.Y != hti.row))
12445
this.ptCurrentCell.
X
!= hti.col || this.ptCurrentCell.Y != hti.row /*forCurrentCellChange*/,
12463
if (this.ptCurrentCell.
X
== -1 && dataGridViewLastVisibleColumn != null)
12478
if (this.ptCurrentCell.
X
== -1 && lastVisibleRowIndex != -1)
12521
int oldEdgeColumnIndex = this.ptCurrentCell.
X
;
12523
if (this.ptAnchorCell.
X
== -1)
12527
UpdateSelectedCellsBlock(this.ptAnchorCell.
X
, ref oldEdgeColumnIndex, hti.col,
12562
this.ptAnchorCell.
X
> -1 &&
12563
this.Columns[this.ptAnchorCell.
X
].Selected)
12606
if (this.Columns.DisplayInOrder(this.ptAnchorCell.
X
, hti.col))
12608
SelectColumnRange(this.ptAnchorCell.
X
, hti.col, true);
12612
SelectColumnRange(hti.col, this.ptAnchorCell.
X
, true);
12686
int oldEdgeColumnIndex = this.ptCurrentCell.
X
;
12688
if (this.ptAnchorCell.
X
== -1)
12692
UpdateSelectedCellsBlock(this.ptAnchorCell.
X
, ref oldEdgeColumnIndex, hti.col,
12866
int oldEdgeColumnIndex = this.ptCurrentCell.
X
;
12868
if (this.ptAnchorCell.
X
== -1)
12872
UpdateSelectedCellsBlock(this.ptAnchorCell.
X
, ref oldEdgeColumnIndex, hti.col,
13021
this.ptMouseDownCell.
X
>= 0 &&
13022
this.ptMouseDownCell.
X
< this.Columns.Count)
13026
HitTestInfo hti = HitTest(ptGridCoord.
X
, ptGridCoord.Y);
13041
if (Math.Abs(this.ptMouseDownGridCoord.
X
- ptGridCoord.
X
) >= DataGridView.DragSize.Width ||
13044
BeginColumnRelocation(this.ptMouseDownGridCoord.
X
, this.ptMouseDownCell.
X
);
13134
int oldEdgeColumnIndex = this.ptCurrentCell.
X
;
13136
if ((hti.col != this.ptCurrentCell.
X
|| hti.row != this.ptCurrentCell.Y) &&
13145
if (this.ptAnchorCell.
X
== -1 || IsInnerCellOutOfBounds(hti.col, hti.row))
13149
UpdateSelectedCellsBlock(this.ptAnchorCell.
X
, ref oldEdgeColumnIndex, hti.col,
13151
if (hti.col != this.ptCurrentCell.
X
|| hti.row != this.ptCurrentCell.Y)
13185
this.ptCurrentCell.
X
== dataGridViewCell.ColumnIndex &&
13193
ColumnEditable(this.ptCurrentCell.
X
) &&
14178
if (rowIndex > -1 && hti.col != this.ptCurrentCell.
X
)
14181
int oldCurrentCellX = this.ptCurrentCell.
X
;
14236
this.ptAnchorCell.
X
> -1 &&
14237
this.Columns[this.ptAnchorCell.
X
].Selected)
14288
if (this.Columns.DisplayInOrder(this.ptAnchorCell.
X
, hti.col))
14290
SelectColumnRange(this.ptAnchorCell.
X
, hti.col, true);
14294
SelectColumnRange(hti.col, this.ptAnchorCell.
X
, true);
14304
if (hti.col != this.ptCurrentCell.
X
)
14319
else if (-1 != this.ptCurrentCell.
X
)
14322
bool success = SetCurrentCellAddressCore(this.ptCurrentCell.
X
, this.ptCurrentCell.Y, false /*setAnchorCellAddress*/, false /*validateCurrentCell*/, false /*throughMouseClick*/);
14599
if (this.ptCurrentCell.
X
!= -1 &&
14600
hti.col != this.ptCurrentCell.
X
&&
14682
if (this.ptCurrentCell.
X
!= -1 && hti.col != this.ptCurrentCell.
X
)
14899
dataGridViewColumn.Index == this.ptCurrentCell.
X
&&
14905
ColumnEditable(this.ptCurrentCell.
X
) &&
14980
PositionEditingControl(this.ptCurrentCell.
X
!= e.Column.Index, true, false);
15006
if (this.ptMouseDownCell.
X
== -2 ||
15008
this.ptMouseDownCell.
X
== columnIndex && this.ptMouseDownCell.Y == rowIndex &&
15009
(this.ptMouseDownCell.
X
== -1 || this.ptMouseDownCell.Y == -1 ||
15010
(columnIndex == this.ptCurrentCell.
X
&& rowIndex == this.ptCurrentCell.Y))))
15209
else if (dataGridViewColumn.Visible && this.ptCurrentCell.
X
== dataGridViewColumn.Index)
15228
if (this.ptCurrentCell.
X
== dataGridViewColumn.Index &&
15324
if (this.ptCurrentCell.
X
== dataGridViewCell.ColumnIndex &&
15469
this.ptCurrentCell.
X
> -1 &&
15528
if (this.ptCurrentCell.
X
> -1)
15533
OnRowEnter(ref dataGridViewCell, this.ptCurrentCell.
X
, this.ptCurrentCell.Y, false /*canCreateNewRow*/, false /*validationFailureOccurred*/);
15534
if (this.ptCurrentCell.
X
== -1)
15538
OnCellEnter(ref dataGridViewCell, this.ptCurrentCell.
X
, this.ptCurrentCell.Y);
15543
InvalidateCellPrivate(this.ptCurrentCell.
X
, -1);
15552
if (this.ptCurrentCell.
X
> -1 &&
15559
if (this.ptCurrentCell.
X
> -1 && this.CurrentCellInternal.EditType == null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inMouseDown])
15564
InvalidateCellPrivate(this.ptCurrentCell.
X
/*columnIndex*/, this.ptCurrentCell.Y /*rowIndex*/);
15573
InvalidateCellPrivate(this.ptCurrentCell.
X
/*columnIndex*/, this.ptCurrentCell.Y /*rowIndex*/);
15691
if (this.ptCurrentCell.
X
!= -1)
15693
InvalidateCell(this.ptCurrentCell.
X
, this.ptCurrentCell.Y);
15700
this.ptCurrentCell.
X
> -1)
15730
if (this.ptCurrentCell.
X
== -1)
15736
ScrollIntoView(this.ptCurrentCell.
X
, this.ptCurrentCell.Y, false /*forCurrentCellChange*/);
15770
if (newCurrentCell.
X
!= -1)
15772
Debug.Assert(this.ptCurrentCell.
X
== -1);
15773
bool success = SetAndSelectCurrentCellAddress(newCurrentCell.
X
,
15809
Debug.Assert(this.ptCurrentCell.
X
== -1);
15810
bool success = SetAndSelectCurrentCellAddress(newCurrentCell.
X
,
15848
Debug.Assert(this.ptCurrentCell.
X
== -1);
15849
bool success = SetAndSelectCurrentCellAddress(newCurrentCell.
X
, newCurrentCell.Y, true, false, false, false /*clearSelection*/, false /*forceCurrentCellSelection*/);
15894
if (this.ptCurrentCell.
X
!= -1)
15896
newCurrentCell = new Point(columnIndexInserted <= this.ptCurrentCell.
X
? this.ptCurrentCell.
X
+ 1 : this.ptCurrentCell.
X
,
16008
newCurrentCell = new Point(this.ptCurrentCell.
X
, this.ptCurrentCell.Y + insertionCount);
16082
newCurrentCell = new Point(this.ptCurrentCell.
X
, this.ptCurrentCell.Y + dataGridViewRows.Length);
16142
if (this.ptCurrentCell.
X
!= -1)
16200
if (this.ptCurrentCell.
X
!= -1)
16234
if (this.ptCurrentCell.
X
!= -1)
16273
if (this.ptCurrentCell.
X
> -1 && !this.dataGridViewState1[DATAGRIDVIEWSTATE1_leavingWithTabKey])
16276
OnCellLeave(ref dataGridViewCell, this.ptCurrentCell.
X
, this.ptCurrentCell.Y);
16277
if (this.ptCurrentCell.
X
== -1)
16281
OnRowLeave(ref dataGridViewCell, this.ptCurrentCell.
X
, this.ptCurrentCell.Y);
16289
if (this.ptCurrentCell.
X
> -1 && this.ptCurrentCell.Y > -1)
16291
InvalidateCellPrivate(this.ptCurrentCell.
X
/*columnIndex*/, this.ptCurrentCell.Y /*rowIndex*/);
16306
if (this.ptCurrentCell.
X
!= -1)
16308
InvalidateCell(this.ptCurrentCell.
X
, this.ptCurrentCell.Y);
16326
if (this.ptMouseDownCell.
X
== hti.col &&
16329
this.ptMouseDownCell.
X
== -1 ||
16331
(this.ptMouseDownCell.
X
== this.ptCurrentCell.
X
&&
16412
if (this.ptMouseDownCell.
X
== hti.col && this.ptMouseDownCell.Y == hti.row)
16527
if (this.ptMouseDownCell.
X
!= -2)
16583
if (!mouseOverEditingPanel && !mouseOverEditingControl && !mouseOverToolTipControl && this.ptMouseEnteredCell.
X
!= -2)
16585
if (this.ptMouseEnteredCell.
X
>= -1 && this.ptMouseEnteredCell.
X
< this.Columns.Count &&
16588
DataGridViewCellEventArgs dgvce = new DataGridViewCellEventArgs(this.ptMouseEnteredCell.
X
, this.ptMouseEnteredCell.Y);
16814
if (hti.col >= 0 && this.ptMouseDownCell.
X
== hti.col &&
16949
if (this.ptCurrentCell.
X
>= 0 &&
16990
if (this.ptCurrentCell.
X
>= 0 &&
17312
this.ptCurrentCell.
X
!= -1 &&
17313
ColumnEditable(this.ptCurrentCell.
X
) &&
17317
!this.Rows[this.ptCurrentCell.Y].Cells[this.ptCurrentCell.
X
].ReadOnly) // Unshares the row
17349
if (newCurrentCell.
X
!= -1)
17351
Debug.Assert(this.ptCurrentCell.
X
== -1);
17352
bool success = SetAndSelectCurrentCellAddress(newCurrentCell.
X
,
17401
Debug.Assert(this.ptCurrentCell.
X
== -1);
17402
bool success = SetAndSelectCurrentCellAddress(newCurrentCell.
X
,
17481
if (this.ptCurrentCell.
X
!= -1)
17483
int newX = this.ptCurrentCell.
X
;
17484
if (columnIndex == this.ptCurrentCell.
X
)
17524
else if (columnIndex < this.ptCurrentCell.
X
)
17526
newX = this.ptCurrentCell.
X
- 1;
17529
if (columnIndex == this.ptCurrentCell.
X
)
17736
newCurrentCell = new Point(this.ptCurrentCell.
X
, newY);
17830
if (this.ptCurrentCellCache.
X
!= -1)
17832
if (!IsInnerCellOutOfBounds(this.ptCurrentCellCache.
X
, this.ptCurrentCellCache.Y))
17834
SetCurrentCellAddressCore(this.ptCurrentCellCache.
X
, this.ptCurrentCellCache.Y, false, false, false);
17843
if (this.ptCurrentCell.
X
== dataGridViewRow.Index &&
17848
this.ptCurrentCellCache.X = this.ptCurrentCell.
X
;
17981
this.ptCurrentCell.
X
== -1 && allowSettingCurrentCell && !this.InSortOperation)
18435
int oldCurrentCellX = this.ptCurrentCell.
X
;
18484
if (this.ptCurrentCell.
X
== -1 && lastVisibleRowIndex != -1)
18605
bool success = SetCurrentCellAddressCore(this.ptCurrentCell.
X
, this.ptCurrentCell.Y,
18943
!CommitEditForOperation(this.ptCurrentCell.
X
, hti.row, true))
19025
bool success = SetCurrentCellAddressCore(this.ptCurrentCell.
X
,
19220
!this.Columns[this.ptCurrentCell.
X
].ReadOnly &&
19221
ColumnEditable(this.ptCurrentCell.
X
) &&
19234
if (-1 != this.ptCurrentCell.
X
&& dataGridViewRow.Index == this.ptCurrentCell.Y && this.editingControl != null)
19351
if (pt.
X
< 0 && step < 0)
19353
Invalidate(new Rectangle(new Point(-pt.
X
, ColumnHeadersHeight),
19362
if (pt.
X
> rect.Right && step > 0)
19364
Invalidate(new Rectangle(new Point(ClientSize.Width - (pt.
X
- rect.Right) - step, ColumnHeadersHeight),
19534
if (-1 != this.ptCurrentCell.
X
)
19537
bool success = SetCurrentCellAddressCore(this.ptCurrentCell.
X
, this.ptCurrentCell.Y,
19628
if (this.ptCurrentCell.
X
>= 0)
19631
if (OnRowValidating(ref dataGridViewCellTmp, this.ptCurrentCell.
X
, this.ptCurrentCell.Y))
19637
if (this.ptCurrentCell.
X
== -1)
19641
OnRowValidated(ref dataGridViewCellTmp, this.ptCurrentCell.
X
, this.ptCurrentCell.Y);
19644
this.ptCurrentCell.
X
>= 0 &&
19652
bool success = SetAndSelectCurrentCellAddress(this.ptCurrentCell.
X
, rowIndex,
20362
int leftEdge = GetColumnXFromIndex(this.ptCurrentCell.
X
);
20365
leftEdge -= this.Columns[this.ptCurrentCell.
X
].Width-1;
20368
this.Columns[this.ptCurrentCell.
X
].Width, this.Rows.SharedRow(this.ptCurrentCell.Y).GetHeight(this.ptCurrentCell.Y));
20371
if (!this.Columns[this.ptCurrentCell.
X
].Frozen)
20400
bool isFirstDisplayedColumn = this.FirstDisplayedColumnIndex == this.ptCurrentCell.
X
;
20612
if (this.ptCurrentCell.
X
> -1 &&
20733
if (this.ptCurrentCell.
X
== -1)
20759
if (!ScrollIntoView(this.ptCurrentCell.
X
, lastVisibleRowIndex, true))
20766
int oldEdgeColumnIndex = this.ptCurrentCell.
X
;
20768
if (this.ptCurrentCell.
X
== -1 || this.ptAnchorCell.
X
== -1 ||
20774
UpdateSelectedCellsBlock(this.ptAnchorCell.
X
, ref oldEdgeColumnIndex, oldEdgeColumnIndex,
20776
success = SetCurrentCellAddressCore(this.ptCurrentCell.
X
, lastVisibleRowIndex, false, false, false);
20784
if (!ScrollIntoView(this.ptCurrentCell.
X
, lastVisibleRowIndex, true))
20788
if (this.ptCurrentCell.
X
== -1 || IsRowOutOfBounds(lastVisibleRowIndex))
20795
SetSelectedCellCore(this.ptCurrentCell.
X
, lastVisibleRowIndex, true);
20796
success = SetCurrentCellAddressCore(this.ptCurrentCell.
X
, lastVisibleRowIndex, true, false, false);
20806
if (this.ptCurrentCell.
X
== -1)
20825
if (!ScrollIntoView(this.ptCurrentCell.
X
, lastVisibleRowIndex, true))
20829
if (this.ptCurrentCell.
X
== -1 || IsRowOutOfBounds(lastVisibleRowIndex))
20835
SetSelectedCellCore(this.ptCurrentCell.
X
, lastVisibleRowIndex, true);
20836
success = SetCurrentCellAddressCore(this.ptCurrentCell.
X
, lastVisibleRowIndex, true, false, false);
20848
if (this.ptCurrentCell.
X
== -1)
20872
if (!ScrollIntoView(this.ptCurrentCell.
X
, nextVisibleRowIndex, true))
20876
if (this.ptCurrentCell.
X
== -1 || IsRowOutOfBounds(nextVisibleRowIndex))
20884
int oldEdgeColumnIndex = this.ptCurrentCell.
X
;
20886
if (this.ptAnchorCell.
X
== -1)
20891
UpdateSelectedCellsBlock(this.ptAnchorCell.
X
, ref oldEdgeColumnIndex, oldEdgeColumnIndex,
20897
SetSelectedCellCore(this.ptCurrentCell.
X
, nextVisibleRowIndex, true);
20899
success = SetCurrentCellAddressCore(this.ptCurrentCell.
X
, nextVisibleRowIndex, !this.MultiSelect, false, false);
20908
if (this.ptCurrentCell.
X
== -1)
20932
if (!ScrollIntoView(this.ptCurrentCell.
X
, nextVisibleRowIndex, true /*forCurrentCellChange*/))
20936
if (this.ptCurrentCell.
X
== -1 || IsRowOutOfBounds(nextVisibleRowIndex))
20942
SetSelectedCellCore(this.ptCurrentCell.
X
, nextVisibleRowIndex, true);
20943
success = SetCurrentCellAddressCore(this.ptCurrentCell.
X
,
20962
if (this.ptCurrentCell.
X
== -1)
20983
if (!ScrollIntoView(this.ptCurrentCell.
X
, lastVisibleRowIndex, true))
20987
if (this.ptAnchorCell.Y == -1 || this.ptCurrentCell.
X
== -1 ||
20996
success = SetCurrentCellAddressCore(this.ptCurrentCell.
X
, lastVisibleRowIndex, false, false, false);
21004
if (!ScrollIntoView(this.ptCurrentCell.
X
, lastVisibleRowIndex, true))
21008
if (this.ptCurrentCell.
X
== -1 || IsRowOutOfBounds(lastVisibleRowIndex))
21015
success = SetCurrentCellAddressCore(this.ptCurrentCell.
X
, lastVisibleRowIndex, true, false, false);
21025
if (this.ptCurrentCell.
X
== -1)
21044
if (!ScrollIntoView(this.ptCurrentCell.
X
, lastVisibleRowIndex, true))
21048
if (this.ptCurrentCell.
X
== -1 || IsRowOutOfBounds(lastVisibleRowIndex))
21055
success = SetCurrentCellAddressCore(this.ptCurrentCell.
X
, lastVisibleRowIndex, true, false, false);
21067
if (this.ptCurrentCell.
X
== -1)
21091
if (!ScrollIntoView(this.ptCurrentCell.
X
, nextVisibleRowIndex, true))
21095
if (this.ptCurrentCell.
X
== -1 || IsRowOutOfBounds(nextVisibleRowIndex))
21103
if (this.ptAnchorCell.
X
== -1)
21121
success = SetCurrentCellAddressCore(this.ptCurrentCell.
X
, nextVisibleRowIndex, !this.MultiSelect, false, false);
21130
if (this.ptCurrentCell.
X
== -1)
21154
if (!ScrollIntoView(this.ptCurrentCell.
X
, nextVisibleRowIndex, true))
21158
if (this.ptCurrentCell.
X
== -1 || IsRowOutOfBounds(nextVisibleRowIndex))
21165
success = SetCurrentCellAddressCore(this.ptCurrentCell.
X
, nextVisibleRowIndex, true, false, false);
21180
if (this.ptCurrentCell.
X
== -1)
21201
if (!ScrollIntoView(this.ptCurrentCell.
X
, lastVisibleRowIndex, true))
21221
int oldEdgeColumnIndex = this.ptCurrentCell.
X
;
21223
UpdateSelectedCellsBlock(this.ptAnchorCell.
X
, ref oldEdgeColumnIndex, oldEdgeColumnIndex,
21226
success = SetCurrentCellAddressCore(this.ptCurrentCell.
X
, lastVisibleRowIndex, false, false, false);
21234
if (!ScrollIntoView(this.ptCurrentCell.
X
, lastVisibleRowIndex, true))
21250
SetSelectedCellCore(this.ptCurrentCell.
X
, this.ptCurrentCell.Y, false);
21251
SetSelectedCellCore(this.ptCurrentCell.
X
, lastVisibleRowIndex, true);
21253
success = SetCurrentCellAddressCore(this.ptCurrentCell.
X
, lastVisibleRowIndex, true, false, false);
21263
if (this.ptCurrentCell.
X
== -1)
21282
if (!ScrollIntoView(this.ptCurrentCell.
X
, lastVisibleRowIndex, true))
21299
SetSelectedCellCore(this.ptCurrentCell.
X
, lastVisibleRowIndex, true);
21301
success = SetCurrentCellAddressCore(this.ptCurrentCell.
X
, lastVisibleRowIndex, true, false, false);
21313
if (this.ptCurrentCell.
X
== -1)
21337
if (!ScrollIntoView(this.ptCurrentCell.
X
, nextVisibleRowIndex, true))
21375
int oldEdgeColumnIndex = this.ptCurrentCell.
X
;
21377
if (this.ptAnchorCell.
X
== -1)
21382
UpdateSelectedCellsBlock(this.ptAnchorCell.
X
, ref oldEdgeColumnIndex, oldEdgeColumnIndex,
21388
SetSelectedCellCore(this.ptCurrentCell.
X
, nextVisibleRowIndex, true);
21391
success = SetCurrentCellAddressCore(this.ptCurrentCell.
X
, nextVisibleRowIndex, !this.MultiSelect, false, false);
21400
if (this.ptCurrentCell.
X
== -1)
21424
if (!ScrollIntoView(this.ptCurrentCell.
X
, nextVisibleRowIndex, true))
21441
SetSelectedCellCore(this.ptCurrentCell.
X
, nextVisibleRowIndex, true);
21443
success = SetCurrentCellAddressCore(this.ptCurrentCell.
X
, nextVisibleRowIndex, true, false, false);
21456
if (this.ptCurrentCell.
X
== -1)
21475
if (!ScrollIntoView(this.ptCurrentCell.
X
, lastVisibleRowIndex, true))
21479
if (this.ptCurrentCell.
X
== -1 || IsRowOutOfBounds(lastVisibleRowIndex))
21484
success = SetCurrentCellAddressCore(this.ptCurrentCell.
X
, lastVisibleRowIndex, true, false, false);
21493
if (this.ptCurrentCell.
X
== -1)
21517
if (!ScrollIntoView(this.ptCurrentCell.
X
, nextVisibleRowIndex, true))
21521
if (this.ptCurrentCell.
X
== -1 || IsRowOutOfBounds(nextVisibleRowIndex))
21526
success = SetCurrentCellAddressCore(this.ptCurrentCell.
X
, nextVisibleRowIndex, true, false, false);
21582
if (this.MultiSelect && this.ptAnchorCell.
X
>= 0)
21584
int oldEdgeColumnIndex = this.ptCurrentCell.
X
;
21586
UpdateSelectedCellsBlock(this.ptAnchorCell.
X
, ref oldEdgeColumnIndex, lastVisibleColumnIndex,
21626
if (this.MultiSelect && this.ptAnchorCell.
X
>= 0)
21636
int oldEdgeColumnIndex = this.ptCurrentCell.
X
;
21638
UpdateSelectedCellsBlock(this.ptAnchorCell.
X
, ref oldEdgeColumnIndex, lastVisibleColumnIndex,
21695
if (this.MultiSelect && this.ptCurrentCell.
X
>= 0)
21697
SelectColumnRange(this.ptAnchorCell.
X
, lastVisibleColumnIndex, true);
21731
if (this.ptCurrentCell.
X
>= 0 && this.Columns[this.ptCurrentCell.
X
].Selected)
21736
if (this.ptAnchorCell.
X
== -1)
21740
SelectColumnRange(this.ptAnchorCell.
X
, lastVisibleColumnIndex, true);
21746
if (this.MultiSelect && this.ptCurrentCell.
X
>= 0)
21748
int oldEdgeColumnIndex = this.ptCurrentCell.
X
;
21750
if (this.ptAnchorCell.
X
== -1)
21754
UpdateSelectedCellsBlock(this.ptAnchorCell.
X
, ref oldEdgeColumnIndex, lastVisibleColumnIndex,
21776
if (this.ptCurrentCell.
X
>= 0 && this.Columns[this.ptCurrentCell.
X
].Selected)
21867
if (this.ptCurrentCell.
X
!= -1)
21903
int columnIndex = this.ptCurrentCell.
X
;
21951
if (this.ptCurrentCell.
X
!= -1 &&
21958
(IsSharedCellReadOnly(this.CurrentCellInternal, this.ptCurrentCell.Y) || !ColumnEditable(this.ptCurrentCell.
X
)));
21959
if (ColumnEditable(this.ptCurrentCell.
X
) &&
21964
bool success = ScrollIntoView(this.ptCurrentCell.
X
, this.ptCurrentCell.Y, false);
21984
if (this.ptCurrentCell.
X
!= -1 && AccessibilityImprovements.Level2)
21986
DataGridViewColumn dataGridViewColumn = Columns[this.ptCurrentCell.
X
];
22036
if (this.MultiSelect && this.ptAnchorCell.
X
>= 0)
22038
int oldEdgeColumnIndex = this.ptCurrentCell.
X
;
22040
UpdateSelectedCellsBlock(this.ptAnchorCell.
X
, ref oldEdgeColumnIndex, firstVisibleColumnIndex,
22080
if (this.MultiSelect && this.ptAnchorCell.
X
>= 0)
22090
int oldEdgeColumnIndex = this.ptCurrentCell.
X
;
22092
UpdateSelectedCellsBlock(this.ptAnchorCell.
X
, ref oldEdgeColumnIndex, firstVisibleColumnIndex,
22149
if (this.MultiSelect && this.ptCurrentCell.
X
>= 0)
22151
if (this.ptAnchorCell.
X
== -1)
22155
SelectColumnRange(firstVisibleColumnIndex, this.ptAnchorCell.
X
, true);
22189
if (this.ptCurrentCell.
X
>= 0 && this.Columns[this.ptCurrentCell.
X
].Selected)
22194
if (this.ptAnchorCell.
X
== -1)
22198
SelectColumnRange(firstVisibleColumnIndex, this.ptAnchorCell.
X
, true);
22204
if (this.MultiSelect && this.ptCurrentCell.
X
>= 0)
22206
int oldEdgeColumnIndex = this.ptCurrentCell.
X
;
22208
if (this.ptAnchorCell.
X
== -1)
22212
UpdateSelectedCellsBlock(this.ptAnchorCell.
X
, ref oldEdgeColumnIndex, firstVisibleColumnIndex,
22234
if (this.ptCurrentCell.
X
>= 0 && this.Columns[this.ptCurrentCell.
X
].Selected)
22308
if (this.ptCurrentCell.
X
!= -1)
22314
ColumnEditable(this.ptCurrentCell.
X
) &&
22333
bool success = ScrollIntoView(this.ptCurrentCell.
X
, this.ptCurrentCell.Y, false);
22454
if (AccessibilityImprovements.Level2 && (keyData & Keys.Alt) == Keys.Alt && this.AllowUserToResizeColumns && this.ptCurrentCell.
X
!= -1)
22458
DataGridViewColumn dataGridViewColumn = Columns[this.ptCurrentCell.
X
];
22462
BeginKeyboardColumnResize(this.ptCurrentCell.
X
);
22515
if (this.ptCurrentCell.
X
!= -1)
22517
dataGridViewColumn = this.Columns.GetPreviousColumn(this.Columns[this.ptCurrentCell.
X
],
22541
if (this.ptCurrentCell.
X
== -1)
22570
Debug.Assert(this.ptAnchorCell.
X
>= 0);
22572
int oldEdgeColumnIndex = this.ptCurrentCell.
X
;
22574
if (this.ptAnchorCell.
X
== -1)
22578
UpdateSelectedCellsBlock(this.ptAnchorCell.
X
, ref oldEdgeColumnIndex, previousVisibleColumnIndex,
22592
if (this.ptCurrentCell.
X
== -1)
22637
if (this.ptCurrentCell.
X
== -1)
22667
if (this.ptAnchorCell.
X
== -1)
22671
if (this.Columns.DisplayInOrder(this.ptAnchorCell.
X
, previousVisibleColumnIndex))
22673
SelectColumnRange(this.ptAnchorCell.
X
, previousVisibleColumnIndex, true);
22677
SelectColumnRange(previousVisibleColumnIndex, this.ptAnchorCell.
X
, true);
22690
if (this.ptCurrentCell.
X
== -1)
22735
if (this.ptCurrentCell.
X
== -1)
22758
if (this.ptCurrentCell.
X
== -1 || IsColumnOutOfBounds(previousVisibleColumnIndex))
22762
if (this.Columns[this.ptCurrentCell.
X
].Selected)
22767
if (this.ptAnchorCell.
X
== -1)
22771
if (this.Columns.DisplayInOrder(this.ptAnchorCell.
X
, previousVisibleColumnIndex))
22773
SelectColumnRange(this.ptAnchorCell.
X
, previousVisibleColumnIndex, true);
22777
SelectColumnRange(previousVisibleColumnIndex, this.ptAnchorCell.
X
, true);
22787
int oldEdgeColumnIndex = this.ptCurrentCell.
X
;
22789
if (this.ptAnchorCell.
X
== -1)
22793
UpdateSelectedCellsBlock(this.ptAnchorCell.
X
, ref oldEdgeColumnIndex, previousVisibleColumnIndex,
22808
if (this.ptCurrentCell.
X
== -1)
22831
if (this.ptCurrentCell.
X
== -1 || IsColumnOutOfBounds(previousVisibleColumnIndex))
22835
if (this.Columns[this.ptCurrentCell.
X
].Selected)
22859
if (this.ptCurrentCell.
X
== -1)
22915
if (this.ptCurrentCell.
X
== -1)
22937
Debug.Assert(this.ptAnchorCell.
X
>= 0);
22939
int oldEdgeColumnIndex = this.ptCurrentCell.
X
;
22941
if (this.ptAnchorCell.
X
== -1 || this.ptCurrentCell.
X
== -1 ||
22946
UpdateSelectedCellsBlock(this.ptAnchorCell.
X
, ref oldEdgeColumnIndex, firstVisibleColumnIndex,
22971
if (this.ptCurrentCell.
X
== -1)
23005
if (this.ptCurrentCell.
X
== -1)
23026
if (this.ptAnchorCell.
X
== -1 || this.ptCurrentCell.Y == -1 ||
23032
Debug.Assert(this.ptAnchorCell.
X
>= 0);
23033
SelectColumnRange(firstVisibleColumnIndex, this.ptAnchorCell.
X
, true);
23043
if (this.ptCurrentCell.
X
== -1 || IsColumnOutOfBounds(firstVisibleColumnIndex))
23047
SetSelectedColumnCore(this.ptCurrentCell.
X
, false);
23056
if (this.ptCurrentCell.
X
== -1)
23090
if (this.ptCurrentCell.
X
== -1)
23111
if (this.ptAnchorCell.
X
== -1 || this.ptCurrentCell.
X
== -1 ||
23116
Debug.Assert(this.ptAnchorCell.
X
>= 0);
23117
if (this.Columns[this.ptCurrentCell.
X
].Selected)
23120
SelectColumnRange(firstVisibleColumnIndex, this.ptAnchorCell.
X
, true);
23126
int oldEdgeColumnIndex = this.ptCurrentCell.
X
;
23128
UpdateSelectedCellsBlock(this.ptAnchorCell.
X
, ref oldEdgeColumnIndex, firstVisibleColumnIndex,
23140
if (this.ptCurrentCell.
X
== -1 ||
23145
if (this.Columns[this.ptCurrentCell.
X
].Selected)
23147
SetSelectedColumnCore(this.ptCurrentCell.
X
, false);
23152
SetSelectedCellCore(this.ptCurrentCell.
X
, this.ptCurrentCell.Y, false);
23162
if (this.ptCurrentCell.
X
== -1)
23181
if (this.ptCurrentCell.
X
== -1 || IsColumnOutOfBounds(firstVisibleColumnIndex))
23185
if (this.Columns[this.ptCurrentCell.
X
].Selected)
23202
if (this.ptCurrentCell.
X
== -1)
23271
if (!ScrollIntoView(this.ptCurrentCell.
X
== -1 ? firstVisibleColumnIndex : this.ptCurrentCell.
X
,
23306
if (this.ptCurrentCell.
X
== -1)
23341
if (!ScrollIntoView(this.ptCurrentCell.
X
, nextScreenVisibleRowIndex, true))
23345
if (this.ptCurrentCell.
X
== -1 || IsRowOutOfBounds(nextScreenVisibleRowIndex))
23352
int oldEdgeColumnIndex = this.ptCurrentCell.
X
;
23358
UpdateSelectedCellsBlock(this.ptAnchorCell.
X
, ref oldEdgeColumnIndex, oldEdgeColumnIndex,
23364
SetSelectedCellCore(this.ptCurrentCell.
X
, nextScreenVisibleRowIndex, true);
23366
success = SetCurrentCellAddressCore(this.ptCurrentCell.
X
, nextScreenVisibleRowIndex, false, false, false);
23371
if (!ScrollIntoView(this.ptCurrentCell.
X
, nextScreenVisibleRowIndex, true))
23375
if (this.ptCurrentCell.
X
== -1 || IsRowOutOfBounds(nextScreenVisibleRowIndex))
23400
success = SetCurrentCellAddressCore(this.ptCurrentCell.
X
, nextScreenVisibleRowIndex, false, false, false);
23405
if (!ScrollIntoView(this.ptCurrentCell.
X
, nextScreenVisibleRowIndex, true))
23409
if (this.ptCurrentCell.
X
== -1 || IsRowOutOfBounds(nextScreenVisibleRowIndex))
23434
int oldEdgeColumnIndex = this.ptCurrentCell.
X
;
23436
UpdateSelectedCellsBlock(this.ptAnchorCell.
X
, ref oldEdgeColumnIndex, oldEdgeColumnIndex,
23450
SetSelectedCellCore(this.ptCurrentCell.
X
, nextScreenVisibleRowIndex, true);
23453
success = SetCurrentCellAddressCore(this.ptCurrentCell.
X
, nextScreenVisibleRowIndex, !this.MultiSelect, false, false);
23458
if (!ScrollIntoView(this.ptCurrentCell.
X
, nextScreenVisibleRowIndex, true))
23462
if (this.ptCurrentCell.
X
== -1 || IsRowOutOfBounds(nextScreenVisibleRowIndex))
23466
success = SetCurrentCellAddressCore(this.ptCurrentCell.
X
, nextScreenVisibleRowIndex, true, false, false);
23535
!ScrollIntoView(this.ptCurrentCell.
X
== -1 ? firstVisibleColumnIndex : this.ptCurrentCell.
X
,
23548
if (this.ptCurrentCell.
X
== -1)
23580
if (!ScrollIntoView(this.ptCurrentCell.
X
, previousScreenVisibleRowIndex, true))
23584
if (this.ptCurrentCell.
X
== -1 || IsRowOutOfBounds(previousScreenVisibleRowIndex))
23591
int oldEdgeColumnIndex = this.ptCurrentCell.
X
;
23593
if (this.ptAnchorCell.
X
== -1)
23597
UpdateSelectedCellsBlock(this.ptAnchorCell.
X
, ref oldEdgeColumnIndex, oldEdgeColumnIndex,
23603
SetSelectedCellCore(this.ptCurrentCell.
X
, previousScreenVisibleRowIndex, true);
23605
success = SetCurrentCellAddressCore(this.ptCurrentCell.
X
, previousScreenVisibleRowIndex, false, false, false);
23610
if (!ScrollIntoView(this.ptCurrentCell.
X
, previousScreenVisibleRowIndex, true))
23614
if (this.ptCurrentCell.
X
== -1 || IsRowOutOfBounds(previousScreenVisibleRowIndex))
23639
success = SetCurrentCellAddressCore(this.ptCurrentCell.
X
, previousScreenVisibleRowIndex, false, false, false);
23644
if (!ScrollIntoView(this.ptCurrentCell.
X
, previousScreenVisibleRowIndex, true))
23648
if (this.ptCurrentCell.
X
== -1 || IsRowOutOfBounds(previousScreenVisibleRowIndex))
23673
int oldEdgeColumnIndex = this.ptCurrentCell.
X
;
23675
UpdateSelectedCellsBlock(this.ptAnchorCell.
X
, ref oldEdgeColumnIndex, oldEdgeColumnIndex,
23689
SetSelectedCellCore(this.ptCurrentCell.
X
, previousScreenVisibleRowIndex, true);
23692
success = SetCurrentCellAddressCore(this.ptCurrentCell.
X
, previousScreenVisibleRowIndex, !this.MultiSelect, false, false);
23697
if (!ScrollIntoView(this.ptCurrentCell.
X
, previousScreenVisibleRowIndex, true))
23701
if (this.ptCurrentCell.
X
== -1 || IsRowOutOfBounds(previousScreenVisibleRowIndex))
23705
success = SetCurrentCellAddressCore(this.ptCurrentCell.
X
, previousScreenVisibleRowIndex, true, false, false);
23754
if (this.ptCurrentCell.
X
!= -1)
23756
dataGridViewColumn = this.Columns.GetNextColumn(this.Columns[this.ptCurrentCell.
X
],
23780
if (this.ptCurrentCell.
X
== -1)
23810
int oldEdgeColumnIndex = this.ptCurrentCell.
X
;
23812
if (this.ptAnchorCell.
X
== -1)
23816
UpdateSelectedCellsBlock(this.ptAnchorCell.
X
, ref oldEdgeColumnIndex, nextVisibleColumnIndex,
23830
if (this.ptCurrentCell.
X
== -1)
23875
if (this.ptCurrentCell.
X
== -1)
23905
if (this.ptAnchorCell.
X
== -1)
23909
if (this.Columns.DisplayInOrder(this.ptAnchorCell.
X
, nextVisibleColumnIndex))
23911
SelectColumnRange(this.ptAnchorCell.
X
, nextVisibleColumnIndex, true);
23915
SelectColumnRange(nextVisibleColumnIndex, this.ptAnchorCell.
X
, true);
23928
if (this.ptCurrentCell.
X
== -1)
23973
if (this.ptCurrentCell.
X
== -1)
24000
if (this.Columns[this.ptCurrentCell.
X
].Selected)
24005
if (this.ptAnchorCell.
X
== -1)
24009
if (this.Columns.DisplayInOrder(this.ptAnchorCell.
X
, nextVisibleColumnIndex))
24011
SelectColumnRange(this.ptAnchorCell.
X
, nextVisibleColumnIndex, true);
24015
SelectColumnRange(nextVisibleColumnIndex, this.ptAnchorCell.
X
, true);
24027
if (this.ptAnchorCell.
X
== -1)
24032
int oldEdgeColumnIndex = this.ptCurrentCell.
X
;
24034
UpdateSelectedCellsBlock(this.ptAnchorCell.
X
, ref oldEdgeColumnIndex, nextVisibleColumnIndex,
24049
if (this.ptCurrentCell.
X
== -1)
24072
if (this.ptCurrentCell.
X
== -1 || IsColumnOutOfBounds(nextVisibleColumnIndex))
24076
if (this.Columns[this.ptCurrentCell.
X
].Selected)
24100
if (this.ptCurrentCell.
X
== -1)
24156
if (this.ptCurrentCell.
X
== -1)
24181
Debug.Assert(this.ptAnchorCell.
X
>= 0);
24182
if (this.ptAnchorCell.
X
== -1)
24186
int oldEdgeColumnIndex = this.ptCurrentCell.
X
;
24188
UpdateSelectedCellsBlock(this.ptAnchorCell.
X
, ref oldEdgeColumnIndex, lastVisibleColumnIndex,
24204
if (this.ptCurrentCell.
X
== -1)
24238
if (this.ptCurrentCell.
X
== -1)
24263
if (this.ptAnchorCell.
X
== -1)
24268
Debug.Assert(this.ptAnchorCell.
X
>= 0);
24269
SelectColumnRange(this.ptAnchorCell.
X
, lastVisibleColumnIndex, true);
24275
SetSelectedColumnCore(this.ptCurrentCell.
X
, false);
24284
if (this.ptCurrentCell.
X
== -1)
24318
if (this.ptCurrentCell.
X
== -1)
24343
Debug.Assert(this.ptAnchorCell.
X
>= 0);
24344
if (this.ptAnchorCell.
X
== -1)
24348
if (this.Columns[this.ptCurrentCell.
X
].Selected)
24351
SelectColumnRange(this.ptAnchorCell.
X
, lastVisibleColumnIndex, true);
24357
int oldEdgeColumnIndex = this.ptCurrentCell.
X
;
24359
UpdateSelectedCellsBlock(this.ptAnchorCell.
X
, ref oldEdgeColumnIndex, lastVisibleColumnIndex,
24367
if (this.Columns[this.ptCurrentCell.
X
].Selected)
24369
SetSelectedColumnCore(this.ptCurrentCell.
X
, false);
24374
SetSelectedCellCore(this.ptCurrentCell.
X
, this.ptCurrentCell.Y, false);
24384
if (this.ptCurrentCell.
X
== -1)
24407
if (this.Columns[this.ptCurrentCell.
X
].Selected)
24424
if (this.ptCurrentCell.
X
== -1)
24467
this.ptCurrentCell.
X
!= -1)
24485
if (this.selectedBandIndexes[bandIndex] != this.ptCurrentCell.
X
)
24496
if (!this.Columns[this.ptCurrentCell.
X
].Selected)
24498
Debug.Assert(!this.selectedBandIndexes.Contains(this.ptCurrentCell.
X
));
24499
SetSelectedColumnCore(this.ptCurrentCell.
X
, true);
24767
if (this.ptCurrentCell.
X
== -1)
24787
if (!ScrollIntoView(this.ptCurrentCell.
X
, firstVisibleRowIndex, true))
24791
if (this.ptAnchorCell.
X
== -1 || this.ptCurrentCell.
X
== -1 ||
24799
int oldEdgeColumnIndex = this.ptCurrentCell.
X
;
24801
UpdateSelectedCellsBlock(this.ptAnchorCell.
X
, ref oldEdgeColumnIndex, oldEdgeColumnIndex,
24803
success = SetCurrentCellAddressCore(this.ptCurrentCell.
X
, firstVisibleRowIndex, false, false, false);
24808
if (!ScrollIntoView(this.ptCurrentCell.
X
, firstVisibleRowIndex, true))
24812
if (this.ptCurrentCell.
X
== -1 || IsRowOutOfBounds(firstVisibleRowIndex))
24818
SetSelectedCellCore(this.ptCurrentCell.
X
, firstVisibleRowIndex, true);
24819
success = SetCurrentCellAddressCore(this.ptCurrentCell.
X
, firstVisibleRowIndex, true, false, false);
24826
if (this.ptCurrentCell.
X
== -1)
24841
if (!ScrollIntoView(this.ptCurrentCell.
X
, firstVisibleRowIndex, true))
24845
if (this.ptCurrentCell.
X
== -1 || IsRowOutOfBounds(firstVisibleRowIndex))
24850
SetSelectedCellCore(this.ptCurrentCell.
X
, firstVisibleRowIndex, true);
24851
success = SetCurrentCellAddressCore(this.ptCurrentCell.
X
, firstVisibleRowIndex, true, false, false);
24860
if (this.ptCurrentCell.
X
== -1)
24879
if (!ScrollIntoView(this.ptCurrentCell.
X
, previousVisibleRowIndex, true))
24883
if (this.ptCurrentCell.
X
== -1 || IsRowOutOfBounds(previousVisibleRowIndex))
24895
int oldEdgeColumnIndex = this.ptCurrentCell.
X
;
24897
UpdateSelectedCellsBlock(this.ptAnchorCell.
X
, ref oldEdgeColumnIndex, oldEdgeColumnIndex,
24903
SetSelectedCellCore(this.ptCurrentCell.
X
, previousVisibleRowIndex, true);
24905
success = SetCurrentCellAddressCore(this.ptCurrentCell.
X
, previousVisibleRowIndex, !this.MultiSelect, false, false);
24911
if (this.ptCurrentCell.
X
== -1)
24930
if (!ScrollIntoView(this.ptCurrentCell.
X
, previousVisibleRowIndex, true))
24934
if (this.ptCurrentCell.
X
== -1 || IsRowOutOfBounds(previousVisibleRowIndex))
24939
SetSelectedCellCore(this.ptCurrentCell.
X
, previousVisibleRowIndex, true);
24940
success = SetCurrentCellAddressCore(this.ptCurrentCell.
X
, previousVisibleRowIndex, true, false, false);
24952
if (this.ptCurrentCell.
X
== -1)
24969
if (!ScrollIntoView(this.ptCurrentCell.
X
, firstVisibleRowIndex, true))
24973
if (this.ptAnchorCell.
X
== -1 || this.ptCurrentCell.
X
== -1 ||
24981
success = SetCurrentCellAddressCore(this.ptCurrentCell.
X
, firstVisibleRowIndex, false, false, false);
24986
if (!ScrollIntoView(this.ptCurrentCell.
X
, firstVisibleRowIndex, true))
24990
if (this.ptCurrentCell.
X
== -1 || IsRowOutOfBounds(firstVisibleRowIndex))
24996
success = SetCurrentCellAddressCore(this.ptCurrentCell.
X
, firstVisibleRowIndex, true, false, false);
25003
if (this.ptCurrentCell.
X
== -1)
25018
if (!ScrollIntoView(this.ptCurrentCell.
X
, firstVisibleRowIndex, true))
25022
if (this.ptCurrentCell.
X
== -1 || IsRowOutOfBounds(firstVisibleRowIndex))
25028
success = SetCurrentCellAddressCore(this.ptCurrentCell.
X
, firstVisibleRowIndex, true, false, false);
25037
if (this.ptCurrentCell.
X
== -1)
25056
if (!ScrollIntoView(this.ptCurrentCell.
X
, previousVisibleRowIndex, true))
25060
if (this.ptCurrentCell.
X
== -1 || IsRowOutOfBounds(previousVisibleRowIndex))
25084
success = SetCurrentCellAddressCore(this.ptCurrentCell.
X
, previousVisibleRowIndex, !this.MultiSelect, false, false);
25090
if (this.ptCurrentCell.
X
== -1)
25109
if (!ScrollIntoView(this.ptCurrentCell.
X
, previousVisibleRowIndex, true))
25113
if (this.ptCurrentCell.
X
== -1 || IsRowOutOfBounds(previousVisibleRowIndex))
25119
success = SetCurrentCellAddressCore(this.ptCurrentCell.
X
, previousVisibleRowIndex, true, false, false);
25131
if (this.ptCurrentCell.
X
== -1)
25148
if (!ScrollIntoView(this.ptCurrentCell.
X
, firstVisibleRowIndex, true))
25152
if (this.ptAnchorCell.
X
== -1 || this.ptCurrentCell.
X
== -1 ||
25167
int oldEdgeColumnIndex = this.ptCurrentCell.
X
;
25169
UpdateSelectedCellsBlock(this.ptAnchorCell.
X
, ref oldEdgeColumnIndex, oldEdgeColumnIndex,
25172
success = SetCurrentCellAddressCore(this.ptCurrentCell.
X
, firstVisibleRowIndex, false, false, false);
25177
if (!ScrollIntoView(this.ptCurrentCell.
X
, firstVisibleRowIndex, true))
25181
if (this.ptCurrentCell.
X
== -1 || IsRowOutOfBounds(firstVisibleRowIndex))
25192
SetSelectedCellCore(this.ptCurrentCell.
X
, this.ptCurrentCell.Y, false);
25193
SetSelectedCellCore(this.ptCurrentCell.
X
, firstVisibleRowIndex, true);
25195
success = SetCurrentCellAddressCore(this.ptCurrentCell.
X
, firstVisibleRowIndex, true, false, false);
25202
if (this.ptCurrentCell.
X
== -1)
25217
if (!ScrollIntoView(this.ptCurrentCell.
X
, firstVisibleRowIndex, true))
25221
if (this.ptCurrentCell.
X
== -1 || IsRowOutOfBounds(firstVisibleRowIndex))
25233
SetSelectedCellCore(this.ptCurrentCell.
X
, firstVisibleRowIndex, true);
25235
success = SetCurrentCellAddressCore(this.ptCurrentCell.
X
, firstVisibleRowIndex, true, false, false);
25244
if (this.ptCurrentCell.
X
== -1)
25263
if (!ScrollIntoView(this.ptCurrentCell.
X
, previousVisibleRowIndex, true))
25267
if (this.ptCurrentCell.
X
== -1 || IsRowOutOfBounds(previousVisibleRowIndex))
25296
int oldEdgeColumnIndex = this.ptCurrentCell.
X
;
25302
UpdateSelectedCellsBlock(this.ptAnchorCell.
X
, ref oldEdgeColumnIndex, oldEdgeColumnIndex,
25308
SetSelectedCellCore(this.ptCurrentCell.
X
, previousVisibleRowIndex, true);
25311
success = SetCurrentCellAddressCore(this.ptCurrentCell.
X
, previousVisibleRowIndex, !this.MultiSelect, false, false);
25317
if (this.ptCurrentCell.
X
== -1)
25336
if (!ScrollIntoView(this.ptCurrentCell.
X
, previousVisibleRowIndex, true))
25340
if (this.ptCurrentCell.
X
== -1 || IsRowOutOfBounds(previousVisibleRowIndex))
25352
SetSelectedCellCore(this.ptCurrentCell.
X
, previousVisibleRowIndex, true);
25354
success = SetCurrentCellAddressCore(this.ptCurrentCell.
X
, previousVisibleRowIndex, true, false, false);
25364
if (this.ptCurrentCell.
X
== -1)
25379
if (!ScrollIntoView(this.ptCurrentCell.
X
, firstVisibleRowIndex, true))
25383
if (this.ptCurrentCell.
X
== -1 || IsRowOutOfBounds(firstVisibleRowIndex))
25387
success = SetCurrentCellAddressCore(this.ptCurrentCell.
X
, firstVisibleRowIndex, true, false, false);
25393
if (this.ptCurrentCell.
X
== -1)
25412
if (!ScrollIntoView(this.ptCurrentCell.
X
, previousVisibleRowIndex, true))
25416
if (this.ptCurrentCell.
X
== -1 || IsRowOutOfBounds(previousVisibleRowIndex))
25420
success = SetCurrentCellAddressCore(this.ptCurrentCell.
X
, previousVisibleRowIndex, true, false, false);
25440
if (this.ptCurrentCell.
X
!= -1 && !this.IsCurrentCellInEditMode && ColumnEditable(this.ptCurrentCell.
X
))
25449
bool success = ScrollIntoView(this.ptCurrentCell.
X
, this.ptCurrentCell.Y, false);
25481
InvalidateCellPrivate(this.ptCurrentCell.
X
, this.ptCurrentCell.Y);
25517
this.ptCurrentCell.
X
,
25528
dataGridViewCurrentCell = this.Rows[this.ptCurrentCell.Y].Cells[this.ptCurrentCell.
X
]; // unsharing the row before pushing the new value
25549
dataGridViewCurrentCell = this.Rows[this.ptCurrentCell.Y].Cells[this.ptCurrentCell.
X
]; // unsharing the row before pushing the new value
25637
if (this.ptCurrentCell.
X
!= -1 && this.IsCurrentCellInEditMode)
26133
if (!committed && this.ptCurrentCell.
X
>= 0 &&
26135
forCurrentCellChange && (this.ptCurrentCell.
X
!= columnIndex || this.ptCurrentCell.Y != rowIndex),
26150
if (!committed && this.ptCurrentCell.
X
>= 0 &&
26152
forCurrentCellChange && (this.ptCurrentCell.
X
!= columnIndex || this.ptCurrentCell.Y != rowIndex),
26163
if (!committed && this.ptCurrentCell.
X
>= 0 &&
26165
forCurrentCellChange && (this.ptCurrentCell.
X
!= columnIndex || this.ptCurrentCell.Y != rowIndex),
26318
if (this.ptCurrentCell.
X
>= 0 &&
26319
(this.ptCurrentCell.
X
!= columnIndex || this.ptCurrentCell.Y != rowIndex))
26378
if (!committed && this.ptCurrentCell.
X
>= 0 &&
26380
forCurrentCellChange && (this.ptCurrentCell.
X
!= columnIndex || this.ptCurrentCell.Y != rowIndex),
26407
if (!committed && this.ptCurrentCell.
X
>= 0 &&
26409
forCurrentCellChange && (this.ptCurrentCell.
X
!= columnIndex || this.ptCurrentCell.Y != rowIndex),
26867
if (this.ptCurrentCell.
X
!= columnIndex || this.ptCurrentCell.Y != rowIndex)
26886
int oldCurrentCellX = this.ptCurrentCell.
X
;
26926
Debug.Assert(oldCurrentCellX == this.ptCurrentCell.
X
);
27019
OnCellEnter(ref dataGridViewCellTmp, this.ptCurrentCell.
X
, this.ptCurrentCell.Y);
27032
InvalidateCellPrivate(this.ptCurrentCell.
X
, this.ptCurrentCell.Y);
27038
this.ptCurrentCell.
X
!= -1 &&
27054
if (this.ptCurrentCell.
X
!= -1)
27056
AccessibilityNotifyCurrentCellChanged(new Point(this.ptCurrentCell.
X
, this.ptCurrentCell.Y));
27082
int oldCurrentCellX = this.ptCurrentCell.
X
;
27118
Debug.Assert(oldCurrentCellX == this.ptCurrentCell.
X
);
27135
if (this.ptCurrentCell.
X
!= -1)
28235
this.ptCurrentCellCache.X = this.ptCurrentCell.
X
;
28294
if (this.ptCurrentCellCache.
X
!= -1)
28296
if (!IsInnerCellOutOfBounds(this.ptCurrentCellCache.
X
, this.ptCurrentCellCache.Y))
28298
SetAndSelectCurrentCellAddress(this.ptCurrentCellCache.
X
,
28553
if (this.ptCurrentCell.
X
!= -1)
28555
dataGridViewColumn = this.Columns.GetNextColumn(this.Columns[this.ptCurrentCell.
X
],
28573
if (this.ptCurrentCell.
X
== -1)
28600
if (this.ptCurrentCell.
X
== -1)
28620
if (this.ptCurrentCell.
X
== -1)
28640
if (this.ptCurrentCell.
X
== -1)
28668
if (this.ptCurrentCell.
X
== -1)
28710
if (this.ptCurrentCell.
X
!= -1)
28712
dataGridViewColumn = this.Columns.GetPreviousColumn(this.Columns[this.ptCurrentCell.
X
],
28739
if (this.ptCurrentCell.
X
== -1)
28766
if (this.ptCurrentCell.
X
== -1)
28786
if (this.ptCurrentCell.
X
== -1)
28806
if (this.ptCurrentCell.
X
== -1)
28834
if (this.ptCurrentCell.
X
== -1)
29200
htiToUse = HitTest(ptMouse.
X
, ptMouse.Y);
29207
if (this.ptMouseEnteredCell.
X
!= htiToUse.col || this.ptMouseEnteredCell.Y != htiToUse.row)
29210
if (this.ptMouseEnteredCell.
X
>= -1 &&
29211
this.ptMouseEnteredCell.
X
< this.Columns.Count &&
29215
dgvce = new DataGridViewCellEventArgs(this.ptMouseEnteredCell.
X
, this.ptMouseEnteredCell.Y);
29232
else if (this.ptMouseEnteredCell.
X
!= -2)
29234
if (this.ptMouseEnteredCell.
X
>= -1 &&
29235
this.ptMouseEnteredCell.
X
< this.Columns.Count &&
29239
DataGridViewCellEventArgs dgvce = new DataGridViewCellEventArgs(this.ptMouseEnteredCell.
X
, this.ptMouseEnteredCell.Y);
29756
HitTestInfo hti = HitTest(ptMouse.
X
, ptMouse.Y);
29757
int xOffset, yOffset, mouseX = ptMouse.
X
, mouseY = ptMouse.Y;
29778
hti = HitTest(ptMouse.
X
- xOffset - (xOffset / Math.Abs(xOffset)), ptMouse.Y - yOffset - normOffset);
29867
HitTestInfo hti = HitTest(client.
X
, client.Y);
winforms\Managed\System\WinForms\DataGridViewRowCollection.cs (1)
2258
this.DataGridView.OnRowCollectionChanged_PostNotification(recreateNewRow, newCurrentCell.
X
== -1, cca, dataGridViewRow, rowIndex);
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (1)
824
this.DataGridView.MouseEnteredCellAddress.
X
== -1)
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (2)
604
if (ptCurrentCell.
X
== e.ColumnIndex && ptCurrentCell.Y == e.RowIndex && e.Button == MouseButtons.Left)
704
bool cellCurrent = ptCurrentCell.
X
== this.ColumnIndex && ptCurrentCell.Y == rowIndex;
winforms\Managed\System\WinForms\DataGridViewTopLeftHeaderCell.cs (1)
294
else if (this.DataGridView.MouseEnteredCellAddress.Y == rowIndex && this.DataGridView.MouseEnteredCellAddress.
X
== this.ColumnIndex)
winforms\Managed\System\WinForms\ErrorProvider.cs (1)
1039
mirrordc.ViewportOrigin = new Point(mirrordcOrigin.
X
+ originOffset, mirrordcOrigin.Y);
winforms\Managed\System\WinForms\Form.cs (4)
1198
SetDesktopLocation(value.
X
, value.Y);
1779
Location.
X
,
4461
if (p.
X
< screenRect.X)
4463
else if (p.
X
+ s.Width > screenRect.X + screenRect.Width)
winforms\Managed\System\WinForms\Help.cs (1)
169
pop.pt = new NativeMethods.POINT(location.
X
, location.Y);
winforms\Managed\System\WinForms\HtmlDocument.cs (1)
506
UnsafeNativeMethods.IHTMLElement iHTMLElement = this.NativeHtmlDocument2.ElementFromPoint(point.
X
, point.Y);
winforms\Managed\System\WinForms\HtmlWindow.cs (2)
326
this.NativeHtmlWindow.MoveTo(point.
X
, point.Y);
452
this.NativeHtmlWindow.ScrollTo(point.
X
, point.Y);
winforms\Managed\System\WinForms\ImageList.cs (1)
607
Draw(g, pt.
X
, pt.Y, index);
winforms\Managed\System\WinForms\Layout\FlowLayout.cs (5)
241
if(location.
X
> rowBounds.Right) {
250
rowSize.Width = location.
X
- rowBounds.X;
355
pt.Offset(0, ptScroll.
X
);
358
pt.Offset(ptScroll.
X
, 0);
448
pt.Offset(ptScroll.
X
, 0);
winforms\Managed\System\WinForms\Layout\LayoutUtils.cs (1)
376
int temp = point.
X
;
winforms\Managed\System\WinForms\LinkLabel.cs (1)
2678
Link hit = ((LinkLabel)Owner).PointInLink(p.
X
, p.Y);
winforms\Managed\System\WinForms\ListBox.cs (3)
1553
return IndexFromPoint(p.
X
, p.Y);
2417
if (captured && UnsafeNativeMethods.WindowFromPoint(pt.
X
, pt.Y) == Handle) {
2464
if (rCaptured && UnsafeNativeMethods.WindowFromPoint(rpt.
X
, rpt.Y) == Handle) {
winforms\Managed\System\WinForms\ListView.cs (9)
3100
return FindNearestItem(dir, point.
X
, point.Y);
3178
lvFindInfo.ptX = pt.
X
;
3535
return HitTest(point.
X
, point.Y);
4109
item = GetItemAt(pos.
X
, pos.Y);
5366
lvhi.pt_x = pos.
X
;
5396
lvhi.pt_x = pos.
X
;
5789
lvhi.pt_x = pos.
X
;
5979
OnMouseClick(new MouseEventArgs(button, 1, pos.
X
, pos.Y, 0));
5983
OnMouseUp(new MouseEventArgs(button, 1, pos.
X
, pos.Y, 0));
winforms\Managed\System\WinForms\ListViewInsertionMark.cs (1)
123
point.x = pt.
X
;
winforms\Managed\System\WinForms\ListViewItem.cs (1)
702
listView.SetItemPosition(Index, position.
X
, position.Y);
winforms\Managed\System\WinForms\MonthCalendar.cs (1)
1603
return HitTest(point.
X
, point.Y);
winforms\Managed\System\WinForms\Printing\PrintPreviewControl.cs (23)
579
Point offset = new Point(Math.Max(0, (Size.Width - virtualPixels.
X
) / 2),
581
offset.X -= Position.
X
;
585
int borderPixelsX = PhysicalToPixels(border, screendpi.
X
);
614
int x = offset.
X
+ borderPixelsX * (column + 1) + lastImageSize.
X
;
617
lastImageSize.X += imagePixels.
X
;
621
pageRenderArea[imageIndex - StartPage] = new Rectangle(x, y, imagePixels.
X
, imagePixels.Y);
674
return new Point(PhysicalToPixels(physical.
X
, dpi.
X
),
679
return new Size(PhysicalToPixels(physicalSize.Width, dpi.
X
),
688
return new Point(PixelsToPhysical(pixels.
X
, dpi.
X
),
693
return new Size(PixelsToPhysical(pixels.Width, dpi.
X
),
732
int pos = locPos.
X
;
743
position.X = Math.Min(position.
X
, virtualSize.Width - Width);
745
if (position.
X
< 0) position.X = 0;
751
current.
X
- position.
X
,
756
UnsafeNativeMethods.SetScrollPos(new HandleRef(this, Handle), NativeMethods.SB_HORZ, position.
X
, true);
820
pos = locPos.
X
;
838
pos = locPos.
X
;
891
pos = locPos.
X
;
902
pos = locPos.
X
;
winforms\Managed\System\WinForms\PropertyGrid.cs (2)
2791
this.OnMouseMove(new MouseEventArgs(me.Button, me.Clicks, newPt.
X
, newPt.Y, me.Delta));
2805
this.OnMouseDown(new MouseEventArgs(me.Button, me.Clicks, newPt.
X
, newPt.Y, me.Delta));
winforms\Managed\System\WinForms\PropertyGridInternal\GridErrorDlg.cs (1)
330
int x = details.Location.
X
;
winforms\Managed\System\WinForms\PropertyGridInternal\GridToolTip.cs (1)
189
int overHang = (Location.
X
+ Size.Width) - SystemInformation.VirtualScreen.Width;
winforms\Managed\System\WinForms\PropertyGridInternal\HotCommands.cs (1)
222
LinkLabel.Link link = Label.Links.Add(links[i].
X
, links[i].Y, verbs[i]);
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (44)
558
return new Point(pt.
X
+ (rect.Width / 2), pt.Y + (rect.Height / 2));
845
Debug.WriteLineIf(GridViewDebugPaint.TraceVerbose, "Adjusting paint origin to (" + newOrigin.
X
.ToString(CultureInfo.InvariantCulture) + "," + newOrigin.Y.ToString(CultureInfo.InvariantCulture) + ")");
848
g.TranslateTransform(newOrigin.
X
, newOrigin.Y);
849
r.Offset(-newOrigin.
X
, -newOrigin.Y);
1257
return ptOurLocation.
X
+ GetIPELabelIndent(gridEntry) + size.Width;
1263
return(length > ptOurLocation.
X
+ InternalLabelWidth);
1283
cr.Offset(-newOrigin.
X
, -newOrigin.Y);
1326
cr.Offset(-newOrigin.
X
, -newOrigin.Y);
1642
Math.Max(rectScreen.X, loc.
X
+ rect.X + rect.Width - size.Width));
1655
if (loc.
X
== 0 && loc.Y == 0) {
1663
SafeNativeMethods.SetWindowPos(new HandleRef(this.dropDownHolder, this.dropDownHolder.Handle), NativeMethods.NullHandleRef, loc.
X
, loc.Y, size.Width, size.Height, flags);
1665
dropDownHolder.SetBounds(loc.
X
, loc.Y, size.Width, size.Height);
1721
Math.Max(rectScreen.X, loc.
X
+ rect.X + rect.Width - size.Width));
1736
dropDownHolder.SetBounds(loc.
X
, loc.Y, size.Width, size.Height);
1923
if (x < 0 || x > size.Width + ptOurLocation.
X
)
1926
if (x > InternalLabelWidth + ptOurLocation.
X
)
2137
rect.X = ptOurLocation.
X
;
2151
rect.X = ptOurLocation.
X
+ InternalLabelWidth;
2348
int startPS = ptOurLocation.
X
;
2813
if (Math.Abs(screenPoint.
X
- rowSelectPos.
X
) < SystemInformation.DoubleClickSize.Width &&
3237
if (pt == InvalidPosition || (pt.
X
!= ROWLABEL && pt.
X
!= ROWVALUE)) {
3243
onLabel = pt.
X
== ROWLABEL;
3256
if ((rowMoveCur != this.TipRow || pt.
X
!= this.TipColumn) && !GetFlag(FlagIsSplitterMove)) {
3262
Rectangle itemRect = GetRectangle(pt.Y, pt.
X
);
3266
this.TipColumn = pt.
X
;
3273
this.TipColumn = pt.
X
;
3516
int cLineEnd = loc.
X
+ size.Width;
3517
int cLineStart = loc.
X
;
3643
Edit.SendMessage(NativeMethods.WM_LBUTTONDOWN, 0, (int)(editPoint.Y << 16 | (editPoint.
X
& 0xFFFF)));
3644
Edit.SendMessage(NativeMethods.WM_LBUTTONUP, 0, (int)(editPoint.Y << 16 | (editPoint.
X
& 0xFFFF)));
4536
labelWidth = ptOurLocation.
X
+ (int) ((double)size.Width / labelRatio);
4553
labelRatio = ((double) GetOurSize().Width / (double) (oldWidth - ptOurLocation.
X
));
4896
if (labelWidth > ptOurLocation.
X
+ size.Width) {
4897
labelWidth = ptOurLocation.
X
+ (int) ((double)size.Width / labelRatio);
4900
labelRatio = ((double) GetOurSize().Width / (double) (labelWidth - ptOurLocation.
X
));
5282
mouseLoc = FindPosition(mouseLoc.
X
, mouseLoc.Y);
5295
Rectangle itemRect = GetRectangle(mouseLoc.Y, mouseLoc.
X
);
5299
if (mouseLoc.
X
== ROWLABEL) {
5300
tipPt = curEntry.GetLabelToolTipLocation(mouseLoc.
X
- itemRect.X, mouseLoc.Y - itemRect.Y);
5302
else if (mouseLoc.
X
== ROWVALUE) {
5858
int delta = dragPoint.
X
- dragStart.
X
;
winforms\Managed\System\WinForms\RadioButton.cs (1)
574
if (UnsafeNativeMethods.WindowFromPoint(pt.
X
, pt.Y) == Handle) {
winforms\Managed\System\WinForms\RichTextBox.cs (3)
2323
NativeMethods.POINT wpt = new NativeMethods.POINT(pt.
X
, pt.Y);
3910
Control.MousePosition.
X
,
3999
Control.MousePosition.
X
,
winforms\Managed\System\WinForms\Screen.cs (1)
309
NativeMethods.POINTSTRUCT pt = new NativeMethods.POINTSTRUCT(point.
X
, point.Y);
winforms\Managed\System\WinForms\ScrollableControl.cs (4)
191
SetDisplayRectLocation(-value.
X
, -value.Y);
924
SetDisplayRectLocation(scrollLocation.
X
, scrollLocation.Y);
982
xCalc += activeControl.AutoScrollOffset.
X
;
1191
if (pt.
X
!= 0 || pt.Y != 0) {
winforms\Managed\System\WinForms\SplitContainer.cs (5)
1530
splitterRect.X = this.Location.
X
+ SplitterDistanceInternal;
1558
r.X = panel1.Location.
X
+ splitSize;
1653
delta = x - anchor.
X
;
1726
splitterRect.X = ((RightToLeft == RightToLeft.Yes) ? this.Width - splitterDistance - SplitterWidthInternal : this.Location.
X
+ splitterDistance);
1733
splitterRect.X = this.Location.
X
;
winforms\Managed\System\WinForms\Splitter.cs (2)
839
delta = x - anchor.
X
;
1039
int size = GetSplitSize(x-Left+anchor.
X
, y-Top+anchor.Y);
winforms\Managed\System\WinForms\StatusBar.cs (2)
1062
if (lastClick.
X
< currentOffset) {
1094
button, clicks, pt.
X
, pt.Y);
winforms\Managed\System\WinForms\TabControl.cs (3)
440
r.X -= p.
X
;
644
if ( value.
X
< 0 || value.Y < 0 )
1348
SendMessage(NativeMethods.TCM_SETPADDING, 0, NativeMethods.Util.MAKELPARAM(padding.
X
, padding.Y));
winforms\Managed\System\WinForms\TextBoxBase.cs (2)
1687
if (!ValidationCancelled && UnsafeNativeMethods.WindowFromPoint(pt.
X
, pt.Y) == Handle) {
1755
int longPoint = NativeMethods.Util.MAKELONG(pt.
X
, pt.Y);
winforms\Managed\System\WinForms\ToolBar.cs (1)
1730
int x = this.Location.
X
+ buttonRight + 1;
winforms\Managed\System\WinForms\ToolStrip.cs (10)
2375
int oppositeSide = otherItemMidLocation.
X
- midPointOfCurrent.
X
;
2795
if (location.
X
!= x || location.Y != y) {
2811
if (transparentRegion != null && (location.
X
!= x || location.Y != y)) {
3501
mea = new MouseEventArgs(mea.Button, mea.Clicks,itemRelativePoint.
X
, itemRelativePoint.Y, mea.Delta);
3564
mea = new MouseEventArgs(mea.Button, mea.Clicks,itemRelativePoint.
X
, itemRelativePoint.Y, mea.Delta);
3611
mea = new MouseEventArgs(mea.Button, mea.Clicks,itemRelativePoint.
X
, itemRelativePoint.Y, mea.Delta);
4720
IntPtr hwndClicked = UnsafeNativeMethods.ChildWindowFromPointEx(new HandleRef(null, Handle), pt.
X
, pt.Y,(int)(GetChildAtPointSkip.Invisible | GetChildAtPointSkip.Disabled | GetChildAtPointSkip.Transparent));
5550
if ((orig.Left + widthUnit) >= check.
X
) {
5554
else if ((orig.Right - widthUnit) <= check.
X
) {
winforms\Managed\System\WinForms\ToolStripComboBox.cs (3)
741
new Point(middle.
X
- FlatComboAdapter.Offset2Pixels, middle.Y - 1),
742
new Point(middle.
X
+ FlatComboAdapter.Offset2Pixels + 1, middle.Y - 1),
743
new Point(middle.
X
, middle.Y + FlatComboAdapter.Offset2Pixels)
winforms\Managed\System\WinForms\ToolStripDropDown.cs (2)
1265
dropDownBounds.Location = new Point(start.
X
+ offset.
X
, start.Y + offset.Y);
winforms\Managed\System\WinForms\ToolStripDropDownItem.cs (2)
342
dropDownBounds.Location = new Point(itemScreenLocation.
X
+ offset.
X
, itemScreenLocation.Y + offset.Y);
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (4)
417
checkRectangle = LayoutUtils.Align(maxCheckSize, new Rectangle(nextPoint.
X
, nextPoint.Y, maxCheckSize.Width, maxItemSize.Height), ContentAlignment.MiddleCenter);
422
imageRectangle = LayoutUtils.Align(maxImageSize, new Rectangle(nextPoint.
X
, nextPoint.Y, maxImageSize.Width, maxItemSize.Height), ContentAlignment.MiddleCenter);
433
checkRectangle = LayoutUtils.Align(maxCheckSize, new Rectangle(nextPoint.
X
, nextPoint.Y, checkAndImageMarginWidth, maxItemSize.Height), ContentAlignment.MiddleCenter);
452
checkRectangle = LayoutUtils.Align(LayoutUtils.UnionSizes(maxCheckSize,maxImageSize), new Rectangle(nextPoint.
X
, nextPoint.Y, checkAndImageMarginWidth-1, maxItemSize.Height), ContentAlignment.MiddleCenter);
winforms\Managed\System\WinForms\ToolStripGrip.cs (2)
156
int deltaX = currentLocation.
X
- startLocation.
X
;
winforms\Managed\System\WinForms\ToolStripItem.cs (3)
3867
toPoint.X += currentToolStripItemLocation.
X
;
3876
fromPoint.X += currentToolStripItemLocation.
X
;
3888
fromPoint.X -= currentToolStripItemLocation.
X
;
winforms\Managed\System\WinForms\ToolStripPanel.cs (4)
1002
if (clientLocation.
X
< 0 || clientLocation.Y < 0) {
1060
index = (clientLocation.
X
<= this.Padding.Left) ? 0 : index;
1083
Point endLocation = (Orientation == Orientation.Horizontal) ? new Point (clientLocation.
X
, row.Bounds.Y) : new Point (row.Bounds.X, clientLocation.Y);
1150
cursorLoc.X = Cursor.Position.
X
;
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (6)
1047
int deltaX = clientEndLocation.
X
- clientStartLocation.
X
;
1295
if (Row.Cells[index].Bounds.X >= locationToDrag.
X
) {
1322
requiredSpace += locationToDrag.
X
;
1365
lastCellMargin.Left = Math.Max(0,locationToDrag.
X
- nextCell.Bounds.Right);
1411
cellMargin.Left = Math.Max(0,locationToDrag.
X
-Row.Margin.Left);
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (27)
182
middle.
X
- ToolStripRenderer.Offset2X,
184
middle.
X
+ ToolStripRenderer.Offset2X,
187
middle.
X
- ToolStripRenderer.Offset2X + 1 + rightToLeftShift,
189
middle.
X
+ ToolStripRenderer.Offset2X + 1 + rightToLeftShift,
750
Rectangle bottomLeftParentVerticalPixels = new Rectangle(bottomLeft.
X
, bottomLeft.Y - 1, 1, 2);
753
Rectangle bottomRightHorizontalPixels = new Rectangle(bottomRight.
X
- 1, bottomRight.Y, 2, 1);
754
Rectangle bottomRightVerticalPixels = new Rectangle(bottomRight.
X
, bottomRight.Y - 1, 1, 2);
760
topRightHorizontalPixels = new Rectangle(topRight.
X
- 1, topRight.Y, 1, 1);
761
topRightVerticalPixels = new Rectangle(topRight.
X
, topRight.Y, 1, 2);
764
topRightHorizontalPixels = new Rectangle(topRight.
X
- 2, topRight.Y, 2, 1);
765
topRightVerticalPixels = new Rectangle(topRight.
X
, topRight.Y, 1, 3);
986
b.TranslateTransform(parent.Width - control.Location.
X
, parent.Height -control.Location.Y);
1129
g.FillRectangle(b, top1.
X
, top1.Y, 1, 1);
1130
g.FillRectangle(b, top2.
X
, top2.Y, 1, 1);
1211
Rectangle otherBottom = new Rectangle(bottomLeft.
X
, bottomLeft.Y - 2, 1, 1);
1453
new Point(middle.
X
- ToolStripRenderer.Offset2X, middle.Y + 1),
1454
new Point(middle.
X
+ ToolStripRenderer.Offset2X + 1, middle.Y + 1),
1455
new Point(middle.
X
, middle.Y - ToolStripRenderer.Offset2Y)
1461
new Point(middle.
X
+ ToolStripRenderer.Offset2X, middle.Y - ToolStripRenderer.Offset2Y - 1),
1462
new Point(middle.
X
+ ToolStripRenderer.Offset2X, middle.Y + ToolStripRenderer.Offset2Y + 1),
1463
new Point(middle.
X
- 1, middle.Y)
1469
new Point(middle.
X
- ToolStripRenderer.Offset2X, middle.Y - ToolStripRenderer.Offset2Y - 1),
1470
new Point(middle.
X
- ToolStripRenderer.Offset2X, middle.Y + ToolStripRenderer.Offset2Y + 1),
1471
new Point(middle.
X
+ 1, middle.Y)
1478
new Point(middle.
X
- ToolStripRenderer.Offset2X, middle.Y - 1),
1479
new Point(middle.
X
+ ToolStripRenderer.Offset2X + 1, middle.Y - 1),
1480
new Point(middle.
X
, middle.Y + ToolStripRenderer.Offset2Y)
winforms\Managed\System\WinForms\ToolStripRenderer.cs (12)
733
new Point(middle.
X
- Offset2X, middle.Y + 1),
734
new Point(middle.
X
+ Offset2X + 1, middle.Y + 1),
735
new Point(middle.
X
, middle.Y - Offset2Y)};
740
new Point(middle.
X
+ Offset2X, middle.Y - offset4Y),
741
new Point(middle.
X
+ Offset2X, middle.Y + offset4Y),
742
new Point(middle.
X
- horizontalOffset, middle.Y)};
747
new Point(middle.
X
- Offset2X, middle.Y - offset4Y),
748
new Point(middle.
X
- Offset2X, middle.Y + offset4Y),
749
new Point(middle.
X
+ horizontalOffset, middle.Y)};
755
new Point(middle.
X
- Offset2X, middle.Y - 1),
756
new Point(middle.
X
+ Offset2X + 1, middle.Y - 1),
757
new Point(middle.
X
, middle.Y + Offset2Y) };
winforms\Managed\System\WinForms\ToolTip.cs (14)
1259
IntPtr hwndControl = UnsafeNativeMethods.WindowFromPoint(screenCoords.
X
, screenCoords.Y);
1284
IntPtr found = UnsafeNativeMethods.ChildWindowFromPointEx(new HandleRef(null, baseHwnd), pt.
X
, pt.Y, NativeMethods.CWP_SKIPINVISIBLE);
1566
if ( cursorLocation.
X
< r.left || cursorLocation.
X
> r.right ||
1580
SetTrackPosition(p.
X
, p.Y);
1661
int pointX = r.left + point.
X
;
1688
int pointX = r.left + point.
X
;
1766
pointX = optimalPoint.
X
;
2164
if (moveToLocation.
X
+ tipSize.Width > screen.WorkingArea.Right) {
2175
moveToLocation.
X
, moveToLocation.Y, tipSize.Width, tipSize.Height,
2252
if (cursorLocation.
X
>= r.left && cursorLocation.
X
<= r.right &&
2445
wp->x = cursorPos.
X
;
2470
wp->x = tt.Position.
X
;
winforms\Managed\System\WinForms\TreeView.cs (10)
1776
return HitTest(pt.
X
, pt.Y);
1824
return GetNodeAt(pt.
X
, pt.Y);
2165
tvhip.pt_x = pos.
X
;
2906
tvhip.pt_x = pos.
X
;
2941
tvhip.pt_x = pos.
X
;
3020
tvhip.pt_x = pos.
X
;
3035
OnNodeMouseClick(new TreeNodeMouseClickEventArgs(NodeFromHandle(hnode), button, 1, pos.
X
, pos.Y));
3036
OnClick(new MouseEventArgs(button, 1, pos.
X
, pos.Y, 0));
3037
OnMouseClick(new MouseEventArgs(button, 1, pos.
X
, pos.Y, 0));
3060
OnMouseUp(new MouseEventArgs(button, 1, pos.
X
, pos.Y, 0));
winforms\Managed\System\WinForms\UpDownBase.cs (3)
966
if (UnsafeNativeMethods.WindowFromPoint(pt.
X
, pt.Y) == Handle && !ValidationCancelled) {
1311
if (!parent.ValidationCancelled && UnsafeNativeMethods.WindowFromPoint(pt.
X
, pt.Y) == Handle) {
1657
if (!parent.ValidationCancelled && UnsafeNativeMethods.WindowFromPoint(pt.
X
, pt.Y) == Handle) {
winforms\Managed\System\WinForms\VisualStyles\VisualStyleRenderer.cs (2)
944
NativeMethods.POINTSTRUCT point = new NativeMethods.POINTSTRUCT(pt.
X
, pt.Y);
987
NativeMethods.POINTSTRUCT point = new NativeMethods.POINTSTRUCT(pt.
X
, pt.Y);
winforms\Managed\System\WinForms\WebBrowserBase.cs (1)
852
Bounds = new Rectangle(location.
X
, location.Y, extent.Width, extent.Height);
winforms\Managed\System\WinForms\WinFormsUtils.cs (1)
330
NativeMethods.POINT pt = new NativeMethods.POINT(point.
X
, point.Y);
System.Windows.Forms.DataVisualization (5)
Common\General\ChartGraphics.cs (2)
2572
leftLine[2].X = (float)Math.Round((double)center.
X
- labelSize.Width/2F - 1F);
2579
rightLine[2].X = (float)Math.Round((double)center.
X
+ labelSize.Width/2F - 1F);
Common\General\Legend.cs (2)
474
legendPosition.Location.
X
,
511
legendPosition.Location.
X
+ this.GetBorderSize() + this._offset.Width,
Common\General\LegendColumns.cs (1)
2458
PointF pointF = new PointF(point.
X
, point.Y);
System.Workflow.Activities (61)
Designers\StateDesigner.cs (4)
1454
stateDesigner.Location = new Point(location.
X
, location.Y + deltaY);
1456
stateDesigner.Location = new Point(location.
X
, location.Y + moveBounds.Height + DefaultStateDesignerAutoLayoutDistance - freeSpaceHeight);
1482
int x = this.Location.
X
+ DefaultStateDesignerAutoLayoutDistance;
1503
bounds.Offset(Separator.Width - this.Location.
X
, Separator.Height - this.Location.Y);
Designers\StateDesigner.Layouts.cs (15)
221
Point offset = new Point(_location.
X
- newLocation.
X
, _location.Y - newLocation.Y);
225
Point newChildDesignerLocation = new Point(currentLocation.
X
- offset.
X
, currentLocation.Y - offset.Y);
351
Layout layout = GetLayoutAt(point.
X
, point.Y);
435
Point offset = new Point(this.Location.
X
- newLocation.
X
, this.Location.Y - newLocation.Y);
436
_textLocation = new Point(_textLocation.
X
- offset.
X
, _textLocation.Y - offset.Y);
437
_imageLocation = new Point(_imageLocation.
X
- offset.
X
, _imageLocation.Y - offset.Y);
686
int x = Location.
X
+ EventDrivenPadding;
1045
int xPos = (this.Location.
X
+ this.Size.Width / 2 - maxStringWidth / 2);
1182
int x = this.Location.
X
;
1203
Point location = new Point(this.Location.
X
, _titleBarLayout.Bounds.Bottom);
Designers\StateDesignerConnector.cs (1)
229
Rectangle bounds = new Rectangle(point.
X
- size.Width / 2, point.Y - size.Height / 2, size.Width, size.Height);
Designers\StateMachineDesignerPaint.cs (38)
86
if ((p2.
X
!= p3.
X
) && (p2.Y != p3.Y))
87
optimized.Add(new Point(p3.
X
, p2.Y));
94
if ((p1.
X
== p2.
X
) && (p2.
X
== p3.
X
) ||
99
if ((p2.
X
!= p3.
X
) && (p2.Y != p3.Y))
100
optimized.Add(new Point(p3.
X
, p2.Y));
128
bool fill = (startCap != null && (((int)startConnectorCap % 2) == 0) && (startSegment[0].
X
== startSegment[1].
X
|| startSegment[0].Y == startSegment[1].Y));
132
graphics.TranslateTransform(startSegment[0].
X
, startSegment[0].Y);
134
graphics.RotateTransform((startSegment[0].
X
< startSegment[1].
X
) ? 90.0f : 270.0f);
155
bool fill = (endCap != null && (((int)endConnectorCap % 2) == 0) && (endSegment[0].
X
== endSegment[1].
X
|| endSegment[0].Y == endSegment[1].Y));
159
graphics.TranslateTransform(endSegment[1].
X
, endSegment[1].Y);
161
graphics.RotateTransform((endSegment[0].
X
< endSegment[1].
X
) ? 270.0f : 90.0f);
269
if (p1.
X
== p2.
X
)
272
return Math.Abs(p1.
X
- p2.
X
);
322
path.AddArc(midPoint.
X
, midPoint.Y, diameter, diameter, 270f, -90f);
324
path.AddArc(midPoint.
X
, midPoint.Y - diameter, diameter, diameter, 90f, 90f);
328
path.AddArc(midPoint.
X
- diameter, midPoint.Y, diameter, diameter, 270f, 90f);
330
path.AddArc(midPoint.
X
- diameter, midPoint.Y - diameter, diameter, diameter, 90f, -90f);
334
path.AddArc(midPoint.
X
- diameter, midPoint.Y, diameter, diameter, 0f, -90f);
336
path.AddArc(midPoint.
X
, midPoint.Y, diameter, diameter, 180f, 90f);
340
path.AddArc(midPoint.
X
- diameter, midPoint.Y - diameter, diameter, diameter, 0f, 90f);
342
path.AddArc(midPoint.
X
, midPoint.Y - diameter, diameter, diameter, 180f, -90f);
350
Debug.Assert(start.
X
== end.
X
|| start.Y == end.Y);
352
if (start.
X
== end.
X
)
362
if (start.
X
< end.
X
)
Designers\WhileDesigner.cs (1)
60
points[3].X = connectionPoint.
X
;
Rules\Design\Dialogs\IntellisenseTextBox.cs (2)
431
clientPoint.X = this.GetPositionFromCharIndex(0).
X
- 6;
436
locationInDialog.Offset(-parentScreenLocation.
X
, -parentScreenLocation.Y);
System.Workflow.ComponentModel (340)
AuthoringOM\Design\ActivityDesigner.cs (9)
1068
graphics.TranslateTransform(-Location.
X
+ 2 * ambientTheme.Margin.Width, -Location.Y + 2 * ambientTheme.Margin.Height);
2591
OnMouseDown(new MouseEventArgs(e.Button, e.Clicks, logicalPoint.
X
, logicalPoint.Y, e.Delta));
2608
OnMouseMove(new MouseEventArgs(e.Button, e.Clicks, logicalPoint.
X
, logicalPoint.Y, e.Delta));
2625
OnMouseUp(new MouseEventArgs(e.Button, e.Clicks, logicalPoint.
X
, logicalPoint.Y, e.Delta));
2642
OnMouseDoubleClick(new MouseEventArgs(e.Button, e.Clicks, logicalPoint.
X
, logicalPoint.Y, e.Delta));
2659
OnMouseEnter(new MouseEventArgs(e.Button, e.Clicks, logicalPoint.
X
, logicalPoint.Y, e.Delta));
2676
OnMouseHover(new MouseEventArgs(e.Button, e.Clicks, logicalPoint.
X
, logicalPoint.Y, e.Delta));
2725
OnMouseDragBegin(initialPoint, new MouseEventArgs(e.Button, e.Clicks, logicalPoint.
X
, logicalPoint.Y, e.Delta));
2742
OnMouseDragMove(new MouseEventArgs(e.Button, e.Clicks, logicalPoint.
X
, logicalPoint.Y, e.Delta));
AuthoringOM\Design\ActivityPreviewDesigner.cs (8)
156
Size moveDelta = new Size(value.
X
- base.Location.
X
, value.Y - base.Location.Y);
160
this.previewStrip.Location = new Point(this.previewStrip.Location.
X
+ moveDelta.Width, this.previewStrip.Location.Y + moveDelta.Height);
164
this.previewWindow.Location = new Point(this.previewWindow.Location.
X
+ moveDelta.Width, this.previewWindow.Location.Y + moveDelta.Height);
165
this.separatorLine[0] = new Point(this.separatorLine[0].
X
+ moveDelta.Width, this.separatorLine[0].Y + moveDelta.Height);
166
this.separatorLine[1] = new Point(this.separatorLine[1].
X
+ moveDelta.Width, this.separatorLine[1].Y + moveDelta.Height);
172
PreviewedDesigner.Location = new Point(Location.
X
+ (Size.Width - PreviewedDesigner.Size.Width) / 2, Location.Y + headerHeight + 2 * WorkflowTheme.CurrentTheme.AmbientTheme.Margin.Height);
595
PreviewedDesigner.Location = new Point(Location.
X
+ (Size.Width - PreviewedDesigner.Size.Width) / 2, Location.Y + headerHeight + 2 * e.AmbientTheme.Margin.Height);
AuthoringOM\Design\CompositeActivityDesigner.cs (3)
214
Size moveDelta = new Size(value.
X
- base.Location.
X
, value.Y - base.Location.Y);
216
activityDesigner.Location = new Point(activityDesigner.Location.
X
+ moveDelta.Width, activityDesigner.Location.Y + moveDelta.Height);
AuthoringOM\Design\Connector.cs (152)
137
Rectangle enclosingBounds = new Rectangle(new Point(location.
X
- size.Width / 2, location.Y - size.Height / 2), size);
346
this.segments[i] = new Point(this.segments[i].
X
+ size.Width, this.segments[i].Y + size.Height);
518
Rectangle bounds = new Rectangle(point.
X
- size.Width / 2, point.Y - size.Height / 2, size.Width, size.Height);
1132
editPointOffset *= (previous.Location.
X
< this.activeEditPoint.Location.
X
) ? 1 : -1;
1134
editPointOffset *= (previous.Location.Y < this.activeEditPoint.Location.
X
) ? 1 : -1;
1137
Point editPointLocation = (orientation == Orientation.Horizontal) ? new Point(previous.Location.
X
+ editPointOffset, previous.Location.Y) : new Point(previous.Location.
X
, previous.Location.Y + editPointOffset);
1149
editPointOffset *= (this.activeEditPoint.Location.
X
< next.Location.
X
) ? -1 : 1;
1154
Point editPointLocation = (orientation == Orientation.Horizontal) ? new Point(next.Location.
X
+ editPointOffset, next.Location.Y) : new Point(next.Location.
X
, next.Location.Y + editPointOffset);
1193
previous.Location = (orientation == Orientation.Horizontal) ? new Point(previous.Location.
X
, newPoint.Y) : new Point(newPoint.
X
, previous.Location.Y);
1198
next.Location = (orientation == Orientation.Horizontal) ? new Point(next.Location.
X
, newPoint.Y) : new Point(newPoint.
X
, next.Location.Y);
1218
previous.Location = new Point(previous.Location.
X
, newPoint.Y);
1219
next.Location = new Point(next.Location.
X
, newPoint.Y);
1220
this.activeEditPoint.Location = new Point(this.activeEditPoint.Location.
X
, newPoint.Y);
1224
previous.Location = new Point(newPoint.
X
, previous.Location.Y);
1225
next.Location = new Point(newPoint.
X
, next.Location.Y);
1226
this.activeEditPoint.Location = new Point(newPoint.
X
, this.activeEditPoint.Location.Y);
1352
next.Location = (slope < 1) ? new Point(next.Location.
X
, previous.Location.Y) : new Point(previous.Location.
X
, next.Location.Y);
1362
previous.Location = (slope < 1) ? new Point(previous.Location.
X
, next.Location.Y) : new Point(next.Location.
X
, previous.Location.Y);
1398
Point location = (slope < 1) ? new Point(next.Location.
X
, current.Location.Y) : new Point(current.Location.
X
, next.Location.Y);
1496
return new Rectangle(this.point.
X
- controlPointSize.Width / 2, this.point.Y - controlPointSize.Height / 2, controlPointSize.Width, controlPointSize.Height);
1543
Point intermediatePoint = (slope < 1) ? new Point(targetPoint.
X
, sourcePoint.Y) : new Point(sourcePoint.
X
, targetPoint.Y);
1714
escapeCover.Add(new Point(edge[0].
X
, edge[0].Y));
1718
if (escapePoint.
X
> edge[0].
X
&& escapePoint.Y > edge[0].Y && escapePoint.Y < edge[1].Y)
1720
escapeCover.Add(new Point(edge[0].
X
, escapePoint.Y - 1));
1721
escapeCover.Add(new Point(escapePoint.
X
+ 1, escapePoint.Y - 1));
1722
escapeCover.Add(new Point(escapePoint.
X
+ 1, escapePoint.Y + 1));
1723
escapeCover.Add(new Point(edge[0].
X
, escapePoint.Y + 1));
1726
escapeCover.Add(new Point(edge[0].
X
, edge[1].Y));
1730
escapeCover.Add(new Point(edge[0].
X
, edge[0].Y));
1734
if (escapePoint.
X
< edge[0].
X
&& escapePoint.Y > edge[0].Y && escapePoint.Y < edge[1].Y)
1736
escapeCover.Add(new Point(edge[0].
X
, escapePoint.Y - 1));
1737
escapeCover.Add(new Point(escapePoint.
X
- 1, escapePoint.Y - 1));
1738
escapeCover.Add(new Point(escapePoint.
X
- 1, escapePoint.Y + 1));
1739
escapeCover.Add(new Point(edge[0].
X
, escapePoint.Y + 1));
1742
escapeCover.Add(new Point(edge[0].
X
, edge[1].Y));
1746
escapeCover.Add(new Point(edge[0].
X
, edge[0].Y));
1750
if (escapePoint.Y > edge[0].Y && escapePoint.
X
> edge[0].
X
&& escapePoint.
X
< edge[1].
X
)
1752
escapeCover.Add(new Point(escapePoint.
X
- 1, edge[0].Y));
1753
escapeCover.Add(new Point(escapePoint.
X
- 1, escapePoint.Y + 1));
1754
escapeCover.Add(new Point(escapePoint.
X
+ 1, escapePoint.Y + 1));
1755
escapeCover.Add(new Point(escapePoint.
X
+ 1, edge[0].Y));
1758
escapeCover.Add(new Point(edge[1].
X
, edge[0].Y));
1763
escapeCover.Add(new Point(edge[0].
X
, edge[0].Y));
1767
if (escapePoint.Y < edge[0].Y && escapePoint.
X
> edge[0].
X
&& escapePoint.
X
< edge[1].
X
)
1769
escapeCover.Add(new Point(escapePoint.
X
- 1, edge[0].Y));
1770
escapeCover.Add(new Point(escapePoint.
X
- 1, escapePoint.Y - 1));
1771
escapeCover.Add(new Point(escapePoint.
X
+ 1, escapePoint.Y - 1));
1772
escapeCover.Add(new Point(escapePoint.
X
+ 1, edge[0].Y));
1775
escapeCover.Add(new Point(edge[1].
X
, edge[0].Y));
1800
if (segments[i - 1].
X
!= segments[i].
X
&& segments[i - 1].Y != segments[i].Y)
1819
begin.X = Math.Min(Math.Max(begin.
X
, enclosingRectangle.Left + 1), enclosingRectangle.Right - 1);
1829
excludedLines.Add(new Point(point.
X
- width, point.Y));
1830
excludedLines.Add(new Point(point.
X
+ width, point.Y));
1832
excludedLines.Add(new Point(point.
X
, point.Y - height));
1833
excludedLines.Add(new Point(point.
X
, point.Y + height));
2092
r1 = new Point(Z.
X
, topCover.A.Y);
2094
r2 = new Point(rightCover.A.
X
, Z.Y);
2096
r3 = new Point(Z.
X
, bottomCover.A.Y);
2098
r4 = new Point(leftCover.A.
X
, Z.Y);
2129
if (r2.
X
> Z.
X
)
2175
if (r4.
X
< Z.
X
)
2233
Point direction = new Point(Math.Sign(p.
X
- Z.
X
), Math.Sign(p.Y - Z.Y));
2234
if (((orientation == Orientation.Vertical) ? direction.
X
: direction.Y) == 0)
2239
direction = new Point(Math.Sign(p.
X
- Z.
X
), Math.Sign(p.Y - Z.Y));
2249
side = (direction.
X
< 0) ? DesignerEdges.Left : DesignerEdges.Right;
2253
escapePoint = new Point(p.
X
+ direction.
X
* margin.Width, Z.Y);
2255
escapePoint = new Point(Z.
X
, p.Y + direction.Y * margin.Height);
2275
if (p.
X
!= int.MinValue && p.
X
!= int.MaxValue && p.Y != int.MinValue && p.Y != int.MaxValue)
2471
Point direction = new Point(a2.
X
- a1.
X
, a2.Y - a1.Y);
2474
int steps = Math.Max(Math.Abs(direction.
X
/ margin.Width), Math.Abs(direction.Y / margin.Height)); //one of the values will be null
2475
direction.X = Math.Sign(direction.
X
);
2480
Point k = new Point(a1.
X
+ i * margin.Width * direction.
X
, a1.Y + i * margin.Height * direction.Y);
2581
if (point1.
X
!= point2.
X
&& point1.Y != point2.Y)
2586
this.orientation = ((this.point1.
X
== this.point2.
X
) ? Orientation.Vertical : Orientation.Horizontal);
2618
return (this.orientation == Orientation.Horizontal) ? (p.
X
>= Math.Min(this.point1.
X
, this.point2.
X
) && p.
X
<= Math.Max(this.point1.
X
, this.point2.
X
)) : (p.Y >= Math.Min(this.point1.Y, this.point2.Y) && p.Y <= Math.Max(this.point1.Y, this.point2.Y));
2632
if (vertical.A.
X
< Math.Min(horizontal.A.
X
, horizontal.B.
X
) || vertical.A.
X
> Math.Max(horizontal.A.
X
, horizontal.B.
X
))
2638
return new Point(vertical.A.
X
, horizontal.A.Y);
2644
return (this.orientation == Orientation.Horizontal) ? p.Y == this.point1.Y : p.
X
== this.point1.
X
;
2650
if ((this.orientation == Orientation.Horizontal && p.Y != this.point1.Y) || (this.orientation == Orientation.Vertical && p.
X
!= this.point1.
X
))
2653
int k = (this.orientation == Orientation.Horizontal) ? p.
X
: p.Y;
2654
int k1 = (this.orientation == Orientation.Horizontal) ? this.point1.
X
: this.point1.Y;
2655
int k2 = (this.orientation == Orientation.Horizontal) ? this.point2.
X
: this.point2.Y;
2693
Point newPoint = new Point(p.
X
, p.Y);
2708
int k = (this.orientation == Orientation.Horizontal) ? p.
X
: p.Y;
2709
int k1 = (this.orientation == Orientation.Horizontal) ? this.point1.
X
: this.point1.Y;
2710
int k2 = (this.orientation == Orientation.Horizontal) ? this.point2.
X
: this.point2.Y;
2717
return new Point((this.orientation == Orientation.Horizontal) ? k : p.
X
, (this.orientation == Orientation.Horizontal) ? p.Y : k);
2722
return Math.Sqrt((double)(p.
X
- q.
X
) * (p.
X
- q.
X
) + (double)(p.Y - q.Y) * (p.Y - q.Y));
2730
if (a.
X
!= b.
X
&& a.Y != b.Y)
2733
return ConstructBoundSegment(coverSet, a, (a.
X
== b.
X
) ? Orientation.Vertical : Orientation.Horizontal);
2742
Point left = new Point((leftCover != null) ? leftCover.A.
X
: int.MinValue, p.Y);
2743
Point right = new Point((rightCover != null) ? rightCover.A.
X
: int.MaxValue, p.Y);
2754
Point bottom = new Point(p.
X
, (bottomCover != null) ? bottomCover.A.Y : int.MinValue);
2755
Point top = new Point(p.
X
, (topCover != null) ? topCover.A.Y : int.MaxValue);
2898
int currentDistance = (side == DesignerEdges.Left) ? p.
X
- segment.A.
X
: segment.A.
X
- p.
X
;
2939
int currentDistance = (side == DesignerEdges.Left) ? p.
X
- segment.A.
X
: segment.A.
X
- p.
X
;
2964
originalDistance = originalCover.A.
X
- escape.
X
;
2983
newDistance = Math.Abs(newCover.A.
X
- escape.
X
);
AuthoringOM\Design\DesignerHelpers.cs (37)
335
for (int gridCoOrdX = gridStart.
X
; gridCoOrdX <= viewableRectangle.Right; gridCoOrdX += Math.Max(ambientTheme.GridSize.Width, 1))
501
graphics.TranslateTransform(location.
X
, location.Y);
503
GraphicsPath designerPath = GetDesignerPath(designer, new Point(-location.
X
, -location.Y), Size.Empty, DesignerEdges.None);
607
bool fill = (startCap != null && (((int)startConnectorCap % 2) == 0) && (startSegment[0].
X
== startSegment[1].
X
|| startSegment[0].Y == startSegment[1].Y));
611
graphics.TranslateTransform(startSegment[0].
X
, startSegment[0].Y);
613
graphics.RotateTransform((startSegment[0].
X
< startSegment[1].
X
) ? 90.0f : 270.0f);
637
bool fill = (endCap != null && (((int)endConnectorCap % 2) == 0) && (endSegment[0].
X
== endSegment[1].
X
|| endSegment[0].Y == endSegment[1].Y));
641
graphics.TranslateTransform(endSegment[1].
X
, endSegment[1].Y);
643
graphics.RotateTransform((endSegment[0].
X
< endSegment[1].
X
) ? 270.0f : 90.0f);
1034
for (int gridCoOrd = gridStart.
X
; gridCoOrd <= viewableRectangle.Right; gridCoOrd += Math.Max(gridUnit.Width, 1))
1190
location.X = ((location.
X
/ snapSize.Width) * snapSize.Width) + (((location.
X
% snapSize.Width) > snapSize.Width / 2) ? snapSize.Width : 0);
1548
menuCommandService.ShowContextMenu(WorkflowMenuCommands.DesignerActionsMenu, location.
X
- 2, location.Y + 1);
1888
leftTop.X = Math.Min(leftTop.
X
, point.
X
);
1890
rightBottom.X = Math.Max(rightBottom.
X
, point.
X
);
1894
Rectangle enclosingRect = new Rectangle(leftTop, new Size(rightBottom.
X
- leftTop.
X
, rightBottom.Y - leftTop.Y));
1938
int area = Math.Abs((((point.Y - line[0].Y) * (line[1].
X
- line[0].
X
)) - ((point.
X
- line[0].
X
) * (line[1].Y - line[0].Y))));
1939
return Math.Sqrt(Math.Pow(area, 2) / (Math.Pow((line[1].
X
- line[0].
X
), 2) + Math.Pow((line[1].Y - line[0].Y), 2)));
1953
if (start.
X
== end.
X
)
1960
return ((float)(end.Y - start.Y)) / (end.
X
- start.
X
);
1973
double d = Math.Sqrt(Math.Pow(point2.
X
- point1.
X
, 2) + Math.Pow(point2.Y - point1.Y, 2));
1989
return new Point((point1.
X
+ point2.
X
) / 2, (point1.Y + point2.Y) / 2);
AuthoringOM\Design\DesignerInterfaces.cs (1)
181
: base(dragEventArgs.Data, dragEventArgs.KeyState, point.
X
, point.Y, dragEventArgs.AllowedEffect, dragEventArgs.Effect)
AuthoringOM\Design\DesignerWidgets.cs (4)
1414
Location = new Point(this.parent.Location.
X
+ Palette.DropShadowWidth, this.parent.Location.Y + Palette.DropShadowWidth);
2262
int result = NativeMethods.SetWindowPos(this.inplaceTip.Handle, IntPtr.Zero, screenCoOrd.
X
, screenCoOrd.Y, 0, 0, NativeMethods.SWP_NOSIZE | NativeMethods.SWP_NOZORDER | NativeMethods.SWP_NOACTIVATE);
3250
previewModeBitmapPos.X = descRectanglePos.
X
- (this.previewModeButtonRectangle.Width + margin.Width);
3254
this.canvasBounds.Location = new Point(value.
X
+ this.bounds.Width / 2 - this.canvasBounds.Width / 2, this.previewModeDescRectangle.Bottom + margin.Height);
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (1)
550
Point bottom = new Point(top.
X
, this.themePanel.Height - this.themePanel.Margin.Bottom);
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (1)
808
this.helpTextWindow.Location = new Point(this.helpTextHolder.Location.
X
+ 3, this.helpTextHolder.Location.Y + 3);
AuthoringOM\Design\FreeFormDesigner.cs (17)
294
Size moveDelta = new Size(value.
X
- base.Location.
X
, value.Y - base.Location.Y);
791
newLocation.X = Math.Min(newLocation.
X
, childRectangle.Left);
919
designer.Location = new Point(location.
X
+ autoSizeMargin.Width, location.Y + autoSizeMargin.Height);
1116
leftTop.X = (activityDesigner.Bounds.Left < leftTop.
X
) ? activityDesigner.Bounds.Left : leftTop.
X
;
1118
rightBottom.X = (rightBottom.
X
< activityDesigner.Bounds.Right) ? activityDesigner.Bounds.Right : rightBottom.
X
;
1129
leftTop.X = (connector.Bounds.Left < leftTop.
X
) ? connector.Bounds.Left : leftTop.
X
;
1131
rightBottom.X = (rightBottom.
X
< connector.Bounds.Right) ? connector.Bounds.Right : rightBottom.
X
;
1137
if (leftTop.
X
!= int.MaxValue && rightBottom.
X
!= int.MinValue)
1139
enclosingRectangle.X = leftTop.
X
;
1140
enclosingRectangle.Width = rightBottom.
X
- leftTop.
X
;
AuthoringOM\Design\Glyphs\ConnectorDragDropGlyph.cs (1)
21
this.glyphPoint = new Point(connectorCenter.
X
- ambientTheme.DropIndicatorSize.Width / 2, connectorCenter.Y - ambientTheme.DropIndicatorSize.Height / 2);
AuthoringOM\Design\MessageFilters\AutoScrollExpandMessageFilter.cs (6)
119
if (clientPoint.
X
<= clientRectangle.Width / 10 && hScrollBar.Value > 0)
121
else if (clientPoint.
X
>= clientRectangle.Right - clientRectangle.Width / 10 && hScrollBar.Value < hScrollBar.Maximum - hScrollBar.LargeChange)
189
scrollPosition.X = scrollPosition.
X
- AmbientTheme.ScrollUnit;
191
scrollPosition.X = scrollPosition.
X
+ AmbientTheme.ScrollUnit;
213
if (scrollPosition.
X
> 0)
216
if (scrollPosition.
X
< parentView.HScrollBar.Maximum - viewPortSize.Width)
AuthoringOM\Design\MessageFilters\ConnectionManager.cs (2)
125
(Math.Abs(this.initialDragPoint.Value.
X
- logicalPoint.
X
) > SystemInformation.DragSize.Width ||
AuthoringOM\Design\MessageFilters\DragDropManager.cs (6)
117
else if (parentView.RootDesigner != null && this.dragStarted && (eventArgs.Button & MouseButtons.Left) > 0 && (Math.Abs(this.dragInitiationPoint.
X
- logicalPoint.
X
) > SystemInformation.DragSize.Width || Math.Abs(this.dragInitiationPoint.Y - logicalPoint.Y) > SystemInformation.DragSize.Height))
272
this.dragImagePointInClientCoOrd = new Point(clientPoint.
X
+ SystemInformation.CursorSize.Width / 4, clientPoint.Y + SystemInformation.CursorSize.Height / 4);
306
this.dragImagePointInClientCoOrd = new Point(midPointInClientCoOrd.
X
- dragImageIconSize.Width / 2, midPointInClientCoOrd.Y - dragImageIconSize.Height / 2);
332
this.dragImagePointInClientCoOrd = new Point(clientPoint.
X
+ SystemInformation.CursorSize.Width / 4, clientPoint.Y + SystemInformation.CursorSize.Height / 4);
383
this.dragImagePointInClientCoOrd = new Point(midPointInClientCoOrd.
X
- dragImageIconSize.Width / 2, midPointInClientCoOrd.Y - dragImageIconSize.Height / 2);
AuthoringOM\Design\MessageFilters\DragSelectionMessageFilter.cs (6)
66
(Math.Abs(this.startDrag.
X
- logicalPoint.
X
) > (int)(dragMultiply * (float)SystemInformation.DragSize.Width) || Math.Abs(this.startDrag.Y - logicalPoint.Y) > (int)(dragMultiply * (float)SystemInformation.DragSize.Height)))
134
return new Rectangle(Math.Min(this.startDrag.
X
, this.endDrag.
X
), Math.Min(this.startDrag.Y, this.endDrag.Y), Math.Abs(this.endDrag.
X
- this.startDrag.
X
), Math.Abs(this.endDrag.Y - this.startDrag.Y));
AuthoringOM\Design\MessageFilters\DynamicActionMessageFilter.cs (1)
303
e.Graphics.TranslateTransform(actionLocation.
X
, actionLocation.Y);
AuthoringOM\Design\MessageFilters\FreeFormDragDropManager.cs (4)
170
ActivityDesignerPaint.DrawImage(eventArgs.Graphics, this.draggedDesignerImages[i], new Rectangle(new Point(locations[i].
X
- 2 * ambientTheme.Margin.Width, locations[i].Y - 2 * ambientTheme.Margin.Height), imageSize), new Rectangle(Point.Empty, imageSize), DesignerContentAlignment.Fill, 0.4f, false);
255
Size delta = new Size(endPoint.
X
- startPoint.
X
, endPoint.Y - startPoint.Y);
256
location = new Point(designerToMove.Location.
X
+ delta.Width, designerToMove.Location.Y + delta.Height);
AuthoringOM\Design\MessageFilters\PanningMessageFilter.cs (3)
52
menuCommandService.ShowContextMenu(WorkflowMenuCommands.ZoomMenu, menuPoint.
X
, menuPoint.Y);
74
Size panSize = new Size(eventArgs.X - this.panPoint.
X
, eventArgs.Y - this.panPoint.Y);
76
parentView.ScrollPosition = new Point(parentView.ScrollPosition.
X
- panSize.Width, parentView.ScrollPosition.Y - panSize.Height);
AuthoringOM\Design\MessageFilters\ResizingMessageFilter.cs (3)
285
int x = point.
X
;
288
x = DesignerHelpers.SnapToGrid(new Point(x, 0)).
X
;
308
designerBounds.Width += (point.
X
- designerBounds.Right);
AuthoringOM\Design\MessageFilters\WindowManager.cs (1)
342
menuCommandService.ShowContextMenu(WorkflowMenuCommands.SelectionMenu, screenMenuPoint.
X
, screenMenuPoint.Y);
AuthoringOM\Design\MessageFilters\ZoomingMessageFilter.cs (5)
66
menuCommandService.ShowContextMenu(WorkflowMenuCommands.ZoomMenu, menuPoint.
X
, menuPoint.Y);
170
Point center = parentView.LogicalPointToClient(new Point(dragRectangle.Location.
X
+ dragRectangle.Width / 2, dragRectangle.Location.Y + dragRectangle.Height / 2));
182
center.X -= layoutOrigin.
X
; center.Y -= layoutOrigin.Y;
183
relativeCenterF = new PointF((float)center.
X
/ (float)parentView.HScrollBar.Maximum, (float)center.Y / (float)parentView.VScrollBar.Maximum);
188
parentView.ScrollPosition = new Point(newCenter.
X
- parentView.HScrollBar.LargeChange / 2, newCenter.Y - parentView.VScrollBar.LargeChange / 2);
AuthoringOM\Design\ParallelActivityDesigner.cs (13)
221
Point location = (connectionPoints.Count > 0) ? new Point(Location.
X
, connectionPoints[0].Y) : Location;
230
activityDesigner.Location = new Point(location.
X
+ width, location.Y + height);
311
dropTargets[0].Location = new Point(Location.
X
+ (Size.Width - ((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0)) / 2, TextRectangle.Bottom);
358
parallelLinks[0].X = firstDesignerConnections[0].
X
;
360
parallelLinks[1].X = lastDesignerConnections[0].
X
;
365
parallelLinks[0].X = firstDesignerConnections[firstDesignerConnections.Count - 1].
X
;
367
parallelLinks[1].X = lastDesignerConnections[lastDesignerConnections.Count - 1].
X
;
385
connectingLine[0].X = designerConnections[0].
X
;
387
connectingLine[1].X = designerConnections[0].
X
;
392
connectingLine[0].X = designerConnections[connectionCount - 1].
X
;
394
connectingLine[1].X = designerConnections[connectionCount - 1].
X
;
436
connectorPoints[1].X = firstDesignerConnections[0].
X
;
450
connectorPoints[0].X = lastDesignerConnections[0].
X
;
AuthoringOM\Design\SequentialActivityDesigner.cs (6)
213
connectorBounds[0].Location = new Point(containerStartConnection.
X
- ((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0) / 2, containerStartConnection.Y);
226
connectorBounds[i + 1].Location = new Point(designerFromConnections[designerFromPointCount - 1].
X
- ((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0) / 2, designerFromConnections[designerFromPointCount - 1].Y);
243
connectorBounds[connectorCount - 1].Location = new Point(endDesignerConnections[endDesignerConnections.Count - 1].
X
- ((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0) / 2, endDesignerConnections[endDesignerConnections.Count - 1].Y);
249
connectorBounds[0].Location = new Point(containerStartConnection.
X
- ((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0) / 2, containerStartConnection.Y);
463
activityDesigner.Location = new Point(location.
X
- (designerSize.Width / 2), location.Y + height);
528
glyphLocation = new Point(connectors[i].Location.
X
+ connectors[i].Size.Width / 2 + 1, connectors[i].Location.Y + connectors[i].Size.Height / 2);
AuthoringOM\Design\SequentialWorkflowRootDesigner.cs (1)
261
connectionPoints[connectionPoints.Count - 1] = new Point(connectionPoints[connectionPoints.Count - 1].
X
, connectionPoints[connectionPoints.Count - 1].Y - Footer.Bounds.Height);
AuthoringOM\Design\StructuredCompositeActivityDesigner.cs (2)
443
connectionPoints[0] = new Point(connectionPoints[0].
X
, connectionPoints[0].Y + TitleHeight);
551
activityDesigner.Location = new Point(activityDesigner.Location.
X
, activityDesigner.Location.Y + titleHeight);
AuthoringOM\Design\WorkflowLayouts.cs (17)
162
transformationMatrix.Translate(-logicalViewPortOrigin[0].
X
+ viewPortData.ShadowDepth.Width, -logicalViewPortOrigin[0].Y + viewPortData.ShadowDepth.Height, MatrixOrder.Append);
250
transformationMatrix.Translate(-logicalViewPortOrigin[0].
X
+ viewPortData.ShadowDepth.Width, -logicalViewPortOrigin[0].Y + viewPortData.ShadowDepth.Height, MatrixOrder.Append);
390
alignment.X = Math.Max(alignment.
X
, selectionSize.Width + selectionSize.Width / 2);
425
deltaSize.Width -= deltaLocation.
X
;
430
insersectedLogicalViewPort.X = pageLayoutData.LogicalPageBounds.X + deltaLocation.
X
;
433
insersectedLogicalViewPort.Width = pageLayoutData.LogicalPageBounds.Width - deltaLocation.
X
;
460
deltaSize.Width -= deltaLocation.
X
;
465
insersectedPhysicalViewPort.X = pageLayoutData.ViewablePageBounds.X + deltaLocation.
X
;
468
insersectedPhysicalViewPort.Width = pageLayoutData.ViewablePageBounds.Width - deltaLocation.
X
;
488
Point delta = new Point(logicalPoint.
X
- pageLayoutData.ViewablePageBounds.Left, logicalPoint.Y - pageLayoutData.ViewablePageBounds.Top);
489
logicalPoint = new Point(pageLayoutData.LogicalPageBounds.Left + delta.
X
, pageLayoutData.LogicalPageBounds.Top + delta.Y);
503
Point delta = new Point(logicalPoint.
X
- pageLayoutData.LogicalPageBounds.Left, logicalPoint.Y - pageLayoutData.LogicalPageBounds.Top);
504
logicalPoint = new Point(pageLayoutData.ViewablePageBounds.Left + delta.
X
, pageLayoutData.ViewablePageBounds.Top + delta.Y);
628
viewPortMatrix.Translate(-viewPortData.Translation.
X
, -viewPortData.Translation.Y, MatrixOrder.Append);
666
bitmapDrawingPoint = new Point(points[0].
X
- viewPortData.Translation.
X
, points[0].Y - viewPortData.Translation.Y);
809
viewablePageLocation.X = pageLocation.
X
+ PageMargins.Left;
AuthoringOM\Design\WorkflowPrinting.cs (17)
148
Point pageOffset = new Point(this.currentPrintablePage.
X
* printableArea.Width - this.workflowAlignment.
X
, this.currentPrintablePage.Y * printableArea.Height - this.workflowAlignment.Y);
149
graphics.TranslateTransform(boundingRectangle.Left - pageOffset.
X
, boundingRectangle.Top - pageOffset.Y);
158
scaledAlignment.X = Convert.ToInt32(Math.Ceiling((float)this.workflowAlignment.
X
/ this.scaling));
161
Rectangle viewPort = new Rectangle(this.currentPrintablePage.
X
* viewPortSize.Width - scaledAlignment.
X
, this.currentPrintablePage.Y * viewPortSize.Height - scaledAlignment.Y, viewPortSize.Width, viewPortSize.Height);
178
headerFooterData.CurrentPage = this.currentPrintablePage.
X
+ this.currentPrintablePage.Y * this.totalPrintablePages.
X
+ 1;
179
headerFooterData.TotalPages = this.totalPrintablePages.
X
* this.totalPrintablePages.Y;
222
int printAreaHorz = (int)((float)NativeMethods.GetDeviceCaps(hDC, NativeMethods.HORZRES) * 100.0f / (float)dpi.
X
);
225
int physicalWidth = (int)((float)NativeMethods.GetDeviceCaps(hDC, NativeMethods.PHYSICALWIDTH) * 100.0f / (float)dpi.
X
);
229
int leftMargin = (int)((float)NativeMethods.GetDeviceCaps(hDC, NativeMethods.PHYSICALOFFSETX) * 100.0f / (float)dpi.
X
);
347
this.totalPrintablePages.X = Math.Max(this.totalPrintablePages.
X
, 1);
355
this.workflowAlignment.X = (int)(((float)this.totalPrintablePages.
X
* (float)printableArea.Width / this.scaling - (float)rootDesignerSize.Width) / 2.0f * this.scaling);
360
this.workflowAlignment.X = Math.Max(this.workflowAlignment.
X
, selectionSize.Width + selectionSize.Width / 2);
370
if (this.currentPrintablePage.
X
< this.totalPrintablePages.
X
)
AuthoringOM\Design\WorkflowView.cs (13)
350
Point oldCenter = new Point(ScrollPosition.
X
, ScrollPosition.Y);
351
oldRelativeCenter = new PointF((float)oldCenter.
X
/ (float)hScrollBar.Maximum, (float)oldCenter.Y / (float)vScrollBar.Maximum);
359
ScrollPosition = new Point(newCenter.
X
, newCenter.Y);
466
value.X = Math.Min(value.
X
, hScrollBar.Maximum - hScrollBar.LargeChange + 1);
467
value.X = Math.Max(value.
X
, hScrollBar.Minimum);
468
hScrollBar.Value = value.
X
;
892
writer.Write(this.ScrollPosition.
X
);
1160
MouseEventArgs eventArgs = new MouseEventArgs(Control.MouseButtons, 1, clientPoint.
X
, clientPoint.Y, 0);
1177
MouseEventArgs eventArgs = new MouseEventArgs(Control.MouseButtons, 1, clientPoint.
X
, clientPoint.Y, 0);
1584
transformationMatrix.Translate(-logicalViewPortOrigin[0].
X
+ viewPortData.ShadowDepth.Width, -logicalViewPortOrigin[0].Y + viewPortData.ShadowDepth.Height, MatrixOrder.Append);
1762
ScrollPosition = new Point(scrollPosition.
X
+ scrollDelta.Width, scrollPosition.Y + scrollDelta.Height);
2116
translateMatrix.Translate(-ScrollPosition.
X
, -ScrollPosition.Y);
2127
translateMatrix.Translate(ScrollPosition.
X
, ScrollPosition.Y);
System.WorkflowServices (6)
System\Workflow\Activities\ReceiveActivityDesigner.cs (2)
184
Rectangle incomingArrowRect = new Rectangle(this.Location.
X
- 2, this.Location.Y + 20, 24, 24);
185
Rectangle outgoingArrowRect = new Rectangle(this.Location.
X
+ 22, this.Location.Y + this.Size.Height - 45, -24, 24);
System\Workflow\Activities\SendActivityDesigner.cs (2)
136
Rectangle outgoingArrowRect = new Rectangle(this.Location.
X
+ this.Size.Width - 24, this.Location.Y + 10, 24, 24);
137
Rectangle incomingArrowRect = new Rectangle(this.Location.
X
+ this.Size.Width, this.Location.Y + this.Size.Height - 35, -24, 24);
System\Workflow\ComponentModel\Design\ActivityDesignerHighlighter.cs (2)
105
if (scrollPosition.
X
> viewSize.Width / 2)
127
if (scrollPosition.
X
> viewSize.Width / 2)