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