176 writes to Y
System.Drawing (1)
commonui\System\Drawing\Point.cs (1)
265
Y
+= 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)
117
loc.
Y
-= moveUp;
121
loc.
Y
-= moveUp;
System.Windows.Forms (86)
winforms\Managed\System\Resources\ResXResourceReader.cs (1)
372
pt.
Y
= lineInfo.LineNumber;
winforms\Managed\System\WinForms\Control.cs (3)
16511
logPixels.
Y
= UnsafeNativeMethods.GetDeviceCaps(new HandleRef(null, dc), NativeMethods.LOGPIXELSY);
17022
pt.
Y
= (LogPixels.Y * y + hiMetricPerInch / 2) / hiMetricPerInch;
17606
pt.
Y
= (hiMetricPerInch * y + (LogPixels.Y >> 1)) / LogPixels.Y;
winforms\Managed\System\WinForms\DataGrid.cs (1)
7088
origin.
Y
+= localGridRows[r].Height;
winforms\Managed\System\WinForms\DataGridView.cs (2)
2958
ptFirstDisplayedCellAddress.
Y
= this.Rows.GetFirstRow(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen);
2964
ptFirstDisplayedCellAddress.
Y
= this.displayedBandsInfo.FirstDisplayedScrollingRow;
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (2)
2445
middle.
Y
+= (dropRect.Height % 2);
2467
middle.
Y
+= (dropRect.Height % 2);
winforms\Managed\System\WinForms\DataGridViewMethods.cs (22)
12929
this.ptMouseEnteredCell.
Y
= e.RowIndex;
12963
this.ptMouseEnteredCell.
Y
= -2;
16031
newCurrentCell.
Y
+= insertionCount;
16541
this.ptMouseDownCell.
Y
= hti.row;
16593
this.ptMouseEnteredCell.X = this.ptMouseEnteredCell.
Y
= -2;
17837
this.ptCurrentCellCache.
Y
= -1;
17849
this.ptCurrentCellCache.
Y
= this.ptCurrentCell.Y;
17856
this.ptCurrentCellCache.
Y
= -1;
19358
pt.
Y
+= Height;
25972
this.ptMouseDownCell.
Y
= -2;
26718
this.ptAnchorCell.
Y
= firstVisibleRowIndex;
26723
this.ptAnchorCell.
Y
= -1;
26873
this.ptCurrentCell.
Y
= rowIndex;
26992
this.ptCurrentCell.
Y
= rowIndex;
27001
this.ptAnchorCell.
Y
= rowIndex;
27066
this.ptAnchorCell.
Y
= rowIndex;
27138
this.ptCurrentCell.
Y
= -1;
27144
this.ptAnchorCell.
Y
= -1;
28236
this.ptCurrentCellCache.
Y
= this.ptCurrentCell.Y;
28355
this.ptCurrentCellCache.
Y
= rowIndex2;
28359
this.ptCurrentCellCache.
Y
= rowIndex1;
29244
this.ptMouseEnteredCell.X = this.ptMouseEnteredCell.
Y
= -2;
winforms\Managed\System\WinForms\DataGridViewUtilities.cs (9)
390
ptTextLocation.
Y
= cellBounds.Y;
395
ptTextLocation.
Y
= cellBounds.Y;
400
ptTextLocation.
Y
= cellBounds.Y;
405
ptTextLocation.
Y
= cellBounds.Y + (cellBounds.Height - sizeText.Height) / 2;
410
ptTextLocation.
Y
= cellBounds.Y + (cellBounds.Height - sizeText.Height) / 2;
415
ptTextLocation.
Y
= cellBounds.Y + (cellBounds.Height - sizeText.Height) / 2;
420
ptTextLocation.
Y
= cellBounds.Bottom - sizeText.Height;
425
ptTextLocation.
Y
= cellBounds.Bottom - sizeText.Height;
430
ptTextLocation.
Y
= cellBounds.Bottom - sizeText.Height;
winforms\Managed\System\WinForms\Form.cs (5)
1193
loc.
Y
-= screen.Y;
4466
p.
Y
= (ownerRect.top + ownerRect.bottom - s.Height) / 2;
4468
p.
Y
= screenRect.Y;
4470
p.
Y
= screenRect.Y + screenRect.Height - s.Height;
4508
p.
Y
= Math.Max(screenRect.Y,screenRect.Y + (screenRect.Height - Height)/2);
winforms\Managed\System\WinForms\Layout\DockAndAnchorLayout.cs (1)
88
location.
Y
-= newSize.Height - oldBounds.Height;
winforms\Managed\System\WinForms\Layout\LayoutUtils.cs (1)
378
point.
Y
= temp;
winforms\Managed\System\WinForms\Printing\PrintPreviewControl.cs (7)
582
offset.
Y
-= Position.Y;
597
lastImageSize.
Y
= maxImageHeight * row;
744
position.
Y
= Math.Min(position.Y, virtualSize.Height - Height);
746
if (position.Y < 0) position.
Y
= 0;
798
locPos.
Y
= AdjustScroll(m, pos, maxPos, false);
872
locPos.
Y
= pos;
886
locPos.
Y
= pos;
winforms\Managed\System\WinForms\PropertyGrid.cs (1)
4669
pt.
Y
= temp.y;
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (7)
1643
loc.
Y
+= rect.Y;
1645
loc.
Y
-= size.Height;
1649
loc.
Y
+= rect.Height + 1;
1722
loc.
Y
+= rect.Y;
1724
loc.
Y
-= size.Height;
1728
loc.
Y
+= rect.Height + 1;
1928
pt.
Y
= (y-ptOurLocation.Y)/(1+RowHeight);
winforms\Managed\System\WinForms\StatusBar.cs (1)
752
lastClick.
Y
= e.Y;
winforms\Managed\System\WinForms\StatusStrip.cs (1)
379
noMansLand.
Y
+= ClientSize.Height + 1;
winforms\Managed\System\WinForms\ToolStrip.cs (2)
4158
newLocation.
Y
-= delta;
4619
cursorLocation.
Y
+= Cursor.Size.Height - currentCursor.HotSpot.Y;
winforms\Managed\System\WinForms\ToolStripDropDown.cs (2)
1252
offset.
Y
= - dropDownBounds.Height;
1255
offset.
Y
= - dropDownBounds.Height;
winforms\Managed\System\WinForms\ToolStripDropDownItem.cs (4)
316
offset.
Y
= -dropDownBounds.Height + 1;
319
offset.
Y
= -dropDownBounds.Height + 1;
322
offset.
Y
= this.Height - 1;
326
offset.
Y
= this.Height - 1;
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (3)
421
nextPoint.
Y
= scaledImagePadding.Top;
473
nextPoint.
Y
= scaledTextPadding.Top;
478
nextPoint.
Y
= scaledArrowPadding.Top;
winforms\Managed\System\WinForms\ToolStripItem.cs (3)
3868
toPoint.
Y
+= currentToolStripItemLocation.Y;
3877
fromPoint.
Y
+= currentToolStripItemLocation.Y;
3889
fromPoint.
Y
-= currentToolStripItemLocation.Y;
winforms\Managed\System\WinForms\ToolStripPanel.cs (3)
1111
clientLocation.
Y
= row.Bounds.Y;
1146
cursorLoc.
Y
= Cursor.Position.Y;
1149
cursorLoc.
Y
+= toolStripToDrag.GripRectangle.Height /2;
winforms\Managed\System\WinForms\ToolStripSplitStackLayout.cs (2)
232
noMansLand.
Y
+= toolStrip.ClientSize.Height + 1;
368
itemLocation.
Y
= bounds.Y;
winforms\Managed\System\WinForms\ToolTip.cs (2)
1578
p.
Y
= visibleRect.top + (visibleRect.bottom - visibleRect.top)/2;
2170
moveToLocation.
Y
= screen.WorkingArea.Bottom - tipSize.Height;
winforms\Managed\System\WinForms\Triangle.cs (1)
126
points[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)
1652
snapPoint.
Y
= eventHandlersLayoutBottom + 1;
Designers\StateDesigner.Layouts.cs (5)
463
origin.
Y
+= ambientTheme.Margin.Height / 2;
984
origin.
Y
+= 2;
1369
origin.
Y
+= _titleBarLayout.Size.Height + ActiveDesignerPadding;
1372
origin.
Y
+= _breadCrumbBarLayout.Size.Height + ActiveDesignerPadding;
1381
origin.
Y
= _designerLayout.Bounds.Bottom + ambientTheme.SelectionSize.Height + ActiveDesignerPadding;
Designers\StateMachineDesignerPaint.cs (4)
282
p1.
Y
+= radius;
285
p1.
Y
-= radius;
300
p2.
Y
-= radius;
303
p2.
Y
+= radius;
Designers\WhileDesigner.cs (4)
55
points[0].
Y
= bounds.Bottom - compositeDesignerTheme.ConnectorSize.Height / 3;
57
points[1].
Y
= bounds.Bottom - compositeDesignerTheme.ConnectorSize.Height / 3;
59
points[2].
Y
= connectionPoint.Y;
61
points[3].
Y
= connectionPoint.Y;
Rules\Design\Dialogs\IntellisenseTextBox.cs (3)
426
clientPoint.
Y
+= (int)Math.Ceiling(this.Font.GetHeight()) + 2;
430
clientPoint.
Y
+= (int)Math.Ceiling(this.Font.GetHeight());
499
clientPoint.
Y
+= (int)Math.Ceiling(this.Font.GetHeight()) + 2;
System.Workflow.ComponentModel (62)
AuthoringOM\Design\ActivityPreviewDesigner.cs (4)
584
this.separatorLine[0].
Y
= previewStripRectangle.Bottom;
585
this.separatorLine[0].
Y
+= e.AmbientTheme.Margin.Height + e.AmbientTheme.Margin.Height / 2;
588
this.separatorLine[1].
Y
= previewStripRectangle.Bottom;
589
this.separatorLine[1].
Y
+= e.AmbientTheme.Margin.Height + e.AmbientTheme.Margin.Height / 2;
AuthoringOM\Design\Connector.cs (5)
1820
begin.
Y
= Math.Min(Math.Max(begin.Y, enclosingRectangle.Top + 1), enclosingRectangle.Bottom - 1);
2105
r1.
Y
-= margin.Height;
2151
r3.
Y
+= margin.Height;
2476
direction.
Y
= Math.Sign(direction.Y);
2697
newPoint.
Y
= int.MaxValue;
AuthoringOM\Design\DesignerHelpers.cs (5)
333
gridStart.
Y
= viewableRectangle.Y - (viewableRectangle.Y % ambientTheme.GridSize.Height);
1029
gridStart.
Y
= viewableRectangle.Y - (viewableRectangle.Y % gridUnit.Height);
1191
location.
Y
= ((location.Y / snapSize.Height) * snapSize.Height) + (((location.Y % snapSize.Height) > snapSize.Height / 2) ? snapSize.Height : 0);
1889
leftTop.
Y
= Math.Min(leftTop.Y, point.Y);
1891
rightBottom.
Y
= Math.Max(rightBottom.Y, point.Y);
AuthoringOM\Design\DesignerWidgets.cs (3)
3246
descRectanglePos.
Y
= this.bounds.Top + maxDescHeight / 2 - this.previewModeDescRectangle.Height / 2;
3251
previewModeBitmapPos.
Y
= this.bounds.Top + maxDescHeight / 2 - this.previewModeButtonRectangle.Height / 2;
3261
location.
Y
= this.canvasBounds.Top + this.canvasBounds.Height / 2 - PreviewDesigner.Size.Height / 2;
AuthoringOM\Design\FreeFormDesigner.cs (5)
792
newLocation.
Y
= Math.Min(newLocation.Y, childRectangle.Top);
1117
leftTop.
Y
= (activityDesigner.Bounds.Top < leftTop.Y) ? activityDesigner.Bounds.Top : leftTop.Y;
1119
rightBottom.
Y
= (rightBottom.Y < activityDesigner.Bounds.Bottom) ? activityDesigner.Bounds.Bottom : rightBottom.Y;
1130
leftTop.
Y
= (connector.Bounds.Top < leftTop.Y) ? connector.Bounds.Top : leftTop.Y;
1132
rightBottom.
Y
= (rightBottom.Y < connector.Bounds.Bottom) ? connector.Bounds.Bottom : rightBottom.Y;
AuthoringOM\Design\MessageFilters\AutoScrollExpandMessageFilter.cs (2)
194
scrollPosition.
Y
= scrollPosition.Y - AmbientTheme.ScrollUnit;
196
scrollPosition.
Y
= scrollPosition.Y + AmbientTheme.ScrollUnit;
AuthoringOM\Design\MessageFilters\WindowManager.cs (2)
415
scrollPosition.
Y
= scrollPosition.Y + ((pageUp ? -1 : 1) * parentView.VScrollBar.LargeChange);
436
scrollPosition.
Y
= scrollPosition.Y + (numberOfLogicalLines * logicalLineHeight);
AuthoringOM\Design\MessageFilters\ZoomingMessageFilter.cs (1)
182
center.X -= layoutOrigin.X; center.
Y
-= layoutOrigin.Y;
AuthoringOM\Design\ParallelActivityDesigner.cs (20)
352
parallelLinks[0].
Y
= parallelConnectorTop;
354
parallelLinks[1].
Y
= parallelConnectorTop + compositeDesignerTheme.ConnectorSize.Height * 3 / 4;
359
parallelLinks[0].
Y
= parallelConnectorTop + compositeDesignerTheme.ConnectorSize.Height * 3 / 4;
361
parallelLinks[1].
Y
= parallelConnectorTop + compositeDesignerTheme.ConnectorSize.Height * 3 / 4;
366
parallelLinks[0].
Y
= bounds.Bottom - compositeDesignerTheme.ConnectorSize.Height * 3 / 4;
368
parallelLinks[1].
Y
= bounds.Bottom - compositeDesignerTheme.ConnectorSize.Height * 3 / 4;
373
parallelLinks[0].
Y
= bounds.Bottom - compositeDesignerTheme.ConnectorSize.Height * 3 / 4;
375
parallelLinks[1].
Y
= bounds.Bottom;
386
connectingLine[0].
Y
= parallelConnectorTop + compositeDesignerTheme.ConnectorSize.Height * 3 / 4;
388
connectingLine[1].
Y
= designerConnections[0].Y;
393
connectingLine[0].
Y
= designerConnections[connectionCount - 1].Y;
395
connectingLine[1].
Y
= bounds.Bottom - compositeDesignerTheme.ConnectorSize.Height * 3 / 4;
435
connectorPoints[0].
Y
= dropTargetRectangle.Y;
437
connectorPoints[1].
Y
= dropTargetRectangle.Y;
440
connectorPoints[0].
Y
= dropTargetRectangle.Bottom;
441
connectorPoints[1].
Y
= dropTargetRectangle.Bottom;
451
connectorPoints[0].
Y
= dropTargetRectangle.Y;
453
connectorPoints[1].
Y
= dropTargetRectangle.Y;
456
connectorPoints[0].
Y
= dropTargetRectangle.Bottom;
457
connectorPoints[1].
Y
= dropTargetRectangle.Bottom;
AuthoringOM\Design\StructuredCompositeActivityDesigner.cs (1)
545
location.
Y
+= e.AmbientTheme.SelectionSize.Height;
AuthoringOM\Design\WorkflowLayouts.cs (5)
393
alignment.
Y
= (totalPrintableArea.Height - rootDesignerSize.Height) / 2;
394
alignment.
Y
= Math.Max(alignment.Y, selectionSize.Height + selectionSize.Height / 2);
663
bitmapDrawingPoint.
Y
= pageLayoutData.ViewablePageBounds.Y + Math.Abs(pageLayoutData.LogicalPageBounds.Y - intersectedViewPort.Y);
806
pageLocation.
Y
= (row * this.pageSize.Height) + ((row + 1) * PageSeparator.Height);
810
viewablePageLocation.
Y
= pageLocation.Y + PageMargins.Top;
AuthoringOM\Design\WorkflowPrinting.cs (6)
159
scaledAlignment.
Y
= Convert.ToInt32(Math.Ceiling((float)this.workflowAlignment.Y / this.scaling));
348
this.totalPrintablePages.
Y
= Convert.ToInt32(Math.Ceiling((this.scaling * (float)rootDesignerSize.Height) / (float)printableArea.Height));
349
this.totalPrintablePages.
Y
= Math.Max(this.totalPrintablePages.Y, 1);
358
this.workflowAlignment.
Y
= (int)(((float)this.totalPrintablePages.Y * (float)printableArea.Height / this.scaling - (float)rootDesignerSize.Height) / 2.0f * this.scaling);
361
this.workflowAlignment.
Y
= Math.Max(this.workflowAlignment.Y, selectionSize.Height + selectionSize.Height / 2);
375
this.currentPrintablePage.
Y
++;
AuthoringOM\Design\WorkflowView.cs (3)
474
value.
Y
= Math.Min(value.Y, vScrollBar.Maximum - vScrollBar.LargeChange + 1);
475
value.
Y
= Math.Max(value.Y, vScrollBar.Minimum);
927
scrollPosition.
Y
= reader.ReadInt32();
System.WorkflowServices (2)
System\Workflow\ComponentModel\Design\ActivityDesignerHighlighter.cs (2)
103
scrollPosition.
Y
-= viewSize.Height / 2;
125
scrollPosition.
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)
30
Y = (float) pt.
Y
;
commonui\System\Drawing\Advanced\GraphicsPath.cs (9)
544
pt.
Y
,
668
pt.
Y
,
730
AddLine(pt1.X, pt1.
Y
, pt2.X, pt2.
Y
);
880
AddBezier(pt1.X, pt1.
Y
, pt2.X, pt2.
Y
, pt3.X, pt3.
Y
, pt4.X, pt4.
Y
);
1386
GPRECT rect = new GPRECT(origin.X, origin.
Y
, 0, 0);
commonui\System\Drawing\BufferedGraphics.cs (1)
161
SafeNativeMethods.BitBlt(refTargetDC, targetLoc.X, targetLoc.
Y
, virtualSize.Width, virtualSize.Height,
commonui\System\Drawing\BufferedGraphicsContext.cs (3)
170
surface = CreateBuffer(destDc, -targetLoc.X, -targetLoc.
Y
, targetRectangle.Width, targetRectangle.Height);
177
surface = CreateBuffer(targetDC, -targetLoc.X, -targetLoc.
Y
, targetRectangle.Width, targetRectangle.Height);
405
compatGraphics.TranslateTransform(-targetLoc.X, -targetLoc.
Y
);
commonui\System\Drawing\Graphics.cs (14)
520
int status = SafeNativeMethods.Gdip.GdipSetRenderingOrigin(new HandleRef(this, this.NativeGraphics), value.X, value.
Y
);
862
CopyFromScreen(upperLeftSource.X, upperLeftSource.
Y
, upperLeftDestination.X, upperLeftDestination.
Y
, blockRegionSize);
880
CopyFromScreen(upperLeftSource.X, upperLeftSource.
Y
, upperLeftDestination.X, upperLeftDestination.
Y
, blockRegionSize, copyPixelOperation);
1222
DrawLine(pen, pt1.X, pt1.
Y
, pt2.X, pt2.
Y
);
1375
DrawBezier(pen, pt1.X, pt1.
Y
, pt2.X, pt2.
Y
, pt3.X, pt3.
Y
, pt4.X, pt4.
Y
);
2808
DrawImage(image, point.X, point.
Y
);
2865
DrawImage(image, point.X, point.
Y
);
4311
int status = SafeNativeMethods.Gdip.GdipIsVisiblePointI(new HandleRef(this, this.NativeGraphics), point.X, point.
Y
, out isVisible);
commonui\System\Drawing\Point.cs (12)
127
return new PointF(p.X, p.
Y
);
137
return new Size(p.X, p.
Y
);
164
/// whether the values of the <see cref='System.Drawing.Point.X'/> and <see cref='System.Drawing.Point.
Y
'/> properties of the two <see cref='System.Drawing.Point'/>
169
return left.X == right.X && left.
Y
== right.
Y
;
176
/// of the <see cref='System.Drawing.Point.X'/> or <see cref='System.Drawing.Point.
Y
'/> properties of the two
191
return new Point(pt.X + sz.Width, pt.
Y
+ sz.Height);
200
return new Point(pt.X - sz.Width, pt.
Y
- sz.Height);
243
return comp.X == this.X && comp.
Y
== this.
Y
;
273
Offset(p.X, p.
Y
);
285
return "{X=" + X.ToString(CultureInfo.CurrentCulture) + ",Y=" +
Y
.ToString(CultureInfo.CurrentCulture) + "}";
commonui\System\Drawing\PointConverter.cs (2)
128
args[nArg++] = intConverter.ConvertToString(context, culture, pt.
Y
);
137
return new InstanceDescriptor(ctor, new object[] {pt.X, pt.
Y
});
commonui\System\Drawing\Printing\PrinterUnitConvert.cs (1)
58
Convert(value.
Y
, fromUnit, toUnit)
commonui\System\Drawing\Rectangle.cs (4)
72
this.y = location.
Y
;
104
Y = value.
Y
;
354
return Contains(pt.X, pt.
Y
);
488
Offset(pos.X, pos.
Y
);
commonui\System\Drawing\Region.cs (1)
912
int status = SafeNativeMethods.Gdip.GdipIsVisibleRegionPointI(new HandleRef(this, nativeRegion), point.X, point.
Y
,
commonui\System\Drawing\Size.cs (1)
56
height = 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)
114
int moveUp = _statementPanel.Location.
Y
- _checkBoxPanel.Location.
Y
;
System.Windows.Forms (978)
misc\GDI\DeviceContext2.cs (1)
491
IntUnsafeNativeMethods.SetViewportOrgEx( new HandleRef( this, this.Hdc ), newOrigin.X, newOrigin.
Y
, oldOrigin );
misc\GDI\WindowsGraphics2.cs (6)
95
IntUnsafeNativeMethods.MoveToEx(hdc, p.X, p.
Y
, null);
96
IntUnsafeNativeMethods.AngleArc(hdc, p.X, p.
Y
, radius, startAngle, sweepAngle);
97
IntUnsafeNativeMethods.LineTo(hdc, p.X, p.
Y
);
167
Rectangle bounds = new Rectangle( pt.X, pt.
Y
, Int32.MaxValue, Int32.MaxValue );
652
DrawLine(pen, p1.X, p1.
Y
, p2.X, p2.
Y
);
winforms\Managed\System\Resources\ResXDataNode.cs (7)
496
string newMessage = SR.GetString(SR.TypeLoadException, typeName, dataNodeInfo.ReaderPosition.
Y
, dataNodeInfo.ReaderPosition.X);
497
XmlException xml = new XmlException(newMessage, null, dataNodeInfo.ReaderPosition.
Y
, dataNodeInfo.ReaderPosition.X);
524
string newMessage = SR.GetString(SR.NotSupported, typeName, dataNodeInfo.ReaderPosition.
Y
, dataNodeInfo.ReaderPosition.X, nse.Message);
525
XmlException xml = new XmlException(newMessage, nse, dataNodeInfo.ReaderPosition.
Y
, dataNodeInfo.ReaderPosition.X);
536
string newMessage = SR.GetString(SR.TypeLoadException, typeName, dataNodeInfo.ReaderPosition.
Y
, dataNodeInfo.ReaderPosition.X);
537
XmlException xml = new XmlException(newMessage, null, dataNodeInfo.ReaderPosition.
Y
, dataNodeInfo.ReaderPosition.X);
809
result.ReaderPosition = new Point(this.ReaderPosition.X, this.ReaderPosition.
Y
);
winforms\Managed\System\Resources\ResXResourceReader.cs (5)
407
string newMessage = SR.GetString(SR.SerializationException, reader[ResXResourceWriter.TypeStr], pt.
Y
, pt.X, se.Message);
408
XmlException xml = new XmlException(newMessage, se, pt.
Y
, pt.X);
415
string newMessage = SR.GetString(SR.InvocationException, reader[ResXResourceWriter.TypeStr], pt.
Y
, pt.X, tie.InnerException.Message);
416
XmlException xml = new XmlException(newMessage, tie.InnerException, pt.
Y
, pt.X);
429
XmlException xmlEx = new XmlException(e.Message, e, pt.
Y
, pt.X);
winforms\Managed\System\WinForms\AxHost.cs (2)
3617
Bounds = new Rectangle(location.X, location.
Y
, ocxExtent.Width, ocxExtent.Height);
3621
Bounds = new Rectangle(location.X, location.
Y
, newSize.Width, newSize.Height);
winforms\Managed\System\WinForms\Button.cs (1)
306
if (UnsafeNativeMethods.WindowFromPoint(pt.X, pt.
Y
) == Handle && !ValidationCancelled) {
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (1)
577
imageBounds.Y = imageStart.
Y
+ 1;
winforms\Managed\System\WinForms\CheckBox.cs (1)
648
if (UnsafeNativeMethods.WindowFromPoint(pt.X, pt.
Y
) == Handle) {
winforms\Managed\System\WinForms\ComboBox.cs (12)
1786
OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, Ptlc.X, Ptlc.
Y
, 0));
1802
OnMouseDown(new MouseEventArgs(MouseButtons.Middle, 1, Ptmc.X, Ptmc.
Y
, 0));
1818
OnMouseDown(new MouseEventArgs(MouseButtons.Right, 1, Ptrc.X, Ptrc.
Y
, 0));
1832
OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, Ptl.X, Ptl.
Y
, 0));
1870
OnMouseUp(new MouseEventArgs(MouseButtons.Left, 1, pt.X, pt.
Y
, 0));
1883
OnMouseDown(new MouseEventArgs(MouseButtons.Middle, 1, P.X, P.
Y
, 0));
1901
OnMouseDown(new MouseEventArgs(MouseButtons.Right, 1, Pt.X, Pt.
Y
, 0));
1924
OnMouseUp(new MouseEventArgs(MouseButtons.Right, 1, ptRBtnUp.X, ptRBtnUp.
Y
, 0));
1943
OnMouseMove(new MouseEventArgs(MouseButtons, 0, point.X, point.
Y
, 0));
6076
new Point(middle.X - Offset2Pixels, middle.
Y
- 1),
6077
new Point(middle.X + Offset2Pixels + 1, middle.
Y
- 1),
6078
new Point(middle.X, middle.
Y
+ Offset2Pixels)
winforms\Managed\System\WinForms\ContextMenu.cs (1)
234
pos.
Y
,
winforms\Managed\System\WinForms\Control.cs (13)
3236
SetBounds(value.X, value.
Y
, width, height, BoundsSpecified.Location);
6485
IntPtr hwnd = UnsafeNativeMethods.ChildWindowFromPointEx(new HandleRef(null, Handle), pt.X, pt.
Y
, value);
9418
cliprect.Offset(-offs.X,-offs.
Y
);
10089
NativeMethods.POINT point = new NativeMethods.POINT(p.X, p.
Y
);
10106
NativeMethods.POINT point = new NativeMethods.POINT(p.X, p.
Y
);
10382
clientOffset = new Point(clientOffset.X - windowRect.left, clientOffset.
Y
- windowRect.top);
13503
SendMessage(NativeMethods.WM_CONTEXTMENU, this.Handle, NativeMethods.Util.MAKELPARAM(pt.X, pt.
Y
));
13510
if (GetState(STATE_MOUSEPRESSED) && !IsDisposed && UnsafeNativeMethods.WindowFromPoint(pt.X, pt.
Y
) == Handle) {
13556
p.
Y
,
16961
pSizel.cy = pt.
Y
;
17022
pt.Y = (LogPixels.
Y
* y + hiMetricPerInch / 2) / hiMetricPerInch;
17606
pt.Y = (hiMetricPerInch * y + (LogPixels.
Y
>> 1)) / LogPixels.
Y
;
winforms\Managed\System\WinForms\ControlPaint.cs (5)
362
bool result = SafeNativeMethods.BitBlt(targetHDC, destinationLocation.X, destinationLocation.
Y
, destWidth, destHeight,
364
sourceLocation.X, sourceLocation.
Y
, (int) copyPixelOperation);
466
transform.Translate(scrollOffset.X,scrollOffset.
Y
);
1834
SafeNativeMethods.MoveToEx(new HandleRef(null, dc), start.X, start.
Y
, null);
1835
SafeNativeMethods.LineTo(new HandleRef(null, dc), end.X, end.
Y
);
winforms\Managed\System\WinForms\Cursor.cs (1)
317
UnsafeNativeMethods.SetCursorPos(value.X, value.
Y
);
winforms\Managed\System\WinForms\DataGrid.cs (5)
4071
if (localGridRows[row].OnMouseDown(p.X, p.
Y
,
4259
if (!localGridRows[rowOver].OnMouseMove(p.X, p.
Y
, layout.RowHeaders, alignToRight) && gridState[GRIDSTATE_dragging]) {
6532
return HitTest(position.X, position.
Y
);
7093
return new Point(x, y - origin.
Y
);
9185
HitTestInfo hti = DataGrid.HitTest(client.X, client.
Y
);
winforms\Managed\System\WinForms\DataGridRelationshipRow.cs (1)
781
points[1].
Y
);
winforms\Managed\System\WinForms\DataGridView.cs (28)
1485
if (!IsSharedCellReadOnly(dataGridViewCell, this.ptCurrentCell.
Y
))
2180
if (this.ptCurrentCell.X == -1 && this.ptCurrentCell.
Y
== -1)
2184
Debug.Assert(this.ptCurrentCell.X >= 0 && ptCurrentCell.
Y
>= 0);
2186
Debug.Assert(this.ptCurrentCell.
Y
< this.Rows.Count);
2187
DataGridViewRow dataGridViewRow = (DataGridViewRow) this.Rows[this.ptCurrentCell.
Y
]; // unsharing row
2192
if ((value != null && (value.RowIndex != this.ptCurrentCell.
Y
|| value.ColumnIndex != this.ptCurrentCell.X)) ||
2250
Debug.Assert(this.ptCurrentCell.
Y
>= 0 && this.ptCurrentCell.
Y
< this.Rows.Count);
2251
DataGridViewRow dataGridViewRow = this.Rows.SharedRow(this.ptCurrentCell.
Y
);
2254
Debug.Assert(this.IsSharedCellVisible(dataGridViewCell, this.ptCurrentCell.
Y
));
2267
Debug.Assert(this.ptCurrentCell.
Y
!= -1);
2270
bool previousVisibleRowExists = (-1 != this.Rows.GetPreviousRow(this.ptCurrentCell.
Y
, DataGridViewElementStates.Visible));
2285
Debug.Assert(this.ptCurrentCell.
Y
!= -1);
2288
bool nextVisibleRowExists = (-1 != this.Rows.GetNextRow(this.ptCurrentCell.
Y
, DataGridViewElementStates.Visible));
2303
Debug.Assert(this.ptCurrentCell.
Y
!= -1);
2324
Debug.Assert(this.ptCurrentCell.
Y
>= 0);
2325
Debug.Assert(this.ptCurrentCell.
Y
< this.Rows.Count);
2327
return this.Rows[this.ptCurrentCell.
Y
];
2909
return this.Rows[firstDisplayedCellAddress.
Y
].Cells[firstDisplayedCellAddress.X]; // unshares the row of first displayed cell
2959
if (ptFirstDisplayedCellAddress.
Y
== -1)
2975
if (ptFirstDisplayedCellAddress.
Y
>= 0)
3587
return this.CurrentCellInternal.GetInheritedStyleInternal(this.ptCurrentCell.
Y
);
3666
if (this.RowHeadersVisible && this.ShowEditingIcon && this.ptCurrentCell.
Y
>= 0)
3669
InvalidateCellPrivate(-1, this.ptCurrentCell.
Y
);
4900
Debug.Assert(this.ptCurrentCell.
Y
>= 0);
4901
InvalidateCellPrivate(-1, this.ptCurrentCell.
Y
);
4907
Debug.Assert(this.ptCurrentCell.
Y
>= 0);
4908
InvalidateCellPrivate(-1, this.ptCurrentCell.
Y
);
winforms\Managed\System\WinForms\DataGridViewAccessibleObject.cs (1)
197
HitTestInfo hti = this.owner.HitTest(pt.X, pt.
Y
);
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (9)
491
return this.ColumnIndex == this.DataGridView.MouseDownCellAddress.X && rowIndex == this.DataGridView.MouseDownCellAddress.
Y
;
593
rowIndex == this.DataGridView.MouseDownCellAddress.
Y
)
617
e.RowIndex == this.DataGridView.MouseDownCellAddress.
Y
&&
714
bool cellCurrent = (ptCurrentCell.X == this.ColumnIndex && ptCurrentCell.
Y
== rowIndex);
770
else if (this.DataGridView.MouseEnteredCellAddress.
Y
== rowIndex &&
843
else if (this.DataGridView.MouseEnteredCellAddress.
Y
== rowIndex &&
887
else 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)
504
ptCurrentCell.
Y
== this.RowIndex &&
1799
if (this.ColumnIndex == ptCurrentCell.X && rowIndex == ptCurrentCell.
Y
)
2681
(dataGridView.AllowUserToAddRowsInternal && rowIndex > -1 && rowIndex == dataGridView.NewRowIndex && rowIndex != dataGridView.CurrentCellAddress.
Y
) ||
3105
ptCurrentCell.
Y
== rowIndex &&
4650
if (this.OwningRow.Index == this.DataGridView.CurrentCellAddress.
Y
)
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (14)
510
ptCurrentCell.
Y
== e.RowIndex &&
605
ptCurrentCell.
Y
== rowIndex && this.DataGridView.IsCurrentCellInEditMode)
886
return this.ColumnIndex == this.DataGridView.MouseDownCellAddress.X && rowIndex == this.DataGridView.MouseDownCellAddress.
Y
;
915
ptCurrentCell.
Y
== e.RowIndex &&
1025
rowIndex == this.DataGridView.MouseDownCellAddress.
Y
)
1049
e.RowIndex == this.DataGridView.MouseDownCellAddress.
Y
&&
1085
Debug.Assert((position.
Y
>= 0) && (position.
Y
< this.DataGridView.Rows.Count));
1087
int visibleRowIndex = this.DataGridView.Rows.GetRowCount(DataGridViewElementStates.Visible, 0, position.
Y
);
1183
ptCurrentCell.
Y
== rowIndex && this.DataGridView.IsCurrentCellInEditMode)
1243
ptCurrentCell.
Y
== rowIndex)
1260
this.DataGridView.MouseEnteredCellAddress.
Y
== rowIndex &&
1375
if (this.DataGridView.MouseEnteredCellAddress.
Y
== rowIndex &&
1513
else if (this.DataGridView.MouseEnteredCellAddress.
Y
== rowIndex &&
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (49)
836
else if (this.DataGridView.MouseEnteredCellAddress.
Y
== rowIndex &&
1031
sortGlyphLocation.
Y
+ sortGlyphHeight-2,
1033
sortGlyphLocation.
Y
);
1036
sortGlyphLocation.
Y
+ sortGlyphHeight-2,
1038
sortGlyphLocation.
Y
);
1041
sortGlyphLocation.
Y
,
1043
sortGlyphLocation.
Y
+ sortGlyphHeight-2);
1046
sortGlyphLocation.
Y
,
1048
sortGlyphLocation.
Y
+ sortGlyphHeight-2);
1051
sortGlyphLocation.
Y
+ sortGlyphHeight-1,
1053
sortGlyphLocation.
Y
+ sortGlyphHeight-1);
1060
sortGlyphLocation.
Y
+ sortGlyphHeight - 2,
1062
sortGlyphLocation.
Y
);
1065
sortGlyphLocation.
Y
+ sortGlyphHeight - 2,
1067
sortGlyphLocation.
Y
);
1070
sortGlyphLocation.
Y
,
1072
sortGlyphLocation.
Y
+ sortGlyphHeight - 2);
1075
sortGlyphLocation.
Y
,
1077
sortGlyphLocation.
Y
+ sortGlyphHeight - 2);
1080
sortGlyphLocation.
Y
+ sortGlyphHeight - 1,
1082
sortGlyphLocation.
Y
+ sortGlyphHeight - 1);
1091
sortGlyphLocation.
Y
+ sortGlyphHeight - line - 1,
1093
sortGlyphLocation.
Y
+ sortGlyphHeight - line - 1);
1097
sortGlyphLocation.
Y
+ sortGlyphHeight - sortGlyphWidth / 2 - 1,
1099
sortGlyphLocation.
Y
+ sortGlyphHeight - sortGlyphWidth / 2);
1114
sortGlyphLocation.
Y
+1,
1116
sortGlyphLocation.
Y
+sortGlyphHeight-1);
1119
sortGlyphLocation.
Y
+1,
1121
sortGlyphLocation.
Y
+sortGlyphHeight-1);
1124
sortGlyphLocation.
Y
+sortGlyphHeight-1,
1126
sortGlyphLocation.
Y
+1);
1129
sortGlyphLocation.
Y
+sortGlyphHeight-1,
1131
sortGlyphLocation.
Y
+1);
1134
sortGlyphLocation.
Y
,
1136
sortGlyphLocation.
Y
);
1143
sortGlyphLocation.
Y
+1,
1145
sortGlyphLocation.
Y
+sortGlyphHeight-1);
1148
sortGlyphLocation.
Y
+1,
1150
sortGlyphLocation.
Y
+sortGlyphHeight-1);
1153
sortGlyphLocation.
Y
+sortGlyphHeight-1,
1155
sortGlyphLocation.
Y
+1);
1158
sortGlyphLocation.
Y
+sortGlyphHeight-1,
1160
sortGlyphLocation.
Y
+1);
1163
sortGlyphLocation.
Y
,
1165
sortGlyphLocation.
Y
);
1174
sortGlyphLocation.
Y
+ line + 2,
1176
sortGlyphLocation.
Y
+ line + 2);
1180
sortGlyphLocation.
Y
+ sortGlyphWidth / 2 + 1,
1182
sortGlyphLocation.
Y
+ sortGlyphWidth / 2 + 2);
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (11)
1912
if (ptCurrentCell.X == e.ColumnIndex && ptCurrentCell.
Y
== e.RowIndex)
2126
this.DataGridView.MouseEnteredCellAddress.
Y
== rowIndex &&
2133
if (this.DataGridView.MouseEnteredCellAddress.
Y
== rowIndex &&
2153
bool cellCurrent = ptCurrentCell.X == this.ColumnIndex && ptCurrentCell.
Y
== rowIndex;
2449
new Point(middle.X - offset2X, middle.
Y
- 1),
2450
new Point(middle.X + offset2X + 1, middle.
Y
- 1),
2451
new Point(middle.X, middle.
Y
+ offset2Y)
2468
Point pt1 = new Point(middle.X - (nonXPTriangleWidth - 1) / 2, middle.
Y
- nonXPTriangleHeight);
2469
Point pt2 = new Point(middle.X + (nonXPTriangleWidth - 1) / 2, middle.
Y
- nonXPTriangleHeight);
2473
g.DrawLine(SystemPens.ControlText, pt1.X, pt1.
Y
, pt2.X, pt2.
Y
);
winforms\Managed\System\WinForms\DataGridViewDataConnection.cs (4)
738
if (this.owner.CurrentCellAddress.
Y
== e.NewIndex && this.owner.IsCurrentCellInEditMode)
804
this.owner.CurrentCellAddress.
Y
!= this.owner.NewRowIndex && // condition 5.
856
if (this.owner.CurrentCellAddress.
Y
!= this.owner.NewRowIndex || this.owner.IsCurrentRowDirty)
1363
if (rowIndex == this.owner.CurrentCellAddress.
Y
&& columnIndex == this.owner.CurrentCellAddress.X)
winforms\Managed\System\WinForms\DataGridViewHeaderCell.cs (3)
538
rowIndex == this.DataGridView.MouseDownCellAddress.
Y
&&
579
rowIndex == this.DataGridView.MouseDownCellAddress.
Y
&&
603
Debug.Assert(rowIndex == this.DataGridView.MouseDownCellAddress.
Y
);
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (1)
947
ptCurrentCell.
Y
== rowIndex &&
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (1)
1017
bool cellCurrent = ptCurrentCell.X == this.ColumnIndex && ptCurrentCell.
Y
== rowIndex;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (542)
43
if (cellAddress.
Y
< 0 || cellAddress.
Y
>= this.Rows.Count)
48
int visibleRowIndex = this.Rows.GetRowCount(DataGridViewElementStates.Visible, 0, cellAddress.
Y
);
2616
Debug.Assert(this.ptCurrentCell.
Y
>= 0 && this.ptCurrentCell.
Y
< this.Rows.Count);
2622
if (IsSharedCellReadOnly(dataGridViewCell, this.ptCurrentCell.
Y
) ||
2639
DataGridViewCellCancelEventArgs dgvcce = new DataGridViewCellCancelEventArgs(this.ptCurrentCell.X, this.ptCurrentCell.
Y
);
2655
if (IsSharedCellReadOnly(dataGridViewCell, this.ptCurrentCell.
Y
) ||
2678
DataGridViewCellStyle dataGridViewCellStyle = dataGridViewCell.GetInheritedStyle(null, this.ptCurrentCell.
Y
, true);
2722
((IDataGridViewEditingControl)this.editingControl).EditingControlRowIndex = this.ptCurrentCell.
Y
;
2758
InvalidateCellPrivate(this.ptCurrentCell.X, this.ptCurrentCell.
Y
);
3073
Debug.Assert(this.ptCurrentCell.
Y
!= -1);
3135
this.ptCurrentCell.
Y
,
3159
InvalidateCellPrivate(this.ptCurrentCell.X, this.ptCurrentCell.
Y
);
3250
if (currentCellDirty || this.ptCurrentCell.
Y
== -1 || this.ptCurrentCell.X == -1)
3276
if (this.ptCurrentCell.
Y
> -1)
3278
InvalidateRowPrivate(this.ptCurrentCell.
Y
);
3282
DataGridViewCellStyle dataGridViewCellStyle = dataGridViewCell.GetInheritedStyle(null, this.ptCurrentCell.
Y
, true);
3298
if (discardNewRow && this.ptCurrentCell.
Y
== this.newRowIndex - 1)
3307
this.ptCurrentCell.
Y
== this.newRowIndex - 1 &&
3396
if (this.dataConnection.CurrencyManager.Count <= this.ptCurrentCell.
Y
)
3807
OnCellLeave(ref dataGridViewCurrentCell, this.ptCurrentCell.X, this.ptCurrentCell.
Y
);
3815
OnRowLeave(ref dataGridViewCurrentCell, this.ptCurrentCell.X, this.ptCurrentCell.
Y
);
3825
if (this.ptCurrentCell.X > -1 && this.ptCurrentCell.
Y
> -1)
3827
InvalidateCellPrivate(this.ptCurrentCell.X /*columnIndex*/, this.ptCurrentCell.
Y
/*rowIndex*/);
3838
if (OnCellValidating(ref dataGridViewCurrentCell, this.ptCurrentCell.X, this.ptCurrentCell.
Y
, context))
3846
OnRowEnter(ref dataGridViewCurrentCell, this.ptCurrentCell.X, this.ptCurrentCell.
Y
, true /*canCreateNewRow*/, true /*validationFailureOccurred*/);
3854
OnCellEnter(ref dataGridViewCurrentCell, this.ptCurrentCell.X, this.ptCurrentCell.
Y
);
3862
this.ptCurrentCell.
Y
,
3876
OnCellValidated(ref dataGridViewCurrentCell, this.ptCurrentCell.X, this.ptCurrentCell.
Y
);
3905
if (OnCellValidating(ref dataGridViewCurrentCell, this.ptCurrentCell.X, this.ptCurrentCell.
Y
, context))
3913
this.ptCurrentCell.
Y
,
3941
this.ptCurrentCell.
Y
,
3977
OnCellValidated(ref dataGridViewCurrentCell, this.ptCurrentCell.X, this.ptCurrentCell.
Y
);
4037
int rowIndex = this.ptCurrentCell.
Y
;
4070
this.ptCurrentCell.
Y
!= rowIndex /*fireRowLeave*/,
4071
this.ptCurrentCell.
Y
!= rowIndex /*fireRowEnter*/,
4079
if (this.ptCurrentCell.
Y
!= rowIndex && this.ptCurrentCell.
Y
!= -1)
4083
int rowIndexTmp = this.ptCurrentCell.
Y
;
4123
this.ptCurrentCell.
Y
!= rowIndex /*forCurrentRowChange*/))
5488
Debug.Assert(this.ptCurrentCell.
Y
== this.newRowIndex);
5801
int adjustedY = this.editingPanel.Location.
Y
+ e.Y;
5805
adjustedY += this.editingControl.Location.
Y
;
6215
int curRowIndex = this.ptCurrentCell.
Y
;
6249
if (curRowIndex != this.ptCurrentCell.
Y
|| curColIndex != this.ptCurrentCell.X)
6273
InvalidateCellPrivate(this.ptCurrentCell.X, this.ptCurrentCell.
Y
);
6294
InvalidateCellPrivate(this.ptCurrentCell.X, this.ptCurrentCell.
Y
);
8672
if (this.ptAnchorCell.
Y
!= -1 &&
8673
(this.Rows.GetRowState(this.ptAnchorCell.
Y
) & DataGridViewElementStates.Frozen) != 0 &&
8707
if (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)
9789
HitTestInfo hti = HitTest(ptMouse.X, ptMouse.
Y
);
9790
int xOffset, yOffset, mouseX = ptMouse.X, mouseY = ptMouse.
Y
;
9810
hti = HitTest(ptMouse.X+(this.RightToLeftInternal?1:-1)*(xOffset+normOffset), ptMouse.
Y
-yOffset-(yOffset/Math.Abs(yOffset)));
9842
this.uneditedFormattedValue = dataGridViewCell.GetFormattedValue(this.ptCurrentCell.
Y
, ref dataGridViewCellStyle, DataGridViewDataErrorContexts.Formatting);
9854
dataGridViewCell = this.Rows[this.ptCurrentCell.
Y
].Cells[this.ptCurrentCell.X]; // unshare the edited cell
9867
this.ptCurrentCell.
Y
,
9893
object initialFormattedValue = dataGridViewCell.GetFormattedValue(this.ptCurrentCell.
Y
, ref dataGridViewCellStyle, DataGridViewDataErrorContexts.Formatting);
9898
dataGridViewCell.InitializeEditingControl(this.ptCurrentCell.
Y
, initialFormattedValue, dataGridViewCellStyle);
9908
this.ptCurrentCell.
Y
,
10572
firstDisplayedCellAddress.
Y
!= this.Rows.Count - 1))
10575
firstDisplayedCellAddress.
Y
,
10694
Debug.Assert(this.ptCurrentCell.
Y
>= 0 && this.ptCurrentCell.
Y
< this.Rows.Count);
12278
HitTestInfo hti = HitTest(ptGridCoord.X, ptGridCoord.
Y
);
12286
Debug.Assert(this.ptMouseDownCell.
Y
== hti.row);
12352
BeginRowResize(ptGridCoord.
Y
, hti.mouseBarOffset, rowIndex);
12418
BeginColumnHeadersResize(ptGridCoord.
Y
, hti.mouseBarOffset);
12441
(this.ptCurrentCell.X != hti.col || this.ptCurrentCell.
Y
!= hti.row))
12445
this.ptCurrentCell.X != hti.col || this.ptCurrentCell.
Y
!= hti.row /*forCurrentCellChange*/,
12446
this.ptCurrentCell.
Y
!= hti.row /*forCurrentRowChange*/))
12522
int oldEdgeRowIndex = this.ptCurrentCell.
Y
;
12528
this.ptAnchorCell.
Y
, ref oldEdgeRowIndex, hti.row);
12687
int oldEdgeRowIndex = this.ptCurrentCell.
Y
;
12693
this.ptAnchorCell.
Y
, ref oldEdgeRowIndex, hti.row);
12739
this.ptAnchorCell.
Y
> -1 && (this.Rows.GetRowState(this.ptAnchorCell.
Y
) & DataGridViewElementStates.Selected) != 0)
12783
if (hti.row >= this.ptAnchorCell.
Y
)
12785
SelectRowRange(this.ptAnchorCell.
Y
, hti.row, true);
12789
SelectRowRange(hti.row, this.ptAnchorCell.
Y
, true);
12867
int oldEdgeRowIndex = this.ptCurrentCell.
Y
;
12873
this.ptAnchorCell.
Y
, ref oldEdgeRowIndex, hti.row);
13020
this.ptMouseDownCell.
Y
== -1 &&
13026
HitTestInfo hti = HitTest(ptGridCoord.X, ptGridCoord.
Y
);
13042
Math.Abs(this.ptMouseDownGridCoord.
Y
- ptGridCoord.
Y
) >= DataGridView.DragSize.Height)
13135
int oldEdgeRowIndex = this.ptCurrentCell.
Y
;
13136
if ((hti.col != this.ptCurrentCell.X || hti.row != this.ptCurrentCell.
Y
) &&
13150
this.ptAnchorCell.
Y
, ref oldEdgeRowIndex, hti.row);
13151
if (hti.col != this.ptCurrentCell.X || hti.row != this.ptCurrentCell.
Y
)
13186
this.ptCurrentCell.
Y
== dataGridViewCell.RowIndex &&
14182
int oldCurrentCellY = this.ptCurrentCell.
Y
;
14187
rowIndex != this.ptCurrentCell.
Y
/*fireRowLeave*/,
14188
rowIndex != this.ptCurrentCell.
Y
/*fireRowEnter*/,
14322
bool success = SetCurrentCellAddressCore(this.ptCurrentCell.X, this.ptCurrentCell.
Y
, false /*setAnchorCellAddress*/, false /*validateCurrentCell*/, false /*throughMouseClick*/);
14601
!CommitEditForOperation(hti.col, this.ptCurrentCell.
Y
, true))
14684
if (this.ptCurrentCell.
Y
== -1 || IsColumnOutOfBounds(hti.col))
14689
this.ptCurrentCell.
Y
,
14906
(this.Rows.GetRowState(this.ptCurrentCell.
Y
) & DataGridViewElementStates.ReadOnly) == 0 &&
15008
this.ptMouseDownCell.X == columnIndex && this.ptMouseDownCell.
Y
== rowIndex &&
15009
(this.ptMouseDownCell.X == -1 || this.ptMouseDownCell.
Y
== -1 ||
15010
(columnIndex == this.ptCurrentCell.X && rowIndex == this.ptCurrentCell.
Y
))))
15041
Debug.Assert(this.ptCurrentCell.
Y
>= 0);
15042
InvalidateCellPrivate(-1, this.ptCurrentCell.
Y
);
15044
if (this.IsCurrentCellDirty && this.newRowIndex == this.ptCurrentCell.
Y
)
15267
if (elementState == DataGridViewElementStates.Visible && this.ptCurrentCell.
Y
== rowIndex)
15275
Debug.Assert(this.dataConnection.CurrencyManager.Position == this.ptCurrentCell.
Y
);
15287
if (this.ptCurrentCell.
Y
== rowIndex &&
15325
this.ptCurrentCell.
Y
== dataGridViewCell.RowIndex &&
15533
OnRowEnter(ref dataGridViewCell, this.ptCurrentCell.X, this.ptCurrentCell.
Y
, false /*canCreateNewRow*/, false /*validationFailureOccurred*/);
15538
OnCellEnter(ref dataGridViewCell, this.ptCurrentCell.X, this.ptCurrentCell.
Y
);
15564
InvalidateCellPrivate(this.ptCurrentCell.X /*columnIndex*/, this.ptCurrentCell.
Y
/*rowIndex*/);
15573
InvalidateCellPrivate(this.ptCurrentCell.X /*columnIndex*/, this.ptCurrentCell.
Y
/*rowIndex*/);
15693
InvalidateCell(this.ptCurrentCell.X, this.ptCurrentCell.
Y
);
15736
ScrollIntoView(this.ptCurrentCell.X, this.ptCurrentCell.
Y
, false /*forCurrentCellChange*/);
15774
newCurrentCell.
Y
,
15807
if (lastInsertion && newCurrentCell.
Y
!= -1)
15811
newCurrentCell.
Y
,
15846
if (newCurrentCell.
Y
!= -1)
15849
bool success = SetAndSelectCurrentCellAddress(newCurrentCell.X, newCurrentCell.
Y
, true, false, false, false /*clearSelection*/, false /*forceCurrentCellSelection*/);
15897
this.ptCurrentCell.
Y
);
16006
if (this.ptCurrentCell.
Y
!= -1 && rowIndexInserted <= this.ptCurrentCell.
Y
)
16008
newCurrentCell = new Point(this.ptCurrentCell.X, this.ptCurrentCell.
Y
+ insertionCount);
16029
if (newCurrentCell.
Y
!= -1)
16080
if (this.ptCurrentCell.
Y
!= -1 && rowIndexInserted <= this.ptCurrentCell.
Y
)
16082
newCurrentCell = new Point(this.ptCurrentCell.X, this.ptCurrentCell.
Y
+ dataGridViewRows.Length);
16146
if (dataGridViewCell.KeyDownUnsharesRowInternal(e, this.ptCurrentCell.
Y
))
16148
DataGridViewRow dataGridViewRow = this.Rows[this.ptCurrentCell.
Y
];
16149
this.CurrentCellInternal.OnKeyDownInternal(e, this.ptCurrentCell.
Y
);
16153
dataGridViewCell.OnKeyDownInternal(e, this.ptCurrentCell.
Y
);
16204
if (dataGridViewCell.KeyPressUnsharesRowInternal(e, this.ptCurrentCell.
Y
))
16206
DataGridViewRow dataGridViewRow = this.Rows[this.ptCurrentCell.
Y
];
16207
this.CurrentCellInternal.OnKeyPressInternal(e, this.ptCurrentCell.
Y
);
16211
dataGridViewCell.OnKeyPressInternal(e, this.ptCurrentCell.
Y
);
16238
if (dataGridViewCell.KeyUpUnsharesRowInternal(e, this.ptCurrentCell.
Y
))
16240
DataGridViewRow dataGridViewRow = this.Rows[this.ptCurrentCell.
Y
];
16241
this.CurrentCellInternal.OnKeyUpInternal(e, this.ptCurrentCell.
Y
);
16245
dataGridViewCell.OnKeyUpInternal(e, this.ptCurrentCell.
Y
);
16276
OnCellLeave(ref dataGridViewCell, this.ptCurrentCell.X, this.ptCurrentCell.
Y
);
16281
OnRowLeave(ref dataGridViewCell, this.ptCurrentCell.X, this.ptCurrentCell.
Y
);
16289
if (this.ptCurrentCell.X > -1 && this.ptCurrentCell.
Y
> -1)
16291
InvalidateCellPrivate(this.ptCurrentCell.X /*columnIndex*/, this.ptCurrentCell.
Y
/*rowIndex*/);
16308
InvalidateCell(this.ptCurrentCell.X, this.ptCurrentCell.
Y
);
16327
this.ptMouseDownCell.
Y
== hti.row &&
16330
this.ptMouseDownCell.
Y
== -1 ||
16332
this.ptMouseDownCell.
Y
== this.ptCurrentCell.
Y
)))
16412
if (this.ptMouseDownCell.X == hti.col && this.ptMouseDownCell.
Y
== hti.row)
16530
Debug.Assert(this.ptMouseDownCell.
Y
!= -2);
16586
this.ptMouseEnteredCell.
Y
>= -1 && this.ptMouseEnteredCell.
Y
< this.Rows.Count)
16588
DataGridViewCellEventArgs dgvce = new DataGridViewCellEventArgs(this.ptMouseEnteredCell.X, this.ptMouseEnteredCell.
Y
);
16815
hti.row >= 0 && this.ptMouseDownCell.
Y
== hti.row &&
17317
!this.Rows[this.ptCurrentCell.
Y
].Cells[this.ptCurrentCell.X].ReadOnly) // Unshares the row
17353
newCurrentCell.
Y
,
17399
if (newCurrentCell.
Y
!= -1)
17403
newCurrentCell.
Y
,
17528
newCurrentCell = new Point(newX, (newX == -1) ? -1 : this.ptCurrentCell.
Y
);
17696
if (this.ptCurrentCell.
Y
!= -1 && rowIndexDeleted <= this.ptCurrentCell.
Y
)
17699
if (rowIndexDeleted == this.ptCurrentCell.
Y
)
17733
Debug.Assert(rowIndexDeleted < this.ptCurrentCell.
Y
);
17734
newY = this.ptCurrentCell.
Y
- 1;
17737
if (rowIndexDeleted == this.ptCurrentCell.
Y
)
17832
if (!IsInnerCellOutOfBounds(this.ptCurrentCellCache.X, this.ptCurrentCellCache.
Y
))
17834
SetCurrentCellAddressCore(this.ptCurrentCellCache.X, this.ptCurrentCellCache.
Y
, false, false, false);
17844
this.ptCurrentCell.
Y
== columnIndex)
17849
this.ptCurrentCellCache.Y = this.ptCurrentCell.
Y
;
18433
if (dataGridViewColumn != null && hti.row != this.ptCurrentCell.
Y
)
18436
int oldCurrentCellY = this.ptCurrentCell.
Y
;
18442
hti.row != this.ptCurrentCell.
Y
/*fireRowLeave*/,
18443
hti.row != this.ptCurrentCell.
Y
/*fireRowEnter*/,
18516
this.ptAnchorCell.
Y
> -1 &&
18517
(this.Rows.GetRowState(this.ptAnchorCell.
Y
) & DataGridViewElementStates.Selected) != 0)
18569
if (hti.row >= this.ptAnchorCell.
Y
)
18571
SelectRowRange(this.ptAnchorCell.
Y
, hti.row, true);
18575
SelectRowRange(hti.row, this.ptAnchorCell.
Y
, true);
18586
if (hti.row != this.ptCurrentCell.
Y
)
18602
else if (-1 != this.ptCurrentCell.
Y
)
18605
bool success = SetCurrentCellAddressCore(this.ptCurrentCell.X, this.ptCurrentCell.
Y
,
18941
if (this.ptCurrentCell.
Y
!= -1 &&
18942
hti.row != this.ptCurrentCell.
Y
&&
19019
if (this.ptCurrentCell.
Y
!= -1 && hti.row != this.ptCurrentCell.
Y
)
19213
rowIndex == this.ptCurrentCell.
Y
&&
19234
if (-1 != this.ptCurrentCell.X && dataGridViewRow.Index == this.ptCurrentCell.
Y
&& this.editingControl != null)
19369
if (pt.
Y
< 0 && step < 0)
19371
Invalidate(new Rectangle(new Point(0, -pt.
Y
),
19376
if (pt.
Y
> rect.Bottom && step > 0)
19379
new Size(ClientSize.Width, ClientSize.Height - (pt.
Y
- rect.Bottom) - step)));
19537
bool success = SetCurrentCellAddressCore(this.ptCurrentCell.X, this.ptCurrentCell.
Y
,
19631
if (OnRowValidating(ref dataGridViewCellTmp, this.ptCurrentCell.X, this.ptCurrentCell.
Y
))
19641
OnRowValidated(ref dataGridViewCellTmp, this.ptCurrentCell.X, this.ptCurrentCell.
Y
);
19646
this.newRowIndex == this.ptCurrentCell.
Y
)
19649
int rowIndex = this.Rows.GetPreviousRow(this.ptCurrentCell.
Y
, DataGridViewElementStates.Visible);
20367
Rectangle cellBounds = new Rectangle(leftEdge, GetRowYFromIndex(this.ptCurrentCell.
Y
),
20368
this.Columns[this.ptCurrentCell.X].Width, this.Rows.SharedRow(this.ptCurrentCell.
Y
).GetHeight(this.ptCurrentCell.
Y
));
20380
if ((this.Rows.GetRowState(this.ptCurrentCell.
Y
) & DataGridViewElementStates.Frozen) == 0)
20401
bool isFirstDisplayedRow = this.FirstDisplayedRowIndex == this.ptCurrentCell.
Y
;
20716
if (this.ptCurrentCell.
Y
!= -1)
20718
nextVisibleRowIndex = this.Rows.GetNextRow(this.ptCurrentCell.
Y
, DataGridViewElementStates.Visible);
20764
Debug.Assert(this.ptAnchorCell.
Y
>= 0);
20767
int oldEdgeRowIndex = this.ptCurrentCell.
Y
;
20775
this.ptAnchorCell.
Y
, ref oldEdgeRowIndex, lastVisibleRowIndex);
20885
int oldEdgeRowIndex = this.ptCurrentCell.
Y
;
20892
this.ptAnchorCell.
Y
, ref oldEdgeRowIndex, nextVisibleRowIndex);
20987
if (this.ptAnchorCell.
Y
== -1 || this.ptCurrentCell.X == -1 ||
20994
Debug.Assert(this.ptAnchorCell.
Y
>= 0);
20995
SelectRowRange(this.ptAnchorCell.
Y
, lastVisibleRowIndex, true);
21013
SetSelectedRowCore(this.ptCurrentCell.
Y
, false);
21108
if (nextVisibleRowIndex >= this.ptAnchorCell.
Y
)
21110
SelectRowRange(this.ptAnchorCell.
Y
, nextVisibleRowIndex, true);
21114
SelectRowRange(nextVisibleRowIndex, this.ptAnchorCell.
Y
, true);
21205
Debug.Assert(this.ptAnchorCell.
Y
>= 0);
21206
if (this.ptAnchorCell.
Y
== -1 || this.ptCurrentCell.
Y
== -1 ||
21212
if ((this.Rows.GetRowState(this.ptCurrentCell.
Y
) & DataGridViewElementStates.Selected) != 0)
21215
SelectRowRange(this.ptAnchorCell.
Y
, lastVisibleRowIndex, true);
21222
int oldEdgeRowIndex = this.ptCurrentCell.
Y
;
21224
this.ptAnchorCell.
Y
, ref oldEdgeRowIndex, lastVisibleRowIndex);
21238
if (this.ptCurrentCell.
Y
== -1 || IsRowOutOfBounds(lastVisibleRowIndex))
21243
if ((this.Rows.GetRowState(this.ptCurrentCell.
Y
) & DataGridViewElementStates.Selected) != 0)
21245
SetSelectedRowCore(this.ptCurrentCell.
Y
, false);
21250
SetSelectedCellCore(this.ptCurrentCell.X, this.ptCurrentCell.
Y
, false);
21286
if (this.ptCurrentCell.
Y
== -1 || IsRowOutOfBounds(lastVisibleRowIndex))
21291
if ((this.Rows.GetRowState(this.ptCurrentCell.
Y
) & DataGridViewElementStates.Selected) != 0)
21341
if (this.ptCurrentCell.
Y
== -1 || IsRowOutOfBounds(nextVisibleRowIndex))
21346
if ((this.Rows.GetRowState(this.ptCurrentCell.
Y
) & DataGridViewElementStates.Selected) != 0)
21351
if (this.ptAnchorCell.
Y
== -1)
21356
if (nextVisibleRowIndex >= this.ptAnchorCell.
Y
)
21358
SelectRowRange(this.ptAnchorCell.
Y
, nextVisibleRowIndex, true);
21362
SelectRowRange(nextVisibleRowIndex, this.ptAnchorCell.
Y
, true);
21376
int oldEdgeRowIndex = this.ptCurrentCell.
Y
;
21383
this.ptAnchorCell.
Y
, ref oldEdgeRowIndex, nextVisibleRowIndex);
21428
if (this.ptCurrentCell.
Y
== -1 || IsRowOutOfBounds(nextVisibleRowIndex))
21433
if ((this.Rows.GetRowState(this.ptCurrentCell.
Y
) & DataGridViewElementStates.Selected) != 0)
21585
int oldEdgeRowIndex = this.ptCurrentCell.
Y
;
21587
this.ptAnchorCell.
Y
, ref oldEdgeRowIndex, lastVisibleRowIndex);
21628
if (this.ptCurrentCell.
Y
> -1 &&
21629
(this.Rows.GetRowState(this.ptCurrentCell.
Y
) & DataGridViewElementStates.Selected) != 0)
21632
SelectRowRange(this.ptCurrentCell.
Y
, lastVisibleRowIndex, true);
21637
int oldEdgeRowIndex = this.ptCurrentCell.
Y
;
21639
this.ptAnchorCell.
Y
, ref oldEdgeRowIndex, lastVisibleRowIndex);
21644
if (this.ptCurrentCell.
Y
> -1 &&
21645
(this.Rows.GetRowState(this.ptCurrentCell.
Y
) & DataGridViewElementStates.Selected) != 0)
21660
if (this.ptCurrentCell.
Y
> -1 &&
21661
(this.Rows.GetRowState(this.ptCurrentCell.
Y
) & DataGridViewElementStates.Selected) != 0)
21749
int oldEdgeRowIndex = this.ptCurrentCell.
Y
;
21755
this.ptAnchorCell.
Y
, ref oldEdgeRowIndex, lastVisibleRowIndex);
21810
if (this.MultiSelect && this.ptCurrentCell.
Y
>= 0)
21812
if (this.ptAnchorCell.
Y
== -1)
21816
SelectRowRange(this.ptAnchorCell.
Y
, lastVisibleRowIndex, true);
21904
int rowIndex = this.ptCurrentCell.
Y
;
21955
Debug.Assert(this.ptCurrentCell.
Y
!= -1);
21958
(IsSharedCellReadOnly(this.CurrentCellInternal, this.ptCurrentCell.
Y
) || !ColumnEditable(this.ptCurrentCell.X)));
21960
!IsSharedCellReadOnly(this.CurrentCellInternal, this.ptCurrentCell.
Y
) &&
21964
bool success = ScrollIntoView(this.ptCurrentCell.X, this.ptCurrentCell.
Y
, false);
22039
int oldEdgeRowIndex = this.ptCurrentCell.
Y
;
22041
this.ptAnchorCell.
Y
, ref oldEdgeRowIndex, firstVisibleRowIndex);
22082
if (this.ptCurrentCell.
Y
> -1 &&
22083
(this.Rows.GetRowState(this.ptCurrentCell.
Y
) & DataGridViewElementStates.Selected) != 0)
22086
SelectRowRange(firstVisibleRowIndex, this.ptAnchorCell.
Y
, true);
22091
int oldEdgeRowIndex = this.ptCurrentCell.
Y
;
22093
this.ptAnchorCell.
Y
, ref oldEdgeRowIndex, firstVisibleRowIndex);
22098
if (this.ptCurrentCell.
Y
> -1 &&
22099
(this.Rows.GetRowState(this.ptCurrentCell.
Y
) & DataGridViewElementStates.Selected) != 0)
22114
if (this.ptCurrentCell.
Y
> -1 &&
22115
(this.Rows.GetRowState(this.ptCurrentCell.
Y
) & DataGridViewElementStates.Selected) != 0)
22207
int oldEdgeRowIndex = this.ptCurrentCell.
Y
;
22213
this.ptAnchorCell.
Y
, ref oldEdgeRowIndex, firstVisibleRowIndex);
22315
!IsSharedCellReadOnly(dataGridViewCell, this.ptCurrentCell.
Y
) &&
22333
bool success = ScrollIntoView(this.ptCurrentCell.X, this.ptCurrentCell.
Y
, false);
22560
if (!ScrollIntoView(previousVisibleColumnIndex, this.ptCurrentCell.
Y
, true))
22564
if (this.ptCurrentCell.
Y
== -1 || IsColumnOutOfBounds(previousVisibleColumnIndex))
22573
int oldEdgeRowIndex = this.ptCurrentCell.
Y
;
22579
this.ptAnchorCell.
Y
, ref oldEdgeRowIndex, oldEdgeRowIndex);
22584
SetSelectedCellCore(previousVisibleColumnIndex, this.ptCurrentCell.
Y
, true);
22586
success = SetCurrentCellAddressCore(previousVisibleColumnIndex, this.ptCurrentCell.
Y
, !this.MultiSelect, false, false);
22611
if (!ScrollIntoView(previousVisibleColumnIndex, this.ptCurrentCell.
Y
, true))
22615
if (this.ptCurrentCell.
Y
== -1 || IsColumnOutOfBounds(previousVisibleColumnIndex))
22620
SetSelectedCellCore(previousVisibleColumnIndex, this.ptCurrentCell.
Y
, true);
22621
success = SetCurrentCellAddressCore(previousVisibleColumnIndex, this.ptCurrentCell.
Y
, true, false, false);
22656
if (!ScrollIntoView(previousVisibleColumnIndex, this.ptCurrentCell.
Y
, true))
22660
if (this.ptCurrentCell.
Y
== -1 || IsColumnOutOfBounds(previousVisibleColumnIndex))
22684
success = SetCurrentCellAddressCore(previousVisibleColumnIndex, this.ptCurrentCell.
Y
, !this.MultiSelect, false, false);
22709
if (!ScrollIntoView(previousVisibleColumnIndex, this.ptCurrentCell.
Y
, true))
22713
if (this.ptCurrentCell.
Y
== -1 || IsColumnOutOfBounds(previousVisibleColumnIndex))
22719
success = SetCurrentCellAddressCore(previousVisibleColumnIndex, this.ptCurrentCell.
Y
, true, false, false);
22754
if (!ScrollIntoView(previousVisibleColumnIndex, this.ptCurrentCell.
Y
, true))
22788
int oldEdgeRowIndex = this.ptCurrentCell.
Y
;
22794
this.ptAnchorCell.
Y
, ref oldEdgeRowIndex, oldEdgeRowIndex);
22799
SetSelectedCellCore(previousVisibleColumnIndex, this.ptCurrentCell.
Y
, true);
22802
success = SetCurrentCellAddressCore(previousVisibleColumnIndex, this.ptCurrentCell.
Y
, !this.MultiSelect, false, false);
22827
if (!ScrollIntoView(previousVisibleColumnIndex, this.ptCurrentCell.
Y
, true))
22843
SetSelectedCellCore(previousVisibleColumnIndex, this.ptCurrentCell.
Y
, true);
22845
success = SetCurrentCellAddressCore(previousVisibleColumnIndex, this.ptCurrentCell.
Y
, true, false, false);
22878
if (!ScrollIntoView(previousVisibleColumnIndex, this.ptCurrentCell.
Y
, true))
22882
if (this.ptCurrentCell.
Y
== -1 || IsColumnOutOfBounds(previousVisibleColumnIndex))
22886
success = SetCurrentCellAddressCore(previousVisibleColumnIndex, this.ptCurrentCell.
Y
, true, false, false);
22932
if (!ScrollIntoView(firstVisibleColumnIndex, this.ptCurrentCell.
Y
, true))
22940
int oldEdgeRowIndex = this.ptCurrentCell.
Y
;
22947
this.ptAnchorCell.
Y
, ref oldEdgeRowIndex, oldEdgeRowIndex);
22948
success = SetCurrentCellAddressCore(firstVisibleColumnIndex, this.ptCurrentCell.
Y
, false, false, false);
22953
if (!ScrollIntoView(firstVisibleColumnIndex, this.ptCurrentCell.
Y
, true))
22957
if (this.ptCurrentCell.
Y
== -1 || IsColumnOutOfBounds(firstVisibleColumnIndex))
22963
SetSelectedCellCore(firstVisibleColumnIndex, this.ptCurrentCell.
Y
, true);
22964
success = SetCurrentCellAddressCore(firstVisibleColumnIndex, this.ptCurrentCell.
Y
, true, false, false);
22986
if (!ScrollIntoView(firstVisibleColumnIndex, this.ptCurrentCell.
Y
, true))
22990
if (this.ptCurrentCell.
Y
== -1 || IsColumnOutOfBounds(firstVisibleColumnIndex))
22995
SetSelectedCellCore(firstVisibleColumnIndex, this.ptCurrentCell.
Y
, true);
22996
success = SetCurrentCellAddressCore(firstVisibleColumnIndex, this.ptCurrentCell.
Y
, true, false, false);
23022
if (!ScrollIntoView(firstVisibleColumnIndex, this.ptCurrentCell.
Y
, true))
23026
if (this.ptAnchorCell.X == -1 || this.ptCurrentCell.
Y
== -1 ||
23034
success = SetCurrentCellAddressCore(firstVisibleColumnIndex, this.ptCurrentCell.
Y
, false, false, false);
23039
if (!ScrollIntoView(firstVisibleColumnIndex, this.ptCurrentCell.
Y
, true))
23049
success = SetCurrentCellAddressCore(firstVisibleColumnIndex, this.ptCurrentCell.
Y
, true, false, false);
23071
if (!ScrollIntoView(firstVisibleColumnIndex, this.ptCurrentCell.
Y
, true))
23075
if (this.ptCurrentCell.
Y
== -1 || IsColumnOutOfBounds(firstVisibleColumnIndex))
23081
success = SetCurrentCellAddressCore(firstVisibleColumnIndex, this.ptCurrentCell.
Y
, true, false, false);
23107
if (!ScrollIntoView(firstVisibleColumnIndex, this.ptCurrentCell.
Y
, true))
23127
int oldEdgeRowIndex = this.ptCurrentCell.
Y
;
23129
this.ptAnchorCell.
Y
, ref oldEdgeRowIndex, oldEdgeRowIndex);
23131
success = SetCurrentCellAddressCore(firstVisibleColumnIndex, this.ptCurrentCell.
Y
, false, false, false);
23136
if (!ScrollIntoView(firstVisibleColumnIndex, this.ptCurrentCell.
Y
, true))
23152
SetSelectedCellCore(this.ptCurrentCell.X, this.ptCurrentCell.
Y
, false);
23153
SetSelectedCellCore(firstVisibleColumnIndex, this.ptCurrentCell.
Y
, true);
23155
success = SetCurrentCellAddressCore(firstVisibleColumnIndex, this.ptCurrentCell.
Y
, true, false, false);
23177
if (!ScrollIntoView(firstVisibleColumnIndex, this.ptCurrentCell.
Y
, true))
23193
SetSelectedCellCore(firstVisibleColumnIndex, this.ptCurrentCell.
Y
, true);
23195
success = SetCurrentCellAddressCore(firstVisibleColumnIndex, this.ptCurrentCell.
Y
, true, false, false);
23217
if (!ScrollIntoView(firstVisibleColumnIndex, this.ptCurrentCell.
Y
, true))
23221
if (this.ptCurrentCell.
Y
== -1 || IsColumnOutOfBounds(firstVisibleColumnIndex))
23225
success = SetCurrentCellAddressCore(firstVisibleColumnIndex, this.ptCurrentCell.
Y
, true, false, false);
23252
if (this.ptCurrentCell.
Y
== -1)
23262
nextScreenVisibleRowIndex = this.ptCurrentCell.
Y
;
23277
this.ptCurrentCell.
Y
,
23351
Debug.Assert(this.ptAnchorCell.
Y
>= 0);
23353
int oldEdgeRowIndex = this.ptCurrentCell.
Y
;
23354
if (this.ptAnchorCell.
Y
== -1)
23359
this.ptAnchorCell.
Y
, ref oldEdgeRowIndex, nextScreenVisibleRowIndex);
23382
Debug.Assert(this.ptAnchorCell.
Y
>= 0);
23383
if (this.ptAnchorCell.
Y
== -1)
23387
if (this.ptAnchorCell.
Y
< nextScreenVisibleRowIndex)
23389
SelectRowRange(this.ptAnchorCell.
Y
, nextScreenVisibleRowIndex, true);
23393
SelectRowRange(nextScreenVisibleRowIndex, this.ptAnchorCell.
Y
, true);
23415
Debug.Assert(this.ptAnchorCell.
Y
>= 0);
23416
if (this.ptAnchorCell.
Y
== -1)
23420
if ((this.Rows.GetRowState(this.ptCurrentCell.
Y
) & DataGridViewElementStates.Selected) != 0)
23423
if (this.ptAnchorCell.
Y
< nextScreenVisibleRowIndex)
23425
SelectRowRange(this.ptAnchorCell.
Y
, nextScreenVisibleRowIndex, true);
23429
SelectRowRange(nextScreenVisibleRowIndex, this.ptAnchorCell.
Y
, true);
23435
int oldEdgeRowIndex = this.ptCurrentCell.
Y
;
23437
this.ptAnchorCell.
Y
, ref oldEdgeRowIndex, nextScreenVisibleRowIndex);
23442
if ((this.Rows.GetRowState(this.ptCurrentCell.
Y
) & DataGridViewElementStates.Selected) != 0)
23492
if (this.ptCurrentCell.
Y
== -1)
23502
previousScreenVisibleRowIndex = this.ptCurrentCell.
Y
;
23590
Debug.Assert(this.ptAnchorCell.
Y
>= 0);
23592
int oldEdgeRowIndex = this.ptCurrentCell.
Y
;
23598
this.ptAnchorCell.
Y
, ref oldEdgeRowIndex, previousScreenVisibleRowIndex);
23621
Debug.Assert(this.ptAnchorCell.
Y
>= 0);
23622
if (this.ptAnchorCell.
Y
== -1)
23626
if (this.ptAnchorCell.
Y
< previousScreenVisibleRowIndex)
23628
SelectRowRange(this.ptAnchorCell.
Y
, previousScreenVisibleRowIndex, true);
23632
SelectRowRange(previousScreenVisibleRowIndex, this.ptAnchorCell.
Y
, true);
23654
Debug.Assert(this.ptAnchorCell.
Y
>= 0);
23655
if (this.ptAnchorCell.
Y
== -1)
23659
if ((this.Rows.GetRowState(this.ptCurrentCell.
Y
) & DataGridViewElementStates.Selected) != 0)
23662
if (this.ptAnchorCell.
Y
< previousScreenVisibleRowIndex)
23664
SelectRowRange(this.ptAnchorCell.
Y
, previousScreenVisibleRowIndex, true);
23668
SelectRowRange(previousScreenVisibleRowIndex, this.ptAnchorCell.
Y
, true);
23674
int oldEdgeRowIndex = this.ptCurrentCell.
Y
;
23676
this.ptAnchorCell.
Y
, ref oldEdgeRowIndex, previousScreenVisibleRowIndex);
23681
if ((this.Rows.GetRowState(this.ptCurrentCell.
Y
) & DataGridViewElementStates.Selected) != 0)
23799
if (!ScrollIntoView(nextVisibleColumnIndex, this.ptCurrentCell.
Y
, true))
23803
if (this.ptCurrentCell.
Y
== -1 || IsColumnOutOfBounds(nextVisibleColumnIndex))
23811
int oldEdgeRowIndex = this.ptCurrentCell.
Y
;
23817
this.ptAnchorCell.
Y
, ref oldEdgeRowIndex, oldEdgeRowIndex);
23822
SetSelectedCellCore(nextVisibleColumnIndex, this.ptCurrentCell.
Y
, true);
23824
success = SetCurrentCellAddressCore(nextVisibleColumnIndex, this.ptCurrentCell.
Y
, !this.MultiSelect, false, false);
23849
if (!ScrollIntoView(nextVisibleColumnIndex, this.ptCurrentCell.
Y
, true))
23853
if (this.ptCurrentCell.
Y
== -1 || IsColumnOutOfBounds(nextVisibleColumnIndex))
23858
SetSelectedCellCore(nextVisibleColumnIndex, this.ptCurrentCell.
Y
, true);
23859
success = SetCurrentCellAddressCore(nextVisibleColumnIndex, this.ptCurrentCell.
Y
, true, false, false);
23894
if (!ScrollIntoView(nextVisibleColumnIndex, this.ptCurrentCell.
Y
, true))
23898
if (this.ptCurrentCell.
Y
== -1 || IsColumnOutOfBounds(nextVisibleColumnIndex))
23922
success = SetCurrentCellAddressCore(nextVisibleColumnIndex, this.ptCurrentCell.
Y
, !this.MultiSelect, false, false);
23947
if (!ScrollIntoView(nextVisibleColumnIndex, this.ptCurrentCell.
Y
, true))
23951
if (this.ptCurrentCell.
Y
== -1 || IsColumnOutOfBounds(nextVisibleColumnIndex))
23957
success = SetCurrentCellAddressCore(nextVisibleColumnIndex, this.ptCurrentCell.
Y
, true, false, false);
23992
if (!ScrollIntoView(nextVisibleColumnIndex, this.ptCurrentCell.
Y
, true))
23996
if (this.ptCurrentCell.
Y
== -1 || IsColumnOutOfBounds(nextVisibleColumnIndex))
24033
int oldEdgeRowIndex = this.ptCurrentCell.
Y
;
24035
this.ptAnchorCell.
Y
, ref oldEdgeRowIndex, oldEdgeRowIndex);
24040
SetSelectedCellCore(nextVisibleColumnIndex, this.ptCurrentCell.
Y
, true);
24043
success = SetCurrentCellAddressCore(nextVisibleColumnIndex, this.ptCurrentCell.
Y
, !this.MultiSelect, false, false);
24068
if (!ScrollIntoView(nextVisibleColumnIndex, this.ptCurrentCell.
Y
, true))
24084
SetSelectedCellCore(nextVisibleColumnIndex, this.ptCurrentCell.
Y
, true);
24086
success = SetCurrentCellAddressCore(nextVisibleColumnIndex, this.ptCurrentCell.
Y
, true, false, false);
24119
if (!ScrollIntoView(nextVisibleColumnIndex, this.ptCurrentCell.
Y
, true))
24123
if (this.ptCurrentCell.
Y
== -1 || IsColumnOutOfBounds(nextVisibleColumnIndex))
24127
success = SetCurrentCellAddressCore(nextVisibleColumnIndex, this.ptCurrentCell.
Y
, true, false, false);
24171
if (!ScrollIntoView(lastVisibleColumnIndex, this.ptCurrentCell.
Y
, true))
24175
if (this.ptCurrentCell.
Y
== -1 || IsColumnOutOfBounds(lastVisibleColumnIndex))
24187
int oldEdgeRowIndex = this.ptCurrentCell.
Y
;
24189
this.ptAnchorCell.
Y
, ref oldEdgeRowIndex, oldEdgeRowIndex);
24190
success = SetCurrentCellAddressCore(lastVisibleColumnIndex, this.ptCurrentCell.
Y
, false, false, false);
24196
SetSelectedCellCore(lastVisibleColumnIndex, this.ptCurrentCell.
Y
, true);
24197
success = SetCurrentCellAddressCore(lastVisibleColumnIndex, this.ptCurrentCell.
Y
, true, false, false);
24219
if (!ScrollIntoView(lastVisibleColumnIndex, this.ptCurrentCell.
Y
, true))
24223
if (this.ptCurrentCell.
Y
== -1 || IsColumnOutOfBounds(lastVisibleColumnIndex))
24228
SetSelectedCellCore(lastVisibleColumnIndex, this.ptCurrentCell.
Y
, true);
24229
success = SetCurrentCellAddressCore(lastVisibleColumnIndex, this.ptCurrentCell.
Y
, true, false, false);
24253
if (!ScrollIntoView(lastVisibleColumnIndex, this.ptCurrentCell.
Y
, true))
24257
if (this.ptCurrentCell.
Y
== -1 || IsColumnOutOfBounds(lastVisibleColumnIndex))
24270
success = SetCurrentCellAddressCore(lastVisibleColumnIndex, this.ptCurrentCell.
Y
, false, false, false);
24277
success = SetCurrentCellAddressCore(lastVisibleColumnIndex, this.ptCurrentCell.
Y
, true, false, false);
24299
if (!ScrollIntoView(lastVisibleColumnIndex, this.ptCurrentCell.
Y
, true))
24303
if (this.ptCurrentCell.
Y
== -1 || IsColumnOutOfBounds(lastVisibleColumnIndex))
24309
success = SetCurrentCellAddressCore(lastVisibleColumnIndex, this.ptCurrentCell.
Y
, true, false, false);
24333
if (!ScrollIntoView(lastVisibleColumnIndex, this.ptCurrentCell.
Y
, true))
24337
if (this.ptCurrentCell.
Y
== -1 || IsColumnOutOfBounds(lastVisibleColumnIndex))
24358
int oldEdgeRowIndex = this.ptCurrentCell.
Y
;
24360
this.ptAnchorCell.
Y
, ref oldEdgeRowIndex, oldEdgeRowIndex);
24362
success = SetCurrentCellAddressCore(lastVisibleColumnIndex, this.ptCurrentCell.
Y
, false, false, false);
24374
SetSelectedCellCore(this.ptCurrentCell.X, this.ptCurrentCell.
Y
, false);
24375
SetSelectedCellCore(lastVisibleColumnIndex, this.ptCurrentCell.
Y
, true);
24377
success = SetCurrentCellAddressCore(lastVisibleColumnIndex, this.ptCurrentCell.
Y
, true, false, false);
24399
if (!ScrollIntoView(lastVisibleColumnIndex, this.ptCurrentCell.
Y
, true))
24403
if (this.ptCurrentCell.
Y
== -1 || IsColumnOutOfBounds(lastVisibleColumnIndex))
24415
SetSelectedCellCore(lastVisibleColumnIndex, this.ptCurrentCell.
Y
, true);
24417
success = SetCurrentCellAddressCore(lastVisibleColumnIndex, this.ptCurrentCell.
Y
, true, false, false);
24439
if (!ScrollIntoView(lastVisibleColumnIndex, this.ptCurrentCell.
Y
, true))
24443
if (this.ptCurrentCell.
Y
== -1 || IsColumnOutOfBounds(lastVisibleColumnIndex))
24447
success = SetCurrentCellAddressCore(lastVisibleColumnIndex, this.ptCurrentCell.
Y
, true, false, false);
24510
if (this.selectedBandIndexes[bandIndex] != this.ptCurrentCell.
Y
)
24521
if ((this.Rows.GetRowState(this.ptCurrentCell.
Y
) & DataGridViewElementStates.Selected) == 0)
24523
Debug.Assert(!this.selectedBandIndexes.Contains(this.ptCurrentCell.
Y
));
24524
SetSelectedRowCore(this.ptCurrentCell.
Y
, true);
24751
if (this.ptCurrentCell.
Y
!= -1)
24753
previousVisibleRowIndex = this.Rows.GetPreviousRow(this.ptCurrentCell.
Y
, DataGridViewElementStates.Visible);
24797
Debug.Assert(this.ptAnchorCell.
Y
>= 0);
24800
int oldEdgeRowIndex = this.ptCurrentCell.
Y
;
24802
this.ptAnchorCell.
Y
, ref oldEdgeRowIndex, firstVisibleRowIndex);
24889
Debug.Assert(this.ptAnchorCell.
Y
>= 0);
24890
if (this.ptAnchorCell.
Y
== -1)
24896
int oldEdgeRowIndex = this.ptCurrentCell.
Y
;
24898
this.ptAnchorCell.
Y
, ref oldEdgeRowIndex, previousVisibleRowIndex);
24979
Debug.Assert(this.ptAnchorCell.
Y
>= 0);
24980
SelectRowRange(firstVisibleRowIndex, this.ptAnchorCell.
Y
, true);
24994
SetSelectedRowCore(this.ptCurrentCell.
Y
, false);
25067
if (this.ptAnchorCell.
Y
== -1)
25071
if (this.ptAnchorCell.
Y
>= previousVisibleRowIndex)
25073
SelectRowRange(previousVisibleRowIndex, this.ptAnchorCell.
Y
, true);
25077
SelectRowRange(this.ptAnchorCell.
Y
, previousVisibleRowIndex, true);
25157
Debug.Assert(this.ptAnchorCell.
Y
>= 0);
25158
if ((this.Rows.GetRowState(this.ptCurrentCell.
Y
) & DataGridViewElementStates.Selected) != 0)
25161
SelectRowRange(firstVisibleRowIndex, this.ptAnchorCell.
Y
, true);
25168
int oldEdgeRowIndex = this.ptCurrentCell.
Y
;
25170
this.ptAnchorCell.
Y
, ref oldEdgeRowIndex, firstVisibleRowIndex);
25185
if ((this.Rows.GetRowState(this.ptCurrentCell.
Y
) & DataGridViewElementStates.Selected) != 0)
25187
SetSelectedRowCore(this.ptCurrentCell.
Y
, false);
25192
SetSelectedCellCore(this.ptCurrentCell.X, this.ptCurrentCell.
Y
, false);
25225
if ((this.Rows.GetRowState(this.ptCurrentCell.
Y
) & DataGridViewElementStates.Selected) != 0)
25271
if ((this.Rows.GetRowState(this.ptCurrentCell.
Y
) & DataGridViewElementStates.Selected) != 0)
25276
if (this.ptAnchorCell.
Y
== -1)
25280
if (this.ptAnchorCell.
Y
>= previousVisibleRowIndex)
25282
SelectRowRange(previousVisibleRowIndex, this.ptAnchorCell.
Y
, true);
25286
SelectRowRange(this.ptAnchorCell.
Y
, previousVisibleRowIndex, true);
25297
int oldEdgeRowIndex = this.ptCurrentCell.
Y
;
25298
if (this.ptAnchorCell.
Y
== -1)
25303
this.ptAnchorCell.
Y
, ref oldEdgeRowIndex, previousVisibleRowIndex);
25344
if ((this.Rows.GetRowState(this.ptCurrentCell.
Y
) & DataGridViewElementStates.Selected) != 0)
25445
if (!IsSharedCellReadOnly(dataGridViewCell, this.ptCurrentCell.
Y
) &&
25449
bool success = ScrollIntoView(this.ptCurrentCell.X, this.ptCurrentCell.
Y
, false);
25463
object nullValue = dataGridViewCurrentCell.GetInheritedStyle(null, this.ptCurrentCell.
Y
, false).NullValue;
25481
InvalidateCellPrivate(this.ptCurrentCell.X, this.ptCurrentCell.
Y
);
25516
DataGridViewCellParsingEventArgs dgvcpe = OnCellParsing(this.ptCurrentCell.
Y
,
25528
dataGridViewCurrentCell = this.Rows[this.ptCurrentCell.
Y
].Cells[this.ptCurrentCell.X]; // unsharing the row before pushing the new value
25530
return dataGridViewCurrentCell.SetValueInternal(this.ptCurrentCell.
Y
, dgvcpe.Value);
25549
dataGridViewCurrentCell = this.Rows[this.ptCurrentCell.
Y
].Cells[this.ptCurrentCell.X]; // unsharing the row before pushing the new value
25551
return dataGridViewCurrentCell.SetValueInternal(this.ptCurrentCell.
Y
, val);
25639
Debug.Assert(this.ptCurrentCell.
Y
!= -1);
25641
DataGridViewCellStyle dataGridViewCellStyle = dataGridViewCurrentCell.GetInheritedStyle(null, this.ptCurrentCell.
Y
, true);
26135
forCurrentCellChange && (this.ptCurrentCell.X != columnIndex || this.ptCurrentCell.
Y
!= rowIndex),
26136
this.ptCurrentCell.
Y
!= rowIndex /*forCurrentRowChange*/))
26152
forCurrentCellChange && (this.ptCurrentCell.X != columnIndex || this.ptCurrentCell.
Y
!= rowIndex),
26153
this.ptCurrentCell.
Y
!= rowIndex /*forCurrentRowChange*/))
26165
forCurrentCellChange && (this.ptCurrentCell.X != columnIndex || this.ptCurrentCell.
Y
!= rowIndex),
26166
this.ptCurrentCell.
Y
!= rowIndex /*forCurrentRowChange*/))
26319
(this.ptCurrentCell.X != columnIndex || this.ptCurrentCell.
Y
!= rowIndex))
26380
forCurrentCellChange && (this.ptCurrentCell.X != columnIndex || this.ptCurrentCell.
Y
!= rowIndex),
26381
this.ptCurrentCell.
Y
!= rowIndex /*forCurrentRowChange*/))
26409
forCurrentCellChange && (this.ptCurrentCell.X != columnIndex || this.ptCurrentCell.
Y
!= rowIndex),
26410
this.ptCurrentCell.
Y
!= rowIndex /*forCurrentRowChange*/))
26456
(this.Rows.GetRowState(this.ptCurrentCell.
Y
) & DataGridViewElementStates.Frozen) == 0)
26867
if (this.ptCurrentCell.X != columnIndex || this.ptCurrentCell.
Y
!= rowIndex)
26887
int oldCurrentCellY = this.ptCurrentCell.
Y
;
26927
Debug.Assert(oldCurrentCellY == this.ptCurrentCell.
Y
);
27019
OnCellEnter(ref dataGridViewCellTmp, this.ptCurrentCell.X, this.ptCurrentCell.
Y
);
27027
if (oldCurrentCellY != this.ptCurrentCell.
Y
&& this.RowHeadersVisible && oldCurrentCellY < this.Rows.Count)
27032
InvalidateCellPrivate(this.ptCurrentCell.X, this.ptCurrentCell.
Y
);
27033
if (this.RowHeadersVisible && oldCurrentCellY != this.ptCurrentCell.
Y
)
27035
InvalidateCellPrivate(-1, this.ptCurrentCell.
Y
);
27056
AccessibilityNotifyCurrentCellChanged(new Point(this.ptCurrentCell.X, this.ptCurrentCell.
Y
));
27083
int oldCurrentCellY = this.ptCurrentCell.
Y
;
27119
Debug.Assert(oldCurrentCellY == this.ptCurrentCell.
Y
);
28236
this.ptCurrentCellCache.Y = this.ptCurrentCell.
Y
;
28296
if (!IsInnerCellOutOfBounds(this.ptCurrentCellCache.X, this.ptCurrentCellCache.
Y
))
28299
this.ptCurrentCellCache.
Y
,
28353
if (rowIndex1 == this.ptCurrentCellCache.
Y
)
28357
else if (rowIndex2 == this.ptCurrentCellCache.
Y
)
28564
if (this.ptCurrentCell.
Y
!= -1)
28566
nextVisibleRowIndex = this.Rows.GetNextRow(this.ptCurrentCell.
Y
, DataGridViewElementStates.Visible);
28586
targetRowIndex = this.ptCurrentCell.
Y
;
28650
if (targetRowIndex != this.ptCurrentCell.
Y
|| this.MultiSelect)
28722
if (this.ptCurrentCell.
Y
!= -1)
28724
previousVisibleRowIndex = this.Rows.GetPreviousRow(this.ptCurrentCell.
Y
, DataGridViewElementStates.Visible);
28752
targetRowIndex = this.ptCurrentCell.
Y
;
28816
if (targetRowIndex != this.ptCurrentCell.
Y
|| this.MultiSelect)
29144
PositionEditingControl(rowIndex == -1 || this.ptCurrentCell.
Y
!= rowIndex, true, false);
29200
htiToUse = HitTest(ptMouse.X, ptMouse.
Y
);
29207
if (this.ptMouseEnteredCell.X != htiToUse.col || this.ptMouseEnteredCell.
Y
!= htiToUse.row)
29212
this.ptMouseEnteredCell.
Y
>= -1 &&
29213
this.ptMouseEnteredCell.
Y
< this.Rows.Count)
29215
dgvce = new DataGridViewCellEventArgs(this.ptMouseEnteredCell.X, this.ptMouseEnteredCell.
Y
);
29236
this.ptMouseEnteredCell.
Y
>= -1 &&
29237
this.ptMouseEnteredCell.
Y
< this.Rows.Count)
29239
DataGridViewCellEventArgs dgvce = new DataGridViewCellEventArgs(this.ptMouseEnteredCell.X, this.ptMouseEnteredCell.
Y
);
29756
HitTestInfo hti = HitTest(ptMouse.X, ptMouse.
Y
);
29757
int xOffset, yOffset, mouseX = ptMouse.X, mouseY = ptMouse.
Y
;
29768
hti = HitTest(mouseX, ptMouse.
Y
- yOffset - normOffset);
29778
hti = HitTest(ptMouse.X - xOffset - (xOffset / Math.Abs(xOffset)), ptMouse.
Y
- yOffset - normOffset);
29782
hti = HitTest(mouseX, ptMouse.
Y
- yOffset - normOffset);
29867
HitTestInfo hti = HitTest(client.X, client.
Y
);
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (3)
823
else if (this.DataGridView.MouseEnteredCellAddress.
Y
== rowIndex &&
905
if (this.DataGridView.CurrentCellAddress.
Y
== rowIndex)
1051
if (this.DataGridView.CurrentCellAddress.
Y
== rowIndex)
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (2)
604
if (ptCurrentCell.X == e.ColumnIndex && ptCurrentCell.
Y
== e.RowIndex && e.Button == MouseButtons.Left)
704
bool cellCurrent = ptCurrentCell.X == this.ColumnIndex && ptCurrentCell.
Y
== rowIndex;
winforms\Managed\System\WinForms\DataGridViewTopLeftHeaderCell.cs (1)
294
else if (this.DataGridView.MouseEnteredCellAddress.
Y
== rowIndex && this.DataGridView.MouseEnteredCellAddress.X == this.ColumnIndex)
winforms\Managed\System\WinForms\ErrorProvider.cs (1)
1039
mirrordc.ViewportOrigin = new Point(mirrordcOrigin.X + originOffset, mirrordcOrigin.
Y
);
winforms\Managed\System\WinForms\Form.cs (4)
1198
SetDesktopLocation(value.X, value.
Y
);
1780
Location.
Y
,
4467
if (p.
Y
< screenRect.Y)
4469
else if (p.
Y
+ s.Height > screenRect.Y + screenRect.Height)
winforms\Managed\System\WinForms\Help.cs (1)
169
pop.pt = new NativeMethods.POINT(location.X, location.
Y
);
winforms\Managed\System\WinForms\HtmlDocument.cs (1)
506
UnsafeNativeMethods.IHTMLElement iHTMLElement = this.NativeHtmlDocument2.ElementFromPoint(point.X, point.
Y
);
winforms\Managed\System\WinForms\HtmlWindow.cs (2)
326
this.NativeHtmlWindow.MoveTo(point.X, point.
Y
);
452
this.NativeHtmlWindow.ScrollTo(point.X, point.
Y
);
winforms\Managed\System\WinForms\ImageList.cs (1)
607
Draw(g, pt.X, pt.
Y
, index);
winforms\Managed\System\WinForms\Layout\FlowLayout.cs (1)
446
pt.Offset(ptScroll.
Y
, 0);
winforms\Managed\System\WinForms\Layout\LayoutUtils.cs (1)
377
point.X = point.
Y
;
winforms\Managed\System\WinForms\LinkLabel.cs (1)
2678
Link hit = ((LinkLabel)Owner).PointInLink(p.X, p.
Y
);
winforms\Managed\System\WinForms\ListBox.cs (3)
1553
return IndexFromPoint(p.X, p.
Y
);
2417
if (captured && UnsafeNativeMethods.WindowFromPoint(pt.X, pt.
Y
) == Handle) {
2464
if (rCaptured && UnsafeNativeMethods.WindowFromPoint(rpt.X, rpt.
Y
) == Handle) {
winforms\Managed\System\WinForms\ListView.cs (11)
3100
return FindNearestItem(dir, point.X, point.
Y
);
3179
lvFindInfo.ptY = pt.
Y
;
3535
return HitTest(point.X, point.
Y
);
4109
item = GetItemAt(pos.X, pos.
Y
);
4770
int scrollY = GetItemPosition(toLVItem).
Y
- GetItemPosition(fromLVItem).
Y
;
5367
lvhi.pt_y = pos.
Y
;
5397
lvhi.pt_y = pos.
Y
;
5790
lvhi.pt_y = pos.
Y
;
5979
OnMouseClick(new MouseEventArgs(button, 1, pos.X, pos.
Y
, 0));
5983
OnMouseUp(new MouseEventArgs(button, 1, pos.X, pos.
Y
, 0));
winforms\Managed\System\WinForms\ListViewInsertionMark.cs (1)
124
point.y = pt.
Y
;
winforms\Managed\System\WinForms\ListViewItem.cs (1)
702
listView.SetItemPosition(Index, position.X, position.
Y
);
winforms\Managed\System\WinForms\MonthCalendar.cs (1)
1603
return HitTest(point.X, point.
Y
);
winforms\Managed\System\WinForms\Printing\PrintPreviewControl.cs (21)
580
Math.Max(0, (Size.Height - virtualPixels.
Y
) / 2));
582
offset.Y -= Position.
Y
;
586
int borderPixelsY = PhysicalToPixels(border, screendpi.
Y
);
615
int y = offset.
Y
+ borderPixelsY * (row + 1) + lastImageSize.
Y
;
619
maxImageHeight = Math.Max(maxImageHeight, imagePixels.
Y
);
621
pageRenderArea[imageIndex - StartPage] = new Rectangle(x, y, imagePixels.X, imagePixels.
Y
);
675
PhysicalToPixels(physical.
Y
, dpi.
Y
));
680
PhysicalToPixels(physicalSize.Height, dpi.
Y
));
689
PixelsToPhysical(pixels.
Y
, dpi.
Y
));
694
PixelsToPhysical(pixels.Height, dpi.
Y
));
744
position.Y = Math.Min(position.
Y
, virtualSize.Height - Height);
746
if (position.
Y
< 0) position.Y = 0;
752
current.
Y
- position.
Y
,
757
UnsafeNativeMethods.SetScrollPos(new HandleRef(this, Handle), NativeMethods.SB_VERT, position.
Y
, true);
795
int pos = locPos.
Y
;
864
pos = locPos.
Y
;
877
pos = locPos.
Y
;
winforms\Managed\System\WinForms\PropertyGrid.cs (17)
2285
if (y >= (locDoc.
Y
- cyDivider) &&
2286
y <= (locDoc.
Y
+ 1)) {
2294
if (y >= (locDoc.
Y
- cyDivider) &&
2295
y <= (locDoc.
Y
+1)) {
2306
int gridTop = gridView.Location.
Y
;
2322
int high = gridView.Location.
Y
+ MIN_GRID_HEIGHT;
2791
this.OnMouseMove(new MouseEventArgs(me.Button, me.Clicks, newPt.X, newPt.
Y
, me.Delta));
2805
this.OnMouseDown(new MouseEventArgs(me.Button, me.Clicks, newPt.X, newPt.
Y
, me.Delta));
2998
int oldY = gridView.Location.
Y
;
3023
int maxSpace = endSize - (gridView.Location.
Y
+ MIN_GRID_HEIGHT);
3095
endSize = doccomment.Location.
Y
- cyDivider;
3125
endSize = hotcommands.Location.
Y
- cyDivider;
3128
gridView.Size = new Size(Size.Width, endSize - gridView.Location.
Y
);
3297
pevent.Graphics.FillRectangle(background, new Rectangle(0,0,width, psheetLoc.
Y
));
3299
int yLast = psheetLoc.
Y
+ gridView.Size.Height;
3303
pevent.Graphics.FillRectangle(background, new Rectangle(0, yLast, width, hotcommands.Location.
Y
- yLast));
3309
pevent.Graphics.FillRectangle(background, new Rectangle(0, yLast, width, doccomment.Location.
Y
- yLast));
winforms\Managed\System\WinForms\PropertyGridInternal\GridErrorDlg.cs (2)
331
int y = detailsBtn.Location.
Y
+ detailsBtn.Height + detailsBtn.Margin.Bottom;
337
y += parent.Location.
Y
;
winforms\Managed\System\WinForms\PropertyGridInternal\HotCommands.cs (1)
222
LinkLabel.Link link = Label.Links.Add(links[i].X, links[i].
Y
, verbs[i]);
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (37)
558
return new Point(pt.X + (rect.Width / 2), pt.
Y
+ (rect.Height / 2));
845
Debug.WriteLineIf(GridViewDebugPaint.TraceVerbose, "Adjusting paint origin to (" + newOrigin.X.ToString(CultureInfo.InvariantCulture) + "," + newOrigin.
Y
.ToString(CultureInfo.InvariantCulture) + ")");
848
g.TranslateTransform(newOrigin.X, newOrigin.
Y
);
849
r.Offset(-newOrigin.X, -newOrigin.
Y
);
1283
cr.Offset(-newOrigin.X, -newOrigin.
Y
);
1326
cr.Offset(-newOrigin.X, -newOrigin.
Y
);
1644
if (rectScreen.Y + rectScreen.Height < (size.Height + loc.
Y
+ Edit.Height)) {
1655
if (loc.X == 0 && loc.
Y
== 0) {
1663
SafeNativeMethods.SetWindowPos(new HandleRef(this.dropDownHolder, this.dropDownHolder.Handle), NativeMethods.NullHandleRef, loc.X, loc.
Y
, size.Width, size.Height, flags);
1665
dropDownHolder.SetBounds(loc.X, loc.
Y
, size.Width, size.Height);
1723
if (rectScreen.Y + rectScreen.Height < (size.Height + loc.
Y
+ Edit.Height)) {
1736
dropDownHolder.SetBounds(loc.X, loc.
Y
, size.Width, size.Height);
1928
pt.Y = (y-ptOurLocation.
Y
)/(1+RowHeight);
2155
rect.Y = (row)*(RowHeight+1)+1+ptOurLocation.
Y
;
2814
Math.Abs(screenPoint.
Y
- rowSelectPos.
Y
) < SystemInformation.DoubleClickSize.Height) {
3196
GridEntry gridEntry = GetGridEntryFromRow(pos.
Y
);
3200
Rectangle r = GetRectangle(pos.
Y
, ROWLABEL);
3242
rowMoveCur = pt.
Y
;
3262
Rectangle itemRect = GetRectangle(pt.
Y
, pt.X);
3464
startRow = Math.Max(0,posStart.
Y
);
3468
endRow = posEnd.
Y
;
3508
g.DrawLine(splitterPen, labelWidth,loc.
Y
,labelWidth, (cPropsVisible)*(RowHeight+1)+loc.
Y
);
3528
cHeightCurRow = (i)*(RowHeight+1) + loc.
Y
;
3549
cHeightCurRow = (cPropsVisible)*(RowHeight+1) + loc.
Y
;
3643
Edit.SendMessage(NativeMethods.WM_LBUTTONDOWN, 0, (int)(editPoint.
Y
<< 16 | (editPoint.X & 0xFFFF)));
3644
Edit.SendMessage(NativeMethods.WM_LBUTTONUP, 0, (int)(editPoint.
Y
<< 16 | (editPoint.X & 0xFFFF)));
5282
mouseLoc = FindPosition(mouseLoc.X, mouseLoc.
Y
);
5288
GridEntry curEntry = GetGridEntryFromRow(mouseLoc.
Y
);
5295
Rectangle itemRect = GetRectangle(mouseLoc.
Y
, mouseLoc.X);
5300
tipPt = curEntry.GetLabelToolTipLocation(mouseLoc.X - itemRect.X, mouseLoc.
Y
- itemRect.Y);
5838
newBounds.Height = Math.Max(MinDropDownSize.Height, dragBaseRect.Height + (dragPoint.
Y
- dragStart.
Y
));
5847
int delta = dragPoint.
Y
- dragStart.
Y
;
7746
GridEntry gridEntry = ((PropertyGridView)Owner).GetGridEntryFromRow(pos.
Y
);
winforms\Managed\System\WinForms\RadioButton.cs (1)
574
if (UnsafeNativeMethods.WindowFromPoint(pt.X, pt.
Y
) == Handle) {
winforms\Managed\System\WinForms\RichTextBox.cs (3)
2323
NativeMethods.POINT wpt = new NativeMethods.POINT(pt.X, pt.
Y
);
3911
Control.MousePosition.
Y
,
4000
Control.MousePosition.
Y
,
winforms\Managed\System\WinForms\Screen.cs (1)
309
NativeMethods.POINTSTRUCT pt = new NativeMethods.POINTSTRUCT(point.X, point.
Y
);
winforms\Managed\System\WinForms\ScrollableControl.cs (4)
191
SetDisplayRectLocation(-value.X, -value.
Y
);
924
SetDisplayRectLocation(scrollLocation.X, scrollLocation.
Y
);
983
yCalc += activeControl.AutoScrollOffset.
Y
;
1191
if (pt.X != 0 || pt.
Y
!= 0) {
winforms\Managed\System\WinForms\SplitContainer.cs (5)
1537
splitterRect.Y = this.Location.
Y
+ SplitterDistanceInternal;
1573
r.Y = panel1.Location.
Y
+ splitSize;
1656
delta = y - anchor.
Y
;
1727
splitterRect.Y = this.Location.
Y
;
1734
splitterRect.Y = this.Location.
Y
+ SplitterDistanceInternal;
winforms\Managed\System\WinForms\Splitter.cs (2)
842
delta = y - anchor.
Y
;
1039
int size = GetSplitSize(x-Left+anchor.X, y-Top+anchor.
Y
);
winforms\Managed\System\WinForms\StatusBar.cs (1)
1094
button, clicks, pt.X, pt.
Y
);
winforms\Managed\System\WinForms\TabControl.cs (3)
441
r.Y -= p.
Y
;
644
if ( value.X < 0 || value.
Y
< 0 )
1348
SendMessage(NativeMethods.TCM_SETPADDING, 0, NativeMethods.Util.MAKELPARAM(padding.X, padding.
Y
));
winforms\Managed\System\WinForms\TextBoxBase.cs (2)
1687
if (!ValidationCancelled && UnsafeNativeMethods.WindowFromPoint(pt.X, pt.
Y
) == Handle) {
1755
int longPoint = NativeMethods.Util.MAKELONG(pt.X, pt.
Y
);
winforms\Managed\System\WinForms\ToolBar.cs (1)
1731
int y = this.Location.
Y
+ (this.ButtonSize.Height / 2);
winforms\Managed\System\WinForms\ToolStrip.cs (10)
2376
int adjacentSide = otherItemMidLocation.
Y
- midPointOfCurrent.
Y
;
2795
if (location.X != x || location.
Y
!= y) {
2811
if (transparentRegion != null && (location.X != x || location.
Y
!= y)) {
3501
mea = new MouseEventArgs(mea.Button, mea.Clicks,itemRelativePoint.X, itemRelativePoint.
Y
, mea.Delta);
3564
mea = new MouseEventArgs(mea.Button, mea.Clicks,itemRelativePoint.X, itemRelativePoint.
Y
, mea.Delta);
3611
mea = new MouseEventArgs(mea.Button, mea.Clicks,itemRelativePoint.X, itemRelativePoint.
Y
, mea.Delta);
4619
cursorLocation.Y += Cursor.Size.Height - currentCursor.HotSpot.
Y
;
4720
IntPtr hwndClicked = UnsafeNativeMethods.ChildWindowFromPointEx(new HandleRef(null, Handle), pt.X, pt.
Y
,(int)(GetChildAtPointSkip.Invisible | GetChildAtPointSkip.Disabled | GetChildAtPointSkip.Transparent));
5562
RelativeLocation relativeLocation = (check.
Y
<= (orig.Top + heightUnit)) ?
winforms\Managed\System\WinForms\ToolStripComboBox.cs (3)
741
new Point(middle.X - FlatComboAdapter.Offset2Pixels, middle.
Y
- 1),
742
new Point(middle.X + FlatComboAdapter.Offset2Pixels + 1, middle.
Y
- 1),
743
new Point(middle.X, middle.
Y
+ FlatComboAdapter.Offset2Pixels)
winforms\Managed\System\WinForms\ToolStripDropDown.cs (2)
1265
dropDownBounds.Location = new Point(start.X + offset.X, start.
Y
+ offset.
Y
);
winforms\Managed\System\WinForms\ToolStripDropDownItem.cs (2)
342
dropDownBounds.Location = new Point(itemScreenLocation.X + offset.X, itemScreenLocation.
Y
+ offset.
Y
);
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (4)
417
checkRectangle = LayoutUtils.Align(maxCheckSize, new Rectangle(nextPoint.X, nextPoint.
Y
, maxCheckSize.Width, maxItemSize.Height), ContentAlignment.MiddleCenter);
422
imageRectangle = LayoutUtils.Align(maxImageSize, new Rectangle(nextPoint.X, nextPoint.
Y
, maxImageSize.Width, maxItemSize.Height), ContentAlignment.MiddleCenter);
433
checkRectangle = LayoutUtils.Align(maxCheckSize, new Rectangle(nextPoint.X, nextPoint.
Y
, checkAndImageMarginWidth, maxItemSize.Height), ContentAlignment.MiddleCenter);
452
checkRectangle = LayoutUtils.Align(LayoutUtils.UnionSizes(maxCheckSize,maxImageSize), new Rectangle(nextPoint.X, nextPoint.
Y
, checkAndImageMarginWidth-1, maxItemSize.Height), ContentAlignment.MiddleCenter);
winforms\Managed\System\WinForms\ToolStripGrip.cs (2)
167
int deltaY = currentLocation.
Y
- startLocation.
Y
;
winforms\Managed\System\WinForms\ToolStripItem.cs (3)
3868
toPoint.Y += currentToolStripItemLocation.
Y
;
3877
fromPoint.Y += currentToolStripItemLocation.
Y
;
3889
fromPoint.Y -= currentToolStripItemLocation.
Y
;
winforms\Managed\System\WinForms\ToolStripPanel.cs (5)
690
controlLocation = new Point(this.Width - controlArray[i].Right, controlLocation.
Y
);
1002
if (clientLocation.X < 0 || clientLocation.
Y
< 0) {
1056
index = (clientLocation.
Y
<= this.Padding.Left) ? 0 : index;
1083
Point endLocation = (Orientation == Orientation.Horizontal) ? new Point (clientLocation.X, row.Bounds.Y) : new Point (row.Bounds.X, clientLocation.
Y
);
1146
cursorLoc.Y = Cursor.Position.
Y
;
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (6)
1560
int deltaY = clientEndLocation.
Y
- clientStartLocation.
Y
;
1824
if (cell.Bounds.Y >= locationToDrag.
Y
) {
1851
requiredSpace += locationToDrag.
Y
;
1897
lastCellMargin.Top = Math.Max(0,locationToDrag.
Y
- nextCell.Bounds.Bottom);
1937
cellMargin.Top = Math.Max(0,locationToDrag.
Y
-Row.Margin.Top);
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (27)
195
middle.
Y
- ToolStripRenderer.Offset2Y,
197
middle.
Y
+ ToolStripRenderer.Offset2Y);
200
middle.
Y
- ToolStripRenderer.Offset2Y + 1,
202
middle.
Y
+ ToolStripRenderer.Offset2Y + 1);
750
Rectangle bottomLeftParentVerticalPixels = new Rectangle(bottomLeft.X, bottomLeft.
Y
- 1, 1, 2);
753
Rectangle bottomRightHorizontalPixels = new Rectangle(bottomRight.X - 1, bottomRight.
Y
, 2, 1);
754
Rectangle bottomRightVerticalPixels = new Rectangle(bottomRight.X, bottomRight.
Y
- 1, 1, 2);
760
topRightHorizontalPixels = new Rectangle(topRight.X - 1, topRight.
Y
, 1, 1);
761
topRightVerticalPixels = new Rectangle(topRight.X, topRight.
Y
, 1, 2);
764
topRightHorizontalPixels = new Rectangle(topRight.X - 2, topRight.
Y
, 2, 1);
765
topRightVerticalPixels = new Rectangle(topRight.X, topRight.
Y
, 1, 3);
986
b.TranslateTransform(parent.Width - control.Location.X, parent.Height -control.Location.
Y
);
1129
g.FillRectangle(b, top1.X, top1.
Y
, 1, 1);
1130
g.FillRectangle(b, top2.X, top2.
Y
, 1, 1);
1211
Rectangle otherBottom = new Rectangle(bottomLeft.X, bottomLeft.
Y
- 2, 1, 1);
1453
new Point(middle.X - ToolStripRenderer.Offset2X, middle.
Y
+ 1),
1454
new Point(middle.X + ToolStripRenderer.Offset2X + 1, middle.
Y
+ 1),
1455
new Point(middle.X, middle.
Y
- ToolStripRenderer.Offset2Y)
1461
new Point(middle.X + ToolStripRenderer.Offset2X, middle.
Y
- ToolStripRenderer.Offset2Y - 1),
1462
new Point(middle.X + ToolStripRenderer.Offset2X, middle.
Y
+ ToolStripRenderer.Offset2Y + 1),
1463
new Point(middle.X - 1, middle.
Y
)
1469
new Point(middle.X - ToolStripRenderer.Offset2X, middle.
Y
- ToolStripRenderer.Offset2Y - 1),
1470
new Point(middle.X - ToolStripRenderer.Offset2X, middle.
Y
+ ToolStripRenderer.Offset2Y + 1),
1471
new Point(middle.X + 1, middle.
Y
)
1478
new Point(middle.X - ToolStripRenderer.Offset2X, middle.
Y
- 1),
1479
new Point(middle.X + ToolStripRenderer.Offset2X + 1, middle.
Y
- 1),
1480
new Point(middle.X, middle.
Y
+ ToolStripRenderer.Offset2Y)
winforms\Managed\System\WinForms\ToolStripRenderer.cs (12)
733
new Point(middle.X - Offset2X, middle.
Y
+ 1),
734
new Point(middle.X + Offset2X + 1, middle.
Y
+ 1),
735
new Point(middle.X, middle.
Y
- Offset2Y)};
740
new Point(middle.X + Offset2X, middle.
Y
- offset4Y),
741
new Point(middle.X + Offset2X, middle.
Y
+ offset4Y),
742
new Point(middle.X - horizontalOffset, middle.
Y
)};
747
new Point(middle.X - Offset2X, middle.
Y
- offset4Y),
748
new Point(middle.X - Offset2X, middle.
Y
+ offset4Y),
749
new Point(middle.X + horizontalOffset, middle.
Y
)};
755
new Point(middle.X - Offset2X, middle.
Y
- 1),
756
new Point(middle.X + Offset2X + 1, middle.
Y
- 1),
757
new Point(middle.X, middle.
Y
+ Offset2Y) };
winforms\Managed\System\WinForms\ToolTip.cs (18)
1259
IntPtr hwndControl = UnsafeNativeMethods.WindowFromPoint(screenCoords.X, screenCoords.
Y
);
1284
IntPtr found = UnsafeNativeMethods.ChildWindowFromPointEx(new HandleRef(null, baseHwnd), pt.X, pt.
Y
, NativeMethods.CWP_SKIPINVISIBLE);
1567
cursorLocation.
Y
< r.top || cursorLocation.
Y
> r.bottom ) {
1580
SetTrackPosition(p.X, p.
Y
);
1662
int pointY = r.top + point.
Y
;
1689
int pointY = r.top + point.
Y
;
1767
pointY = optimalPoint.
Y
;
2169
if (moveToLocation.
Y
+ tipSize.Height> screen.WorkingArea.Bottom) {
2175
moveToLocation.X, moveToLocation.
Y
, tipSize.Width, tipSize.Height,
2253
cursorLocation.
Y
>= r.top && cursorLocation.
Y
<= r.bottom) {
2450
wp->y = cursorPos.
Y
;
2451
if (wp->y + wp->cy + currentCursor.Size.Height - currentCursor.HotSpot.
Y
> screen.WorkingArea.Bottom) {
2452
wp->y = cursorPos.
Y
- wp->cy;
2455
wp->y = cursorPos.
Y
+ currentCursor.Size.Height - currentCursor.HotSpot.
Y
;
2474
wp->y = tt.Position.
Y
;
winforms\Managed\System\WinForms\TreeView.cs (10)
1776
return HitTest(pt.X, pt.
Y
);
1824
return GetNodeAt(pt.X, pt.
Y
);
2166
tvhip.pt_y = pos.
Y
;
2907
tvhip.pt_y = pos.
Y
;
2942
tvhip.pt_y = pos.
Y
;
3021
tvhip.pt_y = pos.
Y
;
3035
OnNodeMouseClick(new TreeNodeMouseClickEventArgs(NodeFromHandle(hnode), button, 1, pos.X, pos.
Y
));
3036
OnClick(new MouseEventArgs(button, 1, pos.X, pos.
Y
, 0));
3037
OnMouseClick(new MouseEventArgs(button, 1, pos.X, pos.
Y
, 0));
3060
OnMouseUp(new MouseEventArgs(button, 1, pos.X, pos.
Y
, 0));
winforms\Managed\System\WinForms\UpDownBase.cs (3)
966
if (UnsafeNativeMethods.WindowFromPoint(pt.X, pt.
Y
) == Handle && !ValidationCancelled) {
1311
if (!parent.ValidationCancelled && UnsafeNativeMethods.WindowFromPoint(pt.X, pt.
Y
) == Handle) {
1657
if (!parent.ValidationCancelled && UnsafeNativeMethods.WindowFromPoint(pt.X, pt.
Y
) == Handle) {
winforms\Managed\System\WinForms\VisualStyles\VisualStyleRenderer.cs (2)
944
NativeMethods.POINTSTRUCT point = new NativeMethods.POINTSTRUCT(pt.X, pt.
Y
);
987
NativeMethods.POINTSTRUCT point = new NativeMethods.POINTSTRUCT(pt.X, pt.
Y
);
winforms\Managed\System\WinForms\WebBrowserBase.cs (1)
852
Bounds = new Rectangle(location.X, location.
Y
, extent.Width, extent.Height);
winforms\Managed\System\WinForms\WinFormsUtils.cs (1)
330
NativeMethods.POINT pt = new NativeMethods.POINT(point.X, point.
Y
);
System.Windows.Forms.DataVisualization (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)
1424
if (stateDesigner.Location.
Y
< minimumY)
1426
deltaY = Math.Max(deltaY, minimumY - stateDesigner.Location.
Y
);
1434
freeSpaceHeight = Math.Min(freeSpaceHeight, stateDesigner.Location.
Y
- minimumY);
1453
if (stateDesigner.Location.
Y
< minimumY)
1454
stateDesigner.Location = new Point(location.X, location.
Y
+ deltaY);
1456
stateDesigner.Location = new Point(location.X, location.
Y
+ moveBounds.Height + DefaultStateDesignerAutoLayoutDistance - freeSpaceHeight);
1503
bounds.Offset(Separator.Width - this.Location.X, Separator.Height - this.Location.
Y
);
1651
if (snapPoint.
Y
<= eventHandlersLayoutBottom)
Designers\StateDesigner.Layouts.cs (14)
221
Point offset = new Point(_location.X - newLocation.X, _location.
Y
- newLocation.
Y
);
225
Point newChildDesignerLocation = new Point(currentLocation.X - offset.X, currentLocation.
Y
- offset.
Y
);
351
Layout layout = GetLayoutAt(point.X, point.
Y
);
435
Point offset = new Point(this.Location.X - newLocation.X, this.Location.
Y
- newLocation.
Y
);
436
_textLocation = new Point(_textLocation.X - offset.X, _textLocation.
Y
- offset.
Y
);
437
_imageLocation = new Point(_imageLocation.X - offset.X, _imageLocation.
Y
- offset.
Y
);
687
int y = Location.
Y
+ EventDrivenPadding;
810
layout.Location.
Y
,
1052
_textLayout.Location = new Point(xPos, this.Location.
Y
+ margin.Height);
Designers\StateDesignerConnector.cs (1)
229
Rectangle bounds = new Rectangle(point.X - size.Width / 2, point.
Y
- size.Height / 2, size.Width, size.Height);
Designers\StateMachineDesignerPaint.cs (42)
86
if ((p2.X != p3.X) && (p2.
Y
!= p3.
Y
))
87
optimized.Add(new Point(p3.X, p2.
Y
));
95
(p1.
Y
== p2.
Y
) && (p2.
Y
== p3.
Y
))
99
if ((p2.X != p3.X) && (p2.
Y
!= p3.
Y
))
100
optimized.Add(new Point(p3.X, p2.
Y
));
121
int capSize = (startSegment[0].
Y
== startSegment[1].
Y
) ? connectorCapSize.Width : connectorCapSize.Height;
128
bool fill = (startCap != null && (((int)startConnectorCap % 2) == 0) && (startSegment[0].X == startSegment[1].X || startSegment[0].
Y
== startSegment[1].
Y
));
132
graphics.TranslateTransform(startSegment[0].X, startSegment[0].
Y
);
133
if (startSegment[0].
Y
== startSegment[1].
Y
)
136
graphics.RotateTransform((startSegment[0].
Y
< startSegment[1].
Y
) ? 180.0f : 0.0f);
148
int capSize = (endSegment[0].
Y
== endSegment[1].
Y
) ? connectorCapSize.Width : connectorCapSize.Height;
155
bool fill = (endCap != null && (((int)endConnectorCap % 2) == 0) && (endSegment[0].X == endSegment[1].X || endSegment[0].
Y
== endSegment[1].
Y
));
159
graphics.TranslateTransform(endSegment[1].X, endSegment[1].
Y
);
160
if (endSegment[0].
Y
== endSegment[1].
Y
)
163
graphics.RotateTransform((endSegment[0].
Y
< endSegment[1].
Y
) ? 0.0f : 180.0f);
270
return Math.Abs(p1.
Y
- p2.
Y
);
322
path.AddArc(midPoint.X, midPoint.
Y
, diameter, diameter, 270f, -90f);
324
path.AddArc(midPoint.X, midPoint.
Y
- diameter, diameter, diameter, 90f, 90f);
328
path.AddArc(midPoint.X - diameter, midPoint.
Y
, diameter, diameter, 270f, 90f);
330
path.AddArc(midPoint.X - diameter, midPoint.
Y
- diameter, diameter, diameter, 90f, -90f);
334
path.AddArc(midPoint.X - diameter, midPoint.
Y
, diameter, diameter, 0f, -90f);
336
path.AddArc(midPoint.X, midPoint.
Y
, diameter, diameter, 180f, 90f);
340
path.AddArc(midPoint.X - diameter, midPoint.
Y
- diameter, diameter, diameter, 0f, 90f);
342
path.AddArc(midPoint.X, midPoint.
Y
- diameter, diameter, diameter, 180f, -90f);
350
Debug.Assert(start.X == end.X || start.
Y
== end.
Y
);
354
if (start.
Y
< end.
Y
)
Designers\WhileDesigner.cs (2)
59
points[2].Y = connectionPoint.
Y
;
61
points[3].Y = connectionPoint.
Y
;
Rules\Design\Dialogs\IntellisenseTextBox.cs (2)
436
locationInDialog.Offset(-parentScreenLocation.X, -parentScreenLocation.
Y
);
447
locationInDialog = new Point(topLevelControlSize.Width - this.listBoxAutoComplete.Size.Width, locationInDialog.
Y
);
System.Workflow.ComponentModel (350)
AuthoringOM\Design\ActivityDesigner.cs (9)
1068
graphics.TranslateTransform(-Location.X + 2 * ambientTheme.Margin.Width, -Location.
Y
+ 2 * ambientTheme.Margin.Height);
2591
OnMouseDown(new MouseEventArgs(e.Button, e.Clicks, logicalPoint.X, logicalPoint.
Y
, e.Delta));
2608
OnMouseMove(new MouseEventArgs(e.Button, e.Clicks, logicalPoint.X, logicalPoint.
Y
, e.Delta));
2625
OnMouseUp(new MouseEventArgs(e.Button, e.Clicks, logicalPoint.X, logicalPoint.
Y
, e.Delta));
2642
OnMouseDoubleClick(new MouseEventArgs(e.Button, e.Clicks, logicalPoint.X, logicalPoint.
Y
, e.Delta));
2659
OnMouseEnter(new MouseEventArgs(e.Button, e.Clicks, logicalPoint.X, logicalPoint.
Y
, e.Delta));
2676
OnMouseHover(new MouseEventArgs(e.Button, e.Clicks, logicalPoint.X, logicalPoint.
Y
, e.Delta));
2725
OnMouseDragBegin(initialPoint, new MouseEventArgs(e.Button, e.Clicks, logicalPoint.X, logicalPoint.
Y
, e.Delta));
2742
OnMouseDragMove(new MouseEventArgs(e.Button, e.Clicks, logicalPoint.X, logicalPoint.
Y
, e.Delta));
AuthoringOM\Design\ActivityPreviewDesigner.cs (11)
156
Size moveDelta = new Size(value.X - base.Location.X, value.
Y
- base.Location.
Y
);
160
this.previewStrip.Location = new Point(this.previewStrip.Location.X + moveDelta.Width, this.previewStrip.Location.
Y
+ moveDelta.Height);
164
this.previewWindow.Location = new Point(this.previewWindow.Location.X + moveDelta.Width, this.previewWindow.Location.
Y
+ moveDelta.Height);
165
this.separatorLine[0] = new Point(this.separatorLine[0].X + moveDelta.Width, this.separatorLine[0].
Y
+ moveDelta.Height);
166
this.separatorLine[1] = new Point(this.separatorLine[1].X + moveDelta.Width, this.separatorLine[1].
Y
+ moveDelta.Height);
170
int headerHeight = this.previewStrip.Bounds.Bottom - Location.
Y
;
172
PreviewedDesigner.Location = new Point(Location.X + (Size.Width - PreviewedDesigner.Size.Width) / 2, Location.
Y
+ headerHeight + 2 * WorkflowTheme.CurrentTheme.AmbientTheme.Margin.Height);
572
this.previewStrip.Location = new Point(bounds.Left + bounds.Width / 2 - this.previewStrip.Size.Width / 2, Location.
Y
+ TitleHeight + e.AmbientTheme.Margin.Height);
593
int headerHeight = this.previewStrip.Bounds.Bottom - Location.
Y
;
595
PreviewedDesigner.Location = new Point(Location.X + (Size.Width - PreviewedDesigner.Size.Width) / 2, Location.
Y
+ headerHeight + 2 * e.AmbientTheme.Margin.Height);
AuthoringOM\Design\CompositeActivityDesigner.cs (3)
214
Size moveDelta = new Size(value.X - base.Location.X, value.
Y
- base.Location.
Y
);
216
activityDesigner.Location = new Point(activityDesigner.Location.X + moveDelta.Width, activityDesigner.Location.
Y
+ moveDelta.Height);
AuthoringOM\Design\Connector.cs (146)
137
Rectangle enclosingBounds = new Rectangle(new Point(location.X - size.Width / 2, location.
Y
- size.Height / 2), size);
346
this.segments[i] = new Point(this.segments[i].X + size.Width, this.segments[i].
Y
+ size.Height);
518
Rectangle bounds = new Rectangle(point.X - size.Width / 2, point.
Y
- size.Height / 2, size.Width, size.Height);
1134
editPointOffset *= (previous.Location.
Y
< this.activeEditPoint.Location.X) ? 1 : -1;
1137
Point editPointLocation = (orientation == Orientation.Horizontal) ? new Point(previous.Location.X + editPointOffset, previous.Location.
Y
) : new Point(previous.Location.X, previous.Location.
Y
+ editPointOffset);
1151
editPointOffset *= (this.activeEditPoint.Location.
Y
< next.Location.
Y
) ? -1 : 1;
1154
Point editPointLocation = (orientation == Orientation.Horizontal) ? new Point(next.Location.X + editPointOffset, next.Location.
Y
) : new Point(next.Location.X, next.Location.
Y
+ editPointOffset);
1193
previous.Location = (orientation == Orientation.Horizontal) ? new Point(previous.Location.X, newPoint.
Y
) : new Point(newPoint.X, previous.Location.
Y
);
1198
next.Location = (orientation == Orientation.Horizontal) ? new Point(next.Location.X, newPoint.
Y
) : new Point(newPoint.X, next.Location.
Y
);
1218
previous.Location = new Point(previous.Location.X, newPoint.
Y
);
1219
next.Location = new Point(next.Location.X, newPoint.
Y
);
1220
this.activeEditPoint.Location = new Point(this.activeEditPoint.Location.X, newPoint.
Y
);
1224
previous.Location = new Point(newPoint.X, previous.Location.
Y
);
1225
next.Location = new Point(newPoint.X, next.Location.
Y
);
1226
this.activeEditPoint.Location = new Point(newPoint.X, this.activeEditPoint.Location.
Y
);
1352
next.Location = (slope < 1) ? new Point(next.Location.X, previous.Location.
Y
) : new Point(previous.Location.X, next.Location.
Y
);
1362
previous.Location = (slope < 1) ? new Point(previous.Location.X, next.Location.
Y
) : new Point(next.Location.X, previous.Location.
Y
);
1398
Point location = (slope < 1) ? new Point(next.Location.X, current.Location.
Y
) : new Point(current.Location.X, next.Location.
Y
);
1496
return new Rectangle(this.point.X - controlPointSize.Width / 2, this.point.
Y
- controlPointSize.Height / 2, controlPointSize.Width, controlPointSize.Height);
1543
Point intermediatePoint = (slope < 1) ? new Point(targetPoint.X, sourcePoint.
Y
) : new Point(sourcePoint.X, targetPoint.
Y
);
1714
escapeCover.Add(new Point(edge[0].X, edge[0].
Y
));
1718
if (escapePoint.X > edge[0].X && escapePoint.
Y
> edge[0].
Y
&& escapePoint.
Y
< edge[1].
Y
)
1720
escapeCover.Add(new Point(edge[0].X, escapePoint.
Y
- 1));
1721
escapeCover.Add(new Point(escapePoint.X + 1, escapePoint.
Y
- 1));
1722
escapeCover.Add(new Point(escapePoint.X + 1, escapePoint.
Y
+ 1));
1723
escapeCover.Add(new Point(edge[0].X, escapePoint.
Y
+ 1));
1726
escapeCover.Add(new Point(edge[0].X, edge[1].
Y
));
1730
escapeCover.Add(new Point(edge[0].X, edge[0].
Y
));
1734
if (escapePoint.X < edge[0].X && escapePoint.
Y
> edge[0].
Y
&& escapePoint.
Y
< edge[1].
Y
)
1736
escapeCover.Add(new Point(edge[0].X, escapePoint.
Y
- 1));
1737
escapeCover.Add(new Point(escapePoint.X - 1, escapePoint.
Y
- 1));
1738
escapeCover.Add(new Point(escapePoint.X - 1, escapePoint.
Y
+ 1));
1739
escapeCover.Add(new Point(edge[0].X, escapePoint.
Y
+ 1));
1742
escapeCover.Add(new Point(edge[0].X, edge[1].
Y
));
1746
escapeCover.Add(new Point(edge[0].X, edge[0].
Y
));
1750
if (escapePoint.
Y
> edge[0].
Y
&& escapePoint.X > edge[0].X && escapePoint.X < edge[1].X)
1752
escapeCover.Add(new Point(escapePoint.X - 1, edge[0].
Y
));
1753
escapeCover.Add(new Point(escapePoint.X - 1, escapePoint.
Y
+ 1));
1754
escapeCover.Add(new Point(escapePoint.X + 1, escapePoint.
Y
+ 1));
1755
escapeCover.Add(new Point(escapePoint.X + 1, edge[0].
Y
));
1758
escapeCover.Add(new Point(edge[1].X, edge[0].
Y
));
1763
escapeCover.Add(new Point(edge[0].X, edge[0].
Y
));
1767
if (escapePoint.
Y
< edge[0].
Y
&& escapePoint.X > edge[0].X && escapePoint.X < edge[1].X)
1769
escapeCover.Add(new Point(escapePoint.X - 1, edge[0].
Y
));
1770
escapeCover.Add(new Point(escapePoint.X - 1, escapePoint.
Y
- 1));
1771
escapeCover.Add(new Point(escapePoint.X + 1, escapePoint.
Y
- 1));
1772
escapeCover.Add(new Point(escapePoint.X + 1, edge[0].
Y
));
1775
escapeCover.Add(new Point(edge[1].X, edge[0].
Y
));
1800
if (segments[i - 1].X != segments[i].X && segments[i - 1].
Y
!= segments[i].
Y
)
1820
begin.Y = Math.Min(Math.Max(begin.
Y
, enclosingRectangle.Top + 1), enclosingRectangle.Bottom - 1);
1829
excludedLines.Add(new Point(point.X - width, point.
Y
));
1830
excludedLines.Add(new Point(point.X + width, point.
Y
));
1832
excludedLines.Add(new Point(point.X, point.
Y
- height));
1833
excludedLines.Add(new Point(point.X, point.
Y
+ height));
2092
r1 = new Point(Z.X, topCover.A.
Y
);
2094
r2 = new Point(rightCover.A.X, Z.
Y
);
2096
r3 = new Point(Z.X, bottomCover.A.
Y
);
2098
r4 = new Point(leftCover.A.X, Z.
Y
);
2106
if (r1.
Y
> Z.
Y
)
2152
if (r3.
Y
< Z.
Y
)
2233
Point direction = new Point(Math.Sign(p.X - Z.X), Math.Sign(p.
Y
- Z.
Y
));
2234
if (((orientation == Orientation.Vertical) ? direction.X : direction.
Y
) == 0)
2239
direction = new Point(Math.Sign(p.X - Z.X), Math.Sign(p.
Y
- Z.
Y
));
2246
side = (direction.
Y
< 0) ? DesignerEdges.Bottom : DesignerEdges.Top;
2253
escapePoint = new Point(p.X + direction.X * margin.Width, Z.
Y
);
2255
escapePoint = new Point(Z.X, p.
Y
+ direction.
Y
* margin.Height);
2275
if (p.X != int.MinValue && p.X != int.MaxValue && p.
Y
!= int.MinValue && p.
Y
!= int.MaxValue)
2471
Point direction = new Point(a2.X - a1.X, a2.
Y
- a1.
Y
);
2474
int steps = Math.Max(Math.Abs(direction.X / margin.Width), Math.Abs(direction.
Y
/ margin.Height)); //one of the values will be null
2476
direction.Y = Math.Sign(direction.
Y
);
2480
Point k = new Point(a1.X + i * margin.Width * direction.X, a1.
Y
+ i * margin.Height * direction.
Y
);
2581
if (point1.X != point2.X && point1.
Y
!= point2.
Y
)
2618
return (this.orientation == Orientation.Horizontal) ? (p.X >= Math.Min(this.point1.X, this.point2.X) && p.X <= Math.Max(this.point1.X, this.point2.X)) : (p.
Y
>= Math.Min(this.point1.
Y
, this.point2.
Y
) && p.
Y
<= Math.Max(this.point1.
Y
, this.point2.
Y
));
2635
if (horizontal.A.
Y
< Math.Min(vertical.A.
Y
, vertical.B.
Y
) || horizontal.A.
Y
> Math.Max(vertical.A.
Y
, vertical.B.
Y
))
2638
return new Point(vertical.A.X, horizontal.A.
Y
);
2644
return (this.orientation == Orientation.Horizontal) ? p.
Y
== this.point1.
Y
: p.X == this.point1.X;
2650
if ((this.orientation == Orientation.Horizontal && p.
Y
!= this.point1.
Y
) || (this.orientation == Orientation.Vertical && p.X != this.point1.X))
2653
int k = (this.orientation == Orientation.Horizontal) ? p.X : p.
Y
;
2654
int k1 = (this.orientation == Orientation.Horizontal) ? this.point1.X : this.point1.
Y
;
2655
int k2 = (this.orientation == Orientation.Horizontal) ? this.point2.X : this.point2.
Y
;
2693
Point newPoint = new Point(p.X, p.
Y
);
2708
int k = (this.orientation == Orientation.Horizontal) ? p.X : p.
Y
;
2709
int k1 = (this.orientation == Orientation.Horizontal) ? this.point1.X : this.point1.
Y
;
2710
int k2 = (this.orientation == Orientation.Horizontal) ? this.point2.X : this.point2.
Y
;
2717
return new Point((this.orientation == Orientation.Horizontal) ? k : p.X, (this.orientation == Orientation.Horizontal) ? p.
Y
: k);
2722
return Math.Sqrt((double)(p.X - q.X) * (p.X - q.X) + (double)(p.
Y
- q.
Y
) * (p.
Y
- q.
Y
));
2730
if (a.X != b.X && a.
Y
!= b.
Y
)
2742
Point left = new Point((leftCover != null) ? leftCover.A.X : int.MinValue, p.
Y
);
2743
Point right = new Point((rightCover != null) ? rightCover.A.X : int.MaxValue, p.
Y
);
2754
Point bottom = new Point(p.X, (bottomCover != null) ? bottomCover.A.
Y
: int.MinValue);
2755
Point top = new Point(p.X, (topCover != null) ? topCover.A.
Y
: int.MaxValue);
2914
int currentDistance = (side == DesignerEdges.Bottom) ? p.
Y
- segment.A.
Y
: segment.A.
Y
- p.
Y
;
2949
int currentDistance = (side == DesignerEdges.Bottom) ? p.
Y
- segment.A.
Y
: segment.A.
Y
- p.
Y
;
2966
originalDistance = originalCover.A.
Y
- escape.
Y
;
2985
newDistance = Math.Abs(newCover.A.
Y
- escape.
Y
);
AuthoringOM\Design\DesignerHelpers.cs (45)
337
for (int gridCoOrdY = gridStart.
Y
; gridCoOrdY <= viewableRectangle.Bottom; gridCoOrdY += Math.Max(ambientTheme.GridSize.Height, 1))
501
graphics.TranslateTransform(location.X, location.
Y
);
503
GraphicsPath designerPath = GetDesignerPath(designer, new Point(-location.X, -location.
Y
), Size.Empty, DesignerEdges.None);
600
int capSize = (startSegment[0].
Y
== startSegment[1].
Y
) ? connectorCapSize.Width : connectorCapSize.Height;
607
bool fill = (startCap != null && (((int)startConnectorCap % 2) == 0) && (startSegment[0].X == startSegment[1].X || startSegment[0].
Y
== startSegment[1].
Y
));
611
graphics.TranslateTransform(startSegment[0].X, startSegment[0].
Y
);
612
if (startSegment[0].
Y
== startSegment[1].
Y
)
615
graphics.RotateTransform((startSegment[0].
Y
< startSegment[1].
Y
) ? 180.0f : 0.0f);
630
int capSize = (endSegment[0].
Y
== endSegment[1].
Y
) ? connectorCapSize.Width : connectorCapSize.Height;
637
bool fill = (endCap != null && (((int)endConnectorCap % 2) == 0) && (endSegment[0].X == endSegment[1].X || endSegment[0].
Y
== endSegment[1].
Y
));
641
graphics.TranslateTransform(endSegment[1].X, endSegment[1].
Y
);
642
if (endSegment[0].
Y
== endSegment[1].
Y
)
645
graphics.RotateTransform((endSegment[0].
Y
< endSegment[1].
Y
) ? 0.0f : 180.0f);
1063
for (int gridCoOrd = gridStart.
Y
; gridCoOrd <= viewableRectangle.Bottom; gridCoOrd += Math.Max(gridUnit.Height, 1))
1191
location.Y = ((location.
Y
/ snapSize.Height) * snapSize.Height) + (((location.
Y
% snapSize.Height) > snapSize.Height / 2) ? snapSize.Height : 0);
1548
menuCommandService.ShowContextMenu(WorkflowMenuCommands.DesignerActionsMenu, location.X - 2, location.
Y
+ 1);
1889
leftTop.Y = Math.Min(leftTop.
Y
, point.
Y
);
1891
rightBottom.Y = Math.Max(rightBottom.
Y
, point.
Y
);
1894
Rectangle enclosingRect = new Rectangle(leftTop, new Size(rightBottom.X - leftTop.X, rightBottom.
Y
- leftTop.
Y
));
1938
int area = Math.Abs((((point.
Y
- line[0].
Y
) * (line[1].X - line[0].X)) - ((point.X - line[0].X) * (line[1].
Y
- line[0].
Y
))));
1939
return Math.Sqrt(Math.Pow(area, 2) / (Math.Pow((line[1].X - line[0].X), 2) + Math.Pow((line[1].
Y
- line[0].
Y
), 2)));
1957
if (start.
Y
== end.
Y
)
1960
return ((float)(end.
Y
- start.
Y
)) / (end.X - start.X);
1973
double d = Math.Sqrt(Math.Pow(point2.X - point1.X, 2) + Math.Pow(point2.
Y
- point1.
Y
, 2));
1989
return new Point((point1.X + point2.X) / 2, (point1.
Y
+ point2.
Y
) / 2);
AuthoringOM\Design\DesignerInterfaces.cs (1)
181
: base(dragEventArgs.Data, dragEventArgs.KeyState, point.X, point.
Y
, dragEventArgs.AllowedEffect, dragEventArgs.Effect)
AuthoringOM\Design\DesignerWidgets.cs (2)
1414
Location = new Point(this.parent.Location.X + Palette.DropShadowWidth, this.parent.Location.
Y
+ Palette.DropShadowWidth);
2262
int result = NativeMethods.SetWindowPos(this.inplaceTip.Handle, IntPtr.Zero, screenCoOrd.X, screenCoOrd.
Y
, 0, 0, NativeMethods.SWP_NOSIZE | NativeMethods.SWP_NOZORDER | NativeMethods.SWP_NOACTIVATE);
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (1)
808
this.helpTextWindow.Location = new Point(this.helpTextHolder.Location.X + 3, this.helpTextHolder.Location.
Y
+ 3);
AuthoringOM\Design\FreeFormDesigner.cs (17)
294
Size moveDelta = new Size(value.X - base.Location.X, value.
Y
- base.Location.
Y
);
792
newLocation.Y = Math.Min(newLocation.
Y
, childRectangle.Top);
919
designer.Location = new Point(location.X + autoSizeMargin.Width, location.
Y
+ autoSizeMargin.Height);
1117
leftTop.Y = (activityDesigner.Bounds.Top < leftTop.
Y
) ? activityDesigner.Bounds.Top : leftTop.
Y
;
1119
rightBottom.Y = (rightBottom.
Y
< activityDesigner.Bounds.Bottom) ? activityDesigner.Bounds.Bottom : rightBottom.
Y
;
1130
leftTop.Y = (connector.Bounds.Top < leftTop.
Y
) ? connector.Bounds.Top : leftTop.
Y
;
1132
rightBottom.Y = (rightBottom.
Y
< connector.Bounds.Bottom) ? connector.Bounds.Bottom : rightBottom.
Y
;
1142
if (leftTop.
Y
!= int.MaxValue && rightBottom.
Y
!= int.MinValue)
1144
enclosingRectangle.Y = leftTop.
Y
;
1145
enclosingRectangle.Height = rightBottom.
Y
- leftTop.
Y
;
AuthoringOM\Design\Glyphs\ConnectorDragDropGlyph.cs (1)
21
this.glyphPoint = new Point(connectorCenter.X - ambientTheme.DropIndicatorSize.Width / 2, connectorCenter.
Y
- ambientTheme.DropIndicatorSize.Height / 2);
AuthoringOM\Design\MessageFilters\AutoScrollExpandMessageFilter.cs (6)
125
if (clientPoint.
Y
<= clientRectangle.Height / 10 && vScrollBar.Value > 0)
127
else if (clientPoint.
Y
>= clientRectangle.Bottom - clientRectangle.Height / 10 && vScrollBar.Value < vScrollBar.Maximum - vScrollBar.LargeChange)
194
scrollPosition.Y = scrollPosition.
Y
- AmbientTheme.ScrollUnit;
196
scrollPosition.Y = scrollPosition.
Y
+ AmbientTheme.ScrollUnit;
224
if (scrollPosition.
Y
> 0)
231
if (scrollPosition.
Y
< parentView.VScrollBar.Maximum - viewPortSize.Height)
AuthoringOM\Design\MessageFilters\ConnectionManager.cs (2)
126
Math.Abs(this.initialDragPoint.Value.
Y
- logicalPoint.
Y
) > SystemInformation.DragSize.Height))
AuthoringOM\Design\MessageFilters\DragDropManager.cs (6)
117
else if (parentView.RootDesigner != null && this.dragStarted && (eventArgs.Button & MouseButtons.Left) > 0 && (Math.Abs(this.dragInitiationPoint.X - logicalPoint.X) > SystemInformation.DragSize.Width || Math.Abs(this.dragInitiationPoint.
Y
- logicalPoint.
Y
) > SystemInformation.DragSize.Height))
272
this.dragImagePointInClientCoOrd = new Point(clientPoint.X + SystemInformation.CursorSize.Width / 4, clientPoint.
Y
+ SystemInformation.CursorSize.Height / 4);
306
this.dragImagePointInClientCoOrd = new Point(midPointInClientCoOrd.X - dragImageIconSize.Width / 2, midPointInClientCoOrd.
Y
- dragImageIconSize.Height / 2);
332
this.dragImagePointInClientCoOrd = new Point(clientPoint.X + SystemInformation.CursorSize.Width / 4, clientPoint.
Y
+ SystemInformation.CursorSize.Height / 4);
383
this.dragImagePointInClientCoOrd = new Point(midPointInClientCoOrd.X - dragImageIconSize.Width / 2, midPointInClientCoOrd.
Y
- dragImageIconSize.Height / 2);
AuthoringOM\Design\MessageFilters\DragSelectionMessageFilter.cs (6)
66
(Math.Abs(this.startDrag.X - logicalPoint.X) > (int)(dragMultiply * (float)SystemInformation.DragSize.Width) || Math.Abs(this.startDrag.
Y
- logicalPoint.
Y
) > (int)(dragMultiply * (float)SystemInformation.DragSize.Height)))
134
return new Rectangle(Math.Min(this.startDrag.X, this.endDrag.X), Math.Min(this.startDrag.
Y
, this.endDrag.
Y
), Math.Abs(this.endDrag.X - this.startDrag.X), Math.Abs(this.endDrag.
Y
- this.startDrag.
Y
));
AuthoringOM\Design\MessageFilters\DynamicActionMessageFilter.cs (1)
303
e.Graphics.TranslateTransform(actionLocation.X, actionLocation.
Y
);
AuthoringOM\Design\MessageFilters\FreeFormDragDropManager.cs (4)
170
ActivityDesignerPaint.DrawImage(eventArgs.Graphics, this.draggedDesignerImages[i], new Rectangle(new Point(locations[i].X - 2 * ambientTheme.Margin.Width, locations[i].
Y
- 2 * ambientTheme.Margin.Height), imageSize), new Rectangle(Point.Empty, imageSize), DesignerContentAlignment.Fill, 0.4f, false);
255
Size delta = new Size(endPoint.X - startPoint.X, endPoint.
Y
- startPoint.
Y
);
256
location = new Point(designerToMove.Location.X + delta.Width, designerToMove.Location.
Y
+ delta.Height);
AuthoringOM\Design\MessageFilters\PanningMessageFilter.cs (3)
52
menuCommandService.ShowContextMenu(WorkflowMenuCommands.ZoomMenu, menuPoint.X, menuPoint.
Y
);
74
Size panSize = new Size(eventArgs.X - this.panPoint.X, eventArgs.Y - this.panPoint.
Y
);
76
parentView.ScrollPosition = new Point(parentView.ScrollPosition.X - panSize.Width, parentView.ScrollPosition.
Y
- panSize.Height);
AuthoringOM\Design\MessageFilters\ResizingMessageFilter.cs (3)
297
int y = point.
Y
;
300
y = DesignerHelpers.SnapToGrid(new Point(0, y)).
Y
;
311
designerBounds.Height += (point.
Y
- designerBounds.Bottom);
AuthoringOM\Design\MessageFilters\WindowManager.cs (3)
342
menuCommandService.ShowContextMenu(WorkflowMenuCommands.SelectionMenu, screenMenuPoint.X, screenMenuPoint.
Y
);
415
scrollPosition.Y = scrollPosition.
Y
+ ((pageUp ? -1 : 1) * parentView.VScrollBar.LargeChange);
436
scrollPosition.Y = scrollPosition.
Y
+ (numberOfLogicalLines * logicalLineHeight);
AuthoringOM\Design\MessageFilters\ZoomingMessageFilter.cs (5)
66
menuCommandService.ShowContextMenu(WorkflowMenuCommands.ZoomMenu, menuPoint.X, menuPoint.
Y
);
170
Point center = parentView.LogicalPointToClient(new Point(dragRectangle.Location.X + dragRectangle.Width / 2, dragRectangle.Location.
Y
+ dragRectangle.Height / 2));
182
center.X -= layoutOrigin.X; center.Y -= layoutOrigin.
Y
;
183
relativeCenterF = new PointF((float)center.X / (float)parentView.HScrollBar.Maximum, (float)center.
Y
/ (float)parentView.VScrollBar.Maximum);
188
parentView.ScrollPosition = new Point(newCenter.X - parentView.HScrollBar.LargeChange / 2, newCenter.
Y
- parentView.VScrollBar.LargeChange / 2);
AuthoringOM\Design\ParallelActivityDesigner.cs (8)
221
Point location = (connectionPoints.Count > 0) ? new Point(Location.X, connectionPoints[0].
Y
) : Location;
230
activityDesigner.Location = new Point(location.X + width, location.
Y
+ height);
289
dropTargets[0].Location = new Point(bounds.X, firstDesigner.Location.
Y
);
306
dropTargets[containedDesigners.Count].Location = new Point(bounds.Right - ((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0), lastDesigner.Location.
Y
);
312
dropTargets[0].Size = new Size(((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0), Location.
Y
+ Size.Height - dropTargets[0].Location.
Y
);
388
connectingLine[1].Y = designerConnections[0].
Y
;
393
connectingLine[0].Y = designerConnections[connectionCount - 1].
Y
;
AuthoringOM\Design\SequentialActivityDesigner.cs (16)
213
connectorBounds[0].Location = new Point(containerStartConnection.X - ((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0) / 2, containerStartConnection.
Y
);
214
connectorBounds[0].Size = new Size(((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0), startDesignerConnections[0].
Y
- containerStartConnection.
Y
);
226
connectorBounds[i + 1].Location = new Point(designerFromConnections[designerFromPointCount - 1].X - ((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0) / 2, designerFromConnections[designerFromPointCount - 1].
Y
);
227
connectorBounds[i + 1].Size = new Size(((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0), designerToConnections[0].
Y
- designerFromConnections[designerFromPointCount - 1].
Y
);
243
connectorBounds[connectorCount - 1].Location = new Point(endDesignerConnections[endDesignerConnections.Count - 1].X - ((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0) / 2, endDesignerConnections[endDesignerConnections.Count - 1].
Y
);
244
connectorBounds[connectorCount - 1].Size = new Size(((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0), containerEndConnection.
Y
- endDesignerConnections[endDesignerConnections.Count - 1].
Y
);
249
connectorBounds[0].Location = new Point(containerStartConnection.X - ((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0) / 2, containerStartConnection.
Y
);
250
connectorBounds[0].Size = new Size(((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0), containerEndConnection.
Y
- containerStartConnection.
Y
);
452
heightDelta = Size.Height - (connectionPoints[connectionPoints.Count - 1].
Y
- connectionPoints[0].
Y
);
463
activityDesigner.Location = new Point(location.X - (designerSize.Width / 2), location.
Y
+ height);
528
glyphLocation = new Point(connectors[i].Location.X + connectors[i].Size.Width / 2 + 1, connectors[i].Location.
Y
+ connectors[i].Size.Height / 2);
AuthoringOM\Design\SequentialWorkflowRootDesigner.cs (3)
261
connectionPoints[connectionPoints.Count - 1] = new Point(connectionPoints[connectionPoints.Count - 1].X, connectionPoints[connectionPoints.Count - 1].
Y
- Footer.Bounds.Height);
434
bounds.Y = rootDesigner.Location.
Y
+ rootDesigner.TitleHeight + rootDesigner.OptimalHeight;
456
imageRectangle.Y = rootDesigner.Location.
Y
+ rootDesigner.TitleHeight + rootDesigner.OptimalHeight;
AuthoringOM\Design\StructuredCompositeActivityDesigner.cs (2)
443
connectionPoints[0] = new Point(connectionPoints[0].X, connectionPoints[0].
Y
+ TitleHeight);
551
activityDesigner.Location = new Point(activityDesigner.Location.X, activityDesigner.Location.
Y
+ titleHeight);
AuthoringOM\Design\WorkflowLayouts.cs (17)
162
transformationMatrix.Translate(-logicalViewPortOrigin[0].X + viewPortData.ShadowDepth.Width, -logicalViewPortOrigin[0].
Y
+ viewPortData.ShadowDepth.Height, MatrixOrder.Append);
250
transformationMatrix.Translate(-logicalViewPortOrigin[0].X + viewPortData.ShadowDepth.Width, -logicalViewPortOrigin[0].
Y
+ viewPortData.ShadowDepth.Height, MatrixOrder.Append);
394
alignment.Y = Math.Max(alignment.
Y
, selectionSize.Height + selectionSize.Height / 2);
426
deltaSize.Height -= deltaLocation.
Y
;
431
insersectedLogicalViewPort.Y = pageLayoutData.LogicalPageBounds.Y + deltaLocation.
Y
;
436
insersectedLogicalViewPort.Height = pageLayoutData.LogicalPageBounds.Height - deltaLocation.
Y
;
461
deltaSize.Height -= deltaLocation.
Y
;
466
insersectedPhysicalViewPort.Y = pageLayoutData.ViewablePageBounds.Y + deltaLocation.
Y
;
471
insersectedPhysicalViewPort.Height = pageLayoutData.ViewablePageBounds.Height - deltaLocation.
Y
;
488
Point delta = new Point(logicalPoint.X - pageLayoutData.ViewablePageBounds.Left, logicalPoint.
Y
- pageLayoutData.ViewablePageBounds.Top);
489
logicalPoint = new Point(pageLayoutData.LogicalPageBounds.Left + delta.X, pageLayoutData.LogicalPageBounds.Top + delta.
Y
);
503
Point delta = new Point(logicalPoint.X - pageLayoutData.LogicalPageBounds.Left, logicalPoint.
Y
- pageLayoutData.LogicalPageBounds.Top);
504
logicalPoint = new Point(pageLayoutData.ViewablePageBounds.Left + delta.X, pageLayoutData.ViewablePageBounds.Top + delta.
Y
);
628
viewPortMatrix.Translate(-viewPortData.Translation.X, -viewPortData.Translation.
Y
, MatrixOrder.Append);
666
bitmapDrawingPoint = new Point(points[0].X - viewPortData.Translation.X, points[0].
Y
- viewPortData.Translation.
Y
);
810
viewablePageLocation.Y = pageLocation.
Y
+ PageMargins.Top;
AuthoringOM\Design\WorkflowPrinting.cs (16)
148
Point pageOffset = new Point(this.currentPrintablePage.X * printableArea.Width - this.workflowAlignment.X, this.currentPrintablePage.
Y
* printableArea.Height - this.workflowAlignment.
Y
);
149
graphics.TranslateTransform(boundingRectangle.Left - pageOffset.X, boundingRectangle.Top - pageOffset.
Y
);
159
scaledAlignment.Y = Convert.ToInt32(Math.Ceiling((float)this.workflowAlignment.
Y
/ this.scaling));
161
Rectangle viewPort = new Rectangle(this.currentPrintablePage.X * viewPortSize.Width - scaledAlignment.X, this.currentPrintablePage.
Y
* viewPortSize.Height - scaledAlignment.
Y
, viewPortSize.Width, viewPortSize.Height);
178
headerFooterData.CurrentPage = this.currentPrintablePage.X + this.currentPrintablePage.
Y
* this.totalPrintablePages.X + 1;
179
headerFooterData.TotalPages = this.totalPrintablePages.X * this.totalPrintablePages.
Y
;
223
int printAreaVert = (int)((float)NativeMethods.GetDeviceCaps(hDC, NativeMethods.VERTRES) * 100.0f / (float)dpi.
Y
);
226
int physicalHeight = (int)((float)NativeMethods.GetDeviceCaps(hDC, NativeMethods.PHYSICALHEIGHT) * 100.0f / (float)dpi.
Y
);
230
int topMargin = (int)((float)NativeMethods.GetDeviceCaps(hDC, NativeMethods.PHYSICALOFFSETY) * 100.0f / (float)dpi.
Y
);
349
this.totalPrintablePages.Y = Math.Max(this.totalPrintablePages.
Y
, 1);
358
this.workflowAlignment.Y = (int)(((float)this.totalPrintablePages.
Y
* (float)printableArea.Height / this.scaling - (float)rootDesignerSize.Height) / 2.0f * this.scaling);
361
this.workflowAlignment.Y = Math.Max(this.workflowAlignment.
Y
, selectionSize.Height + selectionSize.Height / 2);
376
return (this.currentPrintablePage.
Y
< this.totalPrintablePages.
Y
);
AuthoringOM\Design\WorkflowView.cs (13)
350
Point oldCenter = new Point(ScrollPosition.X, ScrollPosition.
Y
);
351
oldRelativeCenter = new PointF((float)oldCenter.X / (float)hScrollBar.Maximum, (float)oldCenter.
Y
/ (float)vScrollBar.Maximum);
359
ScrollPosition = new Point(newCenter.X, newCenter.
Y
);
474
value.Y = Math.Min(value.
Y
, vScrollBar.Maximum - vScrollBar.LargeChange + 1);
475
value.Y = Math.Max(value.
Y
, vScrollBar.Minimum);
476
vScrollBar.Value = value.
Y
;
893
writer.Write(this.ScrollPosition.
Y
);
1160
MouseEventArgs eventArgs = new MouseEventArgs(Control.MouseButtons, 1, clientPoint.X, clientPoint.
Y
, 0);
1177
MouseEventArgs eventArgs = new MouseEventArgs(Control.MouseButtons, 1, clientPoint.X, clientPoint.
Y
, 0);
1584
transformationMatrix.Translate(-logicalViewPortOrigin[0].X + viewPortData.ShadowDepth.Width, -logicalViewPortOrigin[0].
Y
+ viewPortData.ShadowDepth.Height, MatrixOrder.Append);
1762
ScrollPosition = new Point(scrollPosition.X + scrollDelta.Width, scrollPosition.
Y
+ scrollDelta.Height);
2116
translateMatrix.Translate(-ScrollPosition.X, -ScrollPosition.
Y
);
2127
translateMatrix.Translate(ScrollPosition.X, ScrollPosition.
Y
);
System.WorkflowServices (6)
System\Workflow\Activities\ReceiveActivityDesigner.cs (2)
184
Rectangle incomingArrowRect = new Rectangle(this.Location.X - 2, this.Location.
Y
+ 20, 24, 24);
185
Rectangle outgoingArrowRect = new Rectangle(this.Location.X + 22, this.Location.
Y
+ this.Size.Height - 45, -24, 24);
System\Workflow\Activities\SendActivityDesigner.cs (2)
136
Rectangle outgoingArrowRect = new Rectangle(this.Location.X + this.Size.Width - 24, this.Location.
Y
+ 10, 24, 24);
137
Rectangle incomingArrowRect = new Rectangle(this.Location.X + this.Size.Width, this.Location.
Y
+ this.Size.Height - 35, -24, 24);
System\Workflow\ComponentModel\Design\ActivityDesignerHighlighter.cs (2)
101
if (scrollPosition.
Y
> viewSize.Height / 2)
123
if (scrollPosition.
Y
> viewSize.Height / 2)