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