709 instantiations of 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 (5)
CommonTestHelper.cs (5)
82data.Add(new Point(10)); 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 (391)
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 (6)
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); 769Point pt = new Point 1348private static Point PixelToHiMetric(int x, int y) => new() 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\Label.cs (1)
1434Point pt = new((int)m.LParamInternal);
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 (151)
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 (20)
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); 1809_whiteSpace = new Point(_selectionUISvc.GetAdornmentDimensions(AdornmentType.GrabHandle)); 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);
1744 references to Point
Microsoft.Private.Windows.Core (113)
_generated\131\Windows.Win32.IDragSourceHelper.g.cs (8)
83 /// <inheritdoc cref="InitializeFromWindow(winmdroot.Foundation.HWND, global::System.Drawing.Point*, winmdroot.System.Com.IDataObject*)"/> 84 internal unsafe winmdroot.Foundation.HRESULT InitializeFromWindow(winmdroot.Foundation.HWND hwnd, global::System.Drawing.Point? ppt, winmdroot.System.Com.IDataObject* pDataObject) 86 global::System.Drawing.Point pptLocal = ppt ?? default(global::System.Drawing.Point); 108 public unsafe winmdroot.Foundation.HRESULT InitializeFromWindow(winmdroot.Foundation.HWND hwnd, [Optional] global::System.Drawing.Point* ppt, winmdroot.System.Com.IDataObject* pDataObject) 110 return ((delegate *unmanaged [Stdcall]<IDragSourceHelper*,winmdroot.Foundation.HWND ,global::System.Drawing.Point* ,winmdroot.System.Com.IDataObject* ,winmdroot.Foundation.HRESULT>)lpVtbl[4])((IDragSourceHelper*)Unsafe.AsPointer(ref this), hwnd, ppt, pDataObject); 142 internal delegate *unmanaged [Stdcall]<IDragSourceHelper*,winmdroot.Foundation.HWND ,global::System.Drawing.Point* ,winmdroot.System.Com.IDataObject* ,winmdroot.Foundation.HRESULT> InitializeFromWindow_5; 157 unsafe winmdroot.Foundation.HRESULT InitializeFromWindow(winmdroot.Foundation.HWND hwnd, [Optional] global::System.Drawing.Point* ppt, winmdroot.System.Com.IDataObject* pDataObject);
_generated\132\Windows.Win32.IDragSourceHelper2.g.cs (8)
70 /// <inheritdoc cref="InitializeFromWindow(winmdroot.Foundation.HWND, global::System.Drawing.Point*, winmdroot.System.Com.IDataObject*)"/> 71 internal unsafe winmdroot.Foundation.HRESULT InitializeFromWindow(winmdroot.Foundation.HWND hwnd, global::System.Drawing.Point? ppt, winmdroot.System.Com.IDataObject* pDataObject) 73 global::System.Drawing.Point pptLocal = ppt ?? default(global::System.Drawing.Point); 78 public unsafe winmdroot.Foundation.HRESULT InitializeFromWindow(winmdroot.Foundation.HWND hwnd, [Optional] global::System.Drawing.Point* ppt, winmdroot.System.Com.IDataObject* pDataObject) 80 return ((delegate *unmanaged [Stdcall]<IDragSourceHelper2*,winmdroot.Foundation.HWND ,global::System.Drawing.Point* ,winmdroot.System.Com.IDataObject* ,winmdroot.Foundation.HRESULT>)lpVtbl[4])((IDragSourceHelper2*)Unsafe.AsPointer(ref this), hwnd, ppt, pDataObject); 128 internal delegate *unmanaged [Stdcall]<IDragSourceHelper2*,winmdroot.Foundation.HWND ,global::System.Drawing.Point* ,winmdroot.System.Com.IDataObject* ,winmdroot.Foundation.HRESULT> InitializeFromWindow_5; 145 unsafe new winmdroot.Foundation.HRESULT InitializeFromWindow(winmdroot.Foundation.HWND hwnd, [Optional] global::System.Drawing.Point* ppt, winmdroot.System.Com.IDataObject* pDataObject);
_generated\136\Windows.Win32.IDropTargetHelper.g.cs (21)
55 /// <inheritdoc cref="DragEnter(winmdroot.Foundation.HWND, winmdroot.System.Com.IDataObject*, global::System.Drawing.Point*, winmdroot.System.Ole.DROPEFFECT)"/> 56 internal unsafe winmdroot.Foundation.HRESULT DragEnter(winmdroot.Foundation.HWND hwndTarget, winmdroot.System.Com.IDataObject* pDataObject, in global::System.Drawing.Point ppt, winmdroot.System.Ole.DROPEFFECT dwEffect) 58 fixed (global::System.Drawing.Point* pptLocal = &ppt) 86 public unsafe winmdroot.Foundation.HRESULT DragEnter(winmdroot.Foundation.HWND hwndTarget, winmdroot.System.Com.IDataObject* pDataObject, global::System.Drawing.Point* ppt, winmdroot.System.Ole.DROPEFFECT dwEffect) 88 return ((delegate *unmanaged [Stdcall]<IDropTargetHelper*,winmdroot.Foundation.HWND ,winmdroot.System.Com.IDataObject* ,global::System.Drawing.Point* ,winmdroot.System.Ole.DROPEFFECT ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((IDropTargetHelper*)Unsafe.AsPointer(ref this), hwndTarget, pDataObject, ppt, dwEffect); 101 /// <inheritdoc cref="DragOver(global::System.Drawing.Point*, winmdroot.System.Ole.DROPEFFECT)"/> 102 internal unsafe winmdroot.Foundation.HRESULT DragOver(in global::System.Drawing.Point ppt, winmdroot.System.Ole.DROPEFFECT dwEffect) 104 fixed (global::System.Drawing.Point* pptLocal = &ppt) 124 public unsafe winmdroot.Foundation.HRESULT DragOver(global::System.Drawing.Point* ppt, winmdroot.System.Ole.DROPEFFECT dwEffect) 126 return ((delegate *unmanaged [Stdcall]<IDropTargetHelper*,global::System.Drawing.Point* ,winmdroot.System.Ole.DROPEFFECT ,winmdroot.Foundation.HRESULT>)lpVtbl[5])((IDropTargetHelper*)Unsafe.AsPointer(ref this), ppt, dwEffect); 129 /// <inheritdoc cref="Drop(winmdroot.System.Com.IDataObject*, global::System.Drawing.Point*, winmdroot.System.Ole.DROPEFFECT)"/> 130 internal unsafe winmdroot.Foundation.HRESULT Drop(winmdroot.System.Com.IDataObject* pDataObject, in global::System.Drawing.Point ppt, winmdroot.System.Ole.DROPEFFECT dwEffect) 132 fixed (global::System.Drawing.Point* pptLocal = &ppt) 156 public unsafe winmdroot.Foundation.HRESULT Drop(winmdroot.System.Com.IDataObject* pDataObject, global::System.Drawing.Point* ppt, winmdroot.System.Ole.DROPEFFECT dwEffect) 158 return ((delegate *unmanaged [Stdcall]<IDropTargetHelper*,winmdroot.System.Com.IDataObject* ,global::System.Drawing.Point* ,winmdroot.System.Ole.DROPEFFECT ,winmdroot.Foundation.HRESULT>)lpVtbl[6])((IDropTargetHelper*)Unsafe.AsPointer(ref this), pDataObject, ppt, dwEffect); 202 internal delegate *unmanaged [Stdcall]<IDropTargetHelper*,winmdroot.Foundation.HWND ,winmdroot.System.Com.IDataObject* ,global::System.Drawing.Point* ,winmdroot.System.Ole.DROPEFFECT ,winmdroot.Foundation.HRESULT> DragEnter_4; 206 internal delegate *unmanaged [Stdcall]<IDropTargetHelper*,global::System.Drawing.Point* ,winmdroot.System.Ole.DROPEFFECT ,winmdroot.Foundation.HRESULT> DragOver_6; 208 internal delegate *unmanaged [Stdcall]<IDropTargetHelper*,winmdroot.System.Com.IDataObject* ,global::System.Drawing.Point* ,winmdroot.System.Ole.DROPEFFECT ,winmdroot.Foundation.HRESULT> Drop_7; 222 unsafe winmdroot.Foundation.HRESULT DragEnter(winmdroot.Foundation.HWND hwndTarget, winmdroot.System.Com.IDataObject* pDataObject, global::System.Drawing.Point* ppt, winmdroot.System.Ole.DROPEFFECT dwEffect); 228 unsafe winmdroot.Foundation.HRESULT DragOver(global::System.Drawing.Point* ppt, winmdroot.System.Ole.DROPEFFECT dwEffect); 231 unsafe winmdroot.Foundation.HRESULT Drop(winmdroot.System.Com.IDataObject* pDataObject, global::System.Drawing.Point* ppt, winmdroot.System.Ole.DROPEFFECT dwEffect);
_generated\172\Windows.Win32.MSG.g.cs (1)
63 internal global::System.Drawing.Point pt;
_generated\192\Windows.Win32.PInvokeCore.GDI32.dll.g.cs (9)
563 /// <inheritdoc cref="GetViewportOrgEx(winmdroot.Graphics.Gdi.HDC, global::System.Drawing.Point*)"/> 565 internal static unsafe winmdroot.Foundation.BOOL GetViewportOrgEx(winmdroot.Graphics.Gdi.HDC hdc, out global::System.Drawing.Point lppoint) 567 fixed (global::System.Drawing.Point* lppointLocal = &lppoint) 585 internal static extern unsafe winmdroot.Foundation.BOOL GetViewportOrgEx(winmdroot.Graphics.Gdi.HDC hdc, global::System.Drawing.Point* lppoint); 587 /// <inheritdoc cref="GetWindowOrgEx(winmdroot.Graphics.Gdi.HDC, global::System.Drawing.Point*)"/> 589 internal static unsafe winmdroot.Foundation.BOOL GetWindowOrgEx(winmdroot.Graphics.Gdi.HDC hdc, out global::System.Drawing.Point lppoint) 591 fixed (global::System.Drawing.Point* lppointLocal = &lppoint) 609 internal static extern unsafe winmdroot.Foundation.BOOL GetWindowOrgEx(winmdroot.Graphics.Gdi.HDC hdc, global::System.Drawing.Point* lppoint); 662 internal static extern unsafe winmdroot.Foundation.BOOL OffsetViewportOrgEx(winmdroot.Graphics.Gdi.HDC hdc, int x, int y, [Optional] global::System.Drawing.Point* lppt);
_generated\198\Windows.Win32.PInvokeCore.USER32.dll.g.cs (5)
679 /// <inheritdoc cref="MapWindowPoints(winmdroot.Foundation.HWND, winmdroot.Foundation.HWND, global::System.Drawing.Point*, uint)"/> 681 internal static unsafe int MapWindowPoints(winmdroot.Foundation.HWND hWndFrom, winmdroot.Foundation.HWND hWndTo, ReadOnlySpan<global::System.Drawing.Point> lpPoints) 683 fixed (global::System.Drawing.Point* lpPointsLocal = lpPoints) 706 internal static extern unsafe int MapWindowPoints(winmdroot.Foundation.HWND hWndFrom, winmdroot.Foundation.HWND hWndTo, global::System.Drawing.Point* lpPoints, uint cPoints); 719 internal static extern winmdroot.Graphics.Gdi.HMONITOR MonitorFromPoint(global::System.Drawing.Point pt, winmdroot.Graphics.Gdi.MONITOR_FROM_FLAGS dwFlags);
_generated\206\Windows.Win32.RECT.g.cs (1)
44 internal RECT(global::System.Drawing.Point location, global::System.Drawing.Size size) :
_generated\216\Windows.Win32.SHDRAGIMAGE.g.cs (1)
41 internal global::System.Drawing.Point ptOffset;
_generated\259\Windows.Win32.UI_Shell_IDragSourceHelper2_Extensions.g.cs (4)
33 /// <inheritdoc cref="winmdroot.UI.Shell.IDragSourceHelper2.Interface.InitializeFromWindow(winmdroot.Foundation.HWND, global::System.Drawing.Point*, winmdroot.System.Com.IDataObject*)"/> 34 internal static unsafe winmdroot.Foundation.HRESULT InitializeFromWindow(this winmdroot.UI.Shell.IDragSourceHelper2.Interface @this, winmdroot.Foundation.HWND hwnd, global::System.Drawing.Point? ppt, winmdroot.System.Com.IDataObject* pDataObject) 36 global::System.Drawing.Point pptLocal = ppt ?? default(global::System.Drawing.Point);
_generated\260\Windows.Win32.UI_Shell_IDragSourceHelper_Extensions.g.cs (4)
33 /// <inheritdoc cref="winmdroot.UI.Shell.IDragSourceHelper.Interface.InitializeFromWindow(winmdroot.Foundation.HWND, global::System.Drawing.Point*, winmdroot.System.Com.IDataObject*)"/> 34 internal static unsafe winmdroot.Foundation.HRESULT InitializeFromWindow(this winmdroot.UI.Shell.IDragSourceHelper.Interface @this, winmdroot.Foundation.HWND hwnd, global::System.Drawing.Point? ppt, winmdroot.System.Com.IDataObject* pDataObject) 36 global::System.Drawing.Point pptLocal = ppt ?? default(global::System.Drawing.Point);
_generated\261\Windows.Win32.UI_Shell_IDropTargetHelper_Extensions.g.cs (9)
23 /// <inheritdoc cref="winmdroot.UI.Shell.IDropTargetHelper.Interface.DragEnter(winmdroot.Foundation.HWND, winmdroot.System.Com.IDataObject*, global::System.Drawing.Point*, winmdroot.System.Ole.DROPEFFECT)"/> 24 internal static unsafe winmdroot.Foundation.HRESULT DragEnter(this winmdroot.UI.Shell.IDropTargetHelper.Interface @this, winmdroot.Foundation.HWND hwndTarget, winmdroot.System.Com.IDataObject* pDataObject, in global::System.Drawing.Point ppt, winmdroot.System.Ole.DROPEFFECT dwEffect) 26 fixed (global::System.Drawing.Point* pptLocal = &ppt) 33 /// <inheritdoc cref="winmdroot.UI.Shell.IDropTargetHelper.Interface.DragOver(global::System.Drawing.Point*, winmdroot.System.Ole.DROPEFFECT)"/> 34 internal static unsafe winmdroot.Foundation.HRESULT DragOver(this winmdroot.UI.Shell.IDropTargetHelper.Interface @this, in global::System.Drawing.Point ppt, winmdroot.System.Ole.DROPEFFECT dwEffect) 36 fixed (global::System.Drawing.Point* pptLocal = &ppt) 43 /// <inheritdoc cref="winmdroot.UI.Shell.IDropTargetHelper.Interface.Drop(winmdroot.System.Com.IDataObject*, global::System.Drawing.Point*, winmdroot.System.Ole.DROPEFFECT)"/> 44 internal static unsafe winmdroot.Foundation.HRESULT Drop(this winmdroot.UI.Shell.IDropTargetHelper.Interface @this, winmdroot.System.Com.IDataObject* pDataObject, in global::System.Drawing.Point ppt, winmdroot.System.Ole.DROPEFFECT dwEffect) 46 fixed (global::System.Drawing.Point* pptLocal = &ppt)
_generated\60\Windows.Win32.DROPFILES.g.cs (1)
40 internal global::System.Drawing.Point pt;
System\Private\Windows\BinaryFormat\BinaryFormatWriter.cs (4)
131/// Writes a <see cref="Point"/> in binary format. 133public static void WritePoint(Stream stream, Point value) 138new ClassInfo(1, typeof(Point).FullName!, s_pointMemberNames), 734case Point point:
System\Private\Windows\Nrbf\CoreNrbfSerializer.cs (2)
93{ Types.ToTypeName($"{Types.PointType}"), typeof(Point) }, 160|| type == typeof(Point)
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (2)
58/// Tries to get this object as a <see cref="Point"/>. 69|| !classInfo.TypeNameMatches(typeof(Point))
System\Private\Windows\Ole\Composition.ManagedToNativeAdapter.cs (1)
354pt = Point.Empty,
System\Private\Windows\Ole\DragDropHelper.cs (5)
59Point point = new(e.X, e.Y); 67public static void DragEnter(HWND targetWindowHandle, IComVisibleDataObject dataObject, ref Point point, DROPEFFECT effect) 105Point point = new(e.X, e.Y); 121Point point = new(e.X, e.Y); 257public static void SetDragImage(IComVisibleDataObject dataObject, IBitmap? dragImage, Point cursorOffset, bool usingDefaultDragImage)
System\Private\Windows\Ole\IGiveFeedbackEvent.cs (1)
22Point CursorOffset { get; set; }
System\Value.cs (9)
425public Value(Point value) 431public Value(Point? value) 444public static implicit operator Value(Point value) => new(value); 445public static explicit operator Point(in Value value) => value.GetValue<Point>(); 446public static implicit operator Value(Point? value) => new(value); 447public static explicit operator Point?(in Value value) => value.GetValue<Point?>(); 714|| (typeof(T) == typeof(Point) && _object == TypeFlags.Point)))
System\Value.TypeFlags.cs (2)
29internal static StraightCastFlag<Point> Point { get; } = StraightCastFlag<Point>.Instance;
System\Value.Union.cs (1)
39[FieldOffset(0)] public Point Point;
Windows\Win32\Foundation\LPARAM.cs (2)
27public static explicit operator Point(LPARAM value) => new(value.SIGNEDLOWORD, value.SIGNEDHIWORD); 28public static explicit operator LPARAM(Point value) => MAKELPARAM(value.X, value.Y);
Windows\Win32\Foundation\POINTS.cs (1)
10public static implicit operator Point(POINTS point) => new(point.x, point.y);
Windows\Win32\Graphics\Gdi\HDC.cs (6)
14internal Point GetViewPointOrigin() => 15PInvokeCore.GetViewportOrgEx(this, out Point point) ? point : Point.Empty; 17internal Point GetWindowOrigin() => 18PInvokeCore.GetWindowOrgEx(this, out Point point) ? point : Point.Empty;
Windows\Win32\PInvokeCore.MapWindowPoints.cs (5)
10/// <inheritdoc cref="MapWindowPoints(HWND, HWND, Point*, uint)"/> 17int result = MapWindowPoints(hWndFrom.Handle, hWndTo.Handle, (Point*)p, cPoints: 2); 24/// <inheritdoc cref="MapWindowPoints(HWND, HWND, Point*, uint)"/> 25public static unsafe int MapWindowPoints<TFrom, TTo>(TFrom hWndFrom, TTo hWndTo, ref Point lpPoint) 31int result = MapWindowPoints(hWndFrom.Handle, hWndTo.Handle, (Point*)p, cPoints: 1);
netstandard (1)
netstandard.cs (1)
748[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.Point))]
PresentationUI (1)
MS\Internal\Documents\RMPublishingDialog.RightsTable.cs (1)
1040System.Drawing.Point p = new System.Drawing.Point(
System.ComponentModel.TypeConverter (3)
System\Drawing\PointConverter.cs (3)
60if (value is Point pt) 77ConstructorInfo? ctor = typeof(Point).GetConstructor([typeof(int), typeof(int)]); 110PropertyDescriptorCollection props = TypeDescriptor.GetProperties(typeof(Point), attributes);
System.Data.Common (1)
System\Data\TypeLimiter.cs (1)
175typeof(Point),
System.Drawing (1)
System.Drawing.cs (1)
105[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.Point))]
System.Drawing.Common (191)
Special\Forwards.cs (1)
8[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.Point))]
System\Drawing\BufferedGraphics.cs (2)
20private readonly Point _targetLoc; 27IntPtr targetDC, Point targetLoc, Size virtualSize)
System\Drawing\BufferedGraphicsContext.cs (1)
18private Point _targetLoc;
System\Drawing\Drawing2D\GraphicsPath.cs (53)
15/// <inheritdoc cref="GraphicsPath(Point[], byte[], FillMode)"/> 18/// <inheritdoc cref="GraphicsPath(Point[], byte[], FillMode)"/> 26/// <inheritdoc cref="GraphicsPath(Point[], byte[], FillMode)"/> 29/// <inheritdoc cref="GraphicsPath(Point[], byte[], FillMode)"/> 35/// <inheritdoc cref="GraphicsPath(Point[], byte[], FillMode)"/> 57/// <inheritdoc cref="GraphicsPath(Point[], byte[], FillMode)"/> 58public GraphicsPath(Point[] pts, byte[] types) : this(pts, types, FillMode.Alternate) { } 68public GraphicsPath(Point[] pts, byte[] types, FillMode fillMode) 71/// <inheritdoc cref="GraphicsPath(Point[], byte[], FillMode)"/> 77GraphicsPath(ReadOnlySpan<Point> pts, ReadOnlySpan<byte> types, FillMode fillMode = FillMode.Alternate) 85fixed (Point* p = pts) 266public bool IsVisible(Point point) => IsVisible((PointF)point, null); 270public bool IsVisible(Point pt, Graphics? graphics) => IsVisible((PointF)pt, graphics); 297public bool IsOutlineVisible(Point point, Pen pen) => IsOutlineVisible(point, pen, null); 301public bool IsOutlineVisible(Point pt, Pen pen, Graphics? graphics) => IsOutlineVisible((PointF)pt, pen, graphics); 346public void AddLine(Point pt1, Point pt2) => AddLine((float)pt1.X, pt1.Y, pt2.X, pt2.Y); 351public void AddLines(params Point[] points) => AddLines(points.OrThrowIfNull().AsSpan()); 359void AddLines(params ReadOnlySpan<Point> points) 366fixed (Point* p = points) 418public void AddBezier(Point pt1, Point pt2, Point pt3, Point pt4) => 425public void AddBeziers(params Point[] points) => AddBeziers(points.OrThrowIfNull().AsSpan()); 433void AddBeziers(params ReadOnlySpan<Point> points) 438fixed (Point* p = points) 507public void AddCurve(params Point[] points) => AddCurve(points.AsSpan(), 0.5f); 510public void AddCurve(Point[] points, float tension) => AddCurve(points.AsSpan(), tension); 513public void AddCurve(Point[] points, int offset, int numberOfSegments, float tension) 515fixed (Point* p = points) 531public void AddCurve(ReadOnlySpan<Point> points) => AddCurve(points, 0.5f); 540void AddCurve(ReadOnlySpan<Point> points, float tension) 542fixed (Point* p = points) 554/// <inheritdoc cref="AddClosedCurve(Point[], float)"/> 557/// <inheritdoc cref="AddClosedCurve(Point[], float)"/> 561/// <inheritdoc cref="AddClosedCurve(Point[], float)"/> 565/// <inheritdoc cref="AddClosedCurve(Point[], float)"/> 580/// <inheritdoc cref="AddClosedCurve(Point[], float)"/> 581public void AddClosedCurve(params Point[] points) => AddClosedCurve(points, 0.5f); 588public void AddClosedCurve(Point[] points, float tension) => AddClosedCurve(points.OrThrowIfNull().AsSpan(), tension); 591/// <inheritdoc cref="AddClosedCurve(Point[], float)"/> 592public void AddClosedCurve(params ReadOnlySpan<Point> points) => AddClosedCurve(points, 0.5f); 595/// <inheritdoc cref="AddClosedCurve(Point[], float)"/> 601void AddClosedCurve(ReadOnlySpan<Point> points, float tension) 603fixed (Point* p = points) 730/// <inheritdoc cref="AddPolygon(Point[])"/> 733/// <inheritdoc cref="AddPolygon(Point[])"/> 752public void AddPolygon(params Point[] points) => AddPolygon(points.OrThrowIfNull().AsSpan()); 754/// <inheritdoc cref="AddPolygon(Point[])"/> 760void AddPolygon(params ReadOnlySpan<Point> points) 762fixed (Point* p = points) 780public void AddString(string s, FontFamily family, int style, float emSize, Point origin, StringFormat? format) =>
System\Drawing\Drawing2D\LinearGradientBrush.cs (2)
24public LinearGradientBrush(Point point1, Point point2, Color color1, Color color2)
System\Drawing\Drawing2D\Matrix.cs (13)
65public Matrix(Rectangle rect, params Point[] plgpts) 71fixed (Point* p = plgpts) 257/// <inheritdoc cref="TransformPoints(Point[])"/> 264/// <inheritdoc cref="TransformPoints(Point[])"/> 287public void TransformPoints(params Point[] pts) 293/// <inheritdoc cref="TransformPoints(Point[])"/> 299void TransformPoints(params ReadOnlySpan<Point> pts) 301fixed (Point* p = pts) 342public void VectorTransformPoints(params Point[] pts) => TransformVectors(pts); 346public void VectorTransformPoints(params ReadOnlySpan<Point> pts) => TransformVectors(pts); 350public void TransformVectors(params Point[] pts) 362void TransformVectors(params ReadOnlySpan<Point> pts) 364fixed (Point* p = pts)
System\Drawing\Drawing2D\PathGradientBrush.cs (5)
57public PathGradientBrush(params Point[] points) : this(points, WrapMode.Clamp) { } 65PathGradientBrush(params ReadOnlySpan<Point> points) : this(WrapMode.Clamp, points) { } 68public PathGradientBrush(Point[] points, WrapMode wrapMode) : this(wrapMode, points.OrThrowIfNull().AsSpan()) { } 76PathGradientBrush(WrapMode wrapMode, params ReadOnlySpan<Point> points) 84fixed (Point* p = points)
System\Drawing\Graphics.cs (106)
362public Point RenderingOrigin 587public bool IsVisible(Point point) => IsVisible(point.X, point.Y); 705public void DrawBezier(Pen pen, Point pt1, Point pt2, Point pt3, Point pt4) => 854/// <inheritdoc cref="DrawPolygon(Pen, Point[])"/> 857/// <inheritdoc cref="DrawPolygon(Pen, Point[])"/> 879/// <param name="points">An array of <see cref="Point"/> structures that represent the vertices of the polygon.</param> 880public void DrawPolygon(Pen pen, params Point[] points) => DrawPolygon(pen, points.OrThrowIfNull().AsSpan()); 882/// <inheritdoc cref="DrawPolygon(Pen, Point[])"/> 888void DrawPolygon(Pen pen, params ReadOnlySpan<Point> points) 892fixed (Point* p = points) 914/// <inheritdoc cref="DrawCurve(Pen, Point[], int, int, float)"/> 917/// <inheritdoc cref="DrawCurve(Pen, Point[], int, int, float)"/> 935/// <inheritdoc cref="DrawCurve(Pen, Point[], int, int, float)"/> 939/// <inheritdoc cref="DrawCurve(Pen, Point[], int, int, float)"/> 961/// <inheritdoc cref="DrawCurve(Pen, Point[], int, int, float)"/> 966/// <inheritdoc cref="DrawCurve(Pen, Point[], int, int, float)"/> 971/// <inheritdoc cref="DrawCurve(Pen, Point[], int, int, float)"/> 975/// <inheritdoc cref="DrawCurve(Pen, Point[], int, int, float)"/> 999/// <inheritdoc cref="DrawCurve(Pen, Point[], int, int, float)"/> 1000public void DrawCurve(Pen pen, params Point[] points) => DrawCurve(pen, points.OrThrowIfNull().AsSpan()); 1002/// <inheritdoc cref="DrawCurve(Pen, Point[], int, int, float)"/> 1008void DrawCurve(Pen pen, params ReadOnlySpan<Point> points) 1012fixed (Point* p = points) 1020/// <inheritdoc cref="DrawCurve(Pen, Point[], int, int, float)"/> 1021public void DrawCurve(Pen pen, Point[] points, float tension) => 1024/// <inheritdoc cref="DrawCurve(Pen, Point[], int, int, float)"/> 1030void DrawCurve(Pen pen, ReadOnlySpan<Point> points, float tension) 1034fixed (Point* p = points) 1054public void DrawCurve(Pen pen, Point[] points, int offset, int numberOfSegments, float tension) => 1057/// <inheritdoc cref="DrawCurve(Pen, Point[], int, int, float)"/> 1063void DrawCurve(Pen pen, ReadOnlySpan<Point> points, int offset, int numberOfSegments, float tension) 1067fixed (Point* p = points) 1139public void DrawClosedCurve(Pen pen, params Point[] points) => DrawClosedCurve(pen, points.OrThrowIfNull().AsSpan()); 1147void DrawClosedCurve(Pen pen, params ReadOnlySpan<Point> points) 1151fixed (Point* p = points) 1164public void DrawClosedCurve(Pen pen, Point[] points, float tension, FillMode fillmode) => 1173void DrawClosedCurve(Pen pen, ReadOnlySpan<Point> points, float tension, FillMode fillmode) 1177fixed (Point* p = points) 1294/// <inheritdoc cref="FillPolygon(Brush, Point[], FillMode)"/> 1298/// <inheritdoc cref="FillPolygon(Brush, Point[], FillMode)"/> 1302/// <inheritdoc cref="FillPolygon(Brush, Point[], FillMode)"/> 1306/// <inheritdoc cref="FillPolygon(Brush, Point[], FillMode)"/> 1328/// <inheritdoc cref="FillPolygon(Brush, Point[], FillMode)"/> 1329public void FillPolygon(Brush brush, Point[] points) => FillPolygon(brush, points, FillMode.Alternate); 1332/// <inheritdoc cref="FillPolygon(Brush, Point[], FillMode)"/> 1333public void FillPolygon(Brush brush, params ReadOnlySpan<Point> points) => FillPolygon(brush, points, FillMode.Alternate); 1342public void FillPolygon(Brush brush, Point[] points, FillMode fillMode) => 1345/// <inheritdoc cref="FillPolygon(Brush, Point[], FillMode)"/> 1351void FillPolygon(Brush brush, ReadOnlySpan<Point> points, FillMode fillMode) 1355fixed (Point* p = points) 1513public void FillClosedCurve(Brush brush, params Point[] points) => 1522void FillClosedCurve(Brush brush, params ReadOnlySpan<Point> points) 1526fixed (Point* p = points) 1538public void FillClosedCurve(Brush brush, Point[] points, FillMode fillmode) => 1543public void FillClosedCurve(Brush brush, ReadOnlySpan<Point> points, FillMode fillmode) => 1549public void FillClosedCurve(Brush brush, Point[] points, FillMode fillmode, float tension) => 1558void FillClosedCurve(Brush brush, ReadOnlySpan<Point> points, FillMode fillmode, float tension) 1562fixed (Point* p = points) 2016public void DrawImage(Image image, Point point) => DrawImage(image, (float)point.X, point.Y); 2024public void DrawImageUnscaled(Image image, Point point) => DrawImage(image, point.X, point.Y); 2072public void DrawImage(Image image, Point[] destPoints) 2081fixed (Point* p = destPoints) 2201public void DrawImage(Image image, Point[] destPoints, Rectangle srcRect, GraphicsUnit srcUnit) => 2206Point[] destPoints, 2213Point[] destPoints, 2221Point[] destPoints, 2235fixed (Point* p = destPoints) 2362/// <inheritdoc cref="DrawLines(Pen, Point[])"/> 2365/// <inheritdoc cref="DrawLines(Pen, Point[])"/> 2392public void DrawLine(Pen pen, Point pt1, Point pt2) => DrawLine(pen, (float)pt1.X, pt1.Y, pt2.X, pt2.Y); 2399public void DrawLines(Pen pen, params Point[] points) 2404fixed (Point* p = points) 2412/// <inheritdoc cref="DrawLines(Pen, Point[])"/> 2418void DrawLines(Pen pen, params ReadOnlySpan<Point> points) 2422fixed (Point* p = points) 2433public void CopyFromScreen(Point upperLeftSource, Point upperLeftDestination, Size blockRegionSize) => 2446public void CopyFromScreen(Point upperLeftSource, Point upperLeftDestination, Size blockRegionSize, CopyPixelOperation copyPixelOperation) => 2455public void EnumerateMetafile(Metafile metafile, Point destPoint, EnumerateMetafileProc callback) => 2458public void EnumerateMetafile(Metafile metafile, Point destPoint, EnumerateMetafileProc callback, IntPtr callbackData) => 2482public void EnumerateMetafile(Metafile metafile, Point[] destPoints, EnumerateMetafileProc callback) => 2485public void EnumerateMetafile(Metafile metafile, Point[] destPoints, EnumerateMetafileProc callback, IntPtr callbackData) => 2505Point destPoint, 2512Point destPoint, 2565Point[] destPoints, 2572Point[] destPoints, 2611public void TransformPoints(Drawing2DCoordinateSpace destSpace, Drawing2DCoordinateSpace srcSpace, params Point[] pts) 2623void TransformPoints(Drawing2DCoordinateSpace destSpace, Drawing2DCoordinateSpace srcSpace, params ReadOnlySpan<Point> pts) 2625fixed (Point* p = pts) 2788/// <inheritdoc cref="DrawBeziers(Pen, Point[])"/> 2792/// <inheritdoc cref="DrawBeziers(Pen, Point[])"/> 2821public void DrawBeziers(Pen pen, params Point[] points) => DrawBeziers(pen, points.OrThrowIfNull().AsSpan()); 2823/// <inheritdoc cref="DrawBeziers(Pen, Point[])"/> 2829void DrawBeziers(Pen pen, params ReadOnlySpan<Point> points) 2833fixed (Point* p = points) 2962Point destPoint, 3027Point[] destPoints, 3037fixed (Point* p = destPoints) 3081Point destPoint, 3164Point[] destPoints, 3176fixed (Point* p = destPoints)
System\Drawing\Printing\PrinterSettings.cs (4)
965Span<Point> resolutions = stackalloc Point[count]; 967fixed (Point* r = resolutions) 974Point resolution = resolutions[i];
System\Drawing\Printing\PrinterUnitConvert.cs (2)
34public static Point Convert(Point value, PrinterUnit fromUnit, PrinterUnit toUnit) =>
System\Drawing\Region.cs (2)
320public bool IsVisible(Point point) => IsVisible(point, null); 322public bool IsVisible(Point point, Graphics? g) => IsVisible((PointF)point, g);
System.Drawing.Primitives (55)
System\Drawing\Point.cs (47)
15public struct Point : IEquatable<Point> 18/// Creates a new instance of the <see cref='System.Drawing.Point'/> class with member data left uninitialized. 20public static readonly Point Empty; 26/// Initializes a new instance of the <see cref='System.Drawing.Point'/> class with the specified coordinates. 35/// Initializes a new instance of the <see cref='System.Drawing.Point'/> class from a <see cref='System.Drawing.Size'/> . 53/// Gets a value indicating whether this <see cref='System.Drawing.Point'/> is empty. 59/// Gets the x-coordinate of this <see cref='System.Drawing.Point'/>. 68/// Gets the y-coordinate of this <see cref='System.Drawing.Point'/>. 77/// Creates a <see cref='System.Drawing.PointF'/> with the coordinates of the specified <see cref='System.Drawing.Point'/> 79public static implicit operator PointF(Point p) => new PointF(p.X, p.Y); 82/// Creates a <see cref='System.Drawing.Size'/> with the coordinates of the specified <see cref='System.Drawing.Point'/> . 84public static explicit operator Size(Point p) => new Size(p.X, p.Y); 87/// Translates a <see cref='System.Drawing.Point'/> by a given <see cref='System.Drawing.Size'/> . 89public static Point operator +(Point pt, Size sz) => Add(pt, sz); 92/// Translates a <see cref='System.Drawing.Point'/> by the negative of a given <see cref='System.Drawing.Size'/> . 94public static Point operator -(Point pt, Size sz) => Subtract(pt, sz); 97/// Compares two <see cref='System.Drawing.Point'/> objects. The result specifies whether the values of the 98/// <see cref='System.Drawing.Point.X'/> and <see cref='System.Drawing.Point.Y'/> properties of the two 99/// <see cref='System.Drawing.Point'/> objects are equal. 101public static bool operator ==(Point left, Point right) => left.X == right.X && left.Y == right.Y; 104/// Compares two <see cref='System.Drawing.Point'/> objects. The result specifies whether the values of the 105/// <see cref='System.Drawing.Point.X'/> or <see cref='System.Drawing.Point.Y'/> properties of the two 106/// <see cref='System.Drawing.Point'/> objects are unequal. 108public static bool operator !=(Point left, Point right) => !(left == right); 111/// Translates a <see cref='System.Drawing.Point'/> by a given <see cref='System.Drawing.Size'/> . 113public static Point Add(Point pt, Size sz) => new Point(unchecked(pt.X + sz.Width), unchecked(pt.Y + sz.Height)); 116/// Translates a <see cref='System.Drawing.Point'/> by the negative of a given <see cref='System.Drawing.Size'/> . 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))); 136/// Specifies whether this <see cref='System.Drawing.Point'/> contains the same coordinates as the specified 139public override readonly bool Equals([NotNullWhen(true)] object? obj) => obj is Point && Equals((Point)obj); 141public readonly bool Equals(Point other) => this == other; 149/// Translates this <see cref='System.Drawing.Point'/> by the specified amount. 161/// Translates this <see cref='System.Drawing.Point'/> by the specified amount. 163public void Offset(Point p) => Offset(p.X, p.Y); 166/// Converts this <see cref='System.Drawing.Point'/> to a human readable string.
System\Drawing\Rectangle.cs (4)
39public Rectangle(Point location, Size size) 58public Point Location 229public readonly bool Contains(Point pt) => Contains(pt.X, pt.Y); 326public void Offset(Point pos) => Offset(pos.X, pos.Y);
System\Drawing\Size.cs (4)
27/// <see cref='System.Drawing.Point'/>. 29public Size(Point pt) 119/// Converts the specified <see cref='System.Drawing.Size'/> to a <see cref='System.Drawing.Point'/>. 121public static explicit operator Point(Size size) => new Point(size.Width, size.Height);
System.Private.Windows.Core (118)
_generated\133\Windows.Win32.IDragSourceHelper.g.cs (9)
103 /// <inheritdoc cref="InitializeFromWindow(winmdroot.Foundation.HWND, global::System.Drawing.Point*, winmdroot.System.Com.IDataObject*)"/> 104 internal unsafe winmdroot.Foundation.HRESULT InitializeFromWindow(winmdroot.Foundation.HWND hwnd, global::System.Drawing.Point? ppt, winmdroot.System.Com.IDataObject* pDataObject) 106 global::System.Drawing.Point pptLocal = ppt ?? default(global::System.Drawing.Point); 114 private static winmdroot.Foundation.HRESULT InitializeFromWindow(IDragSourceHelper* pThis, winmdroot.Foundation.HWND hwnd, [Optional] global::System.Drawing.Point* ppt, winmdroot.System.Com.IDataObject* pDataObject) 148 public unsafe winmdroot.Foundation.HRESULT InitializeFromWindow(winmdroot.Foundation.HWND hwnd, [Optional] global::System.Drawing.Point* ppt, winmdroot.System.Com.IDataObject* pDataObject) 150 return ((delegate *unmanaged [Stdcall]<IDragSourceHelper*,winmdroot.Foundation.HWND ,global::System.Drawing.Point* ,winmdroot.System.Com.IDataObject* ,winmdroot.Foundation.HRESULT>)lpVtbl[4])((IDragSourceHelper*)Unsafe.AsPointer(ref this), hwnd, ppt, pDataObject); 182 internal delegate *unmanaged [Stdcall]<IDragSourceHelper*,winmdroot.Foundation.HWND ,global::System.Drawing.Point* ,winmdroot.System.Com.IDataObject* ,winmdroot.Foundation.HRESULT> InitializeFromWindow_5; 213 unsafe winmdroot.Foundation.HRESULT InitializeFromWindow(winmdroot.Foundation.HWND hwnd, [Optional] global::System.Drawing.Point* ppt, winmdroot.System.Com.IDataObject* pDataObject);
_generated\134\Windows.Win32.IDragSourceHelper2.g.cs (9)
90 /// <inheritdoc cref="InitializeFromWindow(winmdroot.Foundation.HWND, global::System.Drawing.Point*, winmdroot.System.Com.IDataObject*)"/> 91 internal unsafe winmdroot.Foundation.HRESULT InitializeFromWindow(winmdroot.Foundation.HWND hwnd, global::System.Drawing.Point? ppt, winmdroot.System.Com.IDataObject* pDataObject) 93 global::System.Drawing.Point pptLocal = ppt ?? default(global::System.Drawing.Point); 101 private static winmdroot.Foundation.HRESULT InitializeFromWindow(IDragSourceHelper2* pThis, winmdroot.Foundation.HWND hwnd, [Optional] global::System.Drawing.Point* ppt, winmdroot.System.Com.IDataObject* pDataObject) 118 public unsafe winmdroot.Foundation.HRESULT InitializeFromWindow(winmdroot.Foundation.HWND hwnd, [Optional] global::System.Drawing.Point* ppt, winmdroot.System.Com.IDataObject* pDataObject) 120 return ((delegate *unmanaged [Stdcall]<IDragSourceHelper2*,winmdroot.Foundation.HWND ,global::System.Drawing.Point* ,winmdroot.System.Com.IDataObject* ,winmdroot.Foundation.HRESULT>)lpVtbl[4])((IDragSourceHelper2*)Unsafe.AsPointer(ref this), hwnd, ppt, pDataObject); 188 internal delegate *unmanaged [Stdcall]<IDragSourceHelper2*,winmdroot.Foundation.HWND ,global::System.Drawing.Point* ,winmdroot.System.Com.IDataObject* ,winmdroot.Foundation.HRESULT> InitializeFromWindow_5; 222 unsafe new winmdroot.Foundation.HRESULT InitializeFromWindow(winmdroot.Foundation.HWND hwnd, [Optional] global::System.Drawing.Point* ppt, winmdroot.System.Com.IDataObject* pDataObject);
_generated\138\Windows.Win32.IDropTargetHelper.g.cs (24)
55 /// <inheritdoc cref="DragEnter(winmdroot.Foundation.HWND, winmdroot.System.Com.IDataObject*, global::System.Drawing.Point*, winmdroot.System.Ole.DROPEFFECT)"/> 56 internal unsafe winmdroot.Foundation.HRESULT DragEnter(winmdroot.Foundation.HWND hwndTarget, winmdroot.System.Com.IDataObject* pDataObject, in global::System.Drawing.Point ppt, winmdroot.System.Ole.DROPEFFECT dwEffect) 58 fixed (global::System.Drawing.Point* pptLocal = &ppt) 68 private static winmdroot.Foundation.HRESULT DragEnter(IDropTargetHelper* pThis, winmdroot.Foundation.HWND hwndTarget, winmdroot.System.Com.IDataObject* pDataObject, global::System.Drawing.Point* ppt, winmdroot.System.Ole.DROPEFFECT dwEffect) 106 public unsafe winmdroot.Foundation.HRESULT DragEnter(winmdroot.Foundation.HWND hwndTarget, winmdroot.System.Com.IDataObject* pDataObject, global::System.Drawing.Point* ppt, winmdroot.System.Ole.DROPEFFECT dwEffect) 108 return ((delegate *unmanaged [Stdcall]<IDropTargetHelper*,winmdroot.Foundation.HWND ,winmdroot.System.Com.IDataObject* ,global::System.Drawing.Point* ,winmdroot.System.Ole.DROPEFFECT ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((IDropTargetHelper*)Unsafe.AsPointer(ref this), hwndTarget, pDataObject, ppt, dwEffect); 141 /// <inheritdoc cref="DragOver(global::System.Drawing.Point*, winmdroot.System.Ole.DROPEFFECT)"/> 142 internal unsafe winmdroot.Foundation.HRESULT DragOver(in global::System.Drawing.Point ppt, winmdroot.System.Ole.DROPEFFECT dwEffect) 144 fixed (global::System.Drawing.Point* pptLocal = &ppt) 154 private static winmdroot.Foundation.HRESULT DragOver(IDropTargetHelper* pThis, global::System.Drawing.Point* ppt, winmdroot.System.Ole.DROPEFFECT dwEffect) 184 public unsafe winmdroot.Foundation.HRESULT DragOver(global::System.Drawing.Point* ppt, winmdroot.System.Ole.DROPEFFECT dwEffect) 186 return ((delegate *unmanaged [Stdcall]<IDropTargetHelper*,global::System.Drawing.Point* ,winmdroot.System.Ole.DROPEFFECT ,winmdroot.Foundation.HRESULT>)lpVtbl[5])((IDropTargetHelper*)Unsafe.AsPointer(ref this), ppt, dwEffect); 189 /// <inheritdoc cref="Drop(winmdroot.System.Com.IDataObject*, global::System.Drawing.Point*, winmdroot.System.Ole.DROPEFFECT)"/> 190 internal unsafe winmdroot.Foundation.HRESULT Drop(winmdroot.System.Com.IDataObject* pDataObject, in global::System.Drawing.Point ppt, winmdroot.System.Ole.DROPEFFECT dwEffect) 192 fixed (global::System.Drawing.Point* pptLocal = &ppt) 202 private static winmdroot.Foundation.HRESULT Drop(IDropTargetHelper* pThis, winmdroot.System.Com.IDataObject* pDataObject, global::System.Drawing.Point* ppt, winmdroot.System.Ole.DROPEFFECT dwEffect) 236 public unsafe winmdroot.Foundation.HRESULT Drop(winmdroot.System.Com.IDataObject* pDataObject, global::System.Drawing.Point* ppt, winmdroot.System.Ole.DROPEFFECT dwEffect) 238 return ((delegate *unmanaged [Stdcall]<IDropTargetHelper*,winmdroot.System.Com.IDataObject* ,global::System.Drawing.Point* ,winmdroot.System.Ole.DROPEFFECT ,winmdroot.Foundation.HRESULT>)lpVtbl[6])((IDropTargetHelper*)Unsafe.AsPointer(ref this), pDataObject, ppt, dwEffect); 302 internal delegate *unmanaged [Stdcall]<IDropTargetHelper*,winmdroot.Foundation.HWND ,winmdroot.System.Com.IDataObject* ,global::System.Drawing.Point* ,winmdroot.System.Ole.DROPEFFECT ,winmdroot.Foundation.HRESULT> DragEnter_4; 306 internal delegate *unmanaged [Stdcall]<IDropTargetHelper*,global::System.Drawing.Point* ,winmdroot.System.Ole.DROPEFFECT ,winmdroot.Foundation.HRESULT> DragOver_6; 308 internal delegate *unmanaged [Stdcall]<IDropTargetHelper*,winmdroot.System.Com.IDataObject* ,global::System.Drawing.Point* ,winmdroot.System.Ole.DROPEFFECT ,winmdroot.Foundation.HRESULT> Drop_7; 341 unsafe winmdroot.Foundation.HRESULT DragEnter(winmdroot.Foundation.HWND hwndTarget, winmdroot.System.Com.IDataObject* pDataObject, global::System.Drawing.Point* ppt, winmdroot.System.Ole.DROPEFFECT dwEffect); 347 unsafe winmdroot.Foundation.HRESULT DragOver(global::System.Drawing.Point* ppt, winmdroot.System.Ole.DROPEFFECT dwEffect); 350 unsafe winmdroot.Foundation.HRESULT Drop(winmdroot.System.Com.IDataObject* pDataObject, global::System.Drawing.Point* ppt, winmdroot.System.Ole.DROPEFFECT dwEffect);
_generated\175\Windows.Win32.MSG.g.cs (1)
63 internal global::System.Drawing.Point pt;
_generated\195\Windows.Win32.PInvokeCore.GDI32.dll.g.cs (9)
579 /// <inheritdoc cref="GetViewportOrgEx(winmdroot.Graphics.Gdi.HDC, global::System.Drawing.Point*)"/> 581 internal static unsafe winmdroot.Foundation.BOOL GetViewportOrgEx(winmdroot.Graphics.Gdi.HDC hdc, out global::System.Drawing.Point lppoint) 583 fixed (global::System.Drawing.Point* lppointLocal = &lppoint) 601 internal static extern unsafe winmdroot.Foundation.BOOL GetViewportOrgEx(winmdroot.Graphics.Gdi.HDC hdc, global::System.Drawing.Point* lppoint); 603 /// <inheritdoc cref="GetWindowOrgEx(winmdroot.Graphics.Gdi.HDC, global::System.Drawing.Point*)"/> 605 internal static unsafe winmdroot.Foundation.BOOL GetWindowOrgEx(winmdroot.Graphics.Gdi.HDC hdc, out global::System.Drawing.Point lppoint) 607 fixed (global::System.Drawing.Point* lppointLocal = &lppoint) 625 internal static extern unsafe winmdroot.Foundation.BOOL GetWindowOrgEx(winmdroot.Graphics.Gdi.HDC hdc, global::System.Drawing.Point* lppoint); 678 internal static extern unsafe winmdroot.Foundation.BOOL OffsetViewportOrgEx(winmdroot.Graphics.Gdi.HDC hdc, int x, int y, [Optional] global::System.Drawing.Point* lppt);
_generated\201\Windows.Win32.PInvokeCore.USER32.dll.g.cs (5)
783 /// <inheritdoc cref="MapWindowPoints(winmdroot.Foundation.HWND, winmdroot.Foundation.HWND, global::System.Drawing.Point*, uint)"/> 785 internal static unsafe int MapWindowPoints(winmdroot.Foundation.HWND hWndFrom, winmdroot.Foundation.HWND hWndTo, ReadOnlySpan<global::System.Drawing.Point> lpPoints) 787 fixed (global::System.Drawing.Point* lpPointsLocal = lpPoints) 810 internal static extern unsafe int MapWindowPoints(winmdroot.Foundation.HWND hWndFrom, winmdroot.Foundation.HWND hWndTo, global::System.Drawing.Point* lpPoints, uint cPoints); 823 internal static extern winmdroot.Graphics.Gdi.HMONITOR MonitorFromPoint(global::System.Drawing.Point pt, winmdroot.Graphics.Gdi.MONITOR_FROM_FLAGS dwFlags);
_generated\209\Windows.Win32.RECT.g.cs (1)
44 internal RECT(global::System.Drawing.Point location, global::System.Drawing.Size size) :
_generated\219\Windows.Win32.SHDRAGIMAGE.g.cs (1)
41 internal global::System.Drawing.Point ptOffset;
_generated\262\Windows.Win32.UI_Shell_IDragSourceHelper2_Extensions.g.cs (4)
33 /// <inheritdoc cref="winmdroot.UI.Shell.IDragSourceHelper2.Interface.InitializeFromWindow(winmdroot.Foundation.HWND, global::System.Drawing.Point*, winmdroot.System.Com.IDataObject*)"/> 34 internal static unsafe winmdroot.Foundation.HRESULT InitializeFromWindow(this winmdroot.UI.Shell.IDragSourceHelper2.Interface @this, winmdroot.Foundation.HWND hwnd, global::System.Drawing.Point? ppt, winmdroot.System.Com.IDataObject* pDataObject) 36 global::System.Drawing.Point pptLocal = ppt ?? default(global::System.Drawing.Point);
_generated\263\Windows.Win32.UI_Shell_IDragSourceHelper_Extensions.g.cs (4)
33 /// <inheritdoc cref="winmdroot.UI.Shell.IDragSourceHelper.Interface.InitializeFromWindow(winmdroot.Foundation.HWND, global::System.Drawing.Point*, winmdroot.System.Com.IDataObject*)"/> 34 internal static unsafe winmdroot.Foundation.HRESULT InitializeFromWindow(this winmdroot.UI.Shell.IDragSourceHelper.Interface @this, winmdroot.Foundation.HWND hwnd, global::System.Drawing.Point? ppt, winmdroot.System.Com.IDataObject* pDataObject) 36 global::System.Drawing.Point pptLocal = ppt ?? default(global::System.Drawing.Point);
_generated\264\Windows.Win32.UI_Shell_IDropTargetHelper_Extensions.g.cs (9)
23 /// <inheritdoc cref="winmdroot.UI.Shell.IDropTargetHelper.Interface.DragEnter(winmdroot.Foundation.HWND, winmdroot.System.Com.IDataObject*, global::System.Drawing.Point*, winmdroot.System.Ole.DROPEFFECT)"/> 24 internal static unsafe winmdroot.Foundation.HRESULT DragEnter(this winmdroot.UI.Shell.IDropTargetHelper.Interface @this, winmdroot.Foundation.HWND hwndTarget, winmdroot.System.Com.IDataObject* pDataObject, in global::System.Drawing.Point ppt, winmdroot.System.Ole.DROPEFFECT dwEffect) 26 fixed (global::System.Drawing.Point* pptLocal = &ppt) 33 /// <inheritdoc cref="winmdroot.UI.Shell.IDropTargetHelper.Interface.DragOver(global::System.Drawing.Point*, winmdroot.System.Ole.DROPEFFECT)"/> 34 internal static unsafe winmdroot.Foundation.HRESULT DragOver(this winmdroot.UI.Shell.IDropTargetHelper.Interface @this, in global::System.Drawing.Point ppt, winmdroot.System.Ole.DROPEFFECT dwEffect) 36 fixed (global::System.Drawing.Point* pptLocal = &ppt) 43 /// <inheritdoc cref="winmdroot.UI.Shell.IDropTargetHelper.Interface.Drop(winmdroot.System.Com.IDataObject*, global::System.Drawing.Point*, winmdroot.System.Ole.DROPEFFECT)"/> 44 internal static unsafe winmdroot.Foundation.HRESULT Drop(this winmdroot.UI.Shell.IDropTargetHelper.Interface @this, winmdroot.System.Com.IDataObject* pDataObject, in global::System.Drawing.Point ppt, winmdroot.System.Ole.DROPEFFECT dwEffect) 46 fixed (global::System.Drawing.Point* pptLocal = &ppt)
_generated\61\Windows.Win32.DROPFILES.g.cs (1)
40 internal global::System.Drawing.Point pt;
System\Private\Windows\BinaryFormat\BinaryFormatWriter.cs (4)
131/// Writes a <see cref="Point"/> in binary format. 133public static void WritePoint(Stream stream, Point value) 138new ClassInfo(1, typeof(Point).FullName!, s_pointMemberNames), 734case Point point:
System\Private\Windows\Nrbf\CoreNrbfSerializer.cs (2)
93{ Types.ToTypeName($"{Types.PointType}"), typeof(Point) }, 160|| type == typeof(Point)
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (2)
58/// Tries to get this object as a <see cref="Point"/>. 69|| !classInfo.TypeNameMatches(typeof(Point))
System\Private\Windows\Ole\Composition.ManagedToNativeAdapter.cs (1)
354pt = Point.Empty,
System\Private\Windows\Ole\DragDropHelper.cs (5)
59Point point = new(e.X, e.Y); 67public static void DragEnter(HWND targetWindowHandle, IComVisibleDataObject dataObject, ref Point point, DROPEFFECT effect) 105Point point = new(e.X, e.Y); 121Point point = new(e.X, e.Y); 257public static void SetDragImage(IComVisibleDataObject dataObject, IBitmap? dragImage, Point cursorOffset, bool usingDefaultDragImage)
System\Private\Windows\Ole\IGiveFeedbackEvent.cs (1)
22Point CursorOffset { get; set; }
System\Value.cs (9)
425public Value(Point value) 431public Value(Point? value) 444public static implicit operator Value(Point value) => new(value); 445public static explicit operator Point(in Value value) => value.GetValue<Point>(); 446public static implicit operator Value(Point? value) => new(value); 447public static explicit operator Point?(in Value value) => value.GetValue<Point?>(); 714|| (typeof(T) == typeof(Point) && _object == TypeFlags.Point)))
System\Value.TypeFlags.cs (2)
29internal static StraightCastFlag<Point> Point { get; } = StraightCastFlag<Point>.Instance;
System\Value.Union.cs (1)
39[FieldOffset(0)] public Point Point;
Windows\Win32\Foundation\LPARAM.cs (2)
27public static explicit operator Point(LPARAM value) => new(value.SIGNEDLOWORD, value.SIGNEDHIWORD); 28public static explicit operator LPARAM(Point value) => MAKELPARAM(value.X, value.Y);
Windows\Win32\Foundation\POINTS.cs (1)
10public static implicit operator Point(POINTS point) => new(point.x, point.y);
Windows\Win32\Graphics\Gdi\HDC.cs (6)
14internal Point GetViewPointOrigin() => 15PInvokeCore.GetViewportOrgEx(this, out Point point) ? point : Point.Empty; 17internal Point GetWindowOrigin() => 18PInvokeCore.GetWindowOrgEx(this, out Point point) ? point : Point.Empty;
Windows\Win32\PInvokeCore.MapWindowPoints.cs (5)
10/// <inheritdoc cref="MapWindowPoints(HWND, HWND, Point*, uint)"/> 17int result = MapWindowPoints(hWndFrom.Handle, hWndTo.Handle, (Point*)p, cPoints: 2); 24/// <inheritdoc cref="MapWindowPoints(HWND, HWND, Point*, uint)"/> 25public static unsafe int MapWindowPoints<TFrom, TTo>(TFrom hWndFrom, TTo hWndTo, ref Point lpPoint) 31int result = MapWindowPoints(hWndFrom.Handle, hWndTo.Handle, (Point*)p, cPoints: 1);
System.Private.Windows.Core.TestUtilities (4)
CommonTestHelper.cs (4)
74public static TheoryData<Point> GetPointTheoryData() => GetPointTheoryData(TestIncludeType.All); 76public static TheoryData<Point> GetPointTheoryData(TestIncludeType includeType) 78TheoryData<Point> data = new(); 81data.Add(default(Point));
System.Windows.Forms (682)
GlobalUsings.cs (1)
30global using Point = System.Drawing.Point;
System\Resources\DataNodeInfo.cs (1)
12public Point ReaderPosition; // Only used to track position in the reader
System\Resources\ResXDataNode.cs (1)
512public Point GetNodePosition() => _nodeInfo?.ReaderPosition ?? default;
System\Resources\ResXResourceReader.cs (5)
323private static Point GetPosition(XmlReader reader) 325Point pt = default; 375Point pt = GetPosition(reader); 382Point pt = GetPosition(reader); 399Point pt = GetPosition(reader);
System\Windows\Forms\Accessibility\LabelEditUiaTextProvider.cs (12)
103public override Point GetPositionFromChar(int charIndex) => GetPositionFromCharIndex(charIndex); 106public override Point GetPositionFromCharForUpperRightCorner(int startCharIndex, string text) 110return Point.Empty; 114Point pt; 192Point ptStart = new(rectangle.X + 1, rectangle.Y + 1); 193Point ptEnd = new(rectangle.Right - 1, rectangle.Bottom - 1); 226public override Point PointToScreen(Point pt) 268Point clientLocation = point; 329private int GetCharIndexFromPosition(Point pt) 360private Point GetPositionFromCharIndex(int index) 364return Point.Empty;
System\Windows\Forms\ActiveX\AxHost.cs (4)
1073Point phm = new(sz.Width, sz.Height); 1086Point phm = default; 1751PInvoke.GetCursorPos(out Point point); 3251Point location = Location;
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (12)
121private static Point s_logPixels = Point.Empty; 275private static Point LogPixels 361Point pt = new(PARAM.LOWORD(lpmsg->lParam), PARAM.HIWORD(lpmsg->lParam)); 440Point pVp = default; 441Point pW = default; 459Point p1 = new(rc.left, rc.top); 460Point p2 = new(rc.right - rc.left, rc.bottom - rc.top); 700Point pt = PixelToHiMetric(size.Width, size.Height); 767private static Point HiMetricToPixel(int x, int y) 769Point pt = new Point 1348private static Point PixelToHiMetric(int x, int y) => new()
System\Windows\Forms\ContextMenuStrip.cs (1)
82internal void ShowInternal(Control source, Point location, bool isKeyboardActivated)
System\Windows\Forms\Control.cs (30)
745[DefaultValue(typeof(Point), "0, 0")] 746public virtual Point AutoScrollOffset 748get => Properties.GetValueOrDefault(s_autoScrollOffsetProperty, Point.Empty); 749set => Properties.AddOrRemoveValue(s_autoScrollOffsetProperty, value, defaultValue: Point.Empty); 1581PInvoke.GetCursorPos(out Point p); 2506public Point Location 2663public static Point MousePosition 2667PInvoke.GetCursorPos(out Point pt); 4870/// <inheritdoc cref="DoDragDropAsJson{T}(T, DragDropEffects, Bitmap?, Point, bool)"/> 4898Point cursorOffset, 4942/// Because <see cref="DoDragDrop(object, DragDropEffects, Bitmap, Point, bool)"/> always performs the 4953Point cursorOffset, 5299public Control? GetChildAtPoint(Point pt, GetChildAtPointSkip skipValue) 5323public Control? GetChildAtPoint(Point pt) => GetChildAtPoint(pt, GetChildAtPointSkip.None); 8005Point offs = Location; 8152PaintBackground(e, rectangle, BackColor, Point.Empty); 8154internal void PaintBackground(PaintEventArgs e, Rectangle rectangle, Color backColor, Point scrollOffset = default) 8178Point scrollLocation = scrollOffset; 8179if (this is ScrollableControl scrollControl && scrollLocation != Point.Empty) 8582public Point PointToClient(Point p) 8591public Point PointToScreen(Point p) 8799Point viewportOrg = default; 8817PrintToMetaFileRecursive(hDC, lParam, new Rectangle(Point.Empty, Size)); 8832Point clientOffset = PointToScreen(Point.Empty); 11214Point client; 11668Point location = PARAM.ToPoint(m.LParamInternal); 11669Point screenLocation = PointToScreen(location);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (17)
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 376internal virtual void DrawImageCore(Graphics graphics, Image image, Rectangle imageBounds, Point imageStart, LayoutData layout)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutData.cs (1)
22public Point ImageStart;
System\Windows\Forms\Controls\Buttons\CheckBoxRenderer.cs (11)
49/// <inheritdoc cref="DrawCheckBox(Graphics, Point, Rectangle, string?, Font?, TextFormatFlags, Image, Rectangle, bool, CheckBoxState)"/> 50public static void DrawCheckBox(Graphics g, Point glyphLocation, CheckBoxState state) 72Point glyphLocation, 83/// <inheritdoc cref="DrawCheckBox(Graphics, Point, Rectangle, string?, Font?, TextFormatFlags, Image, Rectangle, bool, CheckBoxState)"/> 86Point glyphLocation, 101/// <inheritdoc cref="DrawCheckBox(Graphics, Point, Rectangle, string?, Font?, TextFormatFlags, Image, Rectangle, bool, CheckBoxState)"/> 104Point glyphLocation, 114Point glyphLocation, 155/// <inheritdoc cref="DrawCheckBox(Graphics, Point, Rectangle, string?, Font?, TextFormatFlags, Image, Rectangle, bool, CheckBoxState)"/> 158Point glyphLocation, 182Point glyphLocation,
System\Windows\Forms\Controls\Buttons\RadioButtonRenderer.cs (13)
49/// <inheritdoc cref="DrawRadioButton(Graphics, Point, Rectangle, string?, Font?, TextFormatFlags, Image, Rectangle, bool, RadioButtonState)" /> 50public static void DrawRadioButton(Graphics g, Point glyphLocation, RadioButtonState state) => 55Point glyphLocation, 66Point glyphLocation, 87/// <inheritdoc cref="DrawRadioButton(Graphics, Point, Rectangle, string?, Font?, TextFormatFlags, Image, Rectangle, bool, RadioButtonState)" /> 90Point glyphLocation, 102/// <inheritdoc cref="DrawRadioButton(Graphics, Point, Rectangle, string?, Font?, TextFormatFlags, Image, Rectangle, bool, RadioButtonState)" /> 105Point glyphLocation, 118Point glyphLocation, 155/// <inheritdoc cref="DrawRadioButton(Graphics, Point, Rectangle, string?, Font?, TextFormatFlags, Image, Rectangle, bool, RadioButtonState)" /> 158Point glyphLocation, 182Point glyphLocation, 205Point glyphLocation,
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxUiaTextProvider.cs (13)
155public override Point GetPositionFromChar(int charIndex) 158: Point.Empty; 161public override Point GetPositionFromCharForUpperRightCorner(int startCharIndex, string text) 165return Point.Empty; 169Point pt; 253Point ptStart = new(rectangle.X + 1, rectangle.Y + 1); 254Point ptEnd = new(rectangle.Right - 1, rectangle.Bottom - 1); 293public override Point PointToScreen(Point pt) 341Point clientLocation = point; 402private int GetCharIndexFromPosition(Point pt) 435private Point GetPositionFromCharIndex(int index) 439return Point.Empty;
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (11)
1371internal Point EditToComboboxMapping(Message m) 1598Point Ptlc = EditToComboboxMapping(m); 1615Point Ptmc = EditToComboboxMapping(m); 1632Point Ptrc = EditToComboboxMapping(m); 1645Point Ptl = EditToComboboxMapping(m); 1690Point P = EditToComboboxMapping(m); 1707Point Pt = EditToComboboxMapping(m); 1727Point ptRBtnUp = EditToComboboxMapping(m); 1746Point point = EditToComboboxMapping(m); 1807Point p = MousePosition; 3728Point point = PointToScreen(PARAM.ToPoint(m.LParamInternal));
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (2)
148Point middle = new(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.Height / 2); 162(ReadOnlySpan<Point>)
System\Windows\Forms\Controls\DataGridView\DataGridView.AccessibleObject.cs (1)
160Point pt = owner.PointToClient(new Point(x, y));
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (18)
272private Point _ptCurrentCell; 273private Point _ptCurrentCellCache = Point.Empty; 274private Point _ptAnchorCell; 275private Point _ptMouseDownCell; 276private Point _ptMouseEnteredCell; 277private Point _ptToolTipCell; 278private Point _ptMouseDownGridCoord; 1775public Point CurrentCellAddress => _ptCurrentCell; 2175internal Point MouseEnteredCellAddress => _ptMouseEnteredCell; 2183Point ptMouse = PointToClient(MousePosition); 2197Point ptMouse = PointToClient(MousePosition); 2209Point ptMouse = PointToClient(MousePosition); 2285Point firstDisplayedCellAddress = FirstDisplayedCellAddress; 2334private Point FirstDisplayedCellAddress 2338Point ptFirstDisplayedCellAddress = new(-1, -1) 2989internal Point MouseDownCellAddress => _ptMouseDownCell; 3858Point mouseCoord = MousePosition;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (23)
20protected virtual void AccessibilityNotifyCurrentCellChanged(Point cellAddress) 4907private Point ConvertCellToGridCoord(int columnIndex, int rowIndex, int x, int y) 6017Point ptMouse = PointToClient(MousePosition); 9629Point ptMouse = PointToClient(MousePosition); 10386Point firstDisplayedCellAddress = FirstDisplayedCellAddress; 11897Point ptGridCoord = ConvertCellToGridCoord(e.ColumnIndex, e.RowIndex, e.X, e.Y); 12067Point ptOriginalCurrentCell = _ptCurrentCell; 12680Point ptGridCoord = ConvertCellToGridCoord(e.ColumnIndex, e.RowIndex, e.X, e.Y); 15266internal void OnInsertedColumn_PostNotification(Point newCurrentCell) 15299internal void OnInsertedRow_PostNotification(int rowIndex, Point newCurrentCell, bool lastInsertion) 15338internal void OnInsertedRows_PostNotification(DataGridViewRow[] dataGridViewRows, Point newCurrentCell) 15362internal void OnInsertingColumn(int columnIndexInserted, DataGridViewColumn dataGridViewColumn, out Point newCurrentCell) 15520ref Point newCurrentCell, 15606internal void OnInsertingRows(int rowIndexInserted, DataGridViewRow[] dataGridViewRows, ref Point newCurrentCell) 16891internal void OnRemovedColumn_PostNotification(DataGridViewColumn dataGridViewColumn, Point newCurrentCell) 16942internal void OnRemovedRow_PostNotification(DataGridViewRow dataGridViewRow, Point newCurrentCell) 17020internal void OnRemovingColumn(DataGridViewColumn dataGridViewColumn, out Point newCurrentCell, bool force) 17233internal void OnRemovingRow(int rowIndexDeleted, out Point newCurrentCell, bool force) 18806Point pt = PointToScreen(Location); 25991Point ptMouse = PointToClient(MousePosition); 29154Point ptMouse = PointToClient(MousePosition); 29864Point ptMouse = PointToClient(MousePosition); 29959Point client;
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (1)
658Point ptCurrentCell = DataGridView!.CurrentCellAddress;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (3)
397Point ptCurrentCell = DataGridView.CurrentCellAddress; 1476Point ptCurrentCell = DataGridView.CurrentCellAddress; 2697Point ptCurrentCell = DataGridView.CurrentCellAddress;
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (4)
432Point ptCurrentCell = DataGridView.CurrentCellAddress; 519Point ptCurrentCell = DataGridView.CurrentCellAddress; 788Point ptCurrentCell = DataGridView.CurrentCellAddress; 1080Point ptCurrentCell = DataGridView.CurrentCellAddress;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnCollection.cs (4)
887Point newCurrentCell; 955private void OnCollectionChanged(CollectionChangeEventArgs ccea, bool changeIsInsertion, Point newCurrentCell) 971private void OnCollectionChanged_PostNotification(CollectionChangeEventArgs ccea, bool changeIsInsertion, Point newCurrentCell) 1075DataGridView.OnRemovingColumn(dataGridViewColumn, out Point newCurrentCell, force);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (1)
894Point sortGlyphLocation = new(0, 0);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (8)
1666Point ptCurrentCell = DataGridView.CurrentCellAddress; 1915Point ptCurrentCell = DataGridView.CurrentCellAddress; 2152Point middle = new(dropRect.Left + dropRect.Width / 2, dropRect.Top + dropRect.Height / 2); 2160(ReadOnlySpan<Point>) 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); 2183g.FillPolygon(SystemBrushes.ControlText, (ReadOnlySpan<Point>)[pt1, pt2, middle]);
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (1)
888Point ptCurrentCell = DataGridView!.CurrentCellAddress;
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (1)
907Point ptCurrentCell = DataGridView!.CurrentCellAddress;
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.cs (7)
1502Point newCurrentCell = new(-1, -1); 1612Point newCurrentCell = new(-1, -1); 1708private void InsertDuplicateRow(int indexDestination, DataGridViewRow rowTemplate, bool firstInsertion, ref Point newCurrentCell) 1786Point newCurrentCell = new(-1, -1); 1911Point newCurrentCell = new(-1, -1); 1936Point newCurrentCell) 2091Point newCurrentCell)
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (2)
575Point ptCurrentCell = DataGridView.CurrentCellAddress; 677Point ptCurrentCell = DataGridView!.CurrentCellAddress;
System\Windows\Forms\Controls\DataGridView\DataGridViewUtilities.cs (2)
349internal static Point GetTextLocation( 355Point ptTextLocation = new(0, 0);
System\Windows\Forms\Controls\ImageList\ImageList.cs (1)
510public void Draw(Graphics g, Point pt, int index) => Draw(g, pt.X, pt.Y, index);
System\Windows\Forms\Controls\Labels\Label.cs (2)
1355ControlPaint.PrintBorder(g, new Rectangle(Point.Empty, Size), BorderStyle, Border3DStyle.SunkenOuter); 1434Point pt = new((int)m.LParamInternal);
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
300PInvoke.GetCursorPos(out Point p);
System\Windows\Forms\Controls\Labels\LinkLabel.LinkLabelAccessibleObject.cs (1)
64Point p = owner.PointToClient(new Point(x, y));
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (3)
1500public int IndexFromPoint(Point p) 2418Point point = PARAM.ToPoint(m.LParamInternal); 2460if (Capture && PInvoke.WindowFromPoint(PointToScreen((Point)m.LParamInternal)) == HWND)
System\Windows\Forms\Controls\ListView\ListView.cs (13)
2180internal unsafe void AnnounceColumnHeader(Point point) 3215public ListViewItem? FindNearestItem(SearchDirectionHint dir, Point point) 3274private unsafe ListViewItem? FindItem(bool isTextSearch, string text, bool isPrefixSearch, Point pt, SearchDirectionHint dir, int startIndex, bool includeSubItemsInSearch) 3548internal Point GetItemPosition(int index) 3550Point position = default; 3708public ListViewHitTestInfo HitTest(Point point) => HitTest(point.X, point.Y); 4381Point pos = Cursor.Position; 5478Point pt = new(x, y); 5956Point point = PARAM.ToPoint(m.LParamInternal); 5994Point screenPoint = PointToScreen(point); 6711Point pos = Cursor.Position; 6916Point startingPoint = Point.Empty;
System\Windows\Forms\Controls\ListView\ListView.ListViewAccessibleObject.cs (2)
291Point hitTestPoint = new(x, y); 292Point point = owningListView.PointToClient(hitTestPoint);
System\Windows\Forms\Controls\ListView\ListViewInsertionMark.cs (1)
114public unsafe int NearestIndex(Point pt)
System\Windows\Forms\Controls\ListView\ListViewItem.cs (2)
33private Point _position = new(-1, -1); 626public Point Position
System\Windows\Forms\Controls\ListView\ListViewItem.IKeyboardToolTip.cs (3)
97Point point = new(listviewBounds.X + itemBounds.X, listviewBounds.Y + itemBounds.Y); 107private static Rectangle GetDetailsListRectangle(Point point, ListViewItem item, Rectangle itemBounds) 118private Rectangle GetTileRectangle(Point point, ListViewItem item, Rectangle itemBounds)
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemDetailsAccessibleObject.cs (1)
58internal AccessibleObject? GetChild(int subItemIndex, Point point)
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemWithImageAccessibleObject.cs (1)
39internal AccessibleObject GetAccessibleObject(Point point)
System\Windows\Forms\Controls\ListView\SearchForVirtualItemEventArgs.cs (2)
13Point startingPoint, 36public Point StartingPoint { get; }
System\Windows\Forms\Controls\Menus\MenuStrip.cs (1)
255Point pt = PointToClient(WindowsFormsUtils.LastCursorPoint);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarButtonAccessibleObject.cs (1)
71BOOL setOldCursorPos = PInvoke.GetPhysicalCursorPos(out Point previousPosition);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
1326public HitTestInfo HitTest(Point point) => HitTest(point.X, point.Y);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.HitTestInfo.cs (3)
15internal HitTestInfo(Point pt, HitArea area, DateTime time) 25internal HitTestInfo(Point pt, HitArea area) 34public Point Point { get; }
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.MonthCalendarAccessibleObject.cs (1)
394Point point = owner.PointToClient(new Point(xScreen, yScreen));
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (11)
532public Point ContextMenuDefaultLocation => _gridView.ContextMenuDefaultLocation; 1890Point location = _commandsPane.Location; 1902Point location = _helpPane.Location; 2193internal Control? GetElementFromPoint(Point point) 2390Point newPoint = Point.Empty; 2405Point newPoint = Point.Empty; 2886Point psheetLoc = _gridView.Location; 4084private bool ShouldForwardChildMouseMessage(Control? child, MouseEventArgs e, ref Point point) 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 (2)
207Point[] links = new Point[_verbs!.Length];
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.DropDownButtonAdapter.cs (1)
88internal override void DrawImageCore(Graphics graphics, Image image, Rectangle imageBounds, Point imageStart, LayoutData layout)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (5)
20protected static Point InvalidPoint { get; } = new(int.MinValue, int.MinValue); 51private Point _labelTipPoint = InvalidPoint; 52private Point _valueTipPoint = InvalidPoint; 619internal virtual Point GetLabelToolTipLocation(int mouseX, int mouseY) => _labelTipPoint; 780internal Point ValueToolTipLocation
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (1)
312internal override Point GetLabelToolTipLocation(int mouseX, int mouseY)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (29)
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); 97private Point _rowSelectPos = Point.Empty; // the position that we clicked on a row to test for double clicks 98private Point _lastMouseDown = InvalidPosition; 473public Point ContextMenuDefaultLocation 479Point point = PointToScreen(new(rect.X, rect.Y)); 625Point pt = new(rect.X, rect.Y); 698private static void AdjustOrigin(Graphics g, Point newOrigin, ref Rectangle r) 1125Point newOrigin = new(rect.X, rect.Y); 1180Point newOrigin = new(rect.X, rect.Y); 1442Point location = PointToScreen(new Point(0, 0)); 1667private Point FindPosition(int x, int y) 1681Point pt = new(RowLabel, 0); 2627Point screenPoint = EditTextBox.PointToScreen(e.Location); 2637_rowSelectPos = Point.Empty; 3006Point pos = FindPosition(e.X, e.Y); 3052Point point; 3309Point startPosition = FindPosition(clipRect.X, clipRect.Y); 3310Point endPosition = FindPosition(clipRect.X, clipRect.Y + clipRect.Height); 3326Point location = _location; 3476Point editPoint = PointToScreen(_lastMouseDown); 3490_rowSelectPos = Point.Empty; 3824Point location = parent.PointToScreen(new(rect.left, rect.top)); 4896Point location = topControl.Location; 5278Point mouseLoc = Cursor.Position; 5296Point tipPt = Point.Empty;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (4)
26private Point _dragStart = Point.Empty; // the point at which the drag started to compute the delta 429Point dragPoint = PointToScreen(new Point(e.X, e.Y)); 498_dragStart = Point.Empty;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.PropertyGridViewAccessibleObject.cs (2)
431Point point = new(x, y); 435Point position = owner.FindPosition(point.X, point.Y);
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (5)
2207public override int GetCharIndexFromPosition(Point pt) 2209Point wpt = new(pt.X, pt.Y); 2252public override unsafe Point GetPositionFromCharIndex(int index) 2261return Point.Empty; 2264Point position = default;
System\Windows\Forms\Controls\Splitter\Splitter.cs (3)
31private Point _anchor = Point.Empty; 939_anchor = Point.Empty;
System\Windows\Forms\Controls\TabControl\TabControl.cs (4)
25private static readonly Point s_defaultPaddingPoint = new(6, 3); 33private Point _padding = s_defaultPaddingPoint; 390Point p = Location; 584public new Point Padding
System\Windows\Forms\Controls\TabControl\TabControl.TabControlAccessibleObject.cs (1)
90Point point = new(x, y);
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
339public new Point Location
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (4)
1612public override char GetCharFromPosition(Point pt) 1632public override int GetCharIndexFromPosition(Point pt) 1727public override Point GetPositionFromCharIndex(int index) 1729Point pos;
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (5)
1555public virtual char GetCharFromPosition(Point pt) 1565public virtual int GetCharIndexFromPosition(Point pt) 1602public virtual Point GetPositionFromCharIndex(int index) 1606return Point.Empty; 2054Point client;
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (11)
106Point clientLocation = point; 183public override Point PointToScreen(Point pt) => Owner is not null ? Owner.PointToScreen(pt) : Point.Empty; 304public override Point GetPositionFromChar(int charIndex) 307: Point.Empty; 310public override Point GetPositionFromCharForUpperRightCorner(int startCharIndex, string text) 314return Point.Empty; 318Point pt; 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)
383Point noMansLand = displayRect.Location; 588Point gripLocation = RightToLeft == RightToLeft.Yes
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (23)
27internal static Point s_invalidMouseEnter = new(int.MaxValue, int.MaxValue); 69private Point _mouseEnterWhenShown = s_invalidMouseEnter; 251public new Point AutoScrollPosition 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); 2593Point location = Location; 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); 3787g.DrawLines(SystemPens.ControlText, (ReadOnlySpan<Point>) 3794g.DrawLines(SystemPens.ControlText, (ReadOnlySpan<Point>) 3801g.DrawLines(SystemPens.ControlText, (ReadOnlySpan<Point>) 3814g.DrawLines(SystemPens.ControlText, (ReadOnlySpan<Point>) 3821g.DrawLines(SystemPens.ControlText, (ReadOnlySpan<Point>) 3828g.DrawLines(SystemPens.ControlText, (ReadOnlySpan<Point>) 3851public new Control? GetChildAtPoint(Point point) => base.GetChildAtPoint(point); 3854public new Control? GetChildAtPoint(Point pt, GetChildAtPointSkip skipValue) => base.GetChildAtPoint(pt, skipValue); 3871public ToolStripItem? GetItemAt(Point point) 4050Point newLocation = item.Bounds.Location; 4061protected internal void SetItemLocation(ToolStripItem item, Point location) 4119Point mousePosition = WindowsFormsUtils.LastCursorPoint; 4505Point cursorLocation = Cursor.Position; 4616Point pt = PointToClient(WindowsFormsUtils.LastCursorPoint);
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 (2)
142Point middle = new(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.Height / 2); 148(ReadOnlySpan<Point>)
System\Windows\Forms\Controls\ToolStrips\ToolStripContentPanel.cs (1)
165public new Point Location
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (12)
21private Point _displayLocation = new(0, 0); 523public new Point Location 988Point screenPoint = _ownerItem is ToolStripDropDownItem dropDownItem 999Point parentClientPoint = (_ownerItem is ToolStripDropDownItem dropDownItem) && (ParentInternal is not null) 1009internal Rectangle CalculateDropDownLocation(Point start, ToolStripDropDownDirection dropDownDirection) 1011Point offset = Point.Empty; 1020Rectangle dropDownBounds = new(Point.Empty, GetSuggestedSize()); 1813public void Show(Control control, Point position) 1829public void Show(Control control, Point position, ToolStripDropDownDirection direction) 1845public void Show(Point screenLocation) 1852public void Show(Point position, ToolStripDropDownDirection direction)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (9)
141Rectangle ownerItemBounds = new(TranslatePoint(Point.Empty, ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords), Size); 205protected internal virtual Point DropDownLocation 211return Point.Empty; 302Point offset = Point.Empty; 335Point itemScreenLocation = TranslatePoint(Point.Empty, ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords); 379Rectangle dropDownBounds = new(Point.Empty, DropDown.GetSuggestedSize()); 384Rectangle itemScreenBounds = new(TranslatePoint(Point.Empty, ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords), Size);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (5)
348Point nextPoint = Point.Empty; 456_textRectangle.Y = LayoutUtils.VAlign(_textRectangle.Size, new Rectangle(Point.Empty, _maxItemSize), ContentAlignment.MiddleCenter).Y; 824Point upLocation = new(1, 0); 831Point downLocation = new(1, height - downSize.Height);
System\Windows\Forms\Controls\ToolStrips\ToolStripGrip.cs (6)
12private Point _startLocation = Point.Empty; 14private Point _lastEndLocation = ToolStrip.s_invalidMouseEnter; 131Point currentLocation = TranslatePoint(mea.Location, 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\ToolStripHighContrastRenderer.cs (8)
135Rectangle bounds = new(Point.Empty, e.Item.Size); 187Rectangle bounds = new(Point.Empty, menuItem.Size); 208DrawArrow(new ToolStripArrowRenderEventArgs(g, item, new Rectangle(Point.Empty, item.Size), arrowColor, ArrowDirection.Down)); 258Rectangle bounds = new(Point.Empty, e.ToolStrip.Size); 287Rectangle bounds = new(Point.Empty, e.ToolStrip.Size); 350Rectangle bounds = new(Point.Empty, e.Item.Size); 410Rectangle bounds = new(Point.Empty, e.Item.Size); 442Rectangle bounds = new(Point.Empty, e.Item.Size);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (9)
561client.Location = Point.Empty; 2158/// Because <see cref="DoDragDrop(object, DragDropEffects, Bitmap, Point, bool)"/> always performs the 2165public unsafe DragDropEffects DoDragDrop(object data, DragDropEffects allowedEffects, Bitmap? dragImage, Point cursorOffset, bool useDefaultDragImage) 2224internal IDropSource.Interface CreateDropSource(IComVisibleDataObject dataObject, Bitmap? dragImage, Point cursorOffset, bool useDefaultDragImage) 2377Point rectangleLocation = TranslatePoint(r.Location, ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ToolStripCoords); 3423internal Point TranslatePoint(Point fromPoint, ToolStripPointType fromPointType, ToolStripPointType toPointType) 3440Point toPoint; 3441Point currentToolStripItemLocation = Bounds.Location;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemInternalLayout.cs (1)
99Rectangle bounds = new(Point.Empty, _ownerItem.Size);
System\Windows\Forms\Controls\ToolStrips\ToolStripLocationCancelEventArgs.cs (2)
16public ToolStripLocationCancelEventArgs(Point newLocation, bool value) : base(value) 24public Point NewLocation { get; }
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (1)
570internal static ToolStripPanel? ToolStripPanelFromPoint(Control draggedControl, Point screenLocation)
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.ModalMenuFilter.cs (2)
312private void ProcessMouseButtonPressed(HWND hwndMouseMessageIsFrom, Point location) 321Point translatedLocation = location;
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
711ControlPaint.DrawCaptionButton(g, new Rectangle(Point.Empty, image.Size), (CaptionButton)buttonToUse, ButtonState.Flat);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (15)
416private Point GetStartLocation(ToolStrip toolStripToDrag) 522Point[] controlLocations = new Point[Controls.Count]; 666private void GiveToolStripPanelFeedback(ToolStrip toolStripToDrag, Point screenLocation) 711Join(toolStripToDrag, Point.Empty); 728Point location; 746public void Join(ToolStrip toolStripToDrag, Point location) 770internal void MoveControl(ToolStrip? toolStripToDrag, Point screenLocation) 778Point clientLocation = PointToClient(screenLocation); 790private void MoveInsideContainer(ToolStrip toolStripToDrag, Point clientLocation) 811Point currentCursorLoc = PointToClient(WindowsFormsUtils.LastCursorPoint); 894Point endLocation = (Orientation == Orientation.Horizontal) ? new Point(clientLocation.X, row.Bounds.Y) : new Point(row.Bounds.X, clientLocation.Y); 955Point cursorLoc = toolStripToDrag.PointToScreen(toolStripToDrag.GripRectangle.Location); 983private void MoveOutsideContainer(ToolStrip toolStripToDrag, Point screenLocation) 1013public ToolStripPanelRow? PointToRow(Point clientLocation)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.FeedbackRectangle.cs (2)
42public void Show(Point newLocation) 47public void Move(Point newLocation)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.FeedbackRectangle.FeedbackDropDown.cs (1)
92public void MoveTo(Point newLocation)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelCell.cs (1)
365Point newloc = e.NewLocation;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.cs (3)
703internal void MoveControl(ToolStrip movingControl, Point startClientLocation, Point endClientLocation) 708internal void JoinRow(ToolStrip toolStripToDrag, Point locationToDrag)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.HorizontalRowManager.cs (3)
139public override void MoveControl(ToolStrip movingControl, Point clientStartLocation, Point clientEndLocation) 391public override void JoinRow(ToolStrip toolStripToDrag, Point locationToDrag)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.ToolStripPanelRowManager.cs (3)
171public virtual void MoveControl(ToolStrip movingControl, Point startClientLocation, Point endClientLocation) 180public virtual void JoinRow(ToolStrip toolStripToDrag, Point locationToDrag)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.VerticalRowManager.cs (3)
141public override void MoveControl(ToolStrip movingControl, Point clientStartLocation, Point clientEndLocation) 398public override void JoinRow(ToolStrip toolStripToDrag, Point locationToDrag)
System\Windows\Forms\Controls\ToolStrips\ToolStripProfessionalLowResolutionRenderer.cs (1)
53Rectangle bounds = new(Point.Empty, e.ToolStrip.Size);
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (37)
186Point middle = RenderArrowInternal(g, overflowArrowRect, direction, SystemBrushes.ControlText); 230Rectangle bounds = new(Point.Empty, item.Size); 248RenderSeparatorInternal(e.Graphics, e.Item, new Rectangle(Point.Empty, e.Item.Size), e.Vertical); 266Rectangle bounds = new(Point.Empty, item.Size); 346Rectangle bounds = new(Point.Empty, item?.Size ?? Size.Empty); 416Rectangle bounds = new(Point.Empty, toolStrip.Size); 545Rectangle bounds = new(Point.Empty, item.Size); 768e.Graphics.DrawImage(image, imageRect, new Rectangle(Point.Empty, imageRect.Size), GraphicsUnit.Pixel); 845Rectangle bounds = new(Point.Empty, toolStrip.Size); 852Point topLeft = Point.Empty; 853Point topRight = new(bounds.Width - 1, 0); 854Point bottomLeft = new(0, bounds.Height - 1); 855Point bottomRight = new(bounds.Width - 1, bounds.Height - 1); 1107Rectangle bounds = new(Point.Empty, item.Size); 1133g.FillRectangle(brush, new Rectangle(Point.Empty, control.Size)); 1140Rectangle gradientBounds = new(Point.Empty, parent.Size); 1149g.FillRectangle(b, new Rectangle(Point.Empty, control.Size)); 1154Rectangle gradientBounds = new(Point.Empty, control.Size); 1173Rectangle bounds = new(Point.Empty, e.ToolStrip.Size); 1182Rectangle bounds = new(Point.Empty, e.ToolStrip.Size); 1194Rectangle bounds = new(Point.Empty, toolStripDropDown.Size); 1216Rectangle overflowBoundsFill = new(Point.Empty, e.Item.Size); 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); 1337Rectangle bounds = new(Point.Empty, e.ToolStrip.Size); 1343Point topLeft = Point.Empty; 1344Point topRight = new(bounds.Width - 1, 0); 1345Point bottomLeft = new(0, bounds.Height - 1); 1387Point gradientCopyPixel = bottomLeft; 1566Rectangle bounds = new(Point.Empty, item.Size); 1645private static Point RenderArrowInternal(Graphics g, Rectangle dropDownRect, ArrowDirection direction, Brush brush) 1647Point middle = new(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.Height / 2); 1652Point[] arrow = direction switch
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (5)
639Point middle = new( 663Span<Point> arrow = stackalloc Point[3]; 827e.Graphics.DrawImage(image, imageRect, new Rectangle(Point.Empty, imageRect.Size), GraphicsUnit.Pixel); 929bounds: new Rectangle(Point.Empty, textSize),
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderEventArgs.cs (2)
16: this(g, toolStrip, new Rectangle(Point.Empty, toolStrip.OrThrowIfNull().Size), Color.Empty) 109Rectangle itemBounds = new(ToolStrip.PointToClient(ownerItem.TranslatePoint(Point.Empty, ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords)), ownerItem.Size);
System\Windows\Forms\Controls\ToolStrips\ToolStripSettings.cs (2)
58public Point Location 62return (Point)this[nameof(Location)];
System\Windows\Forms\Controls\ToolStrips\ToolStripSettingsManager.SettingsStub.cs (1)
17public Point Location;
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (3)
301Rectangle dropDownButtonBounds = new(Point.Empty, new Size(Math.Min(Width, DropDownButtonWidth), Height)); 307Rectangle splitButtonButtonBounds = new(Point.Empty, new Size(splitButtonButtonWidth, splitButtonButtonHeight)); 466Point clickPoint = new(e.X, e.Y);
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackDragDropHandler.cs (4)
69private void OnDropItem(ToolStripItem droppedItem, Point ownerClientAreaRelativeDropPoint) 131private bool ShowItemDropPoint(Point ownerClientAreaRelativeDropPoint) 170private int GetItemInsertionIndex(Point ownerClientAreaRelativeDropPoint) 204private RelativeLocation ComparePositions(Rectangle orig, Point check)
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (4)
11private Point _noMansLand; 320Point itemLocation = new(x, y); 452Point itemLocation = new(x, y); 487private void SetItemLocation(ToolStripItem item, Point itemLocation, Size itemSize)
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemDarkModeRenderer.cs (6)
228Rectangle bounds = new(Point.Empty, e.Item.Size); 274Rectangle bounds = new(Point.Empty, e.Item.Size); 321Rectangle bounds = new(Point.Empty, e.Item.Size); 429Rectangle bounds = new(Point.Empty, e.Item.Size); 443Point middle = new( 476Point[] arrow = arrowDirection switch
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (9)
331Rectangle bounds = new(Point.Empty, e.GripBounds.Size); 441vsRenderer.DrawBackground(g, new Rectangle(Point.Empty, item.Size)); 447DrawArrow(new ToolStripArrowRenderEventArgs(g, item, new Rectangle(Point.Empty, item.Size), arrowColor, ArrowDirection.Down)); 474Rectangle bounds = new(Point.Empty, item.Size); 497Rectangle fillRect = new(Point.Empty, item.Size); 543RenderSeparatorInternal(e.Graphics, e.Item, new Rectangle(Point.Empty, e.Item.Size), e.Vertical); 655Rectangle bounds = new(Point.Empty, splitButton.Size); 715vsRenderer.DrawBackground(g, new Rectangle(Point.Empty, item.Size)); 727RenderSmall3DBorderInternal(g, new Rectangle(Point.Empty, item.Size), state, (item.RightToLeft == RightToLeft.Yes));
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.cs (3)
441public char GetCharFromPosition(Point pt) { return TextBox.GetCharFromPosition(pt); } 442public int GetCharIndexFromPosition(Point pt) { return TextBox.GetCharIndexFromPosition(pt); } 446public Point GetPositionFromCharIndex(int index) { return TextBox.GetPositionFromCharIndex(index); }
System\Windows\Forms\Controls\TrackBar\TrackBar.TrackBarAccessibleObject.cs (1)
107Point point = new(x, y);
System\Windows\Forms\Controls\TreeView\TreeView.cs (6)
1630public TreeViewHitTestInfo HitTest(Point pt) => HitTest(pt.X, pt.Y); 1671public TreeNode? GetNodeAt(Point pt) => GetNodeAt(pt.X, pt.Y); 2816Point textLoc = new(AppContextSwitches.MoveTreeViewTextLocationOnePixel ? bounds.X : bounds.X - 1, bounds.Y); 3015Point pos = PointToClient(Cursor.Position); 3292Point point = PARAM.ToPoint(m.LParamInternal); 3417Point client;
System\Windows\Forms\Controls\TreeView\TreeView.TreeViewAccessibleObject.cs (1)
64Point p = owningTreeView.PointToClient(new Point(x, y));
System\Windows\Forms\Controls\Unsupported\ContextMenu\ContextMenu.cs (2)
57public void Show(Control control, Point pos) { } 59public void Show(Control control, Point pos, LeftRightAlignment alignment) { }
System\Windows\Forms\Controls\Unsupported\DataGrid\DataGrid.cs (1)
554public HitTestInfo HitTest(Point position) => throw null;
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (2)
835Rectangle clientArea = new(Point.Empty, ClientSize); 904Point point = e.Location;
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (2)
351Point pt1 = new(clientRect.Left, clientRect.Bottom - 1); 352Point pt2 = new(clientRect.Right, clientRect.Bottom - 1);
System\Windows\Forms\Controls\WebBrowser\HtmlDocument.cs (1)
457public HtmlElement? GetElementFromPoint(Point point)
System\Windows\Forms\Controls\WebBrowser\HtmlElementEventArgs.cs (3)
48public Point ClientMousePosition 53public Point OffsetMousePosition 58public Point MousePosition
System\Windows\Forms\Controls\WebBrowser\HtmlWindow.cs (3)
167public Point Position 301public void MoveTo(Point point) 407public void ScrollTo(Point point)
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (2)
1337private bool ShowContextMenu(Point location) 1345Point client;
System\Windows\Forms\Controls\WebBrowser\WebBrowser.WebBrowserSite.cs (1)
29unsafe HRESULT IDocHostUIHandler.ShowContextMenu(uint dwID, Point* pt, object pcmdtReserved, object pdispReserved)
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (4)
340PInvoke.GetCursorPos(out Point p); 784Point location = Location; 1106Point phm = new(sz.Width, sz.Height); 1118Point phm = default;
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.cs (1)
170Point originalOrigin = default;
System\Windows\Forms\Form.cs (7)
914public Point DesktopLocation 919Point loc = Location; 1144public new Point Location 3901Point p = default; 3947Point p = default; 4395Point pointToSnap = new(button.Left + button.Width / 2, button.Top + button.Height / 2); 7005Point point = PointToClient(PARAM.ToPoint(m.LParamInternal));
System\Windows\Forms\GiveFeedbackEventArgs.cs (2)
26public GiveFeedbackEventArgs(DragDropEffects effect, bool useDefaultCursors, Bitmap? dragImage, Point cursorOffset, bool useDefaultDragImage) 65public Point CursorOffset { get; set; }
System\Windows\Forms\Help\Help.cs (1)
77public static unsafe void ShowPopup(Control? parent, string caption, Point location)
System\Windows\Forms\Help\HelpEventArgs.cs (2)
14public HelpEventArgs(Point mousePos) 22public Point MousePos { get; }
System\Windows\Forms\Input\Cursor.cs (4)
168public Point HotSpot 178/// Gets or sets a <see cref="Point"/> that specifies the current cursor position in screen coordinates. 180public static Point Position 184PInvoke.GetCursorPos(out Point p);
System\Windows\Forms\Input\HandledMouseEventArgs.cs (1)
13internal HandledMouseEventArgs(MouseButtons button, int clicks, Point location, int delta)
System\Windows\Forms\Input\MouseEventArgs.cs (2)
27internal MouseEventArgs(MouseButtons button, int clicks, Point location, int delta = 0) 64public Point Location => new(X, Y);
System\Windows\Forms\Internal\WinFormsUtils.cs (3)
24public static Point LastCursorPoint 284public static Point TranslatePoint(Point point, Control fromControl, Control toControl)
System\Windows\Forms\Layout\Containers\ContainerControl.cs (1)
689Point topLeftPoint = default;
System\Windows\Forms\Layout\Containers\SplitContainer.cs (7)
55private Point _anchor = Point.Empty; 133[DefaultValue(typeof(Point), "0, 0")] 134public override Point AutoScrollOffset 169public new Point AutoScrollPosition 451PInvoke.GetCursorPos(out Point p); 2154_anchor = Point.Empty;
System\Windows\Forms\Layout\DefaultLayout.cs (1)
81Point location = oldBounds.Location;
System\Windows\Forms\Layout\FlowLayout.ContainerProxy.cs (6)
64Point ptScroll = flp.AutoScrollPosition; 65if (ptScroll != Point.Empty) 67Point pt = new(value.X, value.Y); 142Point ptScroll = flp.AutoScrollPosition; 143if (ptScroll != Point.Empty) 145Point pt = new(newBounds.X, newBounds.Y);
System\Windows\Forms\Layout\FlowLayout.cs (1)
166Point location = rowBounds.Location;
System\Windows\Forms\Layout\LayoutUtils.cs (2)
433public static Point FlipPoint(Point point)
System\Windows\Forms\NotifyIcon.cs (1)
608PInvoke.GetCursorPos(out Point pt);
System\Windows\Forms\OLE\DropSource.cs (2)
20public DropSource(ISupportOleDropSource peer, IComVisibleDataObject dataObject, Bitmap? dragImage, Point cursorOffset, bool useDefaultDragImage) 93if (!lastHwndTarget.IsNull && (Cursor.Position is Point point))
System\Windows\Forms\Panels\Panel.cs (1)
230ControlPaint.PrintBorder(g, new Rectangle(Point.Empty, Size), BorderStyle, Border3DStyle.Sunken);
System\Windows\Forms\Panels\SplitterPanel.cs (1)
141public new Point Location
System\Windows\Forms\Printing\PrintPreviewControl.cs (11)
35private Point _position = new(0, 0); 48private Point _screenDPI = Point.Empty; 404private Point Position 625Point offset = new( 635Point lastImageSize = Point.Empty; 751private static Size PixelsToPhysical(Size pixels, Point dpi) => 757private static Size PhysicalToPixels(Size physical, Point dpi) => 760private void SetPositionNoInvalidate(Point value) 905Point locPos = Position;
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
402public new Point Location
System\Windows\Forms\Rendering\ControlPaint.cs (7)
446Point scrollOffset = default, 457if (scrollOffset != Point.Empty) 508Rectangle partOfImageToDraw = new(Point.Empty, imageRect.Size); 1700Point start = new(bounds.X + bounds.Width - 1, bounds.Y - 1); 1701Point end = new(bounds.X + bounds.Width - 1, bounds.Y + bounds.Height); 1849public static unsafe void DrawReversibleLine(Point start, Point end, Color backColor)
System\Windows\Forms\Rendering\ControlPaint_ModernControlButtonRenderer.cs (6)
329Point[] leftStroke = 337Point[] rightStroke = 352Point[] points = 364Point[] points = 376Point[] points = 388Point[] points =
System\Windows\Forms\Rendering\DCMapping.cs (1)
40Point viewportOrg = default;
System\Windows\Forms\Rendering\ScreenDcCache.cs (1)
106Point point;
System\Windows\Forms\Rendering\TextRenderer.cs (14)
25public static void DrawText(IDeviceContext dc, string? text, Font? font, Point pt, Color foreColor) 34/// <param name="pt">The <see cref="Point"/> that represents the upper-left corner of the drawn text.</param> 37public static void DrawText(IDeviceContext dc, ReadOnlySpan<char> text, Font font, Point pt, Color foreColor) 44Point pt, 55/// <param name="pt">The <see cref="Point"/> that represents the upper-left corner of the drawn text.</param> 63Point pt, 72Point pt, 84/// <param name="pt">The <see cref="Point"/> that represents the upper-left corner of the drawn text.</param> 95Point pt, 111Point pt, 124/// <param name="pt">The <see cref="Point"/> that represents the upper-left corner of the drawn text.</param> 136Point pt, 283Point pt, 396/// versions of <see cref="DrawText(IDeviceContext, ReadOnlySpan{char}, Font, Point, Color)"/> and
System\Windows\Forms\Screen.cs (3)
249public static Screen FromPoint(Point point) 283public static Rectangle GetWorkingArea(Point pt) => FromPoint(pt).WorkingArea; 298public static Rectangle GetBounds(Point pt) => FromPoint(pt).Bounds;
System\Windows\Forms\Scrolling\ScrollableControl.cs (4)
115public Point AutoScrollPosition 829Point scrollLocation = ScrollToControl(activeControl); 844protected virtual Point ScrollToControl(Control activeControl) 1110Point pt = AutoScrollPosition;
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarAccessibleObject.cs (1)
91Point point = new(x, y);
System\Windows\Forms\ToolTip\ToolTip.cs (18)
1028private HWND GetWindowFromPoint(Point screenCoords, ref bool success) 1055Point pt = screenCoords; 1314Point cursorLocation = Cursor.Position; 1315Point p = cursorLocation; 1402public void Show(string? text, IWin32Window window, Point point) 1421public void Show(string? text, IWin32Window window, Point point, int duration) 1495Point optimalPoint = GetOptimalToolTipPosition(tool, toolRectangle, bubbleSize.Width, bubbleSize.Height); 1547private Point GetOptimalToolTipPosition(IKeyboardToolTip tool, Rectangle toolRectangle, int width, int height) 1787private void SetTool(IWin32Window window, string? text, TipInfo.Type type, Point position) 1921private void Reposition(Point tipPosition, Size tipSize) 1923Point moveToLocation = tipPosition; 1984if (tipInfo.Position != Point.Empty) 2002Point cursorLocation = Cursor.Position; 2018var lpPoint = (Point*)(nint)message.LParamInternal; 2141Point cursorPos = Cursor.Position; 2174if (((tipInfo.TipType & TipInfo.Type.SemiAbsolute) != 0) && tipInfo.Position == Point.Empty) 2196else if ((tipInfo.TipType & TipInfo.Type.SemiAbsolute) != 0 && tipInfo.Position != Point.Empty) 2258tipInfo.Position = Point.Empty;
System\Windows\Forms\ToolTip\ToolTip.TipInfo.cs (1)
29public Point Position { get; set; }
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (5)
613public Point GetPoint(PointProperty prop) 618_lastHResult = PInvoke.GetThemePosition(HTHEME, Part, State, (THEME_PROPERTY_SYMBOL_ID)prop, out Point point); 716public HitTestCode HitTestBackground(IDeviceContext dc, Rectangle backgroundRectangle, Point pt, HitTestOptions options) 738public HitTestCode HitTestBackground(Graphics g, Rectangle backgroundRectangle, Region region, Point pt, HitTestOptions options) 750public HitTestCode HitTestBackground(IDeviceContext dc, Rectangle backgroundRectangle, IntPtr hRgn, Point pt, HitTestOptions options)
System.Windows.Forms.Design (457)
Resources\MaskDesignerDialog.Designer.cs (24)
86internal static System.Drawing.Point btnCancel_Location { 89return ((System.Drawing.Point)(obj)); 145internal static System.Drawing.Point btnOK_Location { 148return ((System.Drawing.Point)(obj)); 204internal static System.Drawing.Point checkBoxUseValidatingType_Location { 207return ((System.Drawing.Point)(obj)); 273internal static System.Drawing.Point lblHeader_Location { 276return ((System.Drawing.Point)(obj)); 333internal static System.Drawing.Point lblMask_Location { 336return ((System.Drawing.Point)(obj)); 392internal static System.Drawing.Point lblTryIt_Location { 395return ((System.Drawing.Point)(obj)); 478internal static System.Drawing.Point listViewCannedMasks_Location { 481return ((System.Drawing.Point)(obj)); 528internal static System.Drawing.Point maskedTextBox_Location { 531return ((System.Drawing.Point)(obj)); 606internal static System.Drawing.Point maskTryItTable_Location { 609return ((System.Drawing.Point)(obj)); 690internal static System.Drawing.Point okCancelTableLayoutPanel_Location { 693return ((System.Drawing.Point)(obj)); 767internal static System.Drawing.Point overarchingTableLayoutPanel_Location { 770return ((System.Drawing.Point)(obj)); 817internal static System.Drawing.Point txtBoxMask_Location { 820return ((System.Drawing.Point)(obj));
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (2)
244Point middle = new( 251Point[] arrow = [
System\ComponentModel\Design\DesignerActionPanel.cs (1)
232public static Point ComputePreferredDesktopLocation(Rectangle rectangleAnchor, Size sizePanel, out DockStyle edgeToDock)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (4)
341Rectangle editorBounds = new(Point.Empty, EditRegionSize); 343Point editorLocation = ActionPanel.PointToScreen(EditRegionLocation); 365Rectangle editorBounds = new(Point.Empty, EditRegionSize); 367Point editorLocation = ActionPanel.PointToScreen(EditRegionLocation);
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (3)
18private Point _editRegionLocation; 65protected Point EditRegionLocation => _editRegionLocation; 67protected Point EditRegionRelativeLocation { get; private set; }
System\ComponentModel\Design\DesignerActionUI.cs (9)
612Point point = DesignerUtils.LastCursorPoint; 615Point glyphCoord = GetGlyphLocationScreenCoord(_lastPanelComponent, currentGlyph); 633internal Point UpdateDAPLocation(IComponent? component, DesignerActionGlyph? glyph) 639return Point.Empty; 655Point glyphLocationScreenCoord = GetGlyphLocationScreenCoord(component, glyph); 657Point pt = DesignerActionPanel.ComputePreferredDesktopLocation(rectGlyph, _designerActionHost.Size, out DockStyle edgeToDock); 663private Point GetGlyphLocationScreenCoord(IComponent relatedComponent, Glyph glyph) 665Point glyphLocationScreenCoord = new(0, 0); 712Point location = UpdateDAPLocation(relatedComponent, glyph);
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
164Point location = PointToScreen(Location);
System\Drawing\Design\ColorEditor.ColorPalette.ColorPaletteAccessibleObject.ColorCellAccessibleObject.cs (2)
31Point cellPt = Get2DFrom1D(_cell); 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 (10)
51private Point _focus; 129private Point GetCellFromColor(Color c) 142return Point.Empty; 157private static Point GetCell2DFromLocationMouse(int x, int y) 180private static int Get1DFrom2D(Point pt) => Get1DFrom2D(pt.X, pt.Y); 192private static Point Get2DFrom1D(int cell) 310Point cell2D = GetCell2DFromLocationMouse(me.X, me.Y); 324Point cell2D = GetCell2DFromLocationMouse(me.X, me.Y); 339Point cell2D = GetCell2DFromLocationMouse(me.X, me.Y); 436private void SetFocus(Point newFocus)
System\Windows\Forms\Design\Behavior\Behavior.cs (4)
126public virtual bool OnMouseDoubleClick(Glyph? g, MouseButtons button, Point mouseLoc) 148public virtual bool OnMouseDown(Glyph? g, MouseButtons button, Point mouseLoc) 189public virtual bool OnMouseHover(Glyph? g, Point mouseLoc) 229public virtual bool OnMouseMove(Glyph? g, MouseButtons button, Point mouseLoc)
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.cs (7)
132Point scrollPosition = DesignerFrame.AutoScrollPosition; 149Point scrollPosition = DesignerFrame.AutoScrollPosition; 210PInvoke.GetCursorPos(out Point point); 246PInvoke.GetCursorPos(out Point point); 318Point pt = PARAM.ToPoint(m.LParamInternal); 319Point pt1 = PointToClient(default); 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 (16)
255public Point AdornerWindowPointToScreen(Point p) => _adornerWindow.PointToScreen(p); 260public Point AdornerWindowToScreen() => AdornerWindowPointToScreen(new Point(0, 0)); 265public Point ControlToAdornerWindow(Control c) 269return Point.Empty; 272Point pt = new(c.Left, c.Top); 285public Point MapAdornerWindowPoint(IntPtr handle, Point pt) 301Point loc = ControlToAdornerWindow(c); 465public Point ScreenToAdornerWindow(Point p) => _adornerWindow.PointToClient(p); 483private bool PropagateHitTest(Point pt) 666private bool OnMouseDoubleClick(MouseButtons button, Point mouseLoc) 669private bool OnMouseDown(MouseButtons button, Point mouseLoc) 674private bool OnMouseHover(Point mouseLoc) 684private bool OnMouseMove(MouseButtons button, Point mouseLoc)
System\Windows\Forms\Design\Behavior\ComponentGlyph.cs (1)
42public override Cursor? GetHitTest(Point p) => null;
System\Windows\Forms\Design\Behavior\ContainerSelectorBehavior.cs (14)
21private Point _initialDragPoint; // cached "mouse down" point 61_initialDragPoint = Point.Empty; 81public Point InitialDragPoint 90public override bool OnMouseDown(Glyph? g, MouseButtons button, Point mouseLoc) 149private Point DetermineInitialDragPoint(Point mouseLoc) 154Point controlOrigin = _behaviorService.ControlToAdornerWindow(_containerControl); 170public override bool OnMouseMove(Glyph? g, MouseButtons button, Point mouseLoc) 174if (InitialDragPoint == Point.Empty) 183Point screenLoc = _behaviorService.AdornerWindowToScreen(); 197InitialDragPoint = Point.Empty; 205private void StartDragOperation(Point initialMouseLocation) 239Point controlOrigin; 259InitialDragPoint = Point.Empty;
System\Windows\Forms\Design\Behavior\ContainerSelectorGlyph.cs (1)
39public override Cursor? GetHitTest(Point p)
System\Windows\Forms\Design\Behavior\ControlBodyGlyph.cs (1)
53public override Cursor? GetHitTest(Point p)
System\Windows\Forms\Design\Behavior\DesignerActionBehavior.cs (2)
91public override bool OnMouseDoubleClick(Glyph? g, MouseButtons button, Point mouseLoc) 97public override bool OnMouseDown(Glyph? g, MouseButtons button, Point mouseLoc)
System\Windows\Forms\Design\Behavior\DesignerActionGlyph.cs (3)
87public override Cursor? GetHitTest(Point p) 132Point topRight = Point.Empty;
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (16)
25private Point _dragOffset; // the offset from the new drag pos compared to the last 214Point offset = controlDesigner.GetOffsetToClientArea(); 545_dragOffset = _behaviorService.MapAdornerWindowPoint(rootControl.Handle, Point.Empty); 661internal Point OffsetToNearestSnapLocation(Control targetControl, IList targetSnaplines, Point directionOffset) 686internal Point OffsetToNearestSnapLocation(Control targetControl, Point directionOffset) 688Point offset = Point.Empty; 1035internal Point OnMouseMove(Rectangle dragBounds, SnapLine[] snapLines) 1046internal Point OnMouseMove(Rectangle dragBounds, SnapLine[] snapLines, ref bool didSnap, bool shouldSnapHorizontally) 1050return Point.Empty; 1075internal Point OnMouseMove(Rectangle dragBounds) 1085internal Point OnMouseMove(Control targetControl, SnapLine[] snapLines, ref bool didSnap, bool shouldSnapHorizontally) 1096private Point OnMouseMove(Rectangle dragBounds, bool offsetSnapLines, ref bool didSnap, bool shouldSnapHorizontally) 1143Point snapPoint = new(_snapPointX != INVALID_VALUE ? _snapPointX : 0, _snapPointY != INVALID_VALUE ? _snapPointY : 0);
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (29)
25public Point originalControlLocation; // the original control of the control in AdornerWindow coordinates 26public Point draggedLocation; // the location of the component after each drag - in AdornerWindow coordinates 28public Point positionOffset; // control position offset from primary selection 39private Point _lastSnapOffset; // the last SnapOffset we used. 52private Point _initialMouseLoc; // original mouse location in screen coordinates 57private Point _originalDragImageLocation; // original location of the drag image 60private Point _lastFeedbackLocation; // the last position we got feedback at 63private Point _parentLocation; // location of parent on AdornerWindow - used for grid snap calculations 78internal DropSourceBehavior(List<IComponent> dragComponents, Control source, Point initialMouseLocation) 114_lastSnapOffset = Point.Empty; 140private Point AdjustToGrid(Point dragLoc) 143Point controlLocation = new(dragLoc.X - _parentLocation.X, dragLoc.Y - _parentLocation.Y); 144Point offset = Point.Empty; 170private Point MapPointFromSourceToTarget(Point pt) 183private Point MapPointFromTargetToSource(Point pt) 262private void SetLocationPropertyAndChildIndex(int dragComponentIndex, Control dragTarget, Point dropPoint, int newIndex, bool allowSetChildIndexOnDrop) 271Point pt = new(dropPoint.X, dropPoint.Y); 274Point ptScroll = p.AutoScrollPosition; 442Point initialDropPoint = _behaviorServiceSource.AdornerWindowPointToScreen(_dragComponents[_primaryComponentIndex].draggedLocation); 493Point dropPoint = new(initialDropPoint.X + _dragComponents[i].positionOffset.X, 612Point mouseLoc = Control.MousePosition; 733Point newPosition = new(mouseLoc.X - _initialMouseLoc.X + _dragComponents[_primaryComponentIndex].originalControlLocation.X, 817Point dropPoint = _behaviorServiceSource.AdornerWindowPointToScreen(_dragComponents[_primaryComponentIndex].draggedLocation); 881_parentLocation = bhvSvc.MapAdornerWindowPoint(parentControl.Handle, Point.Empty); 925private void InitiateDrag(Point initialMouseLocation, ICollection<IComponent> dragComps)
System\Windows\Forms\Design\Behavior\Glyph.cs (1)
47public abstract Cursor? GetHitTest(Point p);
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (12)
30private Point _initialPoint; // the initial point of the mouse down 38private Point _lastMouseLoc; // helps us avoid re-entering code if the mouse hasn't moved 39private Point _parentLocation; // used to snap resize ops to the grid 41private Point _lastMouseAbs; // last absolute mouse position 42private Point _lastSnapOffset; // the last snapoffset we used. 60_lastSnapOffset = Point.Empty; 158private SnapLine[] GenerateSnapLines(SelectionRules rules, Point loc) 290public override bool OnMouseDown(Glyph g, MouseButtons button, Point mouseLoc) 457public override bool OnMouseMove(Glyph g, MouseButtons button, Point mouseLoc) 480if (_lastMouseAbs != Point.Empty) 482Point mouseLocAbs = new(mouseLoc.X, mouseLoc.Y); 915_lastSnapOffset = Point.Empty;
System\Windows\Forms\Design\Behavior\SelectionGlyphBase.cs (1)
37public override Cursor? GetHitTest(Point p)
System\Windows\Forms\Design\Behavior\TableLayoutPanelBehavior.cs (5)
15private Point _lastMouseLoc; // used to track mouse movement deltas 44_lastMouseLoc = Point.Empty; 52_lastMouseLoc = Point.Empty; 87public override bool OnMouseDown(Glyph g, MouseButtons button, Point mouseLoc) 239public override bool OnMouseMove(Glyph g, MouseButtons button, Point mouseLoc)
System\Windows\Forms\Design\Behavior\TableLayoutPanelResizeGlyph.cs (1)
51public override Cursor? GetHitTest(Point p)
System\Windows\Forms\Design\Behavior\ToolboxItemSnapLineBehavior.cs (9)
21private Point _lastOffset; // cache the last snap so we know where to create our control if dropped 37_lastOffset = Point.Empty; 86_lastOffset = Point.Empty; 102private ToolboxSnapDragDropEventArgs CreateToolboxSnapArgs(DragEventArgs e, Point mouseLoc) 106Point offset = Point.Empty; 253Point screenOffset = _behaviorService.AdornerWindowToScreen(); 292public override bool OnMouseMove(Glyph? g, MouseButtons button, Point mouseLoc) 342Point adornerServiceOrigin = _behaviorService.MapAdornerWindowPoint(baseControl.Handle, new Point(0, 0));
System\Windows\Forms\Design\Behavior\ToolboxSnapDragDropEventArgs.cs (2)
21public ToolboxSnapDragDropEventArgs(SnapDirection snapDirections, Point offset, DragEventArgs origArgs) 38public Point Offset { get; }
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (2)
74public override bool OnMouseDown(Glyph? glyph, MouseButtons button, Point screenCoordinates) 118Point loc = _behaviorService.ControlToAdornerWindow(parent);
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionGlyph.cs (1)
202public override Cursor? GetHitTest(Point p)
System\Windows\Forms\Design\CommandSet.cs (50)
529private static Point GetLocation(IComponent comp) 537return (Point)prop.GetValue(comp)!; 545return Point.Empty; 683PInvoke.GetCursorPos(out Point p); 807Point snappedOffset = dragManager.OffsetToNearestSnapLocation(primaryControl, new Point(moveOffsetX, moveOffsetY)); 856Point loc = primaryControl.Location; 922Point loc = (Point)propLoc.GetValue(component)!; 963Point primaryLocation = GetLocation(primarySelection!); 987Point loc = Point.Empty; 1036loc = (Point)locProp.GetValue(comp)!; 1044loc = (Point)locProp.GetValue(comp)!; 1052loc = (Point)locProp.GetValue(comp)!; 1060loc = (Point)locProp.GetValue(comp)!; 1069loc = (Point)locProp.GetValue(comp)!; 1077loc = (Point)locProp.GetValue(comp)!; 1179var loc = (Point)locProp.GetValue(comp)!; 1290Point loc = (Point)locProp.GetValue(comp)!; 1339Point loc = (Point)locProp.GetValue(comp)!; 2423Point loc = (Point)locProp.GetValue(comp)!; 2553Point curLoc = Point.Empty, lastLoc = Point.Empty; 2554Point primaryLoc = Point.Empty; 2618curLoc = Point.Empty; 2635curLoc = (Point)curLocDesc.GetValue(curComp)!; 2674lastLoc = (Point)curLocDesc.GetValue(curComp)!; 2712primaryLoc = (Point)primaryLocDesc.GetValue(primary)!; 2745curLoc = (Point)curLocDesc.GetValue(curComp)!; 2776lastLoc = (Point)lastLocDesc.GetValue(lastComp)!; 3240Point min = controls[0].Location; 3241Point max = min; 3244Point loc = c.Location; 3273Point offset = new(-min.X, -min.Y); 3286Point parentOffset = new(parentSize.Width / 2, parentSize.Height / 2); 3411Point newLoc = c.Location; 3465Point pLoc = (Point)pProp.GetValue(p)!; 3466Point qLoc = (Point)qProp.GetValue(q)!; 3483Point pLoc = (Point)pProp.GetValue(p)!; 3484Point qLoc = (Point)qProp.GetValue(q)!;
System\Windows\Forms\Design\ComponentTray.cs (36)
27private static Point InvalidPoint { get; } = new(int.MinValue, int.MinValue); 29private Point _whiteSpace = Point.Empty; // space to leave between components. 52private Point _mouseDragStart = InvalidPoint; // the starting location of a drag 53private Point _mouseDragEnd = InvalidPoint; // the ending location of a drag 56private Point _mouseDropLocation = InvalidPoint; // where the tool was dropped 59private Point _autoScrollPosBeforeDragging = Point.Empty; // Used to return the correct scroll pos. after a drag 637private void OnContextMenu(Point location) 941public Point GetLocation(IComponent receiver) 949return (Point)(loc.GetValue(receiver)); 968public Point GetTrayLocation(IComponent receiver) 977Point loc = c.Location; 978Point autoScrollLoc = AutoScrollPosition; 1188private void DrawRubber(Point start, Point end) 1514public void SetLocation(IComponent receiver, Point location) 1548public void SetTrayLocation(IComponent receiver, Point location) 1559Point autoScrollLoc = AutoScrollPosition; 1603Point location = PARAM.ToPoint(m.LParamInternal); 1620Point location = PARAM.ToPoint(m.LParamInternal); 1793internal void RearrangeInAutoSlots(Control c, Point pos) 1817Point newLoc = new(display.X + _whiteSpace.X, display.Y + _whiteSpace.Y); 1828Point autoScrollLoc = AutoScrollPosition; 1845Point newLoc = new(bounds.X + bounds.Width + _whiteSpace.X, bounds.Y); 1863Point autoScrollLoc = AutoScrollPosition; 1892private Point _mouseDragLast = InvalidPoint; // the last position of the mouse during a drag. 2176Point newPt = PointToScreen(new Point(me.X, me.Y)); 2222private void OnContextMenu(Point location) 2520Point location = PARAM.ToPoint(m.LParamInternal); 2533Point pt = PARAM.ToPoint(m.LParamInternal); 2534Point pt1 = PointToClient(default); 2646public Cursor GetHitTest(Point p) 2753Point tcLoc1 = o1.Location; 2754Point tcLoc2 = o2.Location; 2923if (comp is Point)
System\Windows\Forms\Design\ControlCommandSet.cs (2)
463Point pt = BehaviorService.ControlToAdornerWindow(primaryControl); 631Point snappedOffset = dragManager.OffsetToNearestSnapLocation(primaryControl, targetSnaplines, new Point(moveOffsetX, moveOffsetY));
System\Windows\Forms\Design\ControlDesigner.cs (15)
20protected static readonly Point InvalidPoint = new(int.MinValue, int.MinValue); 46private Point _mouseDragLast = InvalidPoint; // the last position of the mouse during a drag. 80private Point Location 84Point loc = Control.Location; 88Point pt = parent.AutoScrollPosition; 98Point pt = parent.AutoScrollPosition; 285internal Point GetOffsetToClientArea() 287Point nativeOffset = default; 293Point offset = Control.Location; 869protected virtual bool GetHitTest(Point point) => false; 1720Point pt = PARAM.ToPoint(m.LParamInternal); 1773Point location = default; 2083Point point = default; 2134Rectangle clientAreaScreenBounds = new(Control.PointToScreen(Point.Empty), Control.ClientSize); 2395Point pt = PARAM.ToPoint(lParam);
System\Windows\Forms\Design\ControlDesigner.TransparentBehavior.cs (1)
30internal bool IsTransparent(Point p) => _designer.GetHitTest(p);
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
1747Point pt = new(e.X, e.Y);
System\Windows\Forms\Design\DesignerFrame.cs (1)
58internal Point AutoScrollPosition => _designerRegion.AutoScrollPosition;
System\Windows\Forms\Design\DesignerToolStripControlHost.cs (1)
52Point loc = _behaviorService.ControlToAdornerWindow(Parent);
System\Windows\Forms\Design\DesignerUtils.cs (2)
154public static Point LastCursorPoint 569if (e.Offset != Point.Empty)
System\Windows\Forms\Design\DocumentDesigner.cs (4)
145[DefaultValue(typeof(Point), "0, 0")] 146private Point Location 150return (Point)ShadowProperties[nameof(Location)]; 470Point loc = BehaviorService.ControlToAdornerWindow((Control)Component);
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (18)
31private Point _lastMouseLocation; 48private Point _oldPoint1 = Point.Empty; 53private Point _oldPoint2 = Point.Empty; 193Point offset = Control.PointToScreen(Point.Empty); 430=> ReDrawIBar(Point.Empty, Point.Empty); 437private void ReDrawIBar(Point point1, Point point2) 447if (point1 != Point.Empty) 449Point offset = BehaviorService.AdornerWindowToScreen(); 456if (point1 != _oldPoint1 && point2 != _oldPoint2 && _oldPoint1 != Point.Empty) 754_lastMouseLocation = Point.Empty; 790Point mouseLocation = new(de.X, de.Y); 803Point controlOffset = Control.PointToScreen(Point.Empty);
System\Windows\Forms\Design\GroupBoxDesigner.cs (1)
22protected override Point DefaultControlLocation
System\Windows\Forms\Design\ISelectionUIService.cs (1)
78bool GetAdornmentHitTest(object component, Point pt);
System\Windows\Forms\Design\ListViewDesigner.cs (2)
69protected override unsafe bool GetHitTest(Point point) 76Point listViewPoint = Control.PointToClient(point);
System\Windows\Forms\Design\OleDragDropHandler.cs (21)
31private Point _localDragOffset = Point.Empty; 34private Point _dragBase = Point.Empty; 318private Point DrawDragFrames( 320Point oldOffset, 322Point newOffset, 330return Point.Empty; 335return Point.Empty; 464_localDragOffset = Point.Empty; 570DrawDragFrames(_dragComps, _localDragOffset, _localDragEffect, Point.Empty, drawAtNewOffset: false); 573_localDragOffset = Point.Empty; 576_dragBase = Point.Empty; 652Point.Empty, 758Point dropPt = Destination.GetDesignerControl().PointToClient(new Point(de.X, de.Y)); 768Point pt = (Point)loc.GetValue(comp)!; 931Point.Empty, 936_dragBase = Point.Empty; 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 (31)
22private Point _mouseDragBase = InvalidPoint; // the base point of the drag 44private Point _adornerWindowToScreenOffset; // quick lookup for offsetting snaplines for new tools 111protected virtual Point DefaultControlLocation => new(0, 0); 308Point offset = GetOffsetToClientArea(); 423Point loc = newChild.Location; 434Point location = Point.Empty; 441location = (Point)defaultValues["Location"]; 576Point pt = new(bounds.X, bounds.Y); 580Point ptScroll = p.AutoScrollPosition; 800protected void CreateTool(ToolboxItem tool, Point location) 1041Point loc = BehaviorService.ControlToAdornerWindow((Control)Component); 1103Point minimumLocation = DefaultControlLocation; 1118internal Point GetSnappedPoint(Point pt) 1139Point halfGrid = new(gridSize.Width / 2, gridSize.Height / 2); 1238Rectangle bounds = new((Point)defaultValues["Location"], (Size)defaultValues["Size"]); 1771Point baseVar = _mouseDragBase; 1817Point location = new(baseVar.X, baseVar.Y); 1935Point offset = _dragManager.OnMouseMove(r, GenerateNewToolSnapLines(r)); 2008Point offset = new(_mouseDragOffset.X, _mouseDragOffset.Y); 2136Point parentLoc = Point.Empty; 2139parentLoc = (Point)locationProp.GetValue(newParent); 2148Point controlLoc = Point.Empty; 2161controlLoc = (Point)locProp.GetValue(control); 2176Point newLoc = Point.Empty; 2189Point oldParentLoc = (Point)locProp.GetValue(oldParent);
System\Windows\Forms\Design\ScrollableControlDesigner.cs (1)
22protected override bool GetHitTest(Point pt)
System\Windows\Forms\Design\SelectionUIHandler.cs (3)
186Point adjustedLoc = default; 597Point loc; 610loc = (Point)locProp.GetValue(control)!;
System\Windows\Forms\Design\SelectionUIService.ContainerSelectionUIItem.cs (2)
19public override Cursor? GetCursorAtPoint(Point point) 31public override int GetHitTest(Point point)
System\Windows\Forms\Design\SelectionUIService.cs (14)
25private static readonly Point s_invalidPoint = new(int.MinValue, int.MinValue); 39private Point _mouseDragAnchor = s_invalidPoint; // anchor point of the drag 41private Point _lastMoveScreenCoord = Point.Empty; 105private void BeginMouseDrag(Point anchor, int hitTest) 178private void EndMouseDrag(Point position) 200private HitTestInfo GetHitTest(Point value, int flags) 202Point pt = PointToClient(value); 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)); 783private void SetSelectionCursor(Point pt) 785Point clientCoords = PointToClient(pt); 1202bool ISelectionUIService.GetAdornmentHitTest(object component, Point value) =>
System\Windows\Forms\Design\SelectionUIService.SelectionUIItem.cs (4)
186public virtual Cursor? GetCursorAtPoint(Point point) 220public virtual int GetHitTest(Point pt) 242private int GetHandleIndexOfPoint(Point pt) 376protected bool PointWithinSelection(Point pt)
System\Windows\Forms\Design\SplitContainerDesigner.cs (1)
189protected override bool GetHitTest(Point point) => !(InheritanceAttribute == InheritanceAttribute.InheritedReadOnly) && _splitContainerSelected;
System\Windows\Forms\Design\StatusCommandUI.cs (2)
38public void SetStatusInformation(Component? selectedComponent, Point location) 55if (location != Point.Empty)
System\Windows\Forms\Design\TabControlDesigner.cs (4)
159protected override bool GetHitTest(Point point) 169Point hitTest = Control.PointToClient(point); 556Point dropPoint = Control.PointToClient(new Point(de.X, de.Y)); 609                   Point p = Cursor.Position;
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (12)
21private Point _droppedCellPosition = InvalidPoint; // used to insert new children 460private void ControlAddedInternal(Control control, Point newControlPosition, bool localReposition, bool fullTable, DragEventArgs de) 573Point oldPosition = GetControlPosition(control); 956private Point GetCellPosition(Point pos) 963Point startingPoint = Table.PointToScreen(Table.DisplayRectangle.Location); 966Point position = new(-1, -1); 1042private Point GetControlPosition(Control control) 1069Point loc = BehaviorService.MapAdornerWindowPoint(Table.Handle, Table.DisplayRectangle.Location); 1072Point controlLoc = BehaviorService.ControlToAdornerWindow(Control); 1258Point dropPoint = GetCellPosition(Control.MousePosition); 1289Point cell = GetCellPosition(new Point(x, y));
System\Windows\Forms\Design\ToolStripAdornerWindowService.cs (6)
87public Point AdornerWindowPointToScreen(Point p) => _toolStripAdornerWindow.PointToScreen(p); 92public Point AdornerWindowToScreen() => AdornerWindowPointToScreen(new Point(0, 0)); 97public Point ControlToAdornerWindow(Control c) 101return Point.Empty; 104Point pt = new(c.Left, c.Top);
System\Windows\Forms\Design\ToolStripDesigner.cs (5)
23internal static Point s_lastCursorPosition = Point.Empty; // remembers last cursorPosition; 1351Point loc = BehaviorService.ControlToAdornerWindow((Control)Component); 1371protected override bool GetHitTest(Point point) 1824Point offset = new(de.X, de.Y);
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
687Point loc = behaviorService.ControlToAdornerWindow(_designMenu);
System\Windows\Forms\Design\ToolStripItemBehavior.cs (9)
61if (ToolStripDesigner.s_lastCursorPosition != Point.Empty && ToolStripDesigner.s_lastCursorPosition == Cursor.Position) 207public override bool OnMouseDoubleClick(Glyph g, MouseButtons button, Point mouseLoc) 227SetParentDesignerValuesForDragDrop(glyphItem, false, Point.Empty); 277public override bool OnMouseDown(Glyph g, MouseButtons button, Point mouseLoc) 524public override bool OnMouseMove(Glyph g, MouseButtons button, Point mouseLoc) 624SetParentDesignerValuesForDragDrop(glyphItem, false, Point.Empty); 888if (ToolStripDesigner.s_lastCursorPosition != Point.Empty && ToolStripDesigner.s_lastCursorPosition == Cursor.Position) 942SetParentDesignerValuesForDragDrop(item, false, Point.Empty); 951private void SetParentDesignerValuesForDragDrop(ToolStripItem glyphItem, bool setValues, Point mouseLoc)
System\Windows\Forms\Design\ToolStripItemDesigner.cs (5)
498Point loc = b.ControlToAdornerWindow((Control)ImmediateParent); 898Point location = behaviorService.ControlToAdornerWindow((Control)ImmediateParent); 1199Point location = behaviorService.ControlToAdornerWindow(parent); 1290Point newPoint = Point.Empty;
System\Windows\Forms\Design\ToolStripItemGlyph.cs (1)
29public override Cursor? GetHitTest(Point p)
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (1)
488Point p = Cursor.Position;
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (2)
1352private static int GetItemInsertionIndex(ToolStripDropDown wb, Point ownerClientAreaRelativeDropPoint) 2560public override Cursor GetHitTest(Point p)
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
273_behavior?.OnMouseDown(_containerSelectorGlyph, MouseButtons.Left, Point.Empty);
System\Windows\Forms\Design\ToolStripTemplateNode.cs (7)
447Point loc = BehaviorService.ControlToAdornerWindow(_miniToolStrip); 1111Point loc = BehaviorService.ControlToAdornerWindow(_miniToolStrip); 1236internal void ShowContextMenu(Point pt) 1257Point loc = BehaviorService.ControlToAdornerWindow(_miniToolStrip); 1823Rectangle bounds = new(Point.Empty, e.ToolStrip.Size); 1838Rectangle bounds = new(Point.Empty, item.Size); 1934Rectangle bounds = new(Point.Empty, splitButton.Size);
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (2)
528Point position = new Point(0, 0) 571Point position = new Point(0, 0)
System\Windows\Forms\Design\TreeViewDesigner.cs (1)
50protected override bool GetHitTest(Point point)
System.Windows.Forms.Primitives (115)
_generated\261\Windows.Win32.IUIAutomation.g.cs (10)
215 private static winmdroot.Foundation.HRESULT ElementFromPoint(IUIAutomation* pThis, global::System.Drawing.Point pt, winmdroot.UI.Accessibility.IUIAutomationElement** element) 241 public unsafe winmdroot.UI.Accessibility.IUIAutomationElement* ElementFromPoint(global::System.Drawing.Point pt) 244 ((delegate *unmanaged [Stdcall]<IUIAutomation*,global::System.Drawing.Point ,winmdroot.UI.Accessibility.IUIAutomationElement** ,winmdroot.Foundation.HRESULT>)lpVtbl[7])((IUIAutomation*)Unsafe.AsPointer(ref this), pt, &__retVal).ThrowOnFailure(); 366 private static winmdroot.Foundation.HRESULT ElementFromPointBuildCache(IUIAutomation* pThis, global::System.Drawing.Point pt, winmdroot.UI.Accessibility.IUIAutomationCacheRequest* cacheRequest, winmdroot.UI.Accessibility.IUIAutomationElement** element) 398 public unsafe winmdroot.UI.Accessibility.IUIAutomationElement* ElementFromPointBuildCache(global::System.Drawing.Point pt, winmdroot.UI.Accessibility.IUIAutomationCacheRequest* cacheRequest) 401 ((delegate *unmanaged [Stdcall]<IUIAutomation*,global::System.Drawing.Point ,winmdroot.UI.Accessibility.IUIAutomationCacheRequest* ,winmdroot.UI.Accessibility.IUIAutomationElement** ,winmdroot.Foundation.HRESULT>)lpVtbl[11])((IUIAutomation*)Unsafe.AsPointer(ref this), pt, cacheRequest, &__retVal).ThrowOnFailure(); 2282 internal delegate *unmanaged [Stdcall]<IUIAutomation*,global::System.Drawing.Point ,winmdroot.UI.Accessibility.IUIAutomationElement** ,winmdroot.Foundation.HRESULT> ElementFromPoint_8; 2290 internal delegate *unmanaged [Stdcall]<IUIAutomation*,global::System.Drawing.Point ,winmdroot.UI.Accessibility.IUIAutomationCacheRequest* ,winmdroot.UI.Accessibility.IUIAutomationElement** ,winmdroot.Foundation.HRESULT> ElementFromPointBuildCache_12; 2475 unsafe winmdroot.Foundation.HRESULT ElementFromPoint(global::System.Drawing.Point pt, winmdroot.UI.Accessibility.IUIAutomationElement** element); 2487 unsafe winmdroot.Foundation.HRESULT ElementFromPointBuildCache(global::System.Drawing.Point pt, winmdroot.UI.Accessibility.IUIAutomationCacheRequest* cacheRequest, winmdroot.UI.Accessibility.IUIAutomationElement** element);
_generated\264\Windows.Win32.IUIAutomationElement.g.cs (8)
2921 /// <inheritdoc cref="GetClickablePoint(global::System.Drawing.Point*, winmdroot.Foundation.BOOL*)"/> 2922 internal unsafe winmdroot.Foundation.HRESULT GetClickablePoint(out global::System.Drawing.Point clickable, out winmdroot.Foundation.BOOL gotClickable) 2926 fixed (global::System.Drawing.Point* clickableLocal = &clickable) 2937 private static winmdroot.Foundation.HRESULT GetClickablePoint(IUIAutomationElement* pThis, global::System.Drawing.Point* clickable, winmdroot.Foundation.BOOL* gotClickable) 2971 public unsafe winmdroot.Foundation.HRESULT GetClickablePoint(global::System.Drawing.Point* clickable, winmdroot.Foundation.BOOL* gotClickable) 2973 return ((delegate *unmanaged [Stdcall]<IUIAutomationElement*,global::System.Drawing.Point* ,winmdroot.Foundation.BOOL* ,winmdroot.Foundation.HRESULT>)lpVtbl[84])((IUIAutomationElement*)Unsafe.AsPointer(ref this), clickable, gotClickable); 3165 internal delegate *unmanaged [Stdcall]<IUIAutomationElement*,global::System.Drawing.Point* ,winmdroot.Foundation.BOOL* ,winmdroot.Foundation.HRESULT> GetClickablePoint_85; 3640 unsafe winmdroot.Foundation.HRESULT GetClickablePoint(global::System.Drawing.Point* clickable, winmdroot.Foundation.BOOL* gotClickable);
_generated\300\Windows.Win32.LOGPEN.g.cs (1)
30 internal global::System.Drawing.Point lopnWidth;
_generated\305\Windows.Win32.LVFINDINFOW.g.cs (1)
50 internal global::System.Drawing.Point pt;
_generated\309\Windows.Win32.LVHITTESTINFO.g.cs (1)
33 internal global::System.Drawing.Point pt;
_generated\321\Windows.Win32.MCHITTESTINFO.g.cs (1)
37 internal global::System.Drawing.Point pt;
_generated\334\Windows.Win32.MINMAXINFO.g.cs (5)
31 internal global::System.Drawing.Point ptReserved; 37 internal global::System.Drawing.Point ptMaxSize; 43 internal global::System.Drawing.Point ptMaxPosition; 49 internal global::System.Drawing.Point ptMinTrackSize; 55 internal global::System.Drawing.Point ptMaxTrackSize;
_generated\337\Windows.Win32.MOUSEHOOKSTRUCT.g.cs (1)
33 internal global::System.Drawing.Point pt;
_generated\351\Windows.Win32.NMLISTVIEW.g.cs (1)
71 internal global::System.Drawing.Point ptAction;
_generated\363\Windows.Win32.NMTREEVIEWW.g.cs (1)
63 internal global::System.Drawing.Point ptDrag;
_generated\414\Windows.Win32.PInvoke.GDI32.dll.g.cs (11)
187 /// <inheritdoc cref="GetBrushOrgEx(winmdroot.Graphics.Gdi.HDC, global::System.Drawing.Point*)"/> 189 internal static unsafe winmdroot.Foundation.BOOL GetBrushOrgEx(winmdroot.Graphics.Gdi.HDC hdc, out global::System.Drawing.Point lppt) 191 fixed (global::System.Drawing.Point* lpptLocal = &lppt) 210 internal static extern unsafe winmdroot.Foundation.BOOL GetBrushOrgEx(winmdroot.Graphics.Gdi.HDC hdc, global::System.Drawing.Point* lppt); 512 /// <inheritdoc cref="LPtoDP(winmdroot.Graphics.Gdi.HDC, global::System.Drawing.Point*, int)"/> 514 internal static unsafe winmdroot.Foundation.BOOL LPtoDP(winmdroot.Graphics.Gdi.HDC hdc, ReadOnlySpan<global::System.Drawing.Point> lppt) 516 fixed (global::System.Drawing.Point* lpptLocal = lppt) 536 internal static extern unsafe winmdroot.Foundation.BOOL LPtoDP(winmdroot.Graphics.Gdi.HDC hdc, global::System.Drawing.Point* lppt, int c); 549 internal static extern unsafe winmdroot.Foundation.BOOL MoveToEx(winmdroot.Graphics.Gdi.HDC hdc, int x, int y, [Optional] global::System.Drawing.Point* lppt); 618 internal static extern unsafe winmdroot.Foundation.BOOL SetViewportOrgEx(winmdroot.Graphics.Gdi.HDC hdc, int x, int y, [Optional] global::System.Drawing.Point* lppt); 653 internal static extern unsafe winmdroot.Foundation.BOOL SetWindowOrgEx(winmdroot.Graphics.Gdi.HDC hdc, int x, int y, [Optional] global::System.Drawing.Point* lppt);
_generated\425\Windows.Win32.PInvoke.USER32.dll.g.cs (25)
262 internal static extern winmdroot.Foundation.HWND ChildWindowFromPointEx(winmdroot.Foundation.HWND hwnd, global::System.Drawing.Point pt, winmdroot.UI.WindowsAndMessaging.CWP_FLAGS flags); 264 /// <inheritdoc cref="ClientToScreen(winmdroot.Foundation.HWND, global::System.Drawing.Point*)"/> 266 internal static unsafe winmdroot.Foundation.BOOL ClientToScreen(winmdroot.Foundation.HWND hWnd, ref global::System.Drawing.Point lpPoint) 268 fixed (global::System.Drawing.Point* lpPointLocal = &lpPoint) 287 internal static extern unsafe winmdroot.Foundation.BOOL ClientToScreen(winmdroot.Foundation.HWND hWnd, global::System.Drawing.Point* lpPoint); 1095 /// <inheritdoc cref="GetCaretPos(global::System.Drawing.Point*)"/> 1097 internal static unsafe winmdroot.Foundation.BOOL GetCaretPos(out global::System.Drawing.Point lpPoint) 1099 fixed (global::System.Drawing.Point* lpPointLocal = &lpPoint) 1120 internal static unsafe winmdroot.Foundation.BOOL GetCaretPos(global::System.Drawing.Point* lpPoint) 1128 static extern unsafe winmdroot.Foundation.BOOL LocalExternFunction(global::System.Drawing.Point* lpPoint); 1291 /// <inheritdoc cref="GetCursorPos(global::System.Drawing.Point*)"/> 1293 internal static unsafe winmdroot.Foundation.BOOL GetCursorPos(out global::System.Drawing.Point lpPoint) 1295 fixed (global::System.Drawing.Point* lpPointLocal = &lpPoint) 1315 internal static unsafe winmdroot.Foundation.BOOL GetCursorPos(global::System.Drawing.Point* lpPoint) 1323 static extern unsafe winmdroot.Foundation.BOOL LocalExternFunction(global::System.Drawing.Point* lpPoint); 1713 /// <inheritdoc cref="GetPhysicalCursorPos(global::System.Drawing.Point*)"/> 1715 internal static unsafe winmdroot.Foundation.BOOL GetPhysicalCursorPos(out global::System.Drawing.Point lpPoint) 1717 fixed (global::System.Drawing.Point* lpPointLocal = &lpPoint) 1735 internal static unsafe winmdroot.Foundation.BOOL GetPhysicalCursorPos(global::System.Drawing.Point* lpPoint) 1743 static extern unsafe winmdroot.Foundation.BOOL LocalExternFunction(global::System.Drawing.Point* lpPoint); 2731 /// <inheritdoc cref="ScreenToClient(winmdroot.Foundation.HWND, global::System.Drawing.Point*)"/> 2733 internal static unsafe winmdroot.Foundation.BOOL ScreenToClient(winmdroot.Foundation.HWND hWnd, ref global::System.Drawing.Point lpPoint) 2735 fixed (global::System.Drawing.Point* lpPointLocal = &lpPoint) 2754 internal static extern unsafe winmdroot.Foundation.BOOL ScreenToClient(winmdroot.Foundation.HWND hWnd, global::System.Drawing.Point* lpPoint); 3937 internal static extern winmdroot.Foundation.HWND WindowFromPoint(global::System.Drawing.Point Point);
_generated\426\Windows.Win32.PInvoke.UXTHEME.dll.g.cs (8)
830 /// <inheritdoc cref="GetThemePosition(winmdroot.UI.Controls.HTHEME, int, int, winmdroot.UI.Controls.THEME_PROPERTY_SYMBOL_ID, global::System.Drawing.Point*)"/> 832 internal static unsafe winmdroot.Foundation.HRESULT GetThemePosition(winmdroot.UI.Controls.HTHEME hTheme, int iPartId, int iStateId, winmdroot.UI.Controls.THEME_PROPERTY_SYMBOL_ID iPropId, out global::System.Drawing.Point pPoint) 834 fixed (global::System.Drawing.Point* pPointLocal = &pPoint) 867 internal static unsafe winmdroot.Foundation.HRESULT GetThemePosition(winmdroot.UI.Controls.HTHEME hTheme, int iPartId, int iStateId, winmdroot.UI.Controls.THEME_PROPERTY_SYMBOL_ID iPropId, global::System.Drawing.Point* pPoint) 873 static extern unsafe winmdroot.Foundation.HRESULT LocalExternFunction(winmdroot.UI.Controls.HTHEME hTheme, int iPartId, int iStateId, int iPropId, global::System.Drawing.Point* pPoint); 1080 /// <inheritdoc cref="HitTestThemeBackground(winmdroot.UI.Controls.HTHEME, winmdroot.Graphics.Gdi.HDC, int, int, winmdroot.UI.Controls.HIT_TEST_BACKGROUND_OPTIONS, winmdroot.Foundation.RECT*, winmdroot.Graphics.Gdi.HRGN, global::System.Drawing.Point, ushort*)"/> 1082 internal static unsafe winmdroot.Foundation.HRESULT HitTestThemeBackground(winmdroot.UI.Controls.HTHEME hTheme, winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, winmdroot.UI.Controls.HIT_TEST_BACKGROUND_OPTIONS dwOptions, in winmdroot.Foundation.RECT pRect, winmdroot.Graphics.Gdi.HRGN hrgn, global::System.Drawing.Point ptTest, out ushort pwHitTestCode) 1138 internal static extern unsafe winmdroot.Foundation.HRESULT HitTestThemeBackground(winmdroot.UI.Controls.HTHEME hTheme, winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, winmdroot.UI.Controls.HIT_TEST_BACKGROUND_OPTIONS dwOptions, winmdroot.Foundation.RECT* pRect, winmdroot.Graphics.Gdi.HRGN hrgn, global::System.Drawing.Point ptTest, ushort* pwHitTestCode);
_generated\549\Windows.Win32.TVHITTESTINFO.g.cs (1)
33 internal global::System.Drawing.Point pt;
_generated\581\Windows.Win32.UI_Accessibility_IUIAutomationElement_Extensions.g.cs (3)
109 /// <inheritdoc cref="winmdroot.UI.Accessibility.IUIAutomationElement.Interface.GetClickablePoint(global::System.Drawing.Point*, winmdroot.Foundation.BOOL*)"/> 110 internal static unsafe winmdroot.Foundation.HRESULT GetClickablePoint(this winmdroot.UI.Accessibility.IUIAutomationElement.Interface @this, out global::System.Drawing.Point clickable, out winmdroot.Foundation.BOOL gotClickable) 114 fixed (global::System.Drawing.Point* clickableLocal = &clickable)
_generated\643\Windows.Win32.WINDOWPLACEMENT.g.cs (2)
46 internal global::System.Drawing.Point ptMinPosition; 52 internal global::System.Drawing.Point ptMaxPosition;
_generated\79\Windows.Win32.HDHITTESTINFO.g.cs (1)
33 internal global::System.Drawing.Point pt;
_generated\88\Windows.Win32.HELPINFO.g.cs (1)
60 internal global::System.Drawing.Point MousePos;
_generated\93\Windows.Win32.HH_POPUP.g.cs (1)
42 internal global::System.Drawing.Point pt;
Interop\Mshtml\Interop.IDocHostUIHandler.cs (1)
22Point* pt,
System\Windows\Forms\Automation\UiaTextProvider.cs (4)
61public abstract Point GetPositionFromChar(int charIndex); 63public abstract Point GetPositionFromCharForUpperRightCorner(int startCharIndex, string text); 69public abstract Point PointToScreen(Point pt);
System\Windows\Forms\Automation\UiaTextRange.cs (9)
362PInvoke.GetCaretPos(out Point endlinePoint); 382Point mapClientToScreen = new((int)ownerBounds[0], (int)ownerBounds[1]); 396Point startPoint = _provider.GetPositionFromChar(Start); 397Point endPoint = _provider.GetPositionFromCharForUpperRightCorner(End - 1, text); 755Point lineStartPoint = _provider.GetPositionFromChar(lineStartIndex); 768Point lineEndPoint = _provider.GetPositionFromCharForUpperRightCorner(lineEndIndex, text); 837Point pt = _provider.GetPositionFromChar(i); 860void AddLineRectangle(Point startPoint, Point endPoint)
System\Windows\Forms\DeviceContextExtensions.cs (5)
53internal static void DrawLine(this DeviceContextHdcScope hdc, HPEN hpen, Point p1, Point p2) => 56internal static void DrawLine(this HDC hdc, HPEN hpen, Point p1, Point p2) => 88Point oldPoint = default;
Windows\Win32\Foundation\Interop.PARAM.cs (4)
63/// Packs a <see cref="Point"/> into a PARAM. 65public static nint FromPoint(Point point) 69/// Unpacks a <see cref="Point"/> from a PARAM. 71public static Point ToPoint(nint param)
Windows\Win32\PInvoke.ChildWindowFromPointEx.cs (2)
10/// <inheritdoc cref="ChildWindowFromPointEx(HWND, Point, CWP_FLAGS)"/> 11public static HWND ChildWindowFromPointEx<T>(T hwndParent, Point pt, CWP_FLAGS uFlags)
Windows\Win32\PInvoke.ClientToScreen.cs (2)
10/// <inheritdoc cref="ClientToScreen(HWND, ref Point)"/> 11public static BOOL ClientToScreen<T>(T hWnd, ref Point lpPoint)
Windows\Win32\PInvoke.ScreenToClient.cs (2)
10/// <inheritdoc cref="ScreenToClient(HWND, ref Point)"/> 11public static BOOL ScreenToClient<T>(T hWnd, ref Point lpPoint)
Windows\Win32\UI\Accessibility\UiaPoint.cs (2)
10public static implicit operator Point(UiaPoint value) => new((int)value.x, (int)value.y); 12public static implicit operator UiaPoint(Point value) => new() { x = value.X, y = value.Y };
Windows\Win32\UI\Controls\Dialogs\PAGESETUPDLGW.cs (1)
106public Point ptPaperSize;
WindowsFormsIntegration (2)
System\Windows\Integration\ElementHost.cs (1)
416e.Graphics.DrawImage(bitmap, SD.Point.Empty);
System\Windows\Integration\WindowsFormsHost.cs (1)
332Child.Location = SD.Point.Empty;