176 writes to Y
System.Drawing (1)
commonui\System\Drawing\Point.cs (1)
265Y += dy;
System.Web.DataVisualization (3)
Common\General\LegendColumns.cs (3)
2369 point1.Y = (int)(seriesMarkerPosition.Y + seriesMarkerPosition.Height/2F); 2371 point2.Y = point1.Y; 2424 point.Y = (int)(seriesMarkerPosition.Y + seriesMarkerPosition.Height/2f);
System.Web.Entity.Design (2)
System\Data\WebControls\Design\EntityDataSourceStatementEditorForm.cs (2)
117loc.Y -= moveUp; 121loc.Y -= moveUp;
System.Windows.Forms (86)
winforms\Managed\System\Resources\ResXResourceReader.cs (1)
372pt.Y = lineInfo.LineNumber;
winforms\Managed\System\WinForms\Control.cs (3)
16511logPixels.Y = UnsafeNativeMethods.GetDeviceCaps(new HandleRef(null, dc), NativeMethods.LOGPIXELSY); 17022pt.Y = (LogPixels.Y * y + hiMetricPerInch / 2) / hiMetricPerInch; 17606pt.Y = (hiMetricPerInch * y + (LogPixels.Y >> 1)) / LogPixels.Y;
winforms\Managed\System\WinForms\DataGrid.cs (1)
7088origin.Y += localGridRows[r].Height;
winforms\Managed\System\WinForms\DataGridView.cs (2)
2958ptFirstDisplayedCellAddress.Y = this.Rows.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen); 2964ptFirstDisplayedCellAddress.Y = this.displayedBandsInfo.FirstDisplayedScrollingRow;
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (2)
2445middle.Y += (dropRect.Height % 2); 2467middle.Y += (dropRect.Height % 2);
winforms\Managed\System\WinForms\DataGridViewMethods.cs (22)
12929this.ptMouseEnteredCell.Y = e.RowIndex; 12963this.ptMouseEnteredCell.Y = -2; 16031newCurrentCell.Y += insertionCount; 16541this.ptMouseDownCell.Y = hti.row; 16593this.ptMouseEnteredCell.X = this.ptMouseEnteredCell.Y = -2; 17837this.ptCurrentCellCache.Y = -1; 17849this.ptCurrentCellCache.Y = this.ptCurrentCell.Y; 17856this.ptCurrentCellCache.Y = -1; 19358pt.Y += Height; 25972this.ptMouseDownCell.Y = -2; 26718this.ptAnchorCell.Y = firstVisibleRowIndex; 26723this.ptAnchorCell.Y = -1; 26873this.ptCurrentCell.Y = rowIndex; 26992this.ptCurrentCell.Y = rowIndex; 27001this.ptAnchorCell.Y = rowIndex; 27066this.ptAnchorCell.Y = rowIndex; 27138this.ptCurrentCell.Y = -1; 27144this.ptAnchorCell.Y = -1; 28236this.ptCurrentCellCache.Y = this.ptCurrentCell.Y; 28355this.ptCurrentCellCache.Y = rowIndex2; 28359this.ptCurrentCellCache.Y = rowIndex1; 29244this.ptMouseEnteredCell.X = this.ptMouseEnteredCell.Y = -2;
winforms\Managed\System\WinForms\DataGridViewUtilities.cs (9)
390ptTextLocation.Y = cellBounds.Y; 395ptTextLocation.Y = cellBounds.Y; 400ptTextLocation.Y = cellBounds.Y; 405ptTextLocation.Y = cellBounds.Y + (cellBounds.Height - sizeText.Height) / 2; 410ptTextLocation.Y = cellBounds.Y + (cellBounds.Height - sizeText.Height) / 2; 415ptTextLocation.Y = cellBounds.Y + (cellBounds.Height - sizeText.Height) / 2; 420ptTextLocation.Y = cellBounds.Bottom - sizeText.Height; 425ptTextLocation.Y = cellBounds.Bottom - sizeText.Height; 430ptTextLocation.Y = cellBounds.Bottom - sizeText.Height;
winforms\Managed\System\WinForms\Form.cs (5)
1193loc.Y -= screen.Y; 4466p.Y = (ownerRect.top + ownerRect.bottom - s.Height) / 2; 4468p.Y = screenRect.Y; 4470p.Y = screenRect.Y + screenRect.Height - s.Height; 4508p.Y = Math.Max(screenRect.Y,screenRect.Y + (screenRect.Height - Height)/2);
winforms\Managed\System\WinForms\Layout\DockAndAnchorLayout.cs (1)
88location.Y -= newSize.Height - oldBounds.Height;
winforms\Managed\System\WinForms\Layout\LayoutUtils.cs (1)
378point.Y = temp;
winforms\Managed\System\WinForms\Printing\PrintPreviewControl.cs (7)
582offset.Y -= Position.Y; 597lastImageSize.Y = maxImageHeight * row; 744position.Y = Math.Min(position.Y, virtualSize.Height - Height); 746if (position.Y < 0) position.Y = 0; 798locPos.Y = AdjustScroll(m, pos, maxPos, false); 872locPos.Y = pos; 886locPos.Y = pos;
winforms\Managed\System\WinForms\PropertyGrid.cs (1)
4669pt.Y = temp.y;
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (7)
1643loc.Y += rect.Y; 1645loc.Y -= size.Height; 1649loc.Y += rect.Height + 1; 1722loc.Y += rect.Y; 1724loc.Y -= size.Height; 1728loc.Y += rect.Height + 1; 1928pt.Y = (y-ptOurLocation.Y)/(1+RowHeight);
winforms\Managed\System\WinForms\StatusBar.cs (1)
752lastClick.Y = e.Y;
winforms\Managed\System\WinForms\StatusStrip.cs (1)
379noMansLand.Y += ClientSize.Height + 1;
winforms\Managed\System\WinForms\ToolStrip.cs (2)
4158newLocation.Y -= delta; 4619cursorLocation.Y += Cursor.Size.Height - currentCursor.HotSpot.Y;
winforms\Managed\System\WinForms\ToolStripDropDown.cs (2)
1252offset.Y = - dropDownBounds.Height; 1255offset.Y = - dropDownBounds.Height;
winforms\Managed\System\WinForms\ToolStripDropDownItem.cs (4)
316offset.Y = -dropDownBounds.Height + 1; 319offset.Y = -dropDownBounds.Height + 1; 322offset.Y = this.Height - 1; 326offset.Y = this.Height - 1;
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (3)
421nextPoint.Y = scaledImagePadding.Top; 473nextPoint.Y = scaledTextPadding.Top; 478nextPoint.Y = scaledArrowPadding.Top;
winforms\Managed\System\WinForms\ToolStripItem.cs (3)
3868toPoint.Y += currentToolStripItemLocation.Y; 3877fromPoint.Y += currentToolStripItemLocation.Y; 3889fromPoint.Y -= currentToolStripItemLocation.Y;
winforms\Managed\System\WinForms\ToolStripPanel.cs (3)
1111clientLocation.Y = row.Bounds.Y; 1146cursorLoc.Y = Cursor.Position.Y; 1149cursorLoc.Y += toolStripToDrag.GripRectangle.Height /2;
winforms\Managed\System\WinForms\ToolStripSplitStackLayout.cs (2)
232noMansLand.Y += toolStrip.ClientSize.Height + 1; 368itemLocation.Y = bounds.Y;
winforms\Managed\System\WinForms\ToolTip.cs (2)
1578p.Y = visibleRect.top + (visibleRect.bottom - visibleRect.top)/2; 2170moveToLocation.Y = screen.WorkingArea.Bottom - tipSize.Height;
winforms\Managed\System\WinForms\Triangle.cs (1)
126points[i].Y += yOffset;
System.Windows.Forms.DataVisualization (3)
Common\General\LegendColumns.cs (3)
2369 point1.Y = (int)(seriesMarkerPosition.Y + seriesMarkerPosition.Height/2F); 2371 point2.Y = point1.Y; 2424 point.Y = (int)(seriesMarkerPosition.Y + seriesMarkerPosition.Height/2f);
System.Workflow.Activities (17)
Designers\StateDesigner.cs (1)
1652snapPoint.Y = eventHandlersLayoutBottom + 1;
Designers\StateDesigner.Layouts.cs (5)
463origin.Y += ambientTheme.Margin.Height / 2; 984origin.Y += 2; 1369origin.Y += _titleBarLayout.Size.Height + ActiveDesignerPadding; 1372origin.Y += _breadCrumbBarLayout.Size.Height + ActiveDesignerPadding; 1381origin.Y = _designerLayout.Bounds.Bottom + ambientTheme.SelectionSize.Height + ActiveDesignerPadding;
Designers\StateMachineDesignerPaint.cs (4)
282p1.Y += radius; 285p1.Y -= radius; 300p2.Y -= radius; 303p2.Y += radius;
Designers\WhileDesigner.cs (4)
55points[0].Y = bounds.Bottom - compositeDesignerTheme.ConnectorSize.Height / 3; 57points[1].Y = bounds.Bottom - compositeDesignerTheme.ConnectorSize.Height / 3; 59points[2].Y = connectionPoint.Y; 61points[3].Y = connectionPoint.Y;
Rules\Design\Dialogs\IntellisenseTextBox.cs (3)
426clientPoint.Y += (int)Math.Ceiling(this.Font.GetHeight()) + 2; 430clientPoint.Y += (int)Math.Ceiling(this.Font.GetHeight()); 499clientPoint.Y += (int)Math.Ceiling(this.Font.GetHeight()) + 2;
System.Workflow.ComponentModel (62)
AuthoringOM\Design\ActivityPreviewDesigner.cs (4)
584this.separatorLine[0].Y = previewStripRectangle.Bottom; 585this.separatorLine[0].Y += e.AmbientTheme.Margin.Height + e.AmbientTheme.Margin.Height / 2; 588this.separatorLine[1].Y = previewStripRectangle.Bottom; 589this.separatorLine[1].Y += e.AmbientTheme.Margin.Height + e.AmbientTheme.Margin.Height / 2;
AuthoringOM\Design\Connector.cs (5)
1820begin.Y = Math.Min(Math.Max(begin.Y, enclosingRectangle.Top + 1), enclosingRectangle.Bottom - 1); 2105r1.Y -= margin.Height; 2151r3.Y += margin.Height; 2476direction.Y = Math.Sign(direction.Y); 2697newPoint.Y = int.MaxValue;
AuthoringOM\Design\DesignerHelpers.cs (5)
333gridStart.Y = viewableRectangle.Y - (viewableRectangle.Y % ambientTheme.GridSize.Height); 1029gridStart.Y = viewableRectangle.Y - (viewableRectangle.Y % gridUnit.Height); 1191location.Y = ((location.Y / snapSize.Height) * snapSize.Height) + (((location.Y % snapSize.Height) > snapSize.Height / 2) ? snapSize.Height : 0); 1889leftTop.Y = Math.Min(leftTop.Y, point.Y); 1891rightBottom.Y = Math.Max(rightBottom.Y, point.Y);
AuthoringOM\Design\DesignerWidgets.cs (3)
3246descRectanglePos.Y = this.bounds.Top + maxDescHeight / 2 - this.previewModeDescRectangle.Height / 2; 3251previewModeBitmapPos.Y = this.bounds.Top + maxDescHeight / 2 - this.previewModeButtonRectangle.Height / 2; 3261location.Y = this.canvasBounds.Top + this.canvasBounds.Height / 2 - PreviewDesigner.Size.Height / 2;
AuthoringOM\Design\FreeFormDesigner.cs (5)
792newLocation.Y = Math.Min(newLocation.Y, childRectangle.Top); 1117leftTop.Y = (activityDesigner.Bounds.Top < leftTop.Y) ? activityDesigner.Bounds.Top : leftTop.Y; 1119rightBottom.Y = (rightBottom.Y < activityDesigner.Bounds.Bottom) ? activityDesigner.Bounds.Bottom : rightBottom.Y; 1130leftTop.Y = (connector.Bounds.Top < leftTop.Y) ? connector.Bounds.Top : leftTop.Y; 1132rightBottom.Y = (rightBottom.Y < connector.Bounds.Bottom) ? connector.Bounds.Bottom : rightBottom.Y;
AuthoringOM\Design\MessageFilters\AutoScrollExpandMessageFilter.cs (2)
194scrollPosition.Y = scrollPosition.Y - AmbientTheme.ScrollUnit; 196scrollPosition.Y = scrollPosition.Y + AmbientTheme.ScrollUnit;
AuthoringOM\Design\MessageFilters\WindowManager.cs (2)
415scrollPosition.Y = scrollPosition.Y + ((pageUp ? -1 : 1) * parentView.VScrollBar.LargeChange); 436scrollPosition.Y = scrollPosition.Y + (numberOfLogicalLines * logicalLineHeight);
AuthoringOM\Design\MessageFilters\ZoomingMessageFilter.cs (1)
182center.X -= layoutOrigin.X; center.Y -= layoutOrigin.Y;
AuthoringOM\Design\ParallelActivityDesigner.cs (20)
352parallelLinks[0].Y = parallelConnectorTop; 354parallelLinks[1].Y = parallelConnectorTop + compositeDesignerTheme.ConnectorSize.Height * 3 / 4; 359parallelLinks[0].Y = parallelConnectorTop + compositeDesignerTheme.ConnectorSize.Height * 3 / 4; 361parallelLinks[1].Y = parallelConnectorTop + compositeDesignerTheme.ConnectorSize.Height * 3 / 4; 366parallelLinks[0].Y = bounds.Bottom - compositeDesignerTheme.ConnectorSize.Height * 3 / 4; 368parallelLinks[1].Y = bounds.Bottom - compositeDesignerTheme.ConnectorSize.Height * 3 / 4; 373parallelLinks[0].Y = bounds.Bottom - compositeDesignerTheme.ConnectorSize.Height * 3 / 4; 375parallelLinks[1].Y = bounds.Bottom; 386connectingLine[0].Y = parallelConnectorTop + compositeDesignerTheme.ConnectorSize.Height * 3 / 4; 388connectingLine[1].Y = designerConnections[0].Y; 393connectingLine[0].Y = designerConnections[connectionCount - 1].Y; 395connectingLine[1].Y = bounds.Bottom - compositeDesignerTheme.ConnectorSize.Height * 3 / 4; 435connectorPoints[0].Y = dropTargetRectangle.Y; 437connectorPoints[1].Y = dropTargetRectangle.Y; 440connectorPoints[0].Y = dropTargetRectangle.Bottom; 441connectorPoints[1].Y = dropTargetRectangle.Bottom; 451connectorPoints[0].Y = dropTargetRectangle.Y; 453connectorPoints[1].Y = dropTargetRectangle.Y; 456connectorPoints[0].Y = dropTargetRectangle.Bottom; 457connectorPoints[1].Y = dropTargetRectangle.Bottom;
AuthoringOM\Design\StructuredCompositeActivityDesigner.cs (1)
545location.Y += e.AmbientTheme.SelectionSize.Height;
AuthoringOM\Design\WorkflowLayouts.cs (5)
393alignment.Y = (totalPrintableArea.Height - rootDesignerSize.Height) / 2; 394alignment.Y = Math.Max(alignment.Y, selectionSize.Height + selectionSize.Height / 2); 663bitmapDrawingPoint.Y = pageLayoutData.ViewablePageBounds.Y + Math.Abs(pageLayoutData.LogicalPageBounds.Y - intersectedViewPort.Y); 806pageLocation.Y = (row * this.pageSize.Height) + ((row + 1) * PageSeparator.Height); 810viewablePageLocation.Y = pageLocation.Y + PageMargins.Top;
AuthoringOM\Design\WorkflowPrinting.cs (6)
159scaledAlignment.Y = Convert.ToInt32(Math.Ceiling((float)this.workflowAlignment.Y / this.scaling)); 348this.totalPrintablePages.Y = Convert.ToInt32(Math.Ceiling((this.scaling * (float)rootDesignerSize.Height) / (float)printableArea.Height)); 349this.totalPrintablePages.Y = Math.Max(this.totalPrintablePages.Y, 1); 358this.workflowAlignment.Y = (int)(((float)this.totalPrintablePages.Y * (float)printableArea.Height / this.scaling - (float)rootDesignerSize.Height) / 2.0f * this.scaling); 361this.workflowAlignment.Y = Math.Max(this.workflowAlignment.Y, selectionSize.Height + selectionSize.Height / 2); 375this.currentPrintablePage.Y++;
AuthoringOM\Design\WorkflowView.cs (3)
474value.Y = Math.Min(value.Y, vScrollBar.Maximum - vScrollBar.LargeChange + 1); 475value.Y = Math.Max(value.Y, vScrollBar.Minimum); 927scrollPosition.Y = reader.ReadInt32();
System.WorkflowServices (2)
System\Workflow\ComponentModel\Design\ActivityDesignerHighlighter.cs (2)
103scrollPosition.Y -= viewSize.Height / 2; 125scrollPosition.Y -= viewSize.Height / 2;
1471 references to Y
System.Drawing (50)
commonui\System\Drawing\Advanced\GPPOINT.cs (1)
34 Y = pt.Y;
commonui\System\Drawing\Advanced\GPPOINTF.cs (1)
30Y = (float) pt.Y;
commonui\System\Drawing\Advanced\GraphicsPath.cs (9)
544pt.Y, 668pt.Y, 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)
128args[nArg++] = intConverter.ConvertToString(context, culture, pt.Y); 137return new InstanceDescriptor(ctor, new object[] {pt.X, pt.Y});
commonui\System\Drawing\Printing\PrinterUnitConvert.cs (1)
58Convert(value.Y, fromUnit, toUnit)
commonui\System\Drawing\Rectangle.cs (4)
72this.y = location.Y; 104Y = value.Y; 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)
56height = pt.Y;
System.Web.DataVisualization (8)
Common\General\ChartGraphics.cs (4)
2571 leftLine[1].Y = center.Y; 2573 leftLine[2].Y = center.Y; 2578 rightLine[1].Y = center.Y; 2580 rightLine[2].Y = center.Y;
Common\General\Legend.cs (2)
475 legendPosition.Location.Y, 512 legendPosition.Location.Y + this._titlePosition.Height,
Common\General\LegendColumns.cs (2)
2371 point2.Y = point1.Y; 2458 PointF pointF = new PointF(point.X, point.Y);
System.Web.Entity.Design (2)
System\Data\WebControls\Design\EntityDataSourceStatementEditorForm.cs (2)
114int moveUp = _statementPanel.Location.Y - _checkBoxPanel.Location.Y;
System.Windows.Forms (978)
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)
577imageBounds.Y = imageStart.Y + 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)
234pos.Y,
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) { 13556p.Y, 16961pSizel.cy = pt.Y; 17022pt.Y = (LogPixels.Y * y + hiMetricPerInch / 2) / hiMetricPerInch; 17606pt.Y = (hiMetricPerInch * y + (LogPixels.Y >> 1)) / LogPixels.Y;
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 (5)
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); 7093return new Point(x, y - origin.Y); 9185HitTestInfo hti = DataGrid.HitTest(client.X, client.Y);
winforms\Managed\System\WinForms\DataGridRelationshipRow.cs (1)
781points[1].Y);
winforms\Managed\System\WinForms\DataGridView.cs (28)
1485if (!IsSharedCellReadOnly(dataGridViewCell, this.ptCurrentCell.Y)) 2180if (this.ptCurrentCell.X == -1 && this.ptCurrentCell.Y == -1) 2184Debug.Assert(this.ptCurrentCell.X >= 0 && ptCurrentCell.Y >= 0); 2186Debug.Assert(this.ptCurrentCell.Y < this.Rows.Count); 2187DataGridViewRow dataGridViewRow = (DataGridViewRow) this.Rows[this.ptCurrentCell.Y]; // unsharing row 2192if ((value != null && (value.RowIndex != this.ptCurrentCell.Y || value.ColumnIndex != this.ptCurrentCell.X)) || 2250Debug.Assert(this.ptCurrentCell.Y >= 0 && this.ptCurrentCell.Y < this.Rows.Count); 2251DataGridViewRow dataGridViewRow = this.Rows.SharedRow(this.ptCurrentCell.Y); 2254Debug.Assert(this.IsSharedCellVisible(dataGridViewCell, this.ptCurrentCell.Y)); 2267Debug.Assert(this.ptCurrentCell.Y != -1); 2270bool previousVisibleRowExists = (-1 != this.Rows.GetPreviousRow(this.ptCurrentCell.Y, DataGridViewElementStates.Visible)); 2285Debug.Assert(this.ptCurrentCell.Y != -1); 2288bool nextVisibleRowExists = (-1 != this.Rows.GetNextRow(this.ptCurrentCell.Y, DataGridViewElementStates.Visible)); 2303Debug.Assert(this.ptCurrentCell.Y != -1); 2324Debug.Assert(this.ptCurrentCell.Y >= 0); 2325Debug.Assert(this.ptCurrentCell.Y < this.Rows.Count); 2327return this.Rows[this.ptCurrentCell.Y]; 2909return this.Rows[firstDisplayedCellAddress.Y].Cells[firstDisplayedCellAddress.X]; // unshares the row of first displayed cell 2959if (ptFirstDisplayedCellAddress.Y == -1) 2975if (ptFirstDisplayedCellAddress.Y >= 0) 3587return this.CurrentCellInternal.GetInheritedStyleInternal(this.ptCurrentCell.Y); 3666if (this.RowHeadersVisible && this.ShowEditingIcon && this.ptCurrentCell.Y >= 0) 3669InvalidateCellPrivate(-1, this.ptCurrentCell.Y); 4900Debug.Assert(this.ptCurrentCell.Y >= 0); 4901InvalidateCellPrivate(-1, this.ptCurrentCell.Y); 4907Debug.Assert(this.ptCurrentCell.Y >= 0); 4908InvalidateCellPrivate(-1, this.ptCurrentCell.Y);
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; 593rowIndex == this.DataGridView.MouseDownCellAddress.Y) 617e.RowIndex == this.DataGridView.MouseDownCellAddress.Y && 714bool cellCurrent = (ptCurrentCell.X == this.ColumnIndex && ptCurrentCell.Y == rowIndex); 770else if (this.DataGridView.MouseEnteredCellAddress.Y == rowIndex && 843else if (this.DataGridView.MouseEnteredCellAddress.Y == rowIndex && 887else if (this.DataGridView.MouseEnteredCellAddress.Y == rowIndex && 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)
504ptCurrentCell.Y == this.RowIndex && 1799if (this.ColumnIndex == ptCurrentCell.X && rowIndex == ptCurrentCell.Y) 2681(dataGridView.AllowUserToAddRowsInternal && rowIndex > -1 && rowIndex == dataGridView.NewRowIndex && rowIndex != dataGridView.CurrentCellAddress.Y) || 3105ptCurrentCell.Y == rowIndex && 4650if (this.OwningRow.Index == this.DataGridView.CurrentCellAddress.Y)
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (14)
510ptCurrentCell.Y == e.RowIndex && 605ptCurrentCell.Y == rowIndex && this.DataGridView.IsCurrentCellInEditMode) 886return this.ColumnIndex == this.DataGridView.MouseDownCellAddress.X && rowIndex == this.DataGridView.MouseDownCellAddress.Y; 915ptCurrentCell.Y == e.RowIndex && 1025rowIndex == this.DataGridView.MouseDownCellAddress.Y) 1049e.RowIndex == this.DataGridView.MouseDownCellAddress.Y && 1085Debug.Assert((position.Y >= 0) && (position.Y < this.DataGridView.Rows.Count)); 1087int visibleRowIndex = this.DataGridView.Rows.GetRowCount(DataGridViewElementStates.Visible, 0, position.Y); 1183ptCurrentCell.Y == rowIndex && this.DataGridView.IsCurrentCellInEditMode) 1243ptCurrentCell.Y == rowIndex) 1260this.DataGridView.MouseEnteredCellAddress.Y == rowIndex && 1375if (this.DataGridView.MouseEnteredCellAddress.Y == rowIndex && 1513else if (this.DataGridView.MouseEnteredCellAddress.Y == rowIndex &&
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (49)
836else if (this.DataGridView.MouseEnteredCellAddress.Y == rowIndex && 1031sortGlyphLocation.Y + sortGlyphHeight-2, 1033sortGlyphLocation.Y); 1036sortGlyphLocation.Y + sortGlyphHeight-2, 1038sortGlyphLocation.Y); 1041sortGlyphLocation.Y, 1043sortGlyphLocation.Y + sortGlyphHeight-2); 1046sortGlyphLocation.Y, 1048sortGlyphLocation.Y + sortGlyphHeight-2); 1051sortGlyphLocation.Y + sortGlyphHeight-1, 1053sortGlyphLocation.Y + sortGlyphHeight-1); 1060sortGlyphLocation.Y + sortGlyphHeight - 2, 1062sortGlyphLocation.Y); 1065sortGlyphLocation.Y + sortGlyphHeight - 2, 1067sortGlyphLocation.Y); 1070sortGlyphLocation.Y, 1072sortGlyphLocation.Y + sortGlyphHeight - 2); 1075sortGlyphLocation.Y, 1077sortGlyphLocation.Y + sortGlyphHeight - 2); 1080sortGlyphLocation.Y + sortGlyphHeight - 1, 1082sortGlyphLocation.Y + sortGlyphHeight - 1); 1091sortGlyphLocation.Y + sortGlyphHeight - line - 1, 1093sortGlyphLocation.Y + sortGlyphHeight - line - 1); 1097sortGlyphLocation.Y + sortGlyphHeight - sortGlyphWidth / 2 - 1, 1099sortGlyphLocation.Y + sortGlyphHeight - sortGlyphWidth / 2); 1114sortGlyphLocation.Y+1, 1116sortGlyphLocation.Y+sortGlyphHeight-1); 1119sortGlyphLocation.Y+1, 1121sortGlyphLocation.Y+sortGlyphHeight-1); 1124sortGlyphLocation.Y+sortGlyphHeight-1, 1126sortGlyphLocation.Y+1); 1129sortGlyphLocation.Y+sortGlyphHeight-1, 1131sortGlyphLocation.Y+1); 1134sortGlyphLocation.Y, 1136sortGlyphLocation.Y); 1143sortGlyphLocation.Y+1, 1145sortGlyphLocation.Y+sortGlyphHeight-1); 1148sortGlyphLocation.Y+1, 1150sortGlyphLocation.Y+sortGlyphHeight-1); 1153sortGlyphLocation.Y+sortGlyphHeight-1, 1155sortGlyphLocation.Y+1); 1158sortGlyphLocation.Y+sortGlyphHeight-1, 1160sortGlyphLocation.Y+1); 1163sortGlyphLocation.Y, 1165sortGlyphLocation.Y); 1174sortGlyphLocation.Y + line + 2, 1176sortGlyphLocation.Y + line + 2); 1180sortGlyphLocation.Y + sortGlyphWidth / 2 + 1, 1182sortGlyphLocation.Y + sortGlyphWidth / 2 + 2);
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (11)
1912if (ptCurrentCell.X == e.ColumnIndex && ptCurrentCell.Y == e.RowIndex) 2126this.DataGridView.MouseEnteredCellAddress.Y == rowIndex && 2133if (this.DataGridView.MouseEnteredCellAddress.Y == rowIndex && 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)
738if (this.owner.CurrentCellAddress.Y == e.NewIndex && this.owner.IsCurrentCellInEditMode) 804this.owner.CurrentCellAddress.Y != this.owner.NewRowIndex && // condition 5. 856if (this.owner.CurrentCellAddress.Y != this.owner.NewRowIndex || this.owner.IsCurrentRowDirty) 1363if (rowIndex == this.owner.CurrentCellAddress.Y && columnIndex == this.owner.CurrentCellAddress.X)
winforms\Managed\System\WinForms\DataGridViewHeaderCell.cs (3)
538rowIndex == this.DataGridView.MouseDownCellAddress.Y && 579rowIndex == this.DataGridView.MouseDownCellAddress.Y && 603Debug.Assert(rowIndex == this.DataGridView.MouseDownCellAddress.Y);
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (1)
947ptCurrentCell.Y == rowIndex &&
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (1)
1017bool cellCurrent = ptCurrentCell.X == this.ColumnIndex && ptCurrentCell.Y == rowIndex;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (542)
43if (cellAddress.Y < 0 || cellAddress.Y >= this.Rows.Count) 48int visibleRowIndex = this.Rows.GetRowCount(DataGridViewElementStates.Visible, 0, cellAddress.Y); 2616Debug.Assert(this.ptCurrentCell.Y >= 0 && this.ptCurrentCell.Y < this.Rows.Count); 2622if (IsSharedCellReadOnly(dataGridViewCell, this.ptCurrentCell.Y) || 2639DataGridViewCellCancelEventArgs dgvcce = new DataGridViewCellCancelEventArgs(this.ptCurrentCell.X, this.ptCurrentCell.Y); 2655if (IsSharedCellReadOnly(dataGridViewCell, this.ptCurrentCell.Y) || 2678DataGridViewCellStyle dataGridViewCellStyle = dataGridViewCell.GetInheritedStyle(null, this.ptCurrentCell.Y, true); 2722((IDataGridViewEditingControl)this.editingControl).EditingControlRowIndex = this.ptCurrentCell.Y; 2758InvalidateCellPrivate(this.ptCurrentCell.X, this.ptCurrentCell.Y); 3073Debug.Assert(this.ptCurrentCell.Y != -1); 3135this.ptCurrentCell.Y, 3159InvalidateCellPrivate(this.ptCurrentCell.X, this.ptCurrentCell.Y); 3250if (currentCellDirty || this.ptCurrentCell.Y == -1 || this.ptCurrentCell.X == -1) 3276if (this.ptCurrentCell.Y > -1) 3278InvalidateRowPrivate(this.ptCurrentCell.Y); 3282DataGridViewCellStyle dataGridViewCellStyle = dataGridViewCell.GetInheritedStyle(null, this.ptCurrentCell.Y, true); 3298if (discardNewRow && this.ptCurrentCell.Y == this.newRowIndex - 1) 3307this.ptCurrentCell.Y == this.newRowIndex - 1 && 3396if (this.dataConnection.CurrencyManager.Count <= this.ptCurrentCell.Y) 3807OnCellLeave(ref dataGridViewCurrentCell, this.ptCurrentCell.X, this.ptCurrentCell.Y); 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*/); 3838if (OnCellValidating(ref dataGridViewCurrentCell, this.ptCurrentCell.X, this.ptCurrentCell.Y, context)) 3846OnRowEnter(ref dataGridViewCurrentCell, this.ptCurrentCell.X, this.ptCurrentCell.Y, true /*canCreateNewRow*/, true /*validationFailureOccurred*/); 3854OnCellEnter(ref dataGridViewCurrentCell, this.ptCurrentCell.X, this.ptCurrentCell.Y); 3862this.ptCurrentCell.Y, 3876OnCellValidated(ref dataGridViewCurrentCell, this.ptCurrentCell.X, this.ptCurrentCell.Y); 3905if (OnCellValidating(ref dataGridViewCurrentCell, this.ptCurrentCell.X, this.ptCurrentCell.Y, context)) 3913this.ptCurrentCell.Y, 3941this.ptCurrentCell.Y, 3977OnCellValidated(ref dataGridViewCurrentCell, this.ptCurrentCell.X, this.ptCurrentCell.Y); 4037int rowIndex = this.ptCurrentCell.Y; 4070this.ptCurrentCell.Y != rowIndex /*fireRowLeave*/, 4071this.ptCurrentCell.Y != rowIndex /*fireRowEnter*/, 4079if (this.ptCurrentCell.Y != rowIndex && this.ptCurrentCell.Y != -1) 4083int rowIndexTmp = this.ptCurrentCell.Y; 4123this.ptCurrentCell.Y != rowIndex /*forCurrentRowChange*/)) 5488Debug.Assert(this.ptCurrentCell.Y == this.newRowIndex); 5801int adjustedY = this.editingPanel.Location.Y + e.Y; 5805adjustedY += this.editingControl.Location.Y; 6215int curRowIndex = this.ptCurrentCell.Y; 6249if (curRowIndex != this.ptCurrentCell.Y || curColIndex != this.ptCurrentCell.X) 6273InvalidateCellPrivate(this.ptCurrentCell.X, this.ptCurrentCell.Y); 6294InvalidateCellPrivate(this.ptCurrentCell.X, this.ptCurrentCell.Y); 8672if (this.ptAnchorCell.Y != -1 && 8673(this.Rows.GetRowState(this.ptAnchorCell.Y) & DataGridViewElementStates.Frozen) != 0 && 8707if (this.ptAnchorCell.Y != -1 && 8708((this.Rows.GetRowState(this.ptAnchorCell.Y) & DataGridViewElementStates.Frozen) == 0 || 8888(this.ptAnchorCell.Y != -1 && (this.Rows.GetRowState(this.ptAnchorCell.Y) & DataGridViewElementStates.Frozen) == 0) 8890(this.ptCurrentCell.Y != -1 && (this.Rows.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.Frozen) == 0) 9789HitTestInfo hti = HitTest(ptMouse.X, ptMouse.Y); 9790int xOffset, yOffset, mouseX = ptMouse.X, mouseY = ptMouse.Y; 9810hti = HitTest(ptMouse.X+(this.RightToLeftInternal?1:-1)*(xOffset+normOffset), ptMouse.Y-yOffset-(yOffset/Math.Abs(yOffset))); 9842this.uneditedFormattedValue = dataGridViewCell.GetFormattedValue(this.ptCurrentCell.Y, ref dataGridViewCellStyle, DataGridViewDataErrorContexts.Formatting); 9854dataGridViewCell = this.Rows[this.ptCurrentCell.Y].Cells[this.ptCurrentCell.X]; // unshare the edited cell 9867this.ptCurrentCell.Y, 9893object initialFormattedValue = dataGridViewCell.GetFormattedValue(this.ptCurrentCell.Y, ref dataGridViewCellStyle, DataGridViewDataErrorContexts.Formatting); 9898dataGridViewCell.InitializeEditingControl(this.ptCurrentCell.Y, initialFormattedValue, dataGridViewCellStyle); 9908this.ptCurrentCell.Y, 10572firstDisplayedCellAddress.Y != this.Rows.Count - 1)) 10575firstDisplayedCellAddress.Y, 10694Debug.Assert(this.ptCurrentCell.Y >= 0 && this.ptCurrentCell.Y < this.Rows.Count); 12278HitTestInfo hti = HitTest(ptGridCoord.X, ptGridCoord.Y); 12286Debug.Assert(this.ptMouseDownCell.Y == hti.row); 12352BeginRowResize(ptGridCoord.Y, hti.mouseBarOffset, rowIndex); 12418BeginColumnHeadersResize(ptGridCoord.Y, hti.mouseBarOffset); 12441(this.ptCurrentCell.X != hti.col || this.ptCurrentCell.Y != hti.row)) 12445this.ptCurrentCell.X != hti.col || this.ptCurrentCell.Y != hti.row /*forCurrentCellChange*/, 12446this.ptCurrentCell.Y != hti.row /*forCurrentRowChange*/)) 12522int oldEdgeRowIndex = this.ptCurrentCell.Y; 12528this.ptAnchorCell.Y, ref oldEdgeRowIndex, hti.row); 12687int oldEdgeRowIndex = this.ptCurrentCell.Y; 12693this.ptAnchorCell.Y, ref oldEdgeRowIndex, hti.row); 12739this.ptAnchorCell.Y > -1 && (this.Rows.GetRowState(this.ptAnchorCell.Y) & DataGridViewElementStates.Selected) != 0) 12783if (hti.row >= this.ptAnchorCell.Y) 12785SelectRowRange(this.ptAnchorCell.Y, hti.row, true); 12789SelectRowRange(hti.row, this.ptAnchorCell.Y, true); 12867int oldEdgeRowIndex = this.ptCurrentCell.Y; 12873this.ptAnchorCell.Y, ref oldEdgeRowIndex, hti.row); 13020this.ptMouseDownCell.Y == -1 && 13026HitTestInfo hti = HitTest(ptGridCoord.X, ptGridCoord.Y); 13042Math.Abs(this.ptMouseDownGridCoord.Y - ptGridCoord.Y) >= DataGridView.DragSize.Height) 13135int oldEdgeRowIndex = this.ptCurrentCell.Y; 13136if ((hti.col != this.ptCurrentCell.X || hti.row != this.ptCurrentCell.Y) && 13150this.ptAnchorCell.Y, ref oldEdgeRowIndex, hti.row); 13151if (hti.col != this.ptCurrentCell.X || hti.row != this.ptCurrentCell.Y) 13186this.ptCurrentCell.Y == dataGridViewCell.RowIndex && 14182int oldCurrentCellY = this.ptCurrentCell.Y; 14187rowIndex != this.ptCurrentCell.Y /*fireRowLeave*/, 14188rowIndex != this.ptCurrentCell.Y /*fireRowEnter*/, 14322bool success = SetCurrentCellAddressCore(this.ptCurrentCell.X, this.ptCurrentCell.Y, false /*setAnchorCellAddress*/, false /*validateCurrentCell*/, false /*throughMouseClick*/); 14601!CommitEditForOperation(hti.col, this.ptCurrentCell.Y, true)) 14684if (this.ptCurrentCell.Y == -1 || IsColumnOutOfBounds(hti.col)) 14689this.ptCurrentCell.Y, 14906(this.Rows.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.ReadOnly) == 0 && 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)))) 15041Debug.Assert(this.ptCurrentCell.Y >= 0); 15042InvalidateCellPrivate(-1, this.ptCurrentCell.Y); 15044if (this.IsCurrentCellDirty && this.newRowIndex == this.ptCurrentCell.Y) 15267if (elementState == DataGridViewElementStates.Visible && this.ptCurrentCell.Y == rowIndex) 15275Debug.Assert(this.dataConnection.CurrencyManager.Position == this.ptCurrentCell.Y); 15287if (this.ptCurrentCell.Y == rowIndex && 15325this.ptCurrentCell.Y == dataGridViewCell.RowIndex && 15533OnRowEnter(ref dataGridViewCell, this.ptCurrentCell.X, this.ptCurrentCell.Y, false /*canCreateNewRow*/, false /*validationFailureOccurred*/); 15538OnCellEnter(ref dataGridViewCell, this.ptCurrentCell.X, this.ptCurrentCell.Y); 15564InvalidateCellPrivate(this.ptCurrentCell.X /*columnIndex*/, this.ptCurrentCell.Y /*rowIndex*/); 15573InvalidateCellPrivate(this.ptCurrentCell.X /*columnIndex*/, this.ptCurrentCell.Y /*rowIndex*/); 15693InvalidateCell(this.ptCurrentCell.X, this.ptCurrentCell.Y); 15736ScrollIntoView(this.ptCurrentCell.X, this.ptCurrentCell.Y, false /*forCurrentCellChange*/); 15774newCurrentCell.Y, 15807if (lastInsertion && newCurrentCell.Y != -1) 15811newCurrentCell.Y, 15846if (newCurrentCell.Y != -1) 15849bool success = SetAndSelectCurrentCellAddress(newCurrentCell.X, newCurrentCell.Y, true, false, false, false /*clearSelection*/, false /*forceCurrentCellSelection*/); 15897this.ptCurrentCell.Y); 16006if (this.ptCurrentCell.Y != -1 && rowIndexInserted <= this.ptCurrentCell.Y) 16008newCurrentCell = new Point(this.ptCurrentCell.X, this.ptCurrentCell.Y + insertionCount); 16029if (newCurrentCell.Y != -1) 16080if (this.ptCurrentCell.Y != -1 && rowIndexInserted <= this.ptCurrentCell.Y) 16082newCurrentCell = new Point(this.ptCurrentCell.X, this.ptCurrentCell.Y + dataGridViewRows.Length); 16146if (dataGridViewCell.KeyDownUnsharesRowInternal(e, this.ptCurrentCell.Y)) 16148DataGridViewRow dataGridViewRow = this.Rows[this.ptCurrentCell.Y]; 16149this.CurrentCellInternal.OnKeyDownInternal(e, this.ptCurrentCell.Y); 16153dataGridViewCell.OnKeyDownInternal(e, this.ptCurrentCell.Y); 16204if (dataGridViewCell.KeyPressUnsharesRowInternal(e, this.ptCurrentCell.Y)) 16206DataGridViewRow dataGridViewRow = this.Rows[this.ptCurrentCell.Y]; 16207this.CurrentCellInternal.OnKeyPressInternal(e, this.ptCurrentCell.Y); 16211dataGridViewCell.OnKeyPressInternal(e, this.ptCurrentCell.Y); 16238if (dataGridViewCell.KeyUpUnsharesRowInternal(e, this.ptCurrentCell.Y)) 16240DataGridViewRow dataGridViewRow = this.Rows[this.ptCurrentCell.Y]; 16241this.CurrentCellInternal.OnKeyUpInternal(e, this.ptCurrentCell.Y); 16245dataGridViewCell.OnKeyUpInternal(e, this.ptCurrentCell.Y); 16276OnCellLeave(ref dataGridViewCell, this.ptCurrentCell.X, this.ptCurrentCell.Y); 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*/); 16308InvalidateCell(this.ptCurrentCell.X, this.ptCurrentCell.Y); 16327this.ptMouseDownCell.Y == hti.row && 16330this.ptMouseDownCell.Y == -1 || 16332this.ptMouseDownCell.Y == this.ptCurrentCell.Y))) 16412if (this.ptMouseDownCell.X == hti.col && this.ptMouseDownCell.Y == hti.row) 16530Debug.Assert(this.ptMouseDownCell.Y != -2); 16586this.ptMouseEnteredCell.Y >= -1 && this.ptMouseEnteredCell.Y < this.Rows.Count) 16588DataGridViewCellEventArgs dgvce = new DataGridViewCellEventArgs(this.ptMouseEnteredCell.X, this.ptMouseEnteredCell.Y); 16815hti.row >= 0 && this.ptMouseDownCell.Y == hti.row && 17317!this.Rows[this.ptCurrentCell.Y].Cells[this.ptCurrentCell.X].ReadOnly) // Unshares the row 17353newCurrentCell.Y, 17399if (newCurrentCell.Y != -1) 17403newCurrentCell.Y, 17528newCurrentCell = new Point(newX, (newX == -1) ? -1 : this.ptCurrentCell.Y); 17696if (this.ptCurrentCell.Y != -1 && rowIndexDeleted <= this.ptCurrentCell.Y) 17699if (rowIndexDeleted == this.ptCurrentCell.Y) 17733Debug.Assert(rowIndexDeleted < this.ptCurrentCell.Y); 17734newY = this.ptCurrentCell.Y - 1; 17737if (rowIndexDeleted == this.ptCurrentCell.Y) 17832if (!IsInnerCellOutOfBounds(this.ptCurrentCellCache.X, this.ptCurrentCellCache.Y)) 17834SetCurrentCellAddressCore(this.ptCurrentCellCache.X, this.ptCurrentCellCache.Y, false, false, false); 17844this.ptCurrentCell.Y == columnIndex) 17849this.ptCurrentCellCache.Y = this.ptCurrentCell.Y; 18433if (dataGridViewColumn != null && hti.row != this.ptCurrentCell.Y) 18436int oldCurrentCellY = this.ptCurrentCell.Y; 18442hti.row != this.ptCurrentCell.Y /*fireRowLeave*/, 18443hti.row != this.ptCurrentCell.Y /*fireRowEnter*/, 18516this.ptAnchorCell.Y > -1 && 18517(this.Rows.GetRowState(this.ptAnchorCell.Y) & DataGridViewElementStates.Selected) != 0) 18569if (hti.row >= this.ptAnchorCell.Y) 18571SelectRowRange(this.ptAnchorCell.Y, hti.row, true); 18575SelectRowRange(hti.row, this.ptAnchorCell.Y, true); 18586if (hti.row != this.ptCurrentCell.Y) 18602else if (-1 != this.ptCurrentCell.Y) 18605bool success = SetCurrentCellAddressCore(this.ptCurrentCell.X, this.ptCurrentCell.Y, 18941if (this.ptCurrentCell.Y != -1 && 18942hti.row != this.ptCurrentCell.Y && 19019if (this.ptCurrentCell.Y != -1 && hti.row != this.ptCurrentCell.Y) 19213rowIndex == this.ptCurrentCell.Y && 19234if (-1 != this.ptCurrentCell.X && dataGridViewRow.Index == this.ptCurrentCell.Y && this.editingControl != null) 19369if (pt.Y < 0 && step < 0) 19371Invalidate(new Rectangle(new Point(0, -pt.Y), 19376if (pt.Y > rect.Bottom && step > 0) 19379new Size(ClientSize.Width, ClientSize.Height - (pt.Y - rect.Bottom) - step))); 19537bool success = SetCurrentCellAddressCore(this.ptCurrentCell.X, this.ptCurrentCell.Y, 19631if (OnRowValidating(ref dataGridViewCellTmp, this.ptCurrentCell.X, this.ptCurrentCell.Y)) 19641OnRowValidated(ref dataGridViewCellTmp, this.ptCurrentCell.X, this.ptCurrentCell.Y); 19646this.newRowIndex == this.ptCurrentCell.Y) 19649int rowIndex = this.Rows.GetPreviousRow(this.ptCurrentCell.Y, DataGridViewElementStates.Visible); 20367Rectangle cellBounds = new Rectangle(leftEdge, GetRowYFromIndex(this.ptCurrentCell.Y), 20368this.Columns[this.ptCurrentCell.X].Width, this.Rows.SharedRow(this.ptCurrentCell.Y).GetHeight(this.ptCurrentCell.Y)); 20380if ((this.Rows.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.Frozen) == 0) 20401bool isFirstDisplayedRow = this.FirstDisplayedRowIndex == this.ptCurrentCell.Y; 20716if (this.ptCurrentCell.Y != -1) 20718nextVisibleRowIndex = this.Rows.GetNextRow(this.ptCurrentCell.Y, DataGridViewElementStates.Visible); 20764Debug.Assert(this.ptAnchorCell.Y >= 0); 20767int oldEdgeRowIndex = this.ptCurrentCell.Y; 20775this.ptAnchorCell.Y, ref oldEdgeRowIndex, lastVisibleRowIndex); 20885int oldEdgeRowIndex = this.ptCurrentCell.Y; 20892this.ptAnchorCell.Y, ref oldEdgeRowIndex, nextVisibleRowIndex); 20987if (this.ptAnchorCell.Y == -1 || this.ptCurrentCell.X == -1 || 20994Debug.Assert(this.ptAnchorCell.Y >= 0); 20995SelectRowRange(this.ptAnchorCell.Y, lastVisibleRowIndex, true); 21013SetSelectedRowCore(this.ptCurrentCell.Y, false); 21108if (nextVisibleRowIndex >= this.ptAnchorCell.Y) 21110SelectRowRange(this.ptAnchorCell.Y, nextVisibleRowIndex, true); 21114SelectRowRange(nextVisibleRowIndex, this.ptAnchorCell.Y, true); 21205Debug.Assert(this.ptAnchorCell.Y >= 0); 21206if (this.ptAnchorCell.Y == -1 || this.ptCurrentCell.Y == -1 || 21212if ((this.Rows.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0) 21215SelectRowRange(this.ptAnchorCell.Y, lastVisibleRowIndex, true); 21222int oldEdgeRowIndex = this.ptCurrentCell.Y; 21224this.ptAnchorCell.Y, ref oldEdgeRowIndex, lastVisibleRowIndex); 21238if (this.ptCurrentCell.Y == -1 || IsRowOutOfBounds(lastVisibleRowIndex)) 21243if ((this.Rows.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0) 21245SetSelectedRowCore(this.ptCurrentCell.Y, false); 21250SetSelectedCellCore(this.ptCurrentCell.X, this.ptCurrentCell.Y, false); 21286if (this.ptCurrentCell.Y == -1 || IsRowOutOfBounds(lastVisibleRowIndex)) 21291if ((this.Rows.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0) 21341if (this.ptCurrentCell.Y == -1 || IsRowOutOfBounds(nextVisibleRowIndex)) 21346if ((this.Rows.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0) 21351if (this.ptAnchorCell.Y == -1) 21356if (nextVisibleRowIndex >= this.ptAnchorCell.Y) 21358SelectRowRange(this.ptAnchorCell.Y, nextVisibleRowIndex, true); 21362SelectRowRange(nextVisibleRowIndex, this.ptAnchorCell.Y, true); 21376int oldEdgeRowIndex = this.ptCurrentCell.Y; 21383this.ptAnchorCell.Y, ref oldEdgeRowIndex, nextVisibleRowIndex); 21428if (this.ptCurrentCell.Y == -1 || IsRowOutOfBounds(nextVisibleRowIndex)) 21433if ((this.Rows.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0) 21585int oldEdgeRowIndex = this.ptCurrentCell.Y; 21587this.ptAnchorCell.Y, ref oldEdgeRowIndex, lastVisibleRowIndex); 21628if (this.ptCurrentCell.Y > -1 && 21629(this.Rows.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0) 21632SelectRowRange(this.ptCurrentCell.Y, lastVisibleRowIndex, true); 21637int oldEdgeRowIndex = this.ptCurrentCell.Y; 21639this.ptAnchorCell.Y, ref oldEdgeRowIndex, lastVisibleRowIndex); 21644if (this.ptCurrentCell.Y > -1 && 21645(this.Rows.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0) 21660if (this.ptCurrentCell.Y > -1 && 21661(this.Rows.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0) 21749int oldEdgeRowIndex = this.ptCurrentCell.Y; 21755this.ptAnchorCell.Y, ref oldEdgeRowIndex, lastVisibleRowIndex); 21810if (this.MultiSelect && this.ptCurrentCell.Y >= 0) 21812if (this.ptAnchorCell.Y == -1) 21816SelectRowRange(this.ptAnchorCell.Y, lastVisibleRowIndex, true); 21904int rowIndex = this.ptCurrentCell.Y; 21955Debug.Assert(this.ptCurrentCell.Y != -1); 21958(IsSharedCellReadOnly(this.CurrentCellInternal, this.ptCurrentCell.Y) || !ColumnEditable(this.ptCurrentCell.X))); 21960!IsSharedCellReadOnly(this.CurrentCellInternal, this.ptCurrentCell.Y) && 21964bool success = ScrollIntoView(this.ptCurrentCell.X, this.ptCurrentCell.Y, false); 22039int oldEdgeRowIndex = this.ptCurrentCell.Y; 22041this.ptAnchorCell.Y, ref oldEdgeRowIndex, firstVisibleRowIndex); 22082if (this.ptCurrentCell.Y > -1 && 22083(this.Rows.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0) 22086SelectRowRange(firstVisibleRowIndex, this.ptAnchorCell.Y, true); 22091int oldEdgeRowIndex = this.ptCurrentCell.Y; 22093this.ptAnchorCell.Y, ref oldEdgeRowIndex, firstVisibleRowIndex); 22098if (this.ptCurrentCell.Y > -1 && 22099(this.Rows.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0) 22114if (this.ptCurrentCell.Y > -1 && 22115(this.Rows.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0) 22207int oldEdgeRowIndex = this.ptCurrentCell.Y; 22213this.ptAnchorCell.Y, ref oldEdgeRowIndex, firstVisibleRowIndex); 22315!IsSharedCellReadOnly(dataGridViewCell, this.ptCurrentCell.Y) && 22333bool success = ScrollIntoView(this.ptCurrentCell.X, this.ptCurrentCell.Y, false); 22560if (!ScrollIntoView(previousVisibleColumnIndex, this.ptCurrentCell.Y, true)) 22564if (this.ptCurrentCell.Y == -1 || IsColumnOutOfBounds(previousVisibleColumnIndex)) 22573int oldEdgeRowIndex = this.ptCurrentCell.Y; 22579this.ptAnchorCell.Y, ref oldEdgeRowIndex, oldEdgeRowIndex); 22584SetSelectedCellCore(previousVisibleColumnIndex, this.ptCurrentCell.Y, true); 22586success = SetCurrentCellAddressCore(previousVisibleColumnIndex, this.ptCurrentCell.Y, !this.MultiSelect, false, false); 22611if (!ScrollIntoView(previousVisibleColumnIndex, this.ptCurrentCell.Y, true)) 22615if (this.ptCurrentCell.Y == -1 || IsColumnOutOfBounds(previousVisibleColumnIndex)) 22620SetSelectedCellCore(previousVisibleColumnIndex, this.ptCurrentCell.Y, true); 22621success = SetCurrentCellAddressCore(previousVisibleColumnIndex, this.ptCurrentCell.Y, true, false, false); 22656if (!ScrollIntoView(previousVisibleColumnIndex, this.ptCurrentCell.Y, true)) 22660if (this.ptCurrentCell.Y == -1 || IsColumnOutOfBounds(previousVisibleColumnIndex)) 22684success = SetCurrentCellAddressCore(previousVisibleColumnIndex, this.ptCurrentCell.Y, !this.MultiSelect, false, false); 22709if (!ScrollIntoView(previousVisibleColumnIndex, this.ptCurrentCell.Y, true)) 22713if (this.ptCurrentCell.Y == -1 || IsColumnOutOfBounds(previousVisibleColumnIndex)) 22719success = SetCurrentCellAddressCore(previousVisibleColumnIndex, this.ptCurrentCell.Y, true, false, false); 22754if (!ScrollIntoView(previousVisibleColumnIndex, this.ptCurrentCell.Y, true)) 22788int oldEdgeRowIndex = this.ptCurrentCell.Y; 22794this.ptAnchorCell.Y, ref oldEdgeRowIndex, oldEdgeRowIndex); 22799SetSelectedCellCore(previousVisibleColumnIndex, this.ptCurrentCell.Y, true); 22802success = SetCurrentCellAddressCore(previousVisibleColumnIndex, this.ptCurrentCell.Y, !this.MultiSelect, false, false); 22827if (!ScrollIntoView(previousVisibleColumnIndex, this.ptCurrentCell.Y, true)) 22843SetSelectedCellCore(previousVisibleColumnIndex, this.ptCurrentCell.Y, true); 22845success = SetCurrentCellAddressCore(previousVisibleColumnIndex, this.ptCurrentCell.Y, true, false, false); 22878if (!ScrollIntoView(previousVisibleColumnIndex, this.ptCurrentCell.Y, true)) 22882if (this.ptCurrentCell.Y == -1 || IsColumnOutOfBounds(previousVisibleColumnIndex)) 22886success = SetCurrentCellAddressCore(previousVisibleColumnIndex, this.ptCurrentCell.Y, true, false, false); 22932if (!ScrollIntoView(firstVisibleColumnIndex, this.ptCurrentCell.Y, true)) 22940int oldEdgeRowIndex = this.ptCurrentCell.Y; 22947this.ptAnchorCell.Y, ref oldEdgeRowIndex, oldEdgeRowIndex); 22948success = SetCurrentCellAddressCore(firstVisibleColumnIndex, this.ptCurrentCell.Y, false, false, false); 22953if (!ScrollIntoView(firstVisibleColumnIndex, this.ptCurrentCell.Y, true)) 22957if (this.ptCurrentCell.Y == -1 || IsColumnOutOfBounds(firstVisibleColumnIndex)) 22963SetSelectedCellCore(firstVisibleColumnIndex, this.ptCurrentCell.Y, true); 22964success = SetCurrentCellAddressCore(firstVisibleColumnIndex, this.ptCurrentCell.Y, true, false, false); 22986if (!ScrollIntoView(firstVisibleColumnIndex, this.ptCurrentCell.Y, true)) 22990if (this.ptCurrentCell.Y == -1 || IsColumnOutOfBounds(firstVisibleColumnIndex)) 22995SetSelectedCellCore(firstVisibleColumnIndex, this.ptCurrentCell.Y, true); 22996success = SetCurrentCellAddressCore(firstVisibleColumnIndex, this.ptCurrentCell.Y, true, false, false); 23022if (!ScrollIntoView(firstVisibleColumnIndex, this.ptCurrentCell.Y, true)) 23026if (this.ptAnchorCell.X == -1 || this.ptCurrentCell.Y == -1 || 23034success = SetCurrentCellAddressCore(firstVisibleColumnIndex, this.ptCurrentCell.Y, false, false, false); 23039if (!ScrollIntoView(firstVisibleColumnIndex, this.ptCurrentCell.Y, true)) 23049success = SetCurrentCellAddressCore(firstVisibleColumnIndex, this.ptCurrentCell.Y, true, false, false); 23071if (!ScrollIntoView(firstVisibleColumnIndex, this.ptCurrentCell.Y, true)) 23075if (this.ptCurrentCell.Y == -1 || IsColumnOutOfBounds(firstVisibleColumnIndex)) 23081success = SetCurrentCellAddressCore(firstVisibleColumnIndex, this.ptCurrentCell.Y, true, false, false); 23107if (!ScrollIntoView(firstVisibleColumnIndex, this.ptCurrentCell.Y, true)) 23127int oldEdgeRowIndex = this.ptCurrentCell.Y; 23129this.ptAnchorCell.Y, ref oldEdgeRowIndex, oldEdgeRowIndex); 23131success = SetCurrentCellAddressCore(firstVisibleColumnIndex, this.ptCurrentCell.Y, false, false, false); 23136if (!ScrollIntoView(firstVisibleColumnIndex, this.ptCurrentCell.Y, true)) 23152SetSelectedCellCore(this.ptCurrentCell.X, this.ptCurrentCell.Y, false); 23153SetSelectedCellCore(firstVisibleColumnIndex, this.ptCurrentCell.Y, true); 23155success = SetCurrentCellAddressCore(firstVisibleColumnIndex, this.ptCurrentCell.Y, true, false, false); 23177if (!ScrollIntoView(firstVisibleColumnIndex, this.ptCurrentCell.Y, true)) 23193SetSelectedCellCore(firstVisibleColumnIndex, this.ptCurrentCell.Y, true); 23195success = SetCurrentCellAddressCore(firstVisibleColumnIndex, this.ptCurrentCell.Y, true, false, false); 23217if (!ScrollIntoView(firstVisibleColumnIndex, this.ptCurrentCell.Y, true)) 23221if (this.ptCurrentCell.Y == -1 || IsColumnOutOfBounds(firstVisibleColumnIndex)) 23225success = SetCurrentCellAddressCore(firstVisibleColumnIndex, this.ptCurrentCell.Y, true, false, false); 23252if (this.ptCurrentCell.Y == -1) 23262nextScreenVisibleRowIndex = this.ptCurrentCell.Y; 23277this.ptCurrentCell.Y, 23351Debug.Assert(this.ptAnchorCell.Y >= 0); 23353int oldEdgeRowIndex = this.ptCurrentCell.Y; 23354if (this.ptAnchorCell.Y == -1) 23359this.ptAnchorCell.Y, ref oldEdgeRowIndex, nextScreenVisibleRowIndex); 23382Debug.Assert(this.ptAnchorCell.Y >= 0); 23383if (this.ptAnchorCell.Y == -1) 23387if (this.ptAnchorCell.Y < nextScreenVisibleRowIndex) 23389SelectRowRange(this.ptAnchorCell.Y, nextScreenVisibleRowIndex, true); 23393SelectRowRange(nextScreenVisibleRowIndex, this.ptAnchorCell.Y, true); 23415Debug.Assert(this.ptAnchorCell.Y >= 0); 23416if (this.ptAnchorCell.Y == -1) 23420if ((this.Rows.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0) 23423if (this.ptAnchorCell.Y < nextScreenVisibleRowIndex) 23425SelectRowRange(this.ptAnchorCell.Y, nextScreenVisibleRowIndex, true); 23429SelectRowRange(nextScreenVisibleRowIndex, this.ptAnchorCell.Y, true); 23435int oldEdgeRowIndex = this.ptCurrentCell.Y; 23437this.ptAnchorCell.Y, ref oldEdgeRowIndex, nextScreenVisibleRowIndex); 23442if ((this.Rows.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0) 23492if (this.ptCurrentCell.Y == -1) 23502previousScreenVisibleRowIndex = this.ptCurrentCell.Y; 23590Debug.Assert(this.ptAnchorCell.Y >= 0); 23592int oldEdgeRowIndex = this.ptCurrentCell.Y; 23598this.ptAnchorCell.Y, ref oldEdgeRowIndex, previousScreenVisibleRowIndex); 23621Debug.Assert(this.ptAnchorCell.Y >= 0); 23622if (this.ptAnchorCell.Y == -1) 23626if (this.ptAnchorCell.Y < previousScreenVisibleRowIndex) 23628SelectRowRange(this.ptAnchorCell.Y, previousScreenVisibleRowIndex, true); 23632SelectRowRange(previousScreenVisibleRowIndex, this.ptAnchorCell.Y, true); 23654Debug.Assert(this.ptAnchorCell.Y >= 0); 23655if (this.ptAnchorCell.Y == -1) 23659if ((this.Rows.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0) 23662if (this.ptAnchorCell.Y < previousScreenVisibleRowIndex) 23664SelectRowRange(this.ptAnchorCell.Y, previousScreenVisibleRowIndex, true); 23668SelectRowRange(previousScreenVisibleRowIndex, this.ptAnchorCell.Y, true); 23674int oldEdgeRowIndex = this.ptCurrentCell.Y; 23676this.ptAnchorCell.Y, ref oldEdgeRowIndex, previousScreenVisibleRowIndex); 23681if ((this.Rows.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0) 23799if (!ScrollIntoView(nextVisibleColumnIndex, this.ptCurrentCell.Y, true)) 23803if (this.ptCurrentCell.Y == -1 || IsColumnOutOfBounds(nextVisibleColumnIndex)) 23811int oldEdgeRowIndex = this.ptCurrentCell.Y; 23817this.ptAnchorCell.Y, ref oldEdgeRowIndex, oldEdgeRowIndex); 23822SetSelectedCellCore(nextVisibleColumnIndex, this.ptCurrentCell.Y, true); 23824success = SetCurrentCellAddressCore(nextVisibleColumnIndex, this.ptCurrentCell.Y, !this.MultiSelect, false, false); 23849if (!ScrollIntoView(nextVisibleColumnIndex, this.ptCurrentCell.Y, true)) 23853if (this.ptCurrentCell.Y == -1 || IsColumnOutOfBounds(nextVisibleColumnIndex)) 23858SetSelectedCellCore(nextVisibleColumnIndex, this.ptCurrentCell.Y, true); 23859success = SetCurrentCellAddressCore(nextVisibleColumnIndex, this.ptCurrentCell.Y, true, false, false); 23894if (!ScrollIntoView(nextVisibleColumnIndex, this.ptCurrentCell.Y, true)) 23898if (this.ptCurrentCell.Y == -1 || IsColumnOutOfBounds(nextVisibleColumnIndex)) 23922success = SetCurrentCellAddressCore(nextVisibleColumnIndex, this.ptCurrentCell.Y, !this.MultiSelect, false, false); 23947if (!ScrollIntoView(nextVisibleColumnIndex, this.ptCurrentCell.Y, true)) 23951if (this.ptCurrentCell.Y == -1 || IsColumnOutOfBounds(nextVisibleColumnIndex)) 23957success = SetCurrentCellAddressCore(nextVisibleColumnIndex, this.ptCurrentCell.Y, true, false, false); 23992if (!ScrollIntoView(nextVisibleColumnIndex, this.ptCurrentCell.Y, true)) 23996if (this.ptCurrentCell.Y == -1 || IsColumnOutOfBounds(nextVisibleColumnIndex)) 24033int oldEdgeRowIndex = this.ptCurrentCell.Y; 24035this.ptAnchorCell.Y, ref oldEdgeRowIndex, oldEdgeRowIndex); 24040SetSelectedCellCore(nextVisibleColumnIndex, this.ptCurrentCell.Y, true); 24043success = SetCurrentCellAddressCore(nextVisibleColumnIndex, this.ptCurrentCell.Y, !this.MultiSelect, false, false); 24068if (!ScrollIntoView(nextVisibleColumnIndex, this.ptCurrentCell.Y, true)) 24084SetSelectedCellCore(nextVisibleColumnIndex, this.ptCurrentCell.Y, true); 24086success = SetCurrentCellAddressCore(nextVisibleColumnIndex, this.ptCurrentCell.Y, true, false, false); 24119if (!ScrollIntoView(nextVisibleColumnIndex, this.ptCurrentCell.Y, true)) 24123if (this.ptCurrentCell.Y == -1 || IsColumnOutOfBounds(nextVisibleColumnIndex)) 24127success = SetCurrentCellAddressCore(nextVisibleColumnIndex, this.ptCurrentCell.Y, true, false, false); 24171if (!ScrollIntoView(lastVisibleColumnIndex, this.ptCurrentCell.Y, true)) 24175if (this.ptCurrentCell.Y == -1 || IsColumnOutOfBounds(lastVisibleColumnIndex)) 24187int oldEdgeRowIndex = this.ptCurrentCell.Y; 24189this.ptAnchorCell.Y, ref oldEdgeRowIndex, oldEdgeRowIndex); 24190success = SetCurrentCellAddressCore(lastVisibleColumnIndex, this.ptCurrentCell.Y, false, false, false); 24196SetSelectedCellCore(lastVisibleColumnIndex, this.ptCurrentCell.Y, true); 24197success = SetCurrentCellAddressCore(lastVisibleColumnIndex, this.ptCurrentCell.Y, true, false, false); 24219if (!ScrollIntoView(lastVisibleColumnIndex, this.ptCurrentCell.Y, true)) 24223if (this.ptCurrentCell.Y == -1 || IsColumnOutOfBounds(lastVisibleColumnIndex)) 24228SetSelectedCellCore(lastVisibleColumnIndex, this.ptCurrentCell.Y, true); 24229success = SetCurrentCellAddressCore(lastVisibleColumnIndex, this.ptCurrentCell.Y, true, false, false); 24253if (!ScrollIntoView(lastVisibleColumnIndex, this.ptCurrentCell.Y, true)) 24257if (this.ptCurrentCell.Y == -1 || IsColumnOutOfBounds(lastVisibleColumnIndex)) 24270success = SetCurrentCellAddressCore(lastVisibleColumnIndex, this.ptCurrentCell.Y, false, false, false); 24277success = SetCurrentCellAddressCore(lastVisibleColumnIndex, this.ptCurrentCell.Y, true, false, false); 24299if (!ScrollIntoView(lastVisibleColumnIndex, this.ptCurrentCell.Y, true)) 24303if (this.ptCurrentCell.Y == -1 || IsColumnOutOfBounds(lastVisibleColumnIndex)) 24309success = SetCurrentCellAddressCore(lastVisibleColumnIndex, this.ptCurrentCell.Y, true, false, false); 24333if (!ScrollIntoView(lastVisibleColumnIndex, this.ptCurrentCell.Y, true)) 24337if (this.ptCurrentCell.Y == -1 || IsColumnOutOfBounds(lastVisibleColumnIndex)) 24358int oldEdgeRowIndex = this.ptCurrentCell.Y; 24360this.ptAnchorCell.Y, ref oldEdgeRowIndex, oldEdgeRowIndex); 24362success = SetCurrentCellAddressCore(lastVisibleColumnIndex, this.ptCurrentCell.Y, false, false, false); 24374SetSelectedCellCore(this.ptCurrentCell.X, this.ptCurrentCell.Y, false); 24375SetSelectedCellCore(lastVisibleColumnIndex, this.ptCurrentCell.Y, true); 24377success = SetCurrentCellAddressCore(lastVisibleColumnIndex, this.ptCurrentCell.Y, true, false, false); 24399if (!ScrollIntoView(lastVisibleColumnIndex, this.ptCurrentCell.Y, true)) 24403if (this.ptCurrentCell.Y == -1 || IsColumnOutOfBounds(lastVisibleColumnIndex)) 24415SetSelectedCellCore(lastVisibleColumnIndex, this.ptCurrentCell.Y, true); 24417success = SetCurrentCellAddressCore(lastVisibleColumnIndex, this.ptCurrentCell.Y, true, false, false); 24439if (!ScrollIntoView(lastVisibleColumnIndex, this.ptCurrentCell.Y, true)) 24443if (this.ptCurrentCell.Y == -1 || IsColumnOutOfBounds(lastVisibleColumnIndex)) 24447success = SetCurrentCellAddressCore(lastVisibleColumnIndex, this.ptCurrentCell.Y, true, false, false); 24510if (this.selectedBandIndexes[bandIndex] != this.ptCurrentCell.Y) 24521if ((this.Rows.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.Selected) == 0) 24523Debug.Assert(!this.selectedBandIndexes.Contains(this.ptCurrentCell.Y)); 24524SetSelectedRowCore(this.ptCurrentCell.Y, true); 24751if (this.ptCurrentCell.Y != -1) 24753previousVisibleRowIndex = this.Rows.GetPreviousRow(this.ptCurrentCell.Y, DataGridViewElementStates.Visible); 24797Debug.Assert(this.ptAnchorCell.Y >= 0); 24800int oldEdgeRowIndex = this.ptCurrentCell.Y; 24802this.ptAnchorCell.Y, ref oldEdgeRowIndex, firstVisibleRowIndex); 24889Debug.Assert(this.ptAnchorCell.Y >= 0); 24890if (this.ptAnchorCell.Y == -1) 24896int oldEdgeRowIndex = this.ptCurrentCell.Y; 24898this.ptAnchorCell.Y, ref oldEdgeRowIndex, previousVisibleRowIndex); 24979Debug.Assert(this.ptAnchorCell.Y >= 0); 24980SelectRowRange(firstVisibleRowIndex, this.ptAnchorCell.Y, true); 24994SetSelectedRowCore(this.ptCurrentCell.Y, false); 25067if (this.ptAnchorCell.Y == -1) 25071if (this.ptAnchorCell.Y >= previousVisibleRowIndex) 25073SelectRowRange(previousVisibleRowIndex, this.ptAnchorCell.Y, true); 25077SelectRowRange(this.ptAnchorCell.Y, previousVisibleRowIndex, true); 25157Debug.Assert(this.ptAnchorCell.Y >= 0); 25158if ((this.Rows.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0) 25161SelectRowRange(firstVisibleRowIndex, this.ptAnchorCell.Y, true); 25168int oldEdgeRowIndex = this.ptCurrentCell.Y; 25170this.ptAnchorCell.Y, ref oldEdgeRowIndex, firstVisibleRowIndex); 25185if ((this.Rows.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0) 25187SetSelectedRowCore(this.ptCurrentCell.Y, false); 25192SetSelectedCellCore(this.ptCurrentCell.X, this.ptCurrentCell.Y, false); 25225if ((this.Rows.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0) 25271if ((this.Rows.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0) 25276if (this.ptAnchorCell.Y == -1) 25280if (this.ptAnchorCell.Y >= previousVisibleRowIndex) 25282SelectRowRange(previousVisibleRowIndex, this.ptAnchorCell.Y, true); 25286SelectRowRange(this.ptAnchorCell.Y, previousVisibleRowIndex, true); 25297int oldEdgeRowIndex = this.ptCurrentCell.Y; 25298if (this.ptAnchorCell.Y == -1) 25303this.ptAnchorCell.Y, ref oldEdgeRowIndex, previousVisibleRowIndex); 25344if ((this.Rows.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.Selected) != 0) 25445if (!IsSharedCellReadOnly(dataGridViewCell, this.ptCurrentCell.Y) && 25449bool success = ScrollIntoView(this.ptCurrentCell.X, this.ptCurrentCell.Y, false); 25463object nullValue = dataGridViewCurrentCell.GetInheritedStyle(null, this.ptCurrentCell.Y, false).NullValue; 25481InvalidateCellPrivate(this.ptCurrentCell.X, this.ptCurrentCell.Y); 25516DataGridViewCellParsingEventArgs dgvcpe = OnCellParsing(this.ptCurrentCell.Y, 25528dataGridViewCurrentCell = this.Rows[this.ptCurrentCell.Y].Cells[this.ptCurrentCell.X]; // unsharing the row before pushing the new value 25530return dataGridViewCurrentCell.SetValueInternal(this.ptCurrentCell.Y, dgvcpe.Value); 25549dataGridViewCurrentCell = this.Rows[this.ptCurrentCell.Y].Cells[this.ptCurrentCell.X]; // unsharing the row before pushing the new value 25551return dataGridViewCurrentCell.SetValueInternal(this.ptCurrentCell.Y, val); 25639Debug.Assert(this.ptCurrentCell.Y != -1); 25641DataGridViewCellStyle dataGridViewCellStyle = dataGridViewCurrentCell.GetInheritedStyle(null, this.ptCurrentCell.Y, true); 26135forCurrentCellChange && (this.ptCurrentCell.X != columnIndex || this.ptCurrentCell.Y != rowIndex), 26136this.ptCurrentCell.Y != rowIndex /*forCurrentRowChange*/)) 26152forCurrentCellChange && (this.ptCurrentCell.X != columnIndex || this.ptCurrentCell.Y != rowIndex), 26153this.ptCurrentCell.Y != rowIndex /*forCurrentRowChange*/)) 26165forCurrentCellChange && (this.ptCurrentCell.X != columnIndex || this.ptCurrentCell.Y != rowIndex), 26166this.ptCurrentCell.Y != rowIndex /*forCurrentRowChange*/)) 26319(this.ptCurrentCell.X != columnIndex || this.ptCurrentCell.Y != rowIndex)) 26380forCurrentCellChange && (this.ptCurrentCell.X != columnIndex || this.ptCurrentCell.Y != rowIndex), 26381this.ptCurrentCell.Y != rowIndex /*forCurrentRowChange*/)) 26409forCurrentCellChange && (this.ptCurrentCell.X != columnIndex || this.ptCurrentCell.Y != rowIndex), 26410this.ptCurrentCell.Y != rowIndex /*forCurrentRowChange*/)) 26456(this.Rows.GetRowState(this.ptCurrentCell.Y) & DataGridViewElementStates.Frozen) == 0) 26867if (this.ptCurrentCell.X != columnIndex || this.ptCurrentCell.Y != rowIndex) 26887int oldCurrentCellY = this.ptCurrentCell.Y; 26927Debug.Assert(oldCurrentCellY == this.ptCurrentCell.Y); 27019OnCellEnter(ref dataGridViewCellTmp, this.ptCurrentCell.X, this.ptCurrentCell.Y); 27027if (oldCurrentCellY != this.ptCurrentCell.Y && this.RowHeadersVisible && oldCurrentCellY < this.Rows.Count) 27032InvalidateCellPrivate(this.ptCurrentCell.X, this.ptCurrentCell.Y); 27033if (this.RowHeadersVisible && oldCurrentCellY != this.ptCurrentCell.Y) 27035InvalidateCellPrivate(-1, this.ptCurrentCell.Y); 27056AccessibilityNotifyCurrentCellChanged(new Point(this.ptCurrentCell.X, this.ptCurrentCell.Y)); 27083int oldCurrentCellY = this.ptCurrentCell.Y; 27119Debug.Assert(oldCurrentCellY == this.ptCurrentCell.Y); 28236this.ptCurrentCellCache.Y = this.ptCurrentCell.Y; 28296if (!IsInnerCellOutOfBounds(this.ptCurrentCellCache.X, this.ptCurrentCellCache.Y)) 28299this.ptCurrentCellCache.Y, 28353if (rowIndex1 == this.ptCurrentCellCache.Y) 28357else if (rowIndex2 == this.ptCurrentCellCache.Y) 28564if (this.ptCurrentCell.Y != -1) 28566nextVisibleRowIndex = this.Rows.GetNextRow(this.ptCurrentCell.Y, DataGridViewElementStates.Visible); 28586targetRowIndex = this.ptCurrentCell.Y; 28650if (targetRowIndex != this.ptCurrentCell.Y || this.MultiSelect) 28722if (this.ptCurrentCell.Y != -1) 28724previousVisibleRowIndex = this.Rows.GetPreviousRow(this.ptCurrentCell.Y, DataGridViewElementStates.Visible); 28752targetRowIndex = this.ptCurrentCell.Y; 28816if (targetRowIndex != this.ptCurrentCell.Y || this.MultiSelect) 29144PositionEditingControl(rowIndex == -1 || this.ptCurrentCell.Y != rowIndex, true, false); 29200htiToUse = HitTest(ptMouse.X, ptMouse.Y); 29207if (this.ptMouseEnteredCell.X != htiToUse.col || this.ptMouseEnteredCell.Y != htiToUse.row) 29212this.ptMouseEnteredCell.Y >= -1 && 29213this.ptMouseEnteredCell.Y < this.Rows.Count) 29215dgvce = new DataGridViewCellEventArgs(this.ptMouseEnteredCell.X, this.ptMouseEnteredCell.Y); 29236this.ptMouseEnteredCell.Y >= -1 && 29237this.ptMouseEnteredCell.Y < this.Rows.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; 29768hti = HitTest(mouseX, ptMouse.Y - yOffset - normOffset); 29778hti = HitTest(ptMouse.X - xOffset - (xOffset / Math.Abs(xOffset)), ptMouse.Y - yOffset - normOffset); 29782hti = HitTest(mouseX, ptMouse.Y - yOffset - normOffset); 29867HitTestInfo hti = HitTest(client.X, client.Y);
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (3)
823else if (this.DataGridView.MouseEnteredCellAddress.Y == rowIndex && 905if (this.DataGridView.CurrentCellAddress.Y == rowIndex) 1051if (this.DataGridView.CurrentCellAddress.Y == rowIndex)
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); 1780Location.Y, 4467if (p.Y < screenRect.Y) 4469else if (p.Y + s.Height > screenRect.Y + screenRect.Height)
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 (1)
446pt.Offset(ptScroll.Y, 0);
winforms\Managed\System\WinForms\Layout\LayoutUtils.cs (1)
377point.X = point.Y;
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 (11)
3100return FindNearestItem(dir, point.X, point.Y); 3179lvFindInfo.ptY = pt.Y; 3535return HitTest(point.X, point.Y); 4109item = GetItemAt(pos.X, pos.Y); 4770int scrollY = GetItemPosition(toLVItem).Y - GetItemPosition(fromLVItem).Y; 5367lvhi.pt_y = pos.Y; 5397lvhi.pt_y = pos.Y; 5790lvhi.pt_y = pos.Y; 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)
124point.y = pt.Y;
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 (21)
580Math.Max(0, (Size.Height - virtualPixels.Y) / 2)); 582offset.Y -= Position.Y; 586int borderPixelsY = PhysicalToPixels(border, screendpi.Y); 615int y = offset.Y + borderPixelsY * (row + 1) + lastImageSize.Y; 619maxImageHeight = Math.Max(maxImageHeight, imagePixels.Y); 621pageRenderArea[imageIndex - StartPage] = new Rectangle(x, y, imagePixels.X, imagePixels.Y); 675PhysicalToPixels(physical.Y, dpi.Y)); 680PhysicalToPixels(physicalSize.Height, dpi.Y)); 689PixelsToPhysical(pixels.Y, dpi.Y)); 694PixelsToPhysical(pixels.Height, dpi.Y)); 744position.Y = Math.Min(position.Y, virtualSize.Height - Height); 746if (position.Y < 0) position.Y = 0; 752current.Y - position.Y, 757UnsafeNativeMethods.SetScrollPos(new HandleRef(this, Handle), NativeMethods.SB_VERT, position.Y, true); 795int pos = locPos.Y; 864pos = locPos.Y; 877pos = locPos.Y;
winforms\Managed\System\WinForms\PropertyGrid.cs (17)
2285if (y >= (locDoc.Y - cyDivider) && 2286y <= (locDoc.Y + 1)) { 2294if (y >= (locDoc.Y - cyDivider) && 2295y <= (locDoc.Y+1)) { 2306int gridTop = gridView.Location.Y; 2322int high = gridView.Location.Y + MIN_GRID_HEIGHT; 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)); 2998int oldY = gridView.Location.Y; 3023int maxSpace = endSize - (gridView.Location.Y + MIN_GRID_HEIGHT); 3095endSize = doccomment.Location.Y - cyDivider; 3125endSize = hotcommands.Location.Y - cyDivider; 3128gridView.Size = new Size(Size.Width, endSize - gridView.Location.Y); 3297pevent.Graphics.FillRectangle(background, new Rectangle(0,0,width, psheetLoc.Y)); 3299int yLast = psheetLoc.Y + gridView.Size.Height; 3303pevent.Graphics.FillRectangle(background, new Rectangle(0, yLast, width, hotcommands.Location.Y - yLast)); 3309pevent.Graphics.FillRectangle(background, new Rectangle(0, yLast, width, doccomment.Location.Y - yLast));
winforms\Managed\System\WinForms\PropertyGridInternal\GridErrorDlg.cs (2)
331int y = detailsBtn.Location.Y + detailsBtn.Height + detailsBtn.Margin.Bottom; 337y += parent.Location.Y;
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 (37)
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); 1283cr.Offset(-newOrigin.X, -newOrigin.Y); 1326cr.Offset(-newOrigin.X, -newOrigin.Y); 1644if (rectScreen.Y + rectScreen.Height < (size.Height + loc.Y + Edit.Height)) { 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); 1723if (rectScreen.Y + rectScreen.Height < (size.Height + loc.Y + Edit.Height)) { 1736dropDownHolder.SetBounds(loc.X, loc.Y, size.Width, size.Height); 1928pt.Y = (y-ptOurLocation.Y)/(1+RowHeight); 2155rect.Y = (row)*(RowHeight+1)+1+ptOurLocation.Y; 2814Math.Abs(screenPoint.Y - rowSelectPos.Y) < SystemInformation.DoubleClickSize.Height) { 3196GridEntry gridEntry = GetGridEntryFromRow(pos.Y); 3200Rectangle r = GetRectangle(pos.Y, ROWLABEL); 3242rowMoveCur = pt.Y; 3262Rectangle itemRect = GetRectangle(pt.Y, pt.X); 3464startRow = Math.Max(0,posStart.Y); 3468endRow = posEnd.Y; 3508g.DrawLine(splitterPen, labelWidth,loc.Y,labelWidth, (cPropsVisible)*(RowHeight+1)+loc.Y); 3528cHeightCurRow = (i)*(RowHeight+1) + loc.Y; 3549cHeightCurRow = (cPropsVisible)*(RowHeight+1) + loc.Y; 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))); 5282mouseLoc = FindPosition(mouseLoc.X, mouseLoc.Y); 5288GridEntry curEntry = GetGridEntryFromRow(mouseLoc.Y); 5295Rectangle itemRect = GetRectangle(mouseLoc.Y, mouseLoc.X); 5300tipPt = curEntry.GetLabelToolTipLocation(mouseLoc.X - itemRect.X, mouseLoc.Y - itemRect.Y); 5838newBounds.Height = Math.Max(MinDropDownSize.Height, dragBaseRect.Height + (dragPoint.Y - dragStart.Y)); 5847int delta = dragPoint.Y - dragStart.Y; 7746GridEntry gridEntry = ((PropertyGridView)Owner).GetGridEntryFromRow(pos.Y);
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); 3911Control.MousePosition.Y, 4000Control.MousePosition.Y,
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); 983yCalc += activeControl.AutoScrollOffset.Y; 1191if (pt.X != 0 || pt.Y != 0) {
winforms\Managed\System\WinForms\SplitContainer.cs (5)
1537splitterRect.Y = this.Location.Y + SplitterDistanceInternal; 1573r.Y = panel1.Location.Y + splitSize; 1656delta = y - anchor.Y; 1727splitterRect.Y = this.Location.Y; 1734splitterRect.Y = this.Location.Y + SplitterDistanceInternal;
winforms\Managed\System\WinForms\Splitter.cs (2)
842delta = y - anchor.Y; 1039int size = GetSplitSize(x-Left+anchor.X, y-Top+anchor.Y);
winforms\Managed\System\WinForms\StatusBar.cs (1)
1094button, clicks, pt.X, pt.Y);
winforms\Managed\System\WinForms\TabControl.cs (3)
441r.Y -= p.Y; 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)
1731int y = this.Location.Y + (this.ButtonSize.Height / 2);
winforms\Managed\System\WinForms\ToolStrip.cs (10)
2376int adjacentSide = otherItemMidLocation.Y - midPointOfCurrent.Y; 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); 4619cursorLocation.Y += Cursor.Size.Height - currentCursor.HotSpot.Y; 4720IntPtr hwndClicked = UnsafeNativeMethods.ChildWindowFromPointEx(new HandleRef(null, Handle), pt.X, pt.Y,(int)(GetChildAtPointSkip.Invisible | GetChildAtPointSkip.Disabled | GetChildAtPointSkip.Transparent)); 5562RelativeLocation relativeLocation = (check.Y <= (orig.Top + heightUnit)) ?
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)
167int deltaY = currentLocation.Y - startLocation.Y;
winforms\Managed\System\WinForms\ToolStripItem.cs (3)
3868toPoint.Y += currentToolStripItemLocation.Y; 3877fromPoint.Y += currentToolStripItemLocation.Y; 3889fromPoint.Y -= currentToolStripItemLocation.Y;
winforms\Managed\System\WinForms\ToolStripPanel.cs (5)
690controlLocation = new Point(this.Width - controlArray[i].Right, controlLocation.Y); 1002if (clientLocation.X < 0 || clientLocation.Y < 0) { 1056index = (clientLocation.Y <= this.Padding.Left) ? 0 : index; 1083Point endLocation = (Orientation == Orientation.Horizontal) ? new Point (clientLocation.X, row.Bounds.Y) : new Point (row.Bounds.X, clientLocation.Y); 1146cursorLoc.Y = Cursor.Position.Y;
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (6)
1560int deltaY = clientEndLocation.Y - clientStartLocation.Y; 1824if (cell.Bounds.Y >= locationToDrag.Y) { 1851requiredSpace += locationToDrag.Y; 1897lastCellMargin.Top = Math.Max(0,locationToDrag.Y - nextCell.Bounds.Bottom); 1937cellMargin.Top = Math.Max(0,locationToDrag.Y-Row.Margin.Top);
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (27)
195middle.Y - ToolStripRenderer.Offset2Y, 197middle.Y + ToolStripRenderer.Offset2Y); 200middle.Y - ToolStripRenderer.Offset2Y + 1, 202middle.Y + ToolStripRenderer.Offset2Y + 1); 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 (18)
1259IntPtr hwndControl = UnsafeNativeMethods.WindowFromPoint(screenCoords.X, screenCoords.Y); 1284IntPtr found = UnsafeNativeMethods.ChildWindowFromPointEx(new HandleRef(null, baseHwnd), pt.X, pt.Y, NativeMethods.CWP_SKIPINVISIBLE); 1567cursorLocation.Y < r.top || cursorLocation.Y > r.bottom ) { 1580SetTrackPosition(p.X, p.Y); 1662int pointY = r.top + point.Y; 1689int pointY = r.top + point.Y; 1767pointY = optimalPoint.Y; 2169if (moveToLocation.Y + tipSize.Height> screen.WorkingArea.Bottom) { 2175moveToLocation.X, moveToLocation.Y, tipSize.Width, tipSize.Height, 2253cursorLocation.Y >= r.top && cursorLocation.Y <= r.bottom) { 2450wp->y = cursorPos.Y; 2451if (wp->y + wp->cy + currentCursor.Size.Height - currentCursor.HotSpot.Y > screen.WorkingArea.Bottom) { 2452wp->y = cursorPos.Y - wp->cy; 2455wp->y = cursorPos.Y + currentCursor.Size.Height - currentCursor.HotSpot.Y; 2474wp->y = tt.Position.Y;
winforms\Managed\System\WinForms\TreeView.cs (10)
1776return HitTest(pt.X, pt.Y); 1824return GetNodeAt(pt.X, pt.Y); 2166tvhip.pt_y = pos.Y; 2907tvhip.pt_y = pos.Y; 2942tvhip.pt_y = pos.Y; 3021tvhip.pt_y = pos.Y; 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 (8)
Common\General\ChartGraphics.cs (4)
2571 leftLine[1].Y = center.Y; 2573 leftLine[2].Y = center.Y; 2578 rightLine[1].Y = center.Y; 2580 rightLine[2].Y = center.Y;
Common\General\Legend.cs (2)
475 legendPosition.Location.Y, 512 legendPosition.Location.Y + this._titlePosition.Height,
Common\General\LegendColumns.cs (2)
2371 point2.Y = point1.Y; 2458 PointF pointF = new PointF(point.X, point.Y);
System.Workflow.Activities (69)
Designers\StateDesigner.cs (8)
1424if (stateDesigner.Location.Y < minimumY) 1426deltaY = Math.Max(deltaY, minimumY - stateDesigner.Location.Y); 1434freeSpaceHeight = Math.Min(freeSpaceHeight, stateDesigner.Location.Y - minimumY); 1453if (stateDesigner.Location.Y < minimumY) 1454stateDesigner.Location = new Point(location.X, location.Y + deltaY); 1456stateDesigner.Location = new Point(location.X, location.Y + moveBounds.Height + DefaultStateDesignerAutoLayoutDistance - freeSpaceHeight); 1503bounds.Offset(Separator.Width - this.Location.X, Separator.Height - this.Location.Y); 1651if (snapPoint.Y <= eventHandlersLayoutBottom)
Designers\StateDesigner.Layouts.cs (14)
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); 687int y = Location.Y + EventDrivenPadding; 810layout.Location.Y, 1052_textLayout.Location = new Point(xPos, this.Location.Y + margin.Height);
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 (42)
86if ((p2.X != p3.X) && (p2.Y != p3.Y)) 87optimized.Add(new Point(p3.X, p2.Y)); 95(p1.Y == p2.Y) && (p2.Y == p3.Y)) 99if ((p2.X != p3.X) && (p2.Y != p3.Y)) 100optimized.Add(new Point(p3.X, p2.Y)); 121int capSize = (startSegment[0].Y == startSegment[1].Y) ? connectorCapSize.Width : connectorCapSize.Height; 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); 133if (startSegment[0].Y == startSegment[1].Y) 136graphics.RotateTransform((startSegment[0].Y < startSegment[1].Y) ? 180.0f : 0.0f); 148int capSize = (endSegment[0].Y == endSegment[1].Y) ? connectorCapSize.Width : connectorCapSize.Height; 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); 160if (endSegment[0].Y == endSegment[1].Y) 163graphics.RotateTransform((endSegment[0].Y < endSegment[1].Y) ? 0.0f : 180.0f); 270return Math.Abs(p1.Y - p2.Y); 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); 354if (start.Y < end.Y)
Designers\WhileDesigner.cs (2)
59points[2].Y = connectionPoint.Y; 61points[3].Y = connectionPoint.Y;
Rules\Design\Dialogs\IntellisenseTextBox.cs (2)
436locationInDialog.Offset(-parentScreenLocation.X, -parentScreenLocation.Y); 447locationInDialog = new Point(topLevelControlSize.Width - this.listBoxAutoComplete.Size.Width, locationInDialog.Y);
System.Workflow.ComponentModel (350)
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 (11)
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); 170int headerHeight = this.previewStrip.Bounds.Bottom - Location.Y; 172PreviewedDesigner.Location = new Point(Location.X + (Size.Width - PreviewedDesigner.Size.Width) / 2, Location.Y + headerHeight + 2 * WorkflowTheme.CurrentTheme.AmbientTheme.Margin.Height); 572this.previewStrip.Location = new Point(bounds.Left + bounds.Width / 2 - this.previewStrip.Size.Width / 2, Location.Y + TitleHeight + e.AmbientTheme.Margin.Height); 593int headerHeight = this.previewStrip.Bounds.Bottom - Location.Y; 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 (146)
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); 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); 1151editPointOffset *= (this.activeEditPoint.Location.Y < next.Location.Y) ? -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) 1820begin.Y = Math.Min(Math.Max(begin.Y, enclosingRectangle.Top + 1), enclosingRectangle.Bottom - 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); 2106if (r1.Y > Z.Y) 2152if (r3.Y < Z.Y) 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)); 2246side = (direction.Y < 0) ? DesignerEdges.Bottom : DesignerEdges.Top; 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 2476direction.Y = Math.Sign(direction.Y); 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) 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)); 2635if (horizontal.A.Y < Math.Min(vertical.A.Y, vertical.B.Y) || horizontal.A.Y > Math.Max(vertical.A.Y, vertical.B.Y)) 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) 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); 2914int currentDistance = (side == DesignerEdges.Bottom) ? p.Y - segment.A.Y : segment.A.Y - p.Y; 2949int currentDistance = (side == DesignerEdges.Bottom) ? p.Y - segment.A.Y : segment.A.Y - p.Y; 2966originalDistance = originalCover.A.Y - escape.Y; 2985newDistance = Math.Abs(newCover.A.Y - escape.Y);
AuthoringOM\Design\DesignerHelpers.cs (45)
337for (int gridCoOrdY = gridStart.Y; gridCoOrdY <= viewableRectangle.Bottom; gridCoOrdY += Math.Max(ambientTheme.GridSize.Height, 1)) 501graphics.TranslateTransform(location.X, location.Y); 503GraphicsPath designerPath = GetDesignerPath(designer, new Point(-location.X, -location.Y), Size.Empty, DesignerEdges.None); 600int capSize = (startSegment[0].Y == startSegment[1].Y) ? connectorCapSize.Width : connectorCapSize.Height; 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); 612if (startSegment[0].Y == startSegment[1].Y) 615graphics.RotateTransform((startSegment[0].Y < startSegment[1].Y) ? 180.0f : 0.0f); 630int capSize = (endSegment[0].Y == endSegment[1].Y) ? connectorCapSize.Width : connectorCapSize.Height; 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); 642if (endSegment[0].Y == endSegment[1].Y) 645graphics.RotateTransform((endSegment[0].Y < endSegment[1].Y) ? 0.0f : 180.0f); 1063for (int gridCoOrd = gridStart.Y; gridCoOrd <= viewableRectangle.Bottom; gridCoOrd += Math.Max(gridUnit.Height, 1)) 1191location.Y = ((location.Y / snapSize.Height) * snapSize.Height) + (((location.Y % snapSize.Height) > snapSize.Height / 2) ? snapSize.Height : 0); 1548menuCommandService.ShowContextMenu(WorkflowMenuCommands.DesignerActionsMenu, location.X - 2, location.Y + 1); 1889leftTop.Y = Math.Min(leftTop.Y, point.Y); 1891rightBottom.Y = Math.Max(rightBottom.Y, point.Y); 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))); 1957if (start.Y == end.Y) 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 (2)
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);
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); 792newLocation.Y = Math.Min(newLocation.Y, childRectangle.Top); 919designer.Location = new Point(location.X + autoSizeMargin.Width, location.Y + autoSizeMargin.Height); 1117leftTop.Y = (activityDesigner.Bounds.Top < leftTop.Y) ? activityDesigner.Bounds.Top : leftTop.Y; 1119rightBottom.Y = (rightBottom.Y < activityDesigner.Bounds.Bottom) ? activityDesigner.Bounds.Bottom : rightBottom.Y; 1130leftTop.Y = (connector.Bounds.Top < leftTop.Y) ? connector.Bounds.Top : leftTop.Y; 1132rightBottom.Y = (rightBottom.Y < connector.Bounds.Bottom) ? connector.Bounds.Bottom : rightBottom.Y; 1142if (leftTop.Y != int.MaxValue && rightBottom.Y != int.MinValue) 1144enclosingRectangle.Y = leftTop.Y; 1145enclosingRectangle.Height = rightBottom.Y - leftTop.Y;
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)
125if (clientPoint.Y <= clientRectangle.Height / 10 && vScrollBar.Value > 0) 127else if (clientPoint.Y >= clientRectangle.Bottom - clientRectangle.Height / 10 && vScrollBar.Value < vScrollBar.Maximum - vScrollBar.LargeChange) 194scrollPosition.Y = scrollPosition.Y - AmbientTheme.ScrollUnit; 196scrollPosition.Y = scrollPosition.Y + AmbientTheme.ScrollUnit; 224if (scrollPosition.Y > 0) 231if (scrollPosition.Y < parentView.VScrollBar.Maximum - viewPortSize.Height)
AuthoringOM\Design\MessageFilters\ConnectionManager.cs (2)
126Math.Abs(this.initialDragPoint.Value.Y - logicalPoint.Y) > SystemInformation.DragSize.Height))
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)
297int y = point.Y; 300y = DesignerHelpers.SnapToGrid(new Point(0, y)).Y; 311designerBounds.Height += (point.Y - designerBounds.Bottom);
AuthoringOM\Design\MessageFilters\WindowManager.cs (3)
342menuCommandService.ShowContextMenu(WorkflowMenuCommands.SelectionMenu, screenMenuPoint.X, screenMenuPoint.Y); 415scrollPosition.Y = scrollPosition.Y + ((pageUp ? -1 : 1) * parentView.VScrollBar.LargeChange); 436scrollPosition.Y = scrollPosition.Y + (numberOfLogicalLines * logicalLineHeight);
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 (8)
221Point location = (connectionPoints.Count > 0) ? new Point(Location.X, connectionPoints[0].Y) : Location; 230activityDesigner.Location = new Point(location.X + width, location.Y + height); 289dropTargets[0].Location = new Point(bounds.X, firstDesigner.Location.Y); 306dropTargets[containedDesigners.Count].Location = new Point(bounds.Right - ((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0), lastDesigner.Location.Y); 312dropTargets[0].Size = new Size(((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0), Location.Y + Size.Height - dropTargets[0].Location.Y); 388connectingLine[1].Y = designerConnections[0].Y; 393connectingLine[0].Y = designerConnections[connectionCount - 1].Y;
AuthoringOM\Design\SequentialActivityDesigner.cs (16)
213connectorBounds[0].Location = new Point(containerStartConnection.X - ((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0) / 2, containerStartConnection.Y); 214connectorBounds[0].Size = new Size(((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0), startDesignerConnections[0].Y - containerStartConnection.Y); 226connectorBounds[i + 1].Location = new Point(designerFromConnections[designerFromPointCount - 1].X - ((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0) / 2, designerFromConnections[designerFromPointCount - 1].Y); 227connectorBounds[i + 1].Size = new Size(((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0), designerToConnections[0].Y - 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); 244connectorBounds[connectorCount - 1].Size = new Size(((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0), containerEndConnection.Y - endDesignerConnections[endDesignerConnections.Count - 1].Y); 249connectorBounds[0].Location = new Point(containerStartConnection.X - ((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0) / 2, containerStartConnection.Y); 250connectorBounds[0].Size = new Size(((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0), containerEndConnection.Y - containerStartConnection.Y); 452heightDelta = Size.Height - (connectionPoints[connectionPoints.Count - 1].Y - connectionPoints[0].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 (3)
261connectionPoints[connectionPoints.Count - 1] = new Point(connectionPoints[connectionPoints.Count - 1].X, connectionPoints[connectionPoints.Count - 1].Y - Footer.Bounds.Height); 434bounds.Y = rootDesigner.Location.Y + rootDesigner.TitleHeight + rootDesigner.OptimalHeight; 456imageRectangle.Y = rootDesigner.Location.Y + rootDesigner.TitleHeight + rootDesigner.OptimalHeight;
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); 394alignment.Y = Math.Max(alignment.Y, selectionSize.Height + selectionSize.Height / 2); 426deltaSize.Height -= deltaLocation.Y; 431insersectedLogicalViewPort.Y = pageLayoutData.LogicalPageBounds.Y + deltaLocation.Y; 436insersectedLogicalViewPort.Height = pageLayoutData.LogicalPageBounds.Height - deltaLocation.Y; 461deltaSize.Height -= deltaLocation.Y; 466insersectedPhysicalViewPort.Y = pageLayoutData.ViewablePageBounds.Y + deltaLocation.Y; 471insersectedPhysicalViewPort.Height = pageLayoutData.ViewablePageBounds.Height - deltaLocation.Y; 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); 810viewablePageLocation.Y = pageLocation.Y + PageMargins.Top;
AuthoringOM\Design\WorkflowPrinting.cs (16)
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); 159scaledAlignment.Y = Convert.ToInt32(Math.Ceiling((float)this.workflowAlignment.Y / 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; 223int printAreaVert = (int)((float)NativeMethods.GetDeviceCaps(hDC, NativeMethods.VERTRES) * 100.0f / (float)dpi.Y); 226int physicalHeight = (int)((float)NativeMethods.GetDeviceCaps(hDC, NativeMethods.PHYSICALHEIGHT) * 100.0f / (float)dpi.Y); 230int topMargin = (int)((float)NativeMethods.GetDeviceCaps(hDC, NativeMethods.PHYSICALOFFSETY) * 100.0f / (float)dpi.Y); 349this.totalPrintablePages.Y = Math.Max(this.totalPrintablePages.Y, 1); 358this.workflowAlignment.Y = (int)(((float)this.totalPrintablePages.Y * (float)printableArea.Height / this.scaling - (float)rootDesignerSize.Height) / 2.0f * this.scaling); 361this.workflowAlignment.Y = Math.Max(this.workflowAlignment.Y, selectionSize.Height + selectionSize.Height / 2); 376return (this.currentPrintablePage.Y < this.totalPrintablePages.Y);
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); 474value.Y = Math.Min(value.Y, vScrollBar.Maximum - vScrollBar.LargeChange + 1); 475value.Y = Math.Max(value.Y, vScrollBar.Minimum); 476vScrollBar.Value = value.Y; 893writer.Write(this.ScrollPosition.Y); 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)
101if (scrollPosition.Y > viewSize.Height / 2) 123if (scrollPosition.Y > viewSize.Height / 2)