704 references to Point
Microsoft.Private.Windows.Core (6)
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (1)
76value = new Point(classInfo.GetInt32("x"), classInfo.GetInt32("y"));
System\Private\Windows\Ole\DragDropHelper.cs (3)
59Point point = new(e.X, e.Y); 105Point point = new(e.X, e.Y); 121Point point = new(e.X, e.Y);
Windows\Win32\Foundation\LPARAM.cs (1)
27public static explicit operator Point(LPARAM value) => new(value.SIGNEDLOWORD, value.SIGNEDHIWORD);
Windows\Win32\Foundation\POINTS.cs (1)
10public static implicit operator Point(POINTS point) => new(point.x, point.y);
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\Helpers\VBInputBox.vb (1)
111DesktopLocation = New Point(xPos, yPos)
PresentationUI (130)
MS\Internal\Documents\Application\DocumentPropertiesDialog.Designer.cs (54)
128this.tableLayoutPanel3.Location = new System.Drawing.Point(6, 6); 139this._tabControl.Location = new System.Drawing.Point(3, 3); 141this._tabControl.Padding = new System.Drawing.Point(7, 3); 152this._summaryTab.Location = new System.Drawing.Point(4, 22); 190this.tableLayoutPanel1.Location = new System.Drawing.Point(3, 3); 210this._language.Location = new System.Drawing.Point(69, 205); 220this._title.Location = new System.Drawing.Point(69, 3); 229this._titleLabel.Location = new System.Drawing.Point(3, 3); 237this._identifier.Location = new System.Drawing.Point(69, 281); 246this._versionLabel.Location = new System.Drawing.Point(3, 262); 254this._authorLabel.Location = new System.Drawing.Point(3, 22); 262this._statusLabel.Location = new System.Drawing.Point(3, 243); 270this._contentLabel.Location = new System.Drawing.Point(3, 224); 278this._languageLabel.Location = new System.Drawing.Point(3, 205); 286this._subjectLabel.Location = new System.Drawing.Point(3, 41); 294this._version.Location = new System.Drawing.Point(69, 262); 303this._categoryLabel.Location = new System.Drawing.Point(3, 186); 311this._category.Location = new System.Drawing.Point(69, 186); 320this._status.Location = new System.Drawing.Point(69, 243); 329this._content.Location = new System.Drawing.Point(69, 224); 338this._keywordsLabel.Location = new System.Drawing.Point(3, 167); 347this._author.Location = new System.Drawing.Point(69, 22); 356this._subject.Location = new System.Drawing.Point(69, 41); 365this._description.Location = new System.Drawing.Point(69, 60); 376this._keywords.Location = new System.Drawing.Point(69, 167); 388this._identifierLabel.Location = new System.Drawing.Point(3, 281); 397this._descriptionLabel.Location = new System.Drawing.Point(3, 60); 424this._infoTab.Location = new System.Drawing.Point(4, 22); 439this.tableLayoutPanel2.Location = new System.Drawing.Point(6, 3); 461this.tableLayoutPanel4.Location = new System.Drawing.Point(3, 3); 473this._size.Location = new System.Drawing.Point(90, 41); 492this._filename.Location = new System.Drawing.Point(75, 3); 502this._documentType.Location = new System.Drawing.Point(75, 22); 512this._sizeLabel.Location = new System.Drawing.Point(75, 41); 524this._documentDetailBox.Location = new System.Drawing.Point(3, 225); 547this._documentTable.Location = new System.Drawing.Point(16, 16); 560this._documentPrintedDate.Location = new System.Drawing.Point(88, 79); 569this._documentModifiedDate.Location = new System.Drawing.Point(88, 60); 578this._documentCreatedDate.Location = new System.Drawing.Point(88, 41); 587this._revision.Location = new System.Drawing.Point(88, 22); 596this._documentPrintedLabel.Location = new System.Drawing.Point(3, 79); 604this._documentModifiedLabel.Location = new System.Drawing.Point(3, 60); 612this._documentCreatedLabel.Location = new System.Drawing.Point(3, 41); 620this._revisionLabel.Location = new System.Drawing.Point(3, 22); 628this._lastSavedLabel.Location = new System.Drawing.Point(3, 3); 636this._lastSaved.Location = new System.Drawing.Point(88, 3); 648this._fileSystemBox.Location = new System.Drawing.Point(3, 124); 666this._fileTable.Location = new System.Drawing.Point(16, 19); 676this._fileModifiedDate.Location = new System.Drawing.Point(66, 22); 685this._fileAccessedDate.Location = new System.Drawing.Point(66, 41); 694this._fileCreatedLabel.Location = new System.Drawing.Point(3, 3); 702this._fileModifiedLabel.Location = new System.Drawing.Point(3, 22); 710this._fileCreatedDate.Location = new System.Drawing.Point(66, 3); 719this._fileAccessedLabel.Location = new System.Drawing.Point(3, 41);
MS\Internal\Documents\CredentialManagerDialog.Designer.cs (3)
63this._mainDialogTableLayoutPanel.Location = new System.Drawing.Point(8, 8); 142this._credListBox.Location = new System.Drawing.Point(3, 3); 151this._instructionLabel.Location = new System.Drawing.Point(3, 0);
MS\Internal\Documents\RequestedSignatureDialog.Designer.cs (11)
62_buttomControlLayoutpanel.Location = new System.Drawing.Point(374, 246); 106_userInputTableLayoutPanel.Location = new System.Drawing.Point(10, 23); 123_dateTimePicker.Location = new System.Drawing.Point(3, 174); 134_requestedLocationTextBox.Location = new System.Drawing.Point(3, 125); 144_signatureAppliedByDateLabel.Location = new System.Drawing.Point(3, 158); 153_requestSignerNameLabel.Location = new System.Drawing.Point(3, 10); 162_requestLocationLabel.Location = new System.Drawing.Point(3, 109); 170_requestedSignerNameTextBox.Location = new System.Drawing.Point(3, 26); 180_intentLabel.Location = new System.Drawing.Point(3, 59); 189_intentComboBox.Location = new System.Drawing.Point(3, 75); 204_mainDialogTableLayoutPanel.Location = new System.Drawing.Point(9, 9);
MS\Internal\Documents\RMEnrollmentPage1.Designer.cs (12)
67_panel1.Location = new System.Drawing.Point(0, 0); 78_flowLayoutPanel2.Location = new System.Drawing.Point(0, 0); 88_flowLayoutPanel3.Location = new System.Drawing.Point(3, 16); 102_flowLayoutPanel4.Location = new System.Drawing.Point(3, 3); 110_label1.Location = new System.Drawing.Point(30, 1); 120_label2.Location = new System.Drawing.Point(30, 20); 130_label3.Location = new System.Drawing.Point(30, 30); 140_privacyLabel.Location = new System.Drawing.Point(30, 53); 151_instructionlabel.Location = new System.Drawing.Point(30, 76); 160_panel2.Location = new System.Drawing.Point(207, 3); 168_pictureBox.Location = new System.Drawing.Point(27, 4); 181_flowLayoutPanel1.Location = new System.Drawing.Point(0, 153);
MS\Internal\Documents\RMEnrollmentPage2.Designer.cs (11)
67this._flowLayoutPanel1.Location = new System.Drawing.Point(0, 326); 99this._flowLayoutPanel2.Location = new System.Drawing.Point(0, 0); 107this._label1.Location = new System.Drawing.Point(10, 10); 119this._flowLayoutPanel3.Location = new System.Drawing.Point(10, 33); 128this._pictureBox1.Location = new System.Drawing.Point(5, 5); 138this._label2.Location = new System.Drawing.Point(31, 5); 155this._tableLayoutPanel1.Location = new System.Drawing.Point(50, 89); 171this._networkRadioButton.Location = new System.Drawing.Point(3, 13); 181this._pictureBox2.Location = new System.Drawing.Point(368, 13); 191this._passportRadioButton.Location = new System.Drawing.Point(3, 169); 200this._pictureBox4.Location = new System.Drawing.Point(368, 169);
MS\Internal\Documents\RMEnrollmentPage3.Designer.cs (6)
54this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0); 68this.flowLayoutPanel2.Location = new System.Drawing.Point(3, 47); 76this.label2.Location = new System.Drawing.Point(7, 7); 90this.tableLayoutPanel2.Location = new System.Drawing.Point(3, 80); 102this.label3.Location = new System.Drawing.Point(149, 49); 111this.progressBar1.Location = new System.Drawing.Point(156, 72);
MS\Internal\Documents\RMPublishingDialog.Designer.cs (4)
305this.flowLayoutPanelActions.Location = new System.Drawing.Point(6, 395); 314this.buttonCancel.Location = new System.Drawing.Point(463, 3); 321this.buttonSave.Location = new System.Drawing.Point(382, 3); 328this.buttonSaveAs.Location = new System.Drawing.Point(301, 3);
MS\Internal\Documents\RMPublishingDialog.RightsTable.cs (1)
1040System.Drawing.Point p = new System.Drawing.Point(
MS\Internal\Documents\SignatureSummaryDialog.Designer.cs (12)
57_buttonDone.Location = new System.Drawing.Point(247, 13); 78_flowpanelMiddleControls.Location = new System.Drawing.Point(297, 0); 91_flowpanelBottomControls.Location = new System.Drawing.Point(297, 0); 100_buttonSign.Location = new System.Drawing.Point(166, 13); 110_buttonViewCert.Location = new System.Drawing.Point(85, 13); 120_buttonRequestDelete.Location = new System.Drawing.Point(4, 13); 128_buttonRequestAdd.Location = new System.Drawing.Point(247, 42); 141_columnHeaderPanel.Location = new System.Drawing.Point(0, 0); 152_listBoxSummary.Location = new System.Drawing.Point(0, 0); 168_listboxMainPanel.Location = new System.Drawing.Point(15, 15); 177_listboxItemPanel.Location = new System.Drawing.Point(0, 53); 191_mainLayoutTable.Location = new System.Drawing.Point(6, 6);
MS\Internal\Documents\SigningDialog.Designer.cs (15)
64_userInputFlowPanel.Location = new System.Drawing.Point(3, 71); 83_signatureControlInputLayoutTable.Location = new System.Drawing.Point(6, 19); 101_addDigSigCheckBox.Location = new System.Drawing.Point(3, 136); 110_signerlabel.Location = new System.Drawing.Point(3, 20); 121_addDocPropCheckBox.Location = new System.Drawing.Point(3, 116); 130_reasonLabel.Location = new System.Drawing.Point(3, 40); 138_reasonComboBox.Location = new System.Drawing.Point(3, 43); 148_actionlabel.Location = new System.Drawing.Point(3, 113); 157_locationLabel.Location = new System.Drawing.Point(3, 77); 165_locationTextBox.Location = new System.Drawing.Point(3, 80); 186_buttonflowLayoutPanel.Location = new System.Drawing.Point(3, 272); 200_cancelButton.Location = new System.Drawing.Point(434, 8); 214_signButton.Location = new System.Drawing.Point(392, 8); 228_signSaveAsButton.Location = new System.Drawing.Point(350, 8); 243_mainLayoutTable.Location = new System.Drawing.Point(6, 6);
MS\Internal\Documents\SigningProgress.Designer.cs (1)
42_label.Location = new System.Drawing.Point(20, 9);
System.ComponentModel.TypeConverter (2)
System\Drawing\PointConverter.cs (2)
50return new Point(x, y); 100return new Point((int)x, (int)y);
System.Drawing.Common (6)
System\Drawing\BufferedGraphicsContext.cs (1)
112_targetLoc = new Point(targetRectangle.X, targetRectangle.Y);
System\Drawing\Drawing2D\GraphicsPath.cs (1)
295public bool IsOutlineVisible(int x, int y, Pen pen) => IsOutlineVisible(new Point(x, y), pen, null);
System\Drawing\Graphics.cs (1)
368return new Point(x, y);
System\Drawing\ImageConverter.cs (1)
101|| header.ptSize != new Point(-1, -1)
System\Drawing\Printing\PrinterUnitConvert.cs (1)
35new(Convert(value.X, fromUnit, toUnit), Convert(value.Y, fromUnit, toUnit));
System\Drawing\Region.cs (1)
318public bool IsVisible(int x, int y, Graphics? g) => IsVisible(new Point(x, y), g);
System.Drawing.Primitives (7)
System\Drawing\Point.cs (5)
113public static Point Add(Point pt, Size sz) => new Point(unchecked(pt.X + sz.Width), unchecked(pt.Y + sz.Height)); 118public static Point Subtract(Point pt, Size sz) => new Point(unchecked(pt.X - sz.Width), unchecked(pt.Y - sz.Height)); 123public static Point Ceiling(PointF value) => new Point(unchecked((int)Math.Ceiling(value.X)), unchecked((int)Math.Ceiling(value.Y))); 128public static Point Truncate(PointF value) => new Point(unchecked((int)value.X), unchecked((int)value.Y)); 133public static Point Round(PointF value) => new Point(unchecked((int)Math.Round(value.X)), unchecked((int)Math.Round(value.Y)));
System\Drawing\Rectangle.cs (1)
60readonly get => new Point(X, Y);
System\Drawing\Size.cs (1)
121public static explicit operator Point(Size size) => new Point(size.Width, size.Height);
System.Private.Windows.Core (6)
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (1)
76value = new Point(classInfo.GetInt32("x"), classInfo.GetInt32("y"));
System\Private\Windows\Ole\DragDropHelper.cs (3)
59Point point = new(e.X, e.Y); 105Point point = new(e.X, e.Y); 121Point point = new(e.X, e.Y);
Windows\Win32\Foundation\LPARAM.cs (1)
27public static explicit operator Point(LPARAM value) => new(value.SIGNEDLOWORD, value.SIGNEDHIWORD);
Windows\Win32\Foundation\POINTS.cs (1)
10public static implicit operator Point(POINTS point) => new(point.x, point.y);
System.Private.Windows.Core.TestUtilities (4)
CommonTestHelper.cs (4)
83data.Add(new Point(1, 2)); 88data.Add(new Point(int.MaxValue, int.MinValue)); 89data.Add(new Point(-1, -2)); 103data.Add(new Size(new Point(1, 1)));
System.Windows.Forms (388)
System\Windows\Forms\Accessibility\LabelEditUiaTextProvider.cs (3)
192Point ptStart = new(rectangle.X + 1, rectangle.Y + 1); 193Point ptEnd = new(rectangle.Right - 1, rectangle.Bottom - 1); 369return new Point(PARAM.SignedLOWORD(i), PARAM.SignedHIWORD(i));
System\Windows\Forms\ActiveX\AxHost.cs (1)
1073Point phm = new(sz.Width, sz.Height);
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (4)
361Point pt = new(PARAM.LOWORD(lpmsg->lParam), PARAM.HIWORD(lpmsg->lParam)); 459Point p1 = new(rc.left, rc.top); 460Point p2 = new(rc.right - rc.left, rc.bottom - rc.top); 1702bounds.Location = new Point(bounds.X, bounds.Y);
System\Windows\Forms\ContextMenuStrip.cs (3)
97Rectangle bounds = CalculateDropDownLocation(new Point(x, y), ToolStripDropDownDirection.AboveLeft); 101bounds = CalculateDropDownLocation(new Point(x, y), ToolStripDropDownDirection.BelowLeft); 105bounds = CalculateDropDownLocation(new Point(x, y), ToolStripDropDownDirection.AboveRight);
System\Windows\Forms\Control.cs (6)
424Location = new Point(left, top); 2508get => new(_x, _y); 8833clientOffset = new(clientOffset.X - windowRect.left, clientOffset.Y - windowRect.top); 9179Location = new Point(0, 0); 11221client = new Point(Width / 2, Height / 2); 11225client = PointToClient(new Point(x, y));
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (16)
139Point p1 = new(bounds.X + bounds.Width - 1, bounds.Y); // Upper inner right 140Point p2 = new(bounds.X, bounds.Y); // Upper left 141Point p3 = new(bounds.X, bounds.Y + bounds.Height - 1); // Bottom inner left 142Point p4 = new(bounds.X + bounds.Width - 1, bounds.Y + bounds.Height - 1); // Inner bottom right 194Point p1 = new(bounds.X + bounds.Width - 1, bounds.Y); // Upper inner right 195Point p2 = new(bounds.X, bounds.Y); // Upper left 196Point p3 = new(bounds.X, bounds.Y + bounds.Height - 1); // Bottom inner left 197Point p4 = new(bounds.X + bounds.Width - 1, bounds.Y + bounds.Height - 1); // Inner bottom right 242Point p1 = new(bounds.X + bounds.Width - 1, bounds.Y); // Upper inner right 243Point p2 = new(bounds.X, bounds.Y); // Upper left 244Point p3 = new(bounds.X, bounds.Y + bounds.Height - 1); // Bottom inner left 245Point p4 = new(bounds.X + bounds.Width - 1, bounds.Y + bounds.Height - 1); // Inner bottom right 300Point p1 = new(r.Right - 1, r.Top); // Upper inner right 301Point p2 = new(r.Left, r.Top); // Upper left 302Point p3 = new(r.Left, r.Bottom - 1); // Bottom inner left 303Point p4 = new(r.Right - 1, r.Bottom - 1); // Inner bottom right
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (2)
268new Point(layout.CheckBounds.Left, layout.CheckBounds.Top), 283new Point(layout.CheckBounds.Left, layout.CheckBounds.Top),
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonBaseAdapter.cs (25)
109hdc.DrawLine(borderPen, new(bounds.X + 4, bounds.Y + 0), new(bounds.X + 8, bounds.Y + 0)); 110hdc.DrawLine(borderPen, new(bounds.X + 4, bounds.Y + 11), new(bounds.X + 8, bounds.Y + 11)); 112hdc.DrawLine(borderPen, new(bounds.X + 2, bounds.Y + 1), new(bounds.X + 4, bounds.Y + 1)); 113hdc.DrawLine(borderPen, new(bounds.X + 8, bounds.Y + 1), new(bounds.X + 10, bounds.Y + 1)); 115hdc.DrawLine(borderPen, new(bounds.X + 2, bounds.Y + 10), new(bounds.X + 4, bounds.Y + 10)); 116hdc.DrawLine(borderPen, new(bounds.X + 8, bounds.Y + 10), new(bounds.X + 10, bounds.Y + 10)); 118hdc.DrawLine(borderPen, new(bounds.X + 0, bounds.Y + 4), new(bounds.X + 0, bounds.Y + 8)); 119hdc.DrawLine(borderPen, new(bounds.X + 11, bounds.Y + 4), new(bounds.X + 11, bounds.Y + 8)); 121hdc.DrawLine(borderPen, new(bounds.X + 1, bounds.Y + 2), new(bounds.X + 1, bounds.Y + 4)); 122hdc.DrawLine(borderPen, new(bounds.X + 1, bounds.Y + 8), new(bounds.X + 1, bounds.Y + 10)); 124hdc.DrawLine(borderPen, new(bounds.X + 10, bounds.Y + 2), new(bounds.X + 10, bounds.Y + 4)); 125hdc.DrawLine(borderPen, new(bounds.X + 10, bounds.Y + 8), new(bounds.X + 10, bounds.Y + 10)); 209new Point(check.Left, check.Top),
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxUiaTextProvider.cs (3)
253Point ptStart = new(rectangle.X + 1, rectangle.Y + 1); 254Point ptEnd = new(rectangle.Right - 1, rectangle.Bottom - 1); 444return new Point(PARAM.SignedLOWORD(i), PARAM.SignedHIWORD(i));
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
1375return new Point(0, 0); 1388return new Point(comboXMid, comboYMid);
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (4)
148Point middle = new(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.Height / 2); 164new(middle.X - s_offsetPixels, middle.Y - 1), 165new(middle.X + s_offsetPixels + 1, middle.Y - 1), 166new(middle.X, middle.Y + s_offsetPixels)
System\Windows\Forms\Controls\DataGridView\DataGridView.AccessibleObject.cs (1)
160Point pt = owner.PointToClient(new Point(x, y));
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (7)
471_ptCurrentCell = new Point(-1, -1); 472_ptAnchorCell = new Point(-1, -1); 473_ptMouseDownCell = new Point(-2, -2); 474_ptMouseEnteredCell = new Point(-2, -2); 475_ptToolTipCell = new Point(-1, -1); 476_ptMouseDownGridCoord = new Point(-1, -1); 2338Point ptFirstDisplayedCellAddress = new(-1, -1)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (23)
65_ptToolTipCell = new Point(columnIndex, rowIndex); 4925return new Point(columnX + x, rowY + y); 13875Debug.Assert(CurrentCellAddress == new Point(-1, -1)); 15410newCurrentCell = new Point(columnIndexInserted <= _ptCurrentCell.X ? _ptCurrentCell.X + 1 : _ptCurrentCell.X, 15416newCurrentCell = new Point(-1, -1); 15530newCurrentCell = new Point(_ptCurrentCell.X, _ptCurrentCell.Y + insertionCount); 15551newCurrentCell = new Point(-1, -1); 15613newCurrentCell = new Point(_ptCurrentCell.X, _ptCurrentCell.Y + dataGridViewRows.Length); 15618newCurrentCell = new Point(-1, -1); 16117_ptMouseDownGridCoord = new Point(e.X, e.Y); 16334_ptToolTipCell = new Point(-1, -1); 17064newCurrentCell = new Point(newX, (newX == -1) ? -1 : _ptCurrentCell.Y); 17097newCurrentCell = new Point(-1, -1); 17248newCurrentCell = new Point(-1, -1); 17279newCurrentCell = new Point(_ptCurrentCell.X, newY); 18154Debug.Assert(CurrentCellAddress == new Point(-1, -1)); 18812Invalidate(new Rectangle(new Point(-pt.X, ColumnHeadersHeight), new Size(-step, ClientSize.Height))); 18822Invalidate(new Rectangle(new Point(ClientSize.Width - (pt.X - rect.Right) - step, ColumnHeadersHeight), 18829Invalidate(new Rectangle(new Point(0, -pt.Y), 18836Invalidate(new Rectangle(new Point(0, ColumnHeadersHeight), 19853_editingPanel.Location = new Point(Width + 1, 0); 26986AccessibilityNotifyCurrentCellChanged(new Point(_ptCurrentCell.X, _ptCurrentCell.Y)); 29966client = new Point(Width / 2, Height / 2);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (3)
1003cellBounds = new Rectangle(new Point(0, 0), GetSize(rowIndex)); 3760editingControl.Location = new Point(editingControlBounds.X, editingControlBounds.Y); 3850DataGridView.EditingPanel.Location = new Point(xEditingPanel, yEditingPanel);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnCollection.cs (3)
167OnCollectionChanged(new CollectionChangeEventArgs(CollectionChangeAction.Add, dataGridViewColumn), false /*changeIsInsertion*/, new Point(-1, -1)); 259OnCollectionChanged(new CollectionChangeEventArgs(CollectionChangeAction.Refresh, null), false /*changeIsInsertion*/, new Point(-1, -1)); 307OnCollectionChanged(new CollectionChangeEventArgs(CollectionChangeAction.Refresh, null), false /*changeIsInsertion*/, new Point(-1, -1));
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (4)
894Point sortGlyphLocation = new(0, 0); 945sortGlyphLocation = new Point(valBounds.Left - 955sortGlyphLocation = new Point(valBounds.Right + 997sortGlyphLocation = new Point(valBounds.Left + (valBounds.Width - s_sortGlyphWidth) / 2,
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (7)
2152Point middle = new(dropRect.Left + dropRect.Width / 2, dropRect.Top + dropRect.Height / 2); 2162new(middle.X - s_offset2X, middle.Y - 1), 2163new(middle.X + s_offset2X + 1, middle.Y - 1), 2164new(middle.X, middle.Y + s_offset2Y) 2175Point middle = new(dropRect.Left + (dropRect.Width - 1) / 2, 2181Point pt1 = new(middle.X - (s_nonXPTriangleWidth - 1) / 2, middle.Y - s_nonXPTriangleHeight); 2182Point pt2 = new(middle.X + (s_nonXPTriangleWidth - 1) / 2, middle.Y - s_nonXPTriangleHeight);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.cs (6)
828OnCollectionChanged(new CollectionChangeEventArgs(CollectionChangeAction.Refresh, null), 0, rowCount, true, false, recreateNewRow, new Point(-1, -1)); 1502Point newCurrentCell = new(-1, -1); 1612Point newCurrentCell = new(-1, -1); 1786Point newCurrentCell = new(-1, -1); 1911Point newCurrentCell = new(-1, -1); 2237OnCollectionChanged(new CollectionChangeEventArgs(CollectionChangeAction.Remove, dataGridViewRow), index, 1, true, false, false, new Point(-1, -1));
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (1)
800DataGridView!.EditingControl!.Location = new Point(editingControlBounds.X, editingControlBounds.Y);
System\Windows\Forms\Controls\DataGridView\DataGridViewUtilities.cs (1)
355Point ptTextLocation = new(0, 0);
System\Windows\Forms\Controls\Labels\LinkLabel.LinkLabelAccessibleObject.cs (1)
64Point p = owner.PointToClient(new Point(x, y));
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (1)
561CheckBoxRenderer.DrawCheckBoxWithVisualStyles(e, new Point(box.X, box.Y), cbState, HWNDInternal);
System\Windows\Forms\Controls\ListView\ListView.cs (6)
3212return FindItem(true, text, isPrefixSearch, new Point(0, 0), SearchDirectionHint.Down, startIndex, includeSubItemsInSearch); 3271return FindItem(false, string.Empty, false, new Point(x, y), searchDirection, 0, false); 3483pt = new Point(x, y) 3532pt = new Point(x, y) 3719pt = new Point(x, y) 5478Point pt = new(x, y);
System\Windows\Forms\Controls\ListView\ListView.ListViewAccessibleObject.cs (1)
291Point hitTestPoint = new(x, y);
System\Windows\Forms\Controls\ListView\ListViewItem.cs (2)
33private Point _position = new(-1, -1); 1305private bool ShouldSerializePosition() => !_position.Equals(new Point(-1, -1));
System\Windows\Forms\Controls\ListView\ListViewItem.IKeyboardToolTip.cs (1)
97Point point = new(listviewBounds.X + itemBounds.X, listviewBounds.Y + itemBounds.Y);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
1295pt = new Point(x, y),
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.MonthCalendarAccessibleObject.cs (1)
394Point point = owner.PointToClient(new Point(xScreen, yScreen));
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (8)
1966ControlPaint.DrawReversibleLine(new Point(rc.X + i, rc.Y), new Point(rc.X + i, rc.Y + rc.Height), targetControl.BackColor); 1973ControlPaint.DrawReversibleLine(new Point(rc.X, rc.Y + i), new Point(rc.X + rc.Width, rc.Y + i), targetControl.BackColor); 2603_gridView.Location = new Point(0, 0); 2615_gridView.Location = new Point(0, _toolStrip.Height + _toolStrip.Top); 2619_gridView.Location = new Point(0, 0); 4097Point temp = new(e.X, e.Y);
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.PropertyGridAccessibleObject.cs (1)
29Point clientPoint = owningPropertyGrid.PointToClient(new Point((int)x, (int)y));
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CommandsPane.cs (1)
224links[i] = new Point(index, name.Length);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (3)
20protected static Point InvalidPoint { get; } = new(int.MinValue, int.MinValue); 1605_labelTipPoint = maxSpace <= labelWidth ? new Point(stringX + 2, rect.Y + 1) : InvalidPoint; 1937ValueToolTipLocation = doToolTip ? new Point(rect.X + 2, rect.Y - 1) : InvalidPoint;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (10)
127Location = new(73, 30), 136Location = new(3, 3), 148Location = new(3, 3), 161Location = new(131, 3), 173Location = new(212, 3), 187Location = new(0, 79), 210Location = new(3, 3), 229Location = new(1, 0), 250Location = new(4, 114), 320_detailsTextBox.Location = new Point(x, y);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (4)
137_titleLabel.Location = new(_borderSize, _borderSize); 138_descriptionLabel.Location = new(_borderSize, _borderSize + _lineHeight); 239_titleLabel.Location = new(_borderSize, _borderSize); 240_descriptionLabel.Location = new(_borderSize, _borderSize + _lineHeight);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (1)
323return new Point(mouseX, mouseY);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (12)
24private static Point InvalidPoint { get; } = new(int.MinValue, int.MinValue); 54private static Point InvalidPosition { get; } = new(int.MinValue, int.MinValue); 92private Point _location = new(1, 1); 479Point point = PointToScreen(new(rect.X, rect.Y)); 480return new Point(point.X + (rect.Width / 2), point.Y + (rect.Height / 2)); 625Point pt = new(rect.X, rect.Y); 1125Point newOrigin = new(rect.X, rect.Y); 1180Point newOrigin = new(rect.X, rect.Y); 1442Point location = PointToScreen(new Point(0, 0)); 1681Point pt = new(RowLabel, 0); 3021_lastMouseDown = new Point(e.X, e.Y); 3824Point location = parent.PointToScreen(new(rect.left, rect.top));
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (2)
397_dragStart = PointToScreen(new Point(e.X, e.Y)); 429Point dragPoint = PointToScreen(new Point(e.X, e.Y));
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.PropertyGridViewAccessibleObject.cs (1)
431Point point = new(x, y);
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
2209Point wpt = new(pt.X, pt.Y);
System\Windows\Forms\Controls\Splitter\Splitter.cs (1)
900_anchor = new Point(x, y);
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
25private static readonly Point s_defaultPaddingPoint = new(6, 3);
System\Windows\Forms\Controls\TabControl\TabControl.TabControlAccessibleObject.cs (1)
90Point point = new(x, y);
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (2)
1610return new Point(PARAM.SignedLOWORD(i), PARAM.SignedHIWORD(i)); 2061client = new Point(Width / 2, Height / 2);
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (2)
371Point ptStart = new(rectangle.X + 1, rectangle.Y + 1); 372Point ptEnd = new(rectangle.Right - 1, rectangle.Bottom - 1);
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (2)
589? new Point(SizeGripBounds.Left, SizeGripBounds.Bottom) 590: new Point(SizeGripBounds.Right, SizeGripBounds.Bottom);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (32)
27internal static Point s_invalidMouseEnter = new(int.MaxValue, int.MaxValue); 2133Point midPointOfCurrent = new(selectedItem.Bounds.X + selectedItem.Width / 2, 2157Point otherItemMidLocation = new(otherItem.Bounds.X + otherItem.Width / 2, (down) ? otherItem.Bounds.Top : otherItem.Bounds.Bottom); 2597ToolStripLocationCancelEventArgs cae = new(new Point(x, y), false); 3324Point itemRelativePoint = item.TranslatePoint(new Point(mea.X, mea.Y), ToolStripPointType.ToolStripCoords, ToolStripPointType.ToolStripItemCoords); 3380Point itemRelativePoint = item!.TranslatePoint(new Point(mea.X, mea.Y), ToolStripPointType.ToolStripCoords, ToolStripPointType.ToolStripItemCoords); 3424Point itemRelativePoint = item.TranslatePoint(new Point(mea.X, mea.Y), ToolStripPointType.ToolStripCoords, ToolStripPointType.ToolStripItemCoords); 3789new(verticalBeamStart, _lastInsertionMarkRect.Y), new(verticalBeamStart, _lastInsertionMarkRect.Bottom - 1), 3790new(verticalBeamStart + 1, _lastInsertionMarkRect.Y), new(verticalBeamStart + 1, _lastInsertionMarkRect.Bottom - 1) 3796new(start, _lastInsertionMarkRect.Bottom - 1), new(start + widthOfBeam - 1, _lastInsertionMarkRect.Bottom - 1), 3797new(start + 1, _lastInsertionMarkRect.Bottom - 2), new(start + widthOfBeam - 2, _lastInsertionMarkRect.Bottom - 2) 3803new(start, _lastInsertionMarkRect.Y), new(start + widthOfBeam - 1, _lastInsertionMarkRect.Y), 3804new(start + 1, _lastInsertionMarkRect.Y + 1), new(start + widthOfBeam - 2, _lastInsertionMarkRect.Y + 1) 3816new(_lastInsertionMarkRect.X, horizontalBeamStart), new(_lastInsertionMarkRect.Right - 1, horizontalBeamStart), 3817new(_lastInsertionMarkRect.X, horizontalBeamStart + 1), new(_lastInsertionMarkRect.Right - 1, horizontalBeamStart + 1) 3823new(_lastInsertionMarkRect.X, start), new(_lastInsertionMarkRect.X, start + widthOfBeam - 1), 3824new(_lastInsertionMarkRect.X + 1, start + 1), new(_lastInsertionMarkRect.X + 1, start + widthOfBeam - 2) 3830new(_lastInsertionMarkRect.Right - 1, start), new(_lastInsertionMarkRect.Right - 1, start + widthOfBeam - 1), 3831new(_lastInsertionMarkRect.Right - 2, start + 1), new(_lastInsertionMarkRect.Right - 2, start + widthOfBeam - 2) 3865public ToolStripItem? GetItemAt(int x, int y) => GetItemAt(new Point(x, y));
System\Windows\Forms\Controls\ToolStrips\ToolStrip.ToolStripAccessibleObject.cs (1)
29Point clientHit = owner.PointToClient(new Point(x, y));
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxFlatComboAdapter.cs (4)
142Point middle = new(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.Height / 2); 150new(middle.X - s_offsetPixels, middle.Y - 1), 151new(middle.X + s_offsetPixels + 1, middle.Y - 1), 152new(middle.X, middle.Y + s_offsetPixels)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (4)
21private Point _displayLocation = new(0, 0); 1040dropDownBounds.Location = new Point(start.X + offset.X, start.Y + offset.Y); 1841Show(control, new Point(x, y)); 1862_displayLocation = new Point(x, y);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (1)
336dropDownBounds.Location = new Point(itemScreenLocation.X + offset.X, itemScreenLocation.Y + offset.Y);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (5)
363nextPoint = new Point(_checkPadding.Left, _checkPadding.Top); 378nextPoint = new Point(1, _checkPadding.Top); 398nextPoint = new Point(1, _checkPadding.Top); 824Point upLocation = new(1, 0); 831Point downLocation = new(1, height - downSize.Height);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropTargetManager.cs (1)
57return _owner.GetItemAt(_owner.PointToClient(new Point(x, y)));
System\Windows\Forms\Controls\ToolStrips\ToolStripGrip.cs (3)
120_startLocation = TranslatePoint(new Point(mea.X, mea.Y), ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords); 160Point endLocation = TranslatePoint(new Point(mea.X, mea.Y), ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords); 217Point endLocation = TranslatePoint(new Point(mea.X, mea.Y), ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (7)
423return new Point(toolStripToDrag.Right, toolStripToDrag.Top); 529controlLocations[j] = new Point(row.Bounds.Width - control.Right, control.Top); 731location = new Point(0, dragRect.Bottom - 1); 735location = new Point(dragRect.Right - 1, 0); 743Join(toolStripToDrag, new Point(x, y)); 894Point endLocation = (Orientation == Orientation.Horizontal) ? new Point(clientLocation.X, row.Bounds.Y) : new Point(row.Bounds.X, clientLocation.Y);
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (22)
853Point topRight = new(bounds.Width - 1, 0); 854Point bottomLeft = new(0, bounds.Height - 1); 855Point bottomRight = new(bounds.Width - 1, bounds.Height - 1); 1269Point start = new(overflowBoundsFill.Left - 1, overflowBoundsFill.Height - 2); 1270Point end = new(overflowBoundsFill.Left, overflowBoundsFill.Height - 2); 1297Point top1 = new(overflowBoundsFill.X - 2, 0); 1298Point top2 = new(overflowBoundsFill.X - 1, 1); 1344Point topRight = new(bounds.Width - 1, 0); 1345Point bottomLeft = new(0, bounds.Height - 1); 1647Point middle = new(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.Height / 2); 1656new(middle.X - Offset2X, middle.Y + 1), 1657new(middle.X + Offset2X + 1, middle.Y + 1), 1658new(middle.X, middle.Y - Offset2Y) 1662new(middle.X + Offset2X, middle.Y - Offset2Y - 1), 1663new(middle.X + Offset2X, middle.Y + Offset2Y + 1), 1664new(middle.X - 1, middle.Y) 1668new(middle.X - Offset2X, middle.Y - Offset2Y - 1), 1669new(middle.X - Offset2X, middle.Y + Offset2Y + 1), 1670new(middle.X + 1, middle.Y) 1674new(middle.X - Offset2X, middle.Y - 1), 1675new(middle.X + Offset2X + 1, middle.Y - 1), 1676new(middle.X, middle.Y + Offset2Y)
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (13)
639Point middle = new( 669arrow[0] = new(middle.X - Offset2X, middle.Y + 1); 670arrow[1] = new(middle.X + Offset2X + 1, middle.Y + 1); 671arrow[2] = new(middle.X, middle.Y - Offset2Y); 675arrow[0] = new(middle.X + Offset2X, middle.Y - s_offset4Y); 676arrow[1] = new(middle.X + Offset2X, middle.Y + s_offset4Y); 677arrow[2] = new(middle.X - horizontalOffset, middle.Y); 681arrow[0] = new(middle.X - Offset2X, middle.Y - s_offset4Y); 682arrow[1] = new(middle.X - Offset2X, middle.Y + s_offset4Y); 683arrow[2] = new(middle.X + horizontalOffset, middle.Y); 687arrow[0] = new(middle.X - Offset2X, middle.Y - 1); 688arrow[1] = new(middle.X + Offset2X + 1, middle.Y - 1); 689arrow[2] = new(middle.X, middle.Y + Offset2Y);
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (1)
466Point clickPoint = new(e.X, e.Y);
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackDragDropHandler.cs (3)
26ShowItemDropPoint(_owner.PointToClient(new Point(e.X, e.Y))); 40OnDropItem(item, _owner.PointToClient(new Point(e.X, e.Y))); 48if (ShowItemDropPoint(_owner.PointToClient(new Point(e.X, e.Y))))
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (2)
320Point itemLocation = new(x, y); 452Point itemLocation = new(x, y);
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemDarkModeRenderer.cs (13)
443Point middle = new( 480new Point(middle.X - 2, middle.Y + 1), 481new Point(middle.X + 3, middle.Y + 1), 482new Point(middle.X, middle.Y - 2) 486new Point(middle.X + 2, middle.Y - 4), 487new Point(middle.X + 2, middle.Y + 4), 488new Point(middle.X - 2, middle.Y) 492new Point(middle.X - 2, middle.Y - 4), 493new Point(middle.X - 2, middle.Y + 4), 494new Point(middle.X + 2, middle.Y) 498new Point(middle.X - 2, middle.Y - 1), 499new Point(middle.X + 3, middle.Y - 1), 500new Point(middle.X, middle.Y + 2)
System\Windows\Forms\Controls\TrackBar\TrackBar.TrackBarAccessibleObject.cs (1)
107Point point = new(x, y);
System\Windows\Forms\Controls\TreeView\TreeView.cs (4)
1639pt = new Point(x, y) 1680pt = new Point(x, y) 2816Point textLoc = new(AppContextSwitches.MoveTreeViewTextLocationOnePixel ? bounds.X : bounds.X - 1, bounds.Y); 3418client = new Point(treeNode.Bounds.X, treeNode.Bounds.Y + treeNode.Bounds.Height / 2);
System\Windows\Forms\Controls\TreeView\TreeView.TreeViewAccessibleObject.cs (1)
64Point p = owningTreeView.PointToClient(new Point(x, y));
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (3)
301new Point(0, 0)); 351Point pt1 = new(clientRect.Left, clientRect.Bottom - 1); 352Point pt2 = new(clientRect.Right, clientRect.Bottom - 1);
System\Windows\Forms\Controls\WebBrowser\HtmlElementEventArgs.cs (3)
50get => new(NativeHTMLEventObj.GetClientX(), NativeHTMLEventObj.GetClientY()); 55get => new(NativeHTMLEventObj.GetOffsetX(), NativeHTMLEventObj.GetOffsetY()); 60get => new(NativeHTMLEventObj.GetX(), NativeHTMLEventObj.GetY());
System\Windows\Forms\Controls\WebBrowser\HtmlWindow.cs (1)
176return new(x, y);
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (1)
1352client = new Point(Width / 2, Height / 2);
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
1106Point phm = new(sz.Width, sz.Height);
System\Windows\Forms\Dialogs\ThreadExceptionDialog.cs (1)
256_pictureBox.Location = new Point(_scaledPictureWidth / 8, _scaledPictureHeight / 8);
System\Windows\Forms\Form.cs (2)
4395Point pointToSnap = new(button.Left + button.Width / 2, button.Top + button.Height / 2); 5404Location = new Point(workingArea.X + x, workingArea.Y + y);
System\Windows\Forms\Input\Cursor.cs (1)
173return new Point((int)info.xHotspot, (int)info.yHotspot);
System\Windows\Forms\Input\MouseEventArgs.cs (1)
64public Point Location => new(X, Y);
System\Windows\Forms\Internal\WinFormsUtils.cs (1)
29return new Point(PARAM.SignedLOWORD(lastXY), PARAM.SignedHIWORD(lastXY));
System\Windows\Forms\Layout\Containers\SplitContainer.cs (20)
1645Panel2.Location = new Point(Panel1.WidthInternal + SplitterWidthInternal, 0); 1649Panel1.Location = new Point(Width - Panel1.WidthInternal, 0); 1660Panel2.Location = new Point(0, 0); 1665Panel1.Location = new Point(0, 0); 1680Panel2.Location = new Point(0, panel2Start); 1690Panel2.Location = new Point(0, panel2Start); 1705Panel2.Location = new Point(0, panel2Start); 1716Panel2.Location = new Point(0, 0); 1721Panel1.Location = new Point(0, 0); 2091_anchor = new Point(x, y); 2182Panel1.Location = new Point(0, 0); 2183Panel2.Location = new Point(_splitterDistance + SplitterWidthInternal, 0); 2187Panel1.Location = new Point(Width - _splitterDistance, 0); 2188Panel2.Location = new Point(0, 0); 2203Panel2.Location = new Point(0, 0); 2208Panel1.Location = new Point(0, 0); 2223Panel1.Location = new Point(0, 0); 2229Panel2.Location = new Point(0, panel2Start); 2244Panel2.Location = new Point(0, 0); 2249Panel1.Location = new Point(0, 0);
System\Windows\Forms\Layout\FlowLayout.ContainerProxy.cs (2)
67Point pt = new(value.X, value.Y); 145Point pt = new(newBounds.X, newBounds.Y);
System\Windows\Forms\Layout\FlowLayout.cs (1)
25Rectangle measureBounds = new(new Point(0, 0), proposedConstraints);
System\Windows\Forms\Printing\PrintControllerWithStatusDialog.StatusDialog.cs (3)
38Location = new Point(8, 16), 50Location = new Point(88, 88), 61Location = new Point(0, 0),
System\Windows\Forms\Printing\PrintPreviewControl.cs (3)
35private Point _position = new(0, 0); 477_screenDPI = new Point( 625Point offset = new(
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
911_previewControl.Location = new Point(0, 43);
System\Windows\Forms\Rendering\ControlPaint.cs (3)
523new Point(imageRect.X - imageRectangle.X, imageRect.Y - imageRectangle.Y), 1700Point start = new(bounds.X + bounds.Width - 1, bounds.Y - 1); 1701Point end = new(bounds.X + bounds.Width - 1, bounds.Y + bounds.Height);
System\Windows\Forms\Rendering\ControlPaint_ModernControlButtonRenderer.cs (20)
331new Point(centerX - chevronWidth / 2, centerY - chevronHeight / 3), 332new Point(centerX - strokeThickness / 2, centerY + chevronHeight / 3), 333new Point(centerX + strokeThickness / 2, centerY + chevronHeight / 3), 334new Point(centerX - chevronWidth / 2 + strokeThickness, centerY - chevronHeight / 3), 339new Point(centerX + chevronWidth / 2 - strokeThickness, centerY - chevronHeight / 3), 340new Point(centerX - strokeThickness / 2, centerY + chevronHeight / 3), 341new Point(centerX + strokeThickness / 2, centerY + chevronHeight / 3), 342new Point(centerX + chevronWidth / 2, centerY - chevronHeight / 3), 354new Point(centerX, centerY - size / 2), // Top point 355new Point(centerX - size / 2, centerY + size / 2), // Bottom left 356new Point(centerX + size / 2, centerY + size / 2), // Bottom right 366new Point(centerX, centerY + size / 2), // Bottom point 367new Point(centerX - size / 2, centerY - size / 2), // Top left 368new Point(centerX + size / 2, centerY - size / 2), // Top right 378new Point(centerX - size / 2, centerY), // Left point 379new Point(centerX + size / 2, centerY - size / 2), // Top right 380new Point(centerX + size / 2, centerY + size / 2), // Bottom right 390new Point(centerX + size / 2, centerY), // Right point 391new Point(centerX - size / 2, centerY - size / 2), // Top left 392new Point(centerX - size / 2, centerY + size / 2), // Bottom left
System\Windows\Forms\Scrolling\ScrollableControl.cs (2)
120return new Point(rect.X, rect.Y); 893return new Point(xCalc, yCalc);
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarAccessibleObject.cs (1)
91Point point = new(x, y);
System\Windows\Forms\ToolTip\ToolTip.cs (7)
1414SetTool(window, text, TipInfo.Type.Absolute, new Point(pointX, pointY)); 1433SetTool(window, text, TipInfo.Type.Absolute, new Point(pointX, pointY)); 1451SetTool(window, text, TipInfo.Type.Absolute, new Point(pointX, pointY)); 1469SetTool(window, text, TipInfo.Type.Absolute, new Point(pointX, pointY)); 1490SetTool(ownerWindow, text, TipInfo.Type.Absolute, new Point(pointX, pointY)); 1505tipInfo.Position = new Point(pointX, pointY); 1630return new Point(optimalLocation.Left, optimalLocation.Top);
System.Windows.Forms.Design (150)
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (4)
244Point middle = new( 252new(middle.X - s_offset2X, middle.Y - 1), 253new(middle.X + s_offset2X + 1, middle.Y - 1), 254new(middle.X, middle.Y + s_offset2Y)
System\ComponentModel\Design\DesignerActionPanel.CheckBoxPropertyLine.cs (1)
39_checkBox.Location = new Point(LineLeftMargin, top + LineVerticalPadding / 2);
System\ComponentModel\Design\DesignerActionPanel.cs (1)
345return new Point(x, y);
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (2)
174_button.Location = new Point(EditRegionLocation.X + EditRegionSize.Width - buttonHeight - EditorLineButtonPadding, EditRegionLocation.Y + EditorLineButtonPadding + 1); 297g.DrawImage(_swatch, new Point(EditRegionRelativeLocation.X + 2, EditorLineSwatchPadding + 5));
System\ComponentModel\Design\DesignerActionPanel.MethodLine.cs (1)
48_linkLabel.Location = new Point(LineLeftMargin, top + LineVerticalPadding / 2);
System\ComponentModel\Design\DesignerActionPanel.PanelHeaderLine.cs (2)
65_titleLabel.Location = new Point(LineLeftMargin, top + PanelHeaderVerticalPadding); 68_subtitleLabel.Location = new Point(LineLeftMargin, top + PanelHeaderVerticalPadding * 2 + titleSize.Height);
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (6)
105_editRegionLocation = new Point(editRegionXPos, top + TextBoxTopPadding); 106EditRegionRelativeLocation = new Point(editRegionXPos, TextBoxTopPadding); 109_label.Location = new Point(LineLeftMargin, top); 114EditControl!.Location = new Point(_editRegionLocation.X + GetTextBoxLeftPadding(textBoxPreferredHeight) + 1 + specialPadding, _editRegionLocation.Y + TextBoxLineInnerPadding + 1); 137_textBox.Location = new Point(int.MaxValue, int.MaxValue); 144_readOnlyTextBoxLabel.Location = new Point(int.MaxValue, int.MaxValue);
System\ComponentModel\Design\DesignerActionPanel.TextLine.cs (1)
43_label.Location = new Point(LineLeftMargin, top + LineVerticalPadding / 2);
System\ComponentModel\Design\DesignerActionUI.cs (1)
665Point glyphLocationScreenCoord = new(0, 0);
System\Drawing\Design\ColorEditor.ColorPalette.ColorPaletteAccessibleObject.ColorCellAccessibleObject.cs (1)
36Point pt = new(rect.X, rect.Y);
System\Drawing\Design\ColorEditor.ColorPalette.ColorPaletteAccessibleObject.cs (1)
43Point point = palette.PointToClient(new(x, y));
System\Drawing\Design\ColorEditor.ColorPalette.cs (5)
137return new Point(x, y); 165return new Point(-1, -1); 172return new Point(-1, -1); 175return new Point(across, down); 196return new Point(x, y);
System\Drawing\Design\ColorEditor.ColorUI.cs (1)
318_pal.Location = new Point(0, rectTabControl.Y);
System\Drawing\Design\ContentAlignmentEditor.ContentUI.cs (8)
225_topCenter.Location = new Point(pixel_32, 0); 228_topRight.Location = new Point(pixel_99, 0); 231_middleLeft.Location = new Point(0, pixel_32); 234_middleCenter.Location = new Point(pixel_32, pixel_32); 237_middleRight.Location = new Point(pixel_99, pixel_32); 240_bottomLeft.Location = new Point(0, pixel_64); 243_bottomCenter.Location = new Point(pixel_32, pixel_64); 246_bottomRight.Location = new Point(pixel_99, pixel_64);
System\Windows\Forms\Design\AnchorEditor.AnchorUI.cs (6)
86_container.Location = new Point(0, 0); 90_control.Location = new Point(pixel_30, pixel_30); 94_right.Location = new Point(pixel_60, pixel_40); 101_left.Location = new Point(XBORDER, pixel_40); 108_top.Location = new Point(pixel_40, YBORDER); 115_bottom.Location = new Point(pixel_40, pixel_60);
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.cs (1)
345Point mouseLoc = new(x, y);
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.MouseHook.cs (1)
179Point pt = adornerWindow.PointToClient(new Point(x, y));
System\Windows\Forms\Design\Behavior\BehaviorService.cs (2)
260public Point AdornerWindowToScreen() => AdornerWindowPointToScreen(new Point(0, 0)); 272Point pt = new(c.Left, c.Top);
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (2)
1100_dragOffset = new Point(dragBounds.X - _dragOffset.X, dragBounds.Y - _dragOffset.Y); 1143Point snapPoint = new(_snapPointX != INVALID_VALUE ? _snapPointX : 0, _snapPointY != INVALID_VALUE ? _snapPointY : 0);
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (9)
113_lastFeedbackLocation = new Point(-1, -1); 143Point controlLocation = new(dragLoc.X - _parentLocation.X, dragLoc.Y - _parentLocation.Y); 271Point pt = new(dropPoint.X, dropPoint.Y); 493Point dropPoint = new(initialDropPoint.X + _dragComponents[i].positionOffset.X, 582_lastFeedbackLocation = new Point(-1, -1); 733Point newPosition = new(mouseLoc.X - _initialMouseLoc.X + _dragComponents[_primaryComponentIndex].originalControlLocation.X, 782newPosition = new Point(mouseLoc.X - _initialMouseLoc.X + _originalDragImageLocation.X, 942_dragComponents[i].positionOffset = new Point(dragControl.Location.X - primaryControl.Location.X, 1039_originalDragImageLocation = new Point(_dragImageRect.X, _dragImageRect.Y);
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (2)
482Point mouseLocAbs = new(mouseLoc.X, mouseLoc.Y); 547_lastMouseAbs = new Point(mouseLoc.X, mouseLoc.Y);
System\Windows\Forms\Design\Behavior\ToolboxItemSnapLineBehavior.cs (2)
256ToolboxSnapDragDropEventArgs se = CreateToolboxSnapArgs(e, new Point(e.X - screenOffset.X, e.Y - screenOffset.Y)); 342Point adornerServiceOrigin = _behaviorService.MapAdornerWindowPoint(baseControl.Handle, new Point(0, 0));
System\Windows\Forms\Design\CommandSet.cs (3)
807Point snappedOffset = dragManager.OffsetToNearestSnapLocation(primaryControl, new Point(moveOffsetX, moveOffsetY)); 3273Point offset = new(-min.X, -min.Y); 3286Point parentOffset = new(parentSize.Width / 2, parentSize.Height / 2);
System\Windows\Forms\Design\ComponentTray.cs (19)
27private static Point InvalidPoint { get; } = new(int.MinValue, int.MinValue); 359AutoScrollPosition = new Point(0, 0); 598SetTrayLocation(comp, new Point(tc.Location.X - _autoScrollPosBeforeDragging.X, tc.Location.Y - _autoScrollPosBeforeDragging.Y)); 602AutoScrollPosition = new Point(-_autoScrollPosBeforeDragging.X, -_autoScrollPosBeforeDragging.Y); 979return new Point(loc.X - autoScrollLoc.X, loc.Y - autoScrollLoc.Y); 1054_mouseDropLocation = PointToClient(new Point(de.X, de.Y)); 1227_mouseDropLocation = new Point(e.X, e.Y); 1250_mouseDragStart = new Point(e.X, e.Y); 1293_mouseDragEnd = new Point(0, 0); 1560location = new Point(location.X + autoScrollLoc.X, location.Y + autoScrollLoc.Y); 1817Point newLoc = new(display.X + _whiteSpace.X, display.Y + _whiteSpace.Y); 1829newLoc = new Point(newLoc.X - autoScrollLoc.X, newLoc.Y - autoScrollLoc.Y); 1845Point newLoc = new(bounds.X + bounds.Width + _whiteSpace.X, bounds.Y); 1864newLoc = new Point(newLoc.X - autoScrollLoc.X, newLoc.Y - autoScrollLoc.Y); 2143_mouseDragLast = PointToScreen(new Point(me.X, me.Y)); 2176Point newPt = PointToScreen(new Point(me.X, me.Y)); 2670return _hitTestedGlyph.Behavior.OnMouseDoubleClick(_hitTestedGlyph, e.Button, new Point(e.X, e.Y)); 2684return _hitTestedGlyph.Behavior.OnMouseDown(_hitTestedGlyph, e.Button, new Point(e.X, e.Y)); 2698return _hitTestedGlyph.Behavior.OnMouseMove(_hitTestedGlyph, e.Button, new Point(e.X, e.Y));
System\Windows\Forms\Design\ControlCommandSet.cs (1)
631Point snappedOffset = dragManager.OffsetToNearestSnapLocation(primaryControl, targetSnaplines, new Point(moveOffsetX, moveOffsetY));
System\Windows\Forms\Design\ControlDesigner.cs (3)
20protected static readonly Point InvalidPoint = new(int.MinValue, int.MinValue); 301return new Point(Math.Abs(nativeOffset.X - offset.X), nativeOffset.Y - offset.Y); 1321_mouseDragLast = new Point(x, y);
System\Windows\Forms\Design\ControlDesigner.TransparentBehavior.cs (1)
71if (e is not null && _controlRect != Rectangle.Empty && !_controlRect.Contains(new Point(e.X, e.Y)))
System\Windows\Forms\Design\DesignBindingPicker.cs (2)
1747Point pt = new(e.X, e.Y); 2068TreeViewHitTestInfo treeViewHitTestInfo = HitTest(new Point(e.X, e.Y));
System\Windows\Forms\Design\DesignerFrame.cs (1)
163_designer!.Location = new Point(selectionSize.Width, selectionSize.Height);
System\Windows\Forms\Design\DesignerUtils.cs (1)
159return new Point(PARAM.SignedLOWORD(lastXY), PARAM.SignedHIWORD(lastXY));
System\Windows\Forms\Design\DockEditor.DockUI.cs (1)
194_container.Location = new Point(scaledOffset, scaledOffset);
System\Windows\Forms\Design\DocumentDesigner.cs (1)
743Location = new Point(0, 0);
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (17)
396ReDrawIBar(new Point(bounds.Left, bounds.Top), new Point(bounds.Left, bounds.Bottom)); 399ReDrawIBar(new Point(bounds.Right, bounds.Top), new Point(bounds.Right, bounds.Bottom)); 402ReDrawIBar(new Point(bounds.Left, bounds.Top), new Point(bounds.Right, bounds.Top)); 405ReDrawIBar(new Point(bounds.Left, bounds.Bottom), new Point(bounds.Right, bounds.Bottom)); 415ReDrawIBar(new Point(bounds.Right, bounds.Top), new Point(bounds.Right, bounds.Bottom)); 418ReDrawIBar(new Point(bounds.Left, bounds.Top), new Point(bounds.Left, bounds.Bottom)); 421ReDrawIBar(new Point(bounds.Left, bounds.Bottom), new Point(bounds.Right, bounds.Bottom)); 424ReDrawIBar(new Point(bounds.Left, bounds.Top), new Point(bounds.Right, bounds.Top)); 790Point mouseLocation = new(de.X, de.Y);
System\Windows\Forms\Design\FormatStringDialog.cs (3)
174_formatControl1.Location = new Drawing.Point(10, 10); 182_cancelButton.Location = new Drawing.Point(299, 288); 192_okButton.Location = new Drawing.Point(203, 288);
System\Windows\Forms\Design\GroupBoxDesigner.cs (1)
27return new Point(gb.DisplayRectangle.X, gb.DisplayRectangle.Y);
System\Windows\Forms\Design\OleDragDropHandler.cs (6)
191defaultValues["Location"] = new Point(x, y); 463_dragBase = new Point(initialX, initialY); 465c.PointToClient(new Point(initialX, initialY)); 758Point dropPt = Destination.GetDesignerControl().PointToClient(new Point(de.X, de.Y)); 965Point convertedPoint = Destination.GetDesignerControl().PointToClient(new Point(de.X, de.Y)); 968Point newOffset = _forceDrawFrames ? convertedPoint : new Point(de.X - _dragBase.X, de.Y - _dragBase.Y);
System\Windows\Forms\Design\ParentControlDesigner.cs (10)
111protected virtual Point DefaultControlLocation => new(0, 0); 576Point pt = new(bounds.X, bounds.Y); 1121return new Point(r.X, r.Y); 1139Point halfGrid = new(gridSize.Width / 2, gridSize.Height / 2); 1433CreateTool(_mouseDragTool, new Point(de.X, de.Y)); 1729_mouseDragBase = new Point(x, y); 1817Point location = new(baseVar.X, baseVar.Y); 2008Point offset = new(_mouseDragOffset.X, _mouseDragOffset.Y); 2185newLoc = new Point(controlLoc.X - parentLoc.X, controlLoc.Y - parentLoc.Y); 2190newLoc = new Point(controlLoc.X + oldParentLoc.X, controlLoc.Y + oldParentLoc.Y);
System\Windows\Forms\Design\SelectionUIService.cs (4)
25private static readonly Point s_invalidPoint = new(int.MinValue, int.MinValue); 513Point anchor = PointToScreen(new Point(me.X, me.Y)); 600Point screenCoord = PointToScreen(new Point(me.X, me.Y)); 712Point screenCoord = PointToScreen(new Point(me.X, me.Y));
System\Windows\Forms\Design\SplitterPanelDesigner.cs (1)
194TextRenderer.DrawText(g, name, drawFont, new Point(watermarkX, watermarkY), waterMarkTextColor, TextFormatFlags.PreserveGraphicsClipping | TextFormatFlags.PreserveGraphicsTranslateTransform);
System\Windows\Forms\Design\TabControlDesigner.cs (1)
556Point dropPoint = Control.PointToClient(new Point(de.X, de.Y));
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (3)
966Point position = new(-1, -1); 1050return new Point(pos.Column, pos.Row); 1289Point cell = GetCellPosition(new Point(x, y));
System\Windows\Forms\Design\ToolStripAdornerWindowService.cs (2)
92public Point AdornerWindowToScreen() => AdornerWindowPointToScreen(new Point(0, 0)); 104Point pt = new(c.Left, c.Top);
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
1824Point offset = new(de.X, de.Y);
System\Windows\Forms\Design\ToolStripEditorManager.cs (1)
131Location = new Point(bounds.X, bounds.Y);
System\Windows\Forms\Design\ToolStripItemBehavior.cs (2)
979parentDesigner.DragBoxFromMouseDown = _dragBoxFromMouseDown = new Rectangle(new Point(mouseLoc.X - (dragSize.Width / 2), mouseLoc.Y - (dragSize.Height / 2)), dragSize); 1002ownerItemDesigner._dragBoxFromMouseDown = _dragBoxFromMouseDown = new Rectangle(new Point(mouseLoc.X - (dragSize.Width / 2), mouseLoc.Y - (dragSize.Height / 2)), dragSize);
System\Windows\Forms\Design\ToolStripItemDesigner.cs (1)
1293newPoint = behaviorService.ScreenToAdornerWindow(new Point(x, y));
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (1)
504node.ShowContextMenu(new Point(x, y));
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
1343dropDownItem.DropDown.Location = new Point(dropDownItem.DropDown.Location.X + _commitedEditorNode.Bounds.Width - dropDownItem.Bounds.Width, dropDownItem.DropDown.Location.Y);
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (2)
528Point position = new Point(0, 0) 571Point position = new Point(0, 0)
System.Windows.Forms.Primitives (3)
System\Windows\Forms\Automation\UiaTextRange.cs (1)
382Point mapClientToScreen = new((int)ownerBounds[0], (int)ownerBounds[1]);
Windows\Win32\Foundation\Interop.PARAM.cs (1)
72=> new(SignedLOWORD(param), SignedHIWORD(param));
Windows\Win32\UI\Accessibility\UiaPoint.cs (1)
10public static implicit operator Point(UiaPoint value) => new((int)value.x, (int)value.y);
WindowsFormsIntegration (1)
System\Windows\Integration\WindowsFormsHost.cs (1)
792this.Location = new SD.Point(short.MinValue, short.MinValue);