2110 references to Point
Accessibility_Core_App (221)
CommonControl1.Designer.cs (48)
105this.groupBox1.Location = new System.Drawing.Point(32, 4); 117this.button12.Location = new System.Drawing.Point(15, 309); 128this.button1.Location = new System.Drawing.Point(240, 245); 140this.button10.Location = new System.Drawing.Point(15, 105); 150this.button9.Location = new System.Drawing.Point(15, 245); 161this.button8.Location = new System.Drawing.Point(15, 175); 172this.button3.Location = new System.Drawing.Point(15, 34); 184this.button4.Location = new System.Drawing.Point(240, 309); 196this.button5.Location = new System.Drawing.Point(240, 100); 207this.button2.Location = new System.Drawing.Point(241, 34); 218this.button6.Location = new System.Drawing.Point(240, 175); 233this.groupBox2.Location = new System.Drawing.Point(32, 397); 249this.checkedListBox1.Location = new System.Drawing.Point(299, 83); 258this.label7.Location = new System.Drawing.Point(301, 32); 268this.checkBox3.Location = new System.Drawing.Point(15, 137); 280this.checkBox2.Location = new System.Drawing.Point(15, 83); 293this.checkBox1.Location = new System.Drawing.Point(15, 30); 307this.groupBox3.Location = new System.Drawing.Point(839, 4); 326this.comboBox2.Location = new System.Drawing.Point(314, 85); 335this.label11.Location = new System.Drawing.Point(371, 34); 351this.comboBox1.Location = new System.Drawing.Point(15, 90); 360this.label10.Location = new System.Drawing.Point(15, 41); 371this.groupBox4.Location = new System.Drawing.Point(839, 397); 387this.listView1.Location = new System.Drawing.Point(149, 83); 397this.label8.Location = new System.Drawing.Point(223, 30); 418this.groupBox5.Location = new System.Drawing.Point(33, 678); 431this.linkLabel6.Location = new System.Drawing.Point(386, 38); 443this.linkLabel5.Location = new System.Drawing.Point(340, 207); 455this.linkLabel4.Location = new System.Drawing.Point(598, 143); 467this.linkLabel3.Location = new System.Drawing.Point(17, 143); 479this.label6.Location = new System.Drawing.Point(154, 207); 490this.label5.Location = new System.Drawing.Point(15, 87); 501this.label4.Location = new System.Drawing.Point(598, 87); 512this.label3.Location = new System.Drawing.Point(171, 41); 521this.linkLabel2.Location = new System.Drawing.Point(340, 143); 532this.linkLabel1.Location = new System.Drawing.Point(340, 87); 542this.label2.Location = new System.Drawing.Point(121, 143); 552this.label1.Location = new System.Drawing.Point(121, 87); 563this.groupBox6.Location = new System.Drawing.Point(839, 678); 581this.listBox1.Location = new System.Drawing.Point(150, 77); 590this.label12.Location = new System.Drawing.Point(223, 38); 601this.groupBox7.Location = new System.Drawing.Point(702, 983); 612this.maskedTextBox1.Location = new System.Drawing.Point(288, 119); 621this.label9.Location = new System.Drawing.Point(15, 126); 633this.groupBox8.Location = new System.Drawing.Point(33, 983); 645this.dateTimePicker3.Location = new System.Drawing.Point(37, 126); 655this.dateTimePicker2.Location = new System.Drawing.Point(37, 205); 670this.dateTimePicker1.Location = new System.Drawing.Point(37, 47);
CommonControl2.Designer.cs (17)
69this.label3.Location = new System.Drawing.Point(18, 278); 79this.pictureBox1.Location = new System.Drawing.Point(18, 301); 90this.label4.Location = new System.Drawing.Point(517, 153); 100this.progressBar1.Location = new System.Drawing.Point(517, 175); 111this.radioButton1.Location = new System.Drawing.Point(18, 459); 123this.label5.Location = new System.Drawing.Point(309, 10); 133this.richTextBox1.Location = new System.Drawing.Point(313, 36); 143this.label6.Location = new System.Drawing.Point(313, 153); 157this.textBox1.Location = new System.Drawing.Point(313, 175); 166this.label7.Location = new System.Drawing.Point(517, 10); 175this.treeView1.Location = new System.Drawing.Point(517, 36); 203this.label8.Location = new System.Drawing.Point(313, 218); 212this.webBrowser1.Location = new System.Drawing.Point(313, 236); 224this.label1.Location = new System.Drawing.Point(14, 10); 233this.monthCalendar1.Location = new System.Drawing.Point(18, 36); 241this.label2.Location = new System.Drawing.Point(18, 218); 250this.numericUpDown1.Location = new System.Drawing.Point(18, 236);
ContainerControls.Designer.cs (63)
128this.flowLayoutPanel2.Location = new System.Drawing.Point(26, 31); 136this.button2.Location = new System.Drawing.Point(90, 3); 146this.button5.Location = new System.Drawing.Point(90, 36); 156this.button6.Location = new System.Drawing.Point(90, 69); 167this.label2.Location = new System.Drawing.Point(26, 172); 177this.label3.Location = new System.Drawing.Point(26, 10); 187this.label4.Location = new System.Drawing.Point(28, 427); 197this.groupBox1.Location = new System.Drawing.Point(194, 445); 208this.button7.Location = new System.Drawing.Point(12, 22); 220this.groupBox2.Location = new System.Drawing.Point(33, 445); 231this.button8.Location = new System.Drawing.Point(12, 22); 243this.groupBox3.Location = new System.Drawing.Point(522, 445); 254this.button9.Location = new System.Drawing.Point(12, 22); 266this.groupBox4.Location = new System.Drawing.Point(350, 445); 277this.button10.Location = new System.Drawing.Point(12, 22); 288this.label6.Location = new System.Drawing.Point(285, 172); 298this.label7.Location = new System.Drawing.Point(561, 172); 308this.radioButton6.Location = new System.Drawing.Point(223, 72); 318this.radioButton5.Location = new System.Drawing.Point(203, 72); 328this.radioButton4.Location = new System.Drawing.Point(183, 72); 340this.checkBox2.Location = new System.Drawing.Point(93, 72); 351this.radioButton3.Location = new System.Drawing.Point(223, 3); 362this.radioButton2.Location = new System.Drawing.Point(203, 3); 371this.button18.Location = new System.Drawing.Point(93, 3); 380this.button17.Location = new System.Drawing.Point(3, 3); 390this.radioButton1.Location = new System.Drawing.Point(183, 3); 400this.checkBox1.Location = new System.Drawing.Point(3, 72); 410this.label10.Location = new System.Drawing.Point(561, 10); 421this.tabControl5.Location = new System.Drawing.Point(561, 31); 431this.tabPage9.Location = new System.Drawing.Point(4, 24); 442this.button19.Location = new System.Drawing.Point(16, 24); 453this.tabPage10.Location = new System.Drawing.Point(4, 24); 467this.tabControl6.Location = new System.Drawing.Point(4, 3); 477this.tabPage11.Location = new System.Drawing.Point(4, 24); 488this.button20.Location = new System.Drawing.Point(0, 0); 499this.tabPage12.Location = new System.Drawing.Point(4, 24); 510this.button21.Location = new System.Drawing.Point(9, 9); 526this.flowLayoutPanel1.Location = new System.Drawing.Point(26, 192); 534this.button4.Location = new System.Drawing.Point(4, 3); 544this.button1.Location = new System.Drawing.Point(100, 3); 554this.button3.Location = new System.Drawing.Point(4, 36); 565this.label1.Location = new System.Drawing.Point(26, 308); 576this.panel2.Location = new System.Drawing.Point(285, 199); 586this.tabControl2.Location = new System.Drawing.Point(8, 12); 595this.tabPage1.Location = new System.Drawing.Point(4, 24); 607this.tabPage2.Location = new System.Drawing.Point(4, 24); 618this.button12.Location = new System.Drawing.Point(17, 24); 629this.label5.Location = new System.Drawing.Point(286, 9); 641this.panel1.Location = new System.Drawing.Point(286, 30); 651this.tabControl1.Location = new System.Drawing.Point(5, 4); 661this.tabPage3.Location = new System.Drawing.Point(4, 24); 672this.button11.Location = new System.Drawing.Point(9, 9); 683this.tabPage4.Location = new System.Drawing.Point(4, 24); 694this.button13.Location = new System.Drawing.Point(9, 9); 709this.flowLayoutPanel3.Location = new System.Drawing.Point(26, 326); 717this.button14.Location = new System.Drawing.Point(4, 3); 727this.button22.Location = new System.Drawing.Point(4, 36); 737this.button23.Location = new System.Drawing.Point(4, 69); 748this.panel3.Location = new System.Drawing.Point(561, 199); 758this.tabControl3.Location = new System.Drawing.Point(12, 14); 767this.tabPage5.Location = new System.Drawing.Point(4, 24); 779this.tabPage6.Location = new System.Drawing.Point(4, 24); 790this.button24.Location = new System.Drawing.Point(19, 23);
ContainerControls2.Designer.cs (30)
75this.label8.Location = new System.Drawing.Point(13, 21); 84this.splitContainer1.Location = new System.Drawing.Point(13, 45); 107this.button15.Location = new System.Drawing.Point(10, 57); 117this.button16.Location = new System.Drawing.Point(21, 57); 128this.label9.Location = new System.Drawing.Point(27, 294); 144this.tableLayoutPanel1.Location = new System.Drawing.Point(27, 329); 159this.radioButton6.Location = new System.Drawing.Point(223, 72); 169this.radioButton5.Location = new System.Drawing.Point(203, 72); 179this.radioButton4.Location = new System.Drawing.Point(183, 72); 191this.checkBox2.Location = new System.Drawing.Point(93, 72); 202this.radioButton3.Location = new System.Drawing.Point(223, 3); 213this.radioButton2.Location = new System.Drawing.Point(203, 3); 222this.button18.Location = new System.Drawing.Point(93, 3); 231this.button17.Location = new System.Drawing.Point(3, 3); 241this.radioButton1.Location = new System.Drawing.Point(183, 3); 251this.checkBox1.Location = new System.Drawing.Point(3, 72); 261this.label13.Location = new System.Drawing.Point(337, 21); 271this.flowLayoutPanel4.Location = new System.Drawing.Point(337, 45); 280this.label14.Location = new System.Drawing.Point(337, 157); 291this.groupBox5.Location = new System.Drawing.Point(337, 182); 303this.label15.Location = new System.Drawing.Point(337, 294); 313this.panel4.Location = new System.Drawing.Point(337, 329); 322this.label16.Location = new System.Drawing.Point(582, 21); 331this.splitContainer2.Location = new System.Drawing.Point(586, 39); 350this.label17.Location = new System.Drawing.Point(582, 157); 361this.tabControl4.Location = new System.Drawing.Point(582, 182); 371this.tabPage7.Location = new System.Drawing.Point(4, 24); 382this.tabPage8.Location = new System.Drawing.Point(4, 24); 393this.label18.Location = new System.Drawing.Point(582, 294); 406this.tableLayoutPanel2.Location = new System.Drawing.Point(582, 329);
DataBindingExample.Designer.cs (19)
57this.comboBox1.Location = new System.Drawing.Point(10, 9); 68this.dataGridView1.Location = new System.Drawing.Point(12, 21); 80this.label1.Location = new System.Drawing.Point(10, 48); 90this.textBox1.Location = new System.Drawing.Point(10, 77); 100this.button1.Location = new System.Drawing.Point(10, 136); 122this.panel1.Location = new System.Drawing.Point(272, 12); 132this.radioButton1.Location = new System.Drawing.Point(336, 77); 144this.numericUpDown1.Location = new System.Drawing.Point(336, 39); 153this.domainUpDown1.Location = new System.Drawing.Point(336, 10); 163this.richTextBox1.Location = new System.Drawing.Point(169, 102); 175this.checkBox1.Location = new System.Drawing.Point(169, 77); 186this.maskedTextBox1.Location = new System.Drawing.Point(169, 45); 197this.linkLabel1.Location = new System.Drawing.Point(169, 12); 209this.label2.Location = new System.Drawing.Point(37, 224); 219this.treeView1.Location = new System.Drawing.Point(12, 242); 229this.label3.Location = new System.Drawing.Point(244, 225); 240this.listView1.Location = new System.Drawing.Point(162, 246); 252this.label4.Location = new System.Drawing.Point(476, 225); 264this.listBox1.Location = new System.Drawing.Point(453, 249);
DataControls.Designer.cs (3)
98this.bindingNavigator1.Location = new System.Drawing.Point(0, 0); 276this.dataGridView1.Location = new System.Drawing.Point(13, 323); 340this.dataGridView2.Location = new System.Drawing.Point(13, 46);
DialogControls.Designer.cs (4)
38this.ColorDialog.Location = new System.Drawing.Point(42, 12); 49this.FolderBrowserDialog.Location = new System.Drawing.Point(42, 67); 60this.OpenFileDialog.Location = new System.Drawing.Point(42, 125); 71this.SaveFileDialog.Location = new System.Drawing.Point(42, 181);
Main.Designer.cs (11)
47this.button1.Location = new System.Drawing.Point(14, 14); 58this.button2.Location = new System.Drawing.Point(14, 60); 69this.button3.Location = new System.Drawing.Point(13, 105); 80this.button4.Location = new System.Drawing.Point(13, 152); 91this.button5.Location = new System.Drawing.Point(13, 199); 102this.button6.Location = new System.Drawing.Point(14, 247); 113this.button7.Location = new System.Drawing.Point(13, 292); 124this.button8.Location = new System.Drawing.Point(14, 336); 135this.button9.Location = new System.Drawing.Point(13, 380); 146this.button10.Location = new System.Drawing.Point(14, 425); 156this.button12.Location = new System.Drawing.Point(15, 470);
Menu_Toolbars_controls.Designer.cs (3)
111menuStrip1.Location = new Point(0, 0); 422statusStrip1.Location = new Point(0, 520); 505toolStrip1.Location = new Point(0, 34);
MenuForm.Designer.cs (2)
37this.button1.Location = new System.Drawing.Point(78, 46); 48this.button2.Location = new System.Drawing.Point(264, 46);
PrintingControls.Designer.cs (8)
73this.label1.Location = new System.Drawing.Point(14, 10); 82this.txtPrint.Location = new System.Drawing.Point(191, 7); 91this.btnSetting.Location = new System.Drawing.Point(18, 43); 102this.btnPreView.Location = new System.Drawing.Point(112, 43); 113this.btnPrint.Location = new System.Drawing.Point(206, 43); 124this.button1.Location = new System.Drawing.Point(301, 43); 136this.label2.Location = new System.Drawing.Point(18, 86); 148this.printPreviewControl1.Location = new System.Drawing.Point(18, 104);
RemainingControls.Designer.cs (8)
46this.hScrollBar1.Location = new System.Drawing.Point(0, 406); 55this.vScrollBar1.Location = new System.Drawing.Point(576, 0); 63this.propertyGrid1.Location = new System.Drawing.Point(19, 80); 71this.propertyGrid2.Location = new System.Drawing.Point(292, 80); 80this.label1.Location = new System.Drawing.Point(19, 33); 89this.domainUpDown1.Location = new System.Drawing.Point(192, 31); 99this.label2.Location = new System.Drawing.Point(373, 33); 108this.trackBar1.Location = new System.Drawing.Point(431, 29);
ToolStripContainer.Designer.cs (5)
106this.toolStripContainer2.Location = new System.Drawing.Point(76, 44); 136this.toolStrip1.Location = new System.Drawing.Point(0, 200); 279this.statusStrip1.Location = new System.Drawing.Point(0, 0); 338this.menuStrip1.Location = new System.Drawing.Point(0, 0); 581this.button1.Location = new System.Drawing.Point(40, 369);
BinaryFormatTests (2)
FormatTests\FormattedObject\BinaryFormatWriterTests.cs (2)
190new Point(-1, 2), 191new Point(int.MaxValue, int.MinValue),
DesignSurface (60)
MainForm.cs (51)
128TextBox t1 = surface.CreateControl<TextBox>(new Size(200, 23), new Point(172, 12)); 129Button b1 = surface.CreateControl<Button>(new Size(200, 40), new Point(172, 63)); 130CustomButton b2 = surface.CreateControl<CustomButton>(new Size(200, 40), new Point(172, 200)); 136RadioButton rb1 = surface.CreateControl<RadioButton>(new Size(120, 22), new Point(12, 10)); 138RadioButton rb2 = surface.CreateControl<RadioButton>(new Size(120, 22), new Point(12, 35)); 142CheckBox checkbox1 = surface.CreateControl<CheckBox>(new Size(120, 22), new Point(12, 60)); 144CheckBox checkbox2 = surface.CreateControl<CheckBox>(new Size(120, 22), new Point(12, 85)); 148CheckBox checkbox3 = surface.CreateControl<CheckBox>(new Size(120, 22), new Point(12, 110)); 152Panel pnl = surface.CreateControl<Panel>(new Size(140, 140), new Point(12, 12)); 160Label l1 = surface.CreateControl<Label>(new Size(100, 25), new Point(12, 12)); 161Label l2 = surface.CreateControl<Label>(new Size(120, 25), new Point(12, 12)); 167SplitContainer sct = surface.CreateControl<SplitContainer>(new Size(400, 100), new Point(0, 0)); 173PictureBox pb1 = surface.CreateControl<PictureBox>(new Size(64, 64), new Point(12, 176)); 178surface.CreateControl<DateTimePicker>(new Size(200, 23), new Point(172, 150)); 189TextBox t1 = surface.CreateControl<TextBox>(new Size(200, 20), new Point(10, 10)); 190Button b1 = surface.CreateControl<Button>(new Size(200, 40), new Point(10, 40)); 191Label l1 = surface.CreateControl<Label>(new Size(200, 100), new Point(10, 100)); 198MaskedTextBox maskTextBox = surface.CreateControl<MaskedTextBox>(new Size(200, 20), new Point(260, 60)); 200ComboBox cb1 = surface.CreateControl<ComboBox>(new Size(200, 20), new Point(260, 16)); 204ListBox lb1 = surface.CreateControl<ListBox>(new Size(200, 130), new Point(260, 100)); 207TreeView tv1 = surface.CreateControl<TreeView>(new Size(200, 160), new Point(10, 220)); 218Button b1 = surface.CreateControl<Button>(new Size(200, 40), new Point(10, 10)); 219Button b2 = surface.CreateControl<Button>(new Size(200, 40), new Point(100, 100)); 220Button b3 = surface.CreateControl<Button>(new Size(200, 40), new Point(22, 22)); 224GroupBox gb = surface.CreateControl<GroupBox>(new Size(300, 180), new Point(100, 200)); 228ListView lb1 = surface.CreateControl<ListView>(new Size(290, 160), new Point(320, 30)); 240Button b1 = surface.CreateControl<Button>(new Size(200, 40), new Point(10, 10)); 241Button b2 = surface.CreateControl<Button>(new Size(200, 40), new Point(10, 60)); 251MonthCalendar monthCalendar1 = surface.CreateControl<MonthCalendar>(new Size(230, 170), new Point(10, 110)); 253Button subButton1OfLayoutPanel = surface.CreateControl<Button>(new Size(100, 40), new Point(10, 10)); 254Button subButton2OfLayoutPanel = surface.CreateControl<Button>(new Size(100, 40), new Point(10, 10)); 255FlowLayoutPanel layoutPanel = surface.CreateControl<FlowLayoutPanel>(new Size(430, 200), new Point(250, 10)); 259TrackBar trackBar = surface.CreateControl<TrackBar>(new Size(200, 50), new Point(250, 220)); 264ToolStripContainer toolStripContainer = surface.CreateControl<ToolStripContainer>(new Size(200, 180), new Point(250, 280)); 274surface.CreateControl<TabControl>(new Size(400, 100), new Point(12, 21)); 275surface.CreateControl<TableLayoutPanel>(new Size(290, 160), new Point(20, 150)); 276surface.CreateControl<PropertyGrid>(new Size(200, 150), new Point(430, 23)); 279ListBox listBox = surface.CreateControl<ListBox>(new Size(120, 94), new Point(337, 217)); 283DataGridView dataGridView = surface.CreateControl<DataGridView>(new Size(200, 150), new Point(470, 220)); 296ToolStripContainer toolStripContainer = surface.CreateControl<ToolStripContainer>(new Size(800, 200), new Point(0, 0)); 315ToolStripPanel topToolStripPanel = surface.CreateControl<ToolStripPanel>(new(50, 50), new(0, 0)); 318ToolStripPanel bottomToolStripPanel = surface.CreateControl<ToolStripPanel>(new(50, 50), new(0, 0)); 322SplitContainer splitContainer = surface.CreateControl<SplitContainer>(new(0, 0), new(0, 0)); 326RichTextBox richTextBox = surface.CreateControl<RichTextBox>(new Size(0, 0), new Point(0, 0)); 331MyUserControl userControl = surface.CreateControl<MyUserControl>(new Size(0, 0), new Point(0, 0)); 335MyScrollableControl scrollableControl = surface.CreateControl<MyScrollableControl>(new Size(0, 0), new Point(0, 0)); 348Splitter splitter = surface.CreateControl<Splitter>(new(5, 0), new(0, 0)); 352Panel panel = surface.CreateControl<Panel>(new(0, tabPage6.Height / 2), new(0, 0)); 354NumericUpDown numericUpDown = surface.CreateControl<NumericUpDown>(new(50, 10), new(10, 10)); 357BindingNavigator bindingNavigator = surface.CreateControl<BindingNavigator>(new(0, 0), new(0, 0)); 434Location = new Point(0, 0),
MainForm.Designer.cs (9)
68this.splitContainer.Location = new System.Drawing.Point(0, 28); 94this.tabControl1.Location = new System.Drawing.Point(0, 0); 102this.tabPage1.Location = new System.Drawing.Point(4, 25); 112this.tabPage2.Location = new System.Drawing.Point(4, 25); 122this.tabPage3.Location = new System.Drawing.Point(4, 25); 132this.tabPage4.Location = new System.Drawing.Point(4, 25); 142this.tabPage5.Location = new System.Drawing.Point(4, 25); 152this.tabPage6.Location = new System.Drawing.Point(4, 25); 167this.menuStrip1.Location = new System.Drawing.Point(0, 0);
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\Helpers\VBInputBox.vb (1)
111DesktopLocation = New Point(xPos, yPos)
NativeHost.ManagedControl (1)
ManagedControl.Designer.cs (1)
38this.button1.Location = new System.Drawing.Point(37, 59);
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)
1034System.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(values[0], values[1]); 107return new Point((int)x, (int)y);
System.Drawing.Common.Tests (248)
mono\System.Drawing\GraphicsTests.cs (38)
113Assert.Equal(new Point(0, 0), g.RenderingOrigin); 129g.RenderingOrigin = new Point(10, 20); 140Assert.Equal(new Point(10, 20), g.RenderingOrigin); 293g.RenderingOrigin = new Point(10, 20); 306g.RenderingOrigin = new Point(5, 6); 318Assert.Equal(new Point(10, 20), g.RenderingOrigin); 332Assert.Equal(new Point(0, 0), g.RenderingOrigin); 929AssertEquals(message + ".RenderingOrigin", new Point(-1, -1), g.RenderingOrigin); 953Assert.Equal(new Point(0, 0), g.RenderingOrigin); 962g.RenderingOrigin = new Point(-1, -1); 974Assert.Equal(new Point(-1, -1), g.RenderingOrigin); 986Assert.Equal(new Point(0, 0), g.RenderingOrigin); 995g.RenderingOrigin = new Point(-1, -1); 1007Assert.Equal(new Point(-1, -1), g.RenderingOrigin); 1020Assert.Equal(new Point(0, 0), g.RenderingOrigin); 1029g.RenderingOrigin = new Point(-1, -1); 1041Assert.Equal(new Point(-1, -1), g.RenderingOrigin); 1096Assert.Equal(new Point(0, 0), g.RenderingOrigin); 1101Assert.Equal(new Point(0, 0), g.RenderingOrigin); 1110g.RenderingOrigin = new Point(-1, -1); 1127Assert.Equal(new Point(0, 0), g.RenderingOrigin); 1900SizeF size = g.MeasureString(text, _font, new Point(0, 0), string_format); 1924? g.MeasureString(text.AsSpan(), _font, new Point(0, 0), string_format) 1925: g.MeasureString(text, _font, new Point(0, 0), string_format); 1966SizeF size = g.MeasureString(text, _font, new Point(0, 0), string_format); 2087rect.Location = new Point(10, 10); 2104rect.Location = new Point(10, 10); 2495Assert.Throws<ArgumentNullException>(() => g.DrawImage(null, new Point(0, 0))); 2503g.DrawImage(bmp, new Point(0, 0)); 2654Point p = new(1, 1); 2661Point p = new(1, 1); 2668Point p = new(1, 1); 2675Point p = new(1, 1); 2740Point p = new(1, 1); 2751Point p = new(1, 1); 2765Assert.Throws<ArgumentNullException>(() => g.DrawImageUnscaled(null, new Point(0, 0))); 2773g.DrawImageUnscaled(bmp, new Point(0, 0)); 2944pts[i] = new Point(i, i);
System\Drawing\Drawing2D\CustomLineCapTests.cs (20)
27strokePath.AddLine(new Point(0, 0), new Point(0, 5)); 28strokePath.AddLine(new Point(0, 5), new Point(5, 1)); 29strokePath.AddLine(new Point(5, 1), new Point(3, 1)); 34fillPath.AddLine(new Point(-5, -10), new Point(0, 10)); 35fillPath.AddLine(new Point(0, 10), new Point(5, -10)); 36fillPath.AddLine(new Point(5, -10), new Point(-5, -10)); 71fillPath.AddLine(new Point(0, -10), new Point(0, 10)); 80fillPath.AddLine(new Point(-5, 5), new Point(5, 5)); 81fillPath.AddLine(new Point(5, 5), new Point(5, 1)); 82fillPath.AddLine(new Point(5, 1), new Point(-5, 5));
System\Drawing\Drawing2D\GraphicsPathIteratorTests.cs (2)
271gp.AddLine(new(0, 0), new(1, 1));
System\Drawing\Drawing2D\GraphicsPathTests.cs (55)
151gp.PathData.Points[0] = new Point(0, 0); 164gp.PathPoints[0] = new Point(0, 0); 220gpPointsInt.AddLine(new Point(1, 1), new Point(2, 2)); 232gpi.AddLine(new Point(49, 157), new Point(75, 196)); 233gpi.AddLine(new Point(75, 196), new Point(102, 209)); 237gpi.AddLine(new Point(102, 209), new Point(75, 196)); 369gpi.AddBezier(new Point(1, 1), new Point(2, 2), new Point(3, 3), new Point(4, 4)); 382gp.AddBezier(new Point(0, 0), new Point(0, 0), new Point(0, 0), new Point(0, 0)); 386gp.AddBezier(new Point(0, 0), new Point(0, 0), new Point(0, 0), new Point(0, 0)); 580yield return new object[] { new Point[1] { new(1, 1) } }; 673yield return new object[] { new Point[1] { new(1, 1) } }; 674yield return new object[] { new Point[2] { new(1, 1), new(2, 2) } }; 961yield return new object[] { new Point[1] { new(1, 1) } }; 962yield return new object[] { new Point[2] { new(1, 1), new(2, 2) } }; 995gpi.AddString("mono", FontFamily.GenericMonospace, 0, 10, new Point(10, 10), StringFormat.GenericDefault); 1019gpi.AddString("mono", FontFamily.GenericMonospace, 0, -10, new Point(10, 10), StringFormat.GenericDefault); 1055gpi.AddString(string.Empty, FontFamily.GenericMonospace, 0, 10, new Point(10, 10), StringFormat.GenericDefault); 1067gp.AddString(null, FontFamily.GenericMonospace, 0, 10, new Point(10, 10), StringFormat.GenericDefault)); 1081new GraphicsPath().AddString("mono", null, 0, 10, new Point(10, 10), StringFormat.GenericDefault)); 1331gp.AddLine(new Point(1, 1), new Point(2, 2)); 1342gp.AddLine(new Point(1, 1), new Point(2, 2)); 1363gp.AddLine(new Point(1, 1), new Point(2, 2)); 1381gp.AddLine(new Point(1, 1), new Point(2, 2)); 1383gp.AddLine(new Point(3, 3), new Point(4, 4)); 1636gp.AddString("mono", FontFamily.GenericMonospace, 0, 10, new Point(20, 20), StringFormat.GenericDefault); 1851new(1, 2), new(3, 4), new(5, 6), new(7, 8), 1852new(9, 10), new(11, 12), new(13, 14) 1979gp.AddString("Mono::", FontFamily.GenericMonospace, 0, 10, new Point(10, 10), StringFormat.GenericDefault); 2258Point point = new(12, 2); 2286Point point = new(15, 10);
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (18)
10yield return new object[] { new Point(0, 0), new Point(2, 2), Color.Empty, Color.Empty, new RectangleF(0, 0, 2, 2) }; 11yield return new object[] { new Point(1, 0), new Point(0, 0), Color.Empty, Color.Red, new RectangleF(0, -0.5f, 1, 1) }; 12yield return new object[] { new Point(1, 2), new Point(4, 6), Color.Plum, Color.Red, new RectangleF(1, 2, 3, 4) }; 13yield return new object[] { new Point(1, 2), new Point(4, 6), Color.Red, Color.Red, new RectangleF(1, 2, 3, 4) }; 14yield return new object[] { new Point(-1, -2), new Point(4, 6), Color.Red, Color.Plum, new RectangleF(-1, -2, 5, 8) }; 15yield return new object[] { new Point(-4, -6), new Point(1, 2), Color.Black, Color.Wheat, new RectangleF(-4, -6, 5, 8) }; 16yield return new object[] { new Point(4, 6), new Point(-1, -2), Color.Black, Color.Wheat, new RectangleF(-1, -2, 5, 8) }; 17yield return new object[] { new Point(4, 6), new Point(1, 2), Color.Black, Color.Wheat, new RectangleF(1, 2, 3, 4) }; 69Assert.Throws<OutOfMemoryException>(() => new LinearGradientBrush(new Point(x, y), new Point(x, y), Color.Fuchsia, Color.GhostWhite));
System\Drawing\Drawing2D\MatrixTests.cs (29)
97yield return new object[] { new Rectangle(1, 4, 8, 16), new Point[] { new(32, 64), new(128, 256), new(512, 1024) }, new float[] { 12, 24, 30, 60, -100, -200 }, false, false }; 98yield return new object[] { new Rectangle(0, 0, 2, 4), new Point[] { new(8, 16), new(32, 64), new(128, 256) }, new float[] { 12, 24, 30, 60, 8, 16 }, false, false }; 99yield return new object[] { new Rectangle(0, 0, 1, 1), new Point[] { new(0, 0), new(0, 0), new(0, 0) }, new float[] { 0, 0, 0, 0, 0, 0 }, false, false }; 100yield return new object[] { new Rectangle(0, 0, 1, 1), new Point[] { new(0, 0), new(1, 0), new(0, 1) }, new float[] { 1, 0, 0, 1, 0, 0 }, true, true }; 698yield return new object[] { new Matrix(2, 4, 6, 8, 10, 12), new Point[] { new(2, 4), new(4, 8) }, new Point[] { new(38, 52), new(66, 92) } }; 699yield return new object[] { new Matrix(), new Point[] { new(2, 4), new(4, 8) }, new Point[] { new(2, 4), new(4, 8) } }; 700yield return new object[] { new Matrix(2, 4, 6, 8, 10, 12), new Point[1], new Point[] { new(10, 12) } }; 753yield return new object[] { new Matrix(2, 4, 6, 8, 10, 12), new Point[] { new(2, 4), new(4, 8) }, new Point[] { new(28, 40), new(56, 80) } }; 754yield return new object[] { new Matrix(), new Point[] { new(2, 4), new(4, 8) }, new Point[] { new(2, 4), new(4, 8) } };
System\Drawing\Drawing2D\PathGradientBrushTests.cs (4)
197yield return new object[] { new Point[2] { new(1, 1), new(2, 2) }, Array.Empty<Color>() }; 198yield return new object[] { new Point[2] { new(1, 1), new(2, 2) }, new Color[3] };
System\Drawing\Graphics_DrawBezierTests.cs (4)
15graphics.DrawBezier(pen, new(10, 10), new(20, 1), new(35, 5), new(50, 10));
System\Drawing\GraphicsTests.cs (54)
823new Point(0, 0), 834new Point(1, 1), 850yield return new object[] { new Point(-3, -3), allEmpty }; 851yield return new object[] { new Point(3, 3), allEmpty }; 1544graphics.CopyFromScreen(new Point(sourceX, sourceY), new Point(destinationX, destinationY), size); 1690new Point[] { new(1, 1), new(2, 2) }, 1691new Point[] { new(1, 1), new(2, 2) } 1698new Point[] { new(1, 1), new(2, 2) }, 1699new Point[] { new(9, 12), new(13, 18) } 1706new Point[] { new(1, 1), new(2, 2) }, 1707new Point[] { new(1, 1), new(2, 2) } 1714new Point[] { new(1, 1), new(2, 2) }, 1715new Point[] { new(9, 12), new(13, 18) } 1722new Point[] { new(1, 1), new(2, 2) }, 1723new Point[] { new(1, -1), new(0, -1) } 1730new Point[] { new(1, 1), new(2, 2) }, 1731new Point[] { new(1, -1), new(0, -1) } 1755new PointF[] { new Point(1, 1), new Point(2, 2) }, 1756new PointF[] { new Point(1, 1), new Point(2, 2) } 1763new PointF[] { new Point(1, 1), new Point(2, 2) }, 1764new PointF[] { new Point(9, 12), new Point(13, 18) } 1771new PointF[] { new Point(1, 1), new Point(2, 2) }, 1772new PointF[] { new Point(1, 1), new Point(2, 2) } 1779new PointF[] { new Point(1, 1), new Point(2, 2) }, 1780new PointF[] { new Point(9, 12), new Point(13, 18) } 1787new PointF[] { new Point(1, 1), new Point(2, 2) }, 1788new PointF[] { new(0.5f, -1.5f), new Point(0, -1) } 1795new PointF[] { new Point(1, 1), new Point(2, 2) }, 1796new PointF[] { new(0.5f, -1.5f), new Point(0, -1) } 1825var points = new Point[] { new(1, 1) }; 2828Point point = new(10, 10);
System\Drawing\IconConverterTests.cs (2)
115Assert.Throws<NotSupportedException>(() => _icoConv.ConvertFrom(null, CultureInfo.InvariantCulture, new Point(10, 10))); 127Assert.Throws<NotSupportedException>(() => _icoConvFrmTD.ConvertFrom(null, CultureInfo.InvariantCulture, new Point(10, 10)));
System\Drawing\ImageConverterTests.cs (2)
142Assert.Throws<NotSupportedException>(() => _imgConv.ConvertFrom(null, CultureInfo.InvariantCulture, new Point(10, 10))); 149Assert.Throws<NotSupportedException>(() => _imgConvFrmTD.ConvertFrom(null, CultureInfo.InvariantCulture, new Point(10, 10)));
System\Drawing\PenTests.cs (3)
15yield return new object[] { new LinearGradientBrush(new Point(0, 0), new Point(0, 2), Color.Purple, Color.Plum), PenType.LinearGradient }; 253using LinearGradientBrush brush = new(Point.Empty, new Point(1, 2), Color.Blue, Color.Red);
System\Drawing\Printing\PrinterUnitConvertTests.cs (2)
76var converted = PrinterUnitConvert.Convert(new Point(100, 1000), fromUnit, toUnit); 77Assert.Equal(new Point(expectedX, expectedY), converted);
System\Drawing\RegionTests.cs (15)
1359yield return new object[] { infiniteExclude, new Point(66, 292), true }; 1362yield return new object[] { new Region(new Rectangle(500, 30, 60, 80)), new Point(500, 29), false }; 1363yield return new object[] { new Region(new Rectangle(500, 30, 60, 80)), new Point(500, 30), true }; 1365yield return new object[] { new Region(new Rectangle(1, 1, 2, 1)), new Point(0, 1), false }; 1366yield return new object[] { new Region(new Rectangle(1, 1, 2, 1)), new Point(1, 0), false }; 1367yield return new object[] { new Region(new Rectangle(1, 1, 2, 1)), new Point(2, 0), false }; 1368yield return new object[] { new Region(new Rectangle(1, 1, 2, 1)), new Point(3, 0), false }; 1369yield return new object[] { new Region(new Rectangle(1, 1, 2, 1)), new Point(1, 1), true }; 1370yield return new object[] { new Region(new Rectangle(1, 1, 2, 1)), new Point(2, 1), true }; 1371yield return new object[] { new Region(new Rectangle(1, 1, 2, 1)), new Point(3, 1), false }; 1372yield return new object[] { new Region(new Rectangle(1, 1, 2, 1)), new Point(0, 2), false }; 1373yield return new object[] { new Region(new Rectangle(1, 1, 2, 1)), new Point(2, 2), false }; 1374yield return new object[] { new Region(new Rectangle(1, 1, 2, 1)), new Point(3, 2), false }; 1417AssertExtensions.Throws<ArgumentException>(null, () => disposedRegion.IsVisible(new Point(1, 2))); 1421AssertExtensions.Throws<ArgumentException>(null, () => disposedRegion.IsVisible(new Point(1, 2), s_graphic));
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 (2)
System\Private\Windows\Core\Nrbf\SerializationRecordExtensions.cs (1)
123value = new Point(classInfo.GetInt32("x"), classInfo.GetInt32("y"));
Windows\Win32\Foundation\LPARAM.cs (1)
27public static explicit operator Point(LPARAM value) => new(value.SIGNEDLOWORD, value.SIGNEDHIWORD);
System.Private.Windows.Core.TestUtilities (4)
CommonTestHelper.cs (4)
83data.Add(new Point(1, 2)); 88data.Add(new Point(int.MaxValue, int.MinValue)); 89data.Add(new Point(-1, -2)); 103data.Add(new Size(new Point(1, 1)));
System.Windows.Forms (270)
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)
1076Point phm = new(sz.Width, sz.Height);
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (3)
361Point pt = new(PARAM.LOWORD(lpmsg->lParam), PARAM.HIWORD(lpmsg->lParam)); 459Point p1 = new(rc.left, rc.top); 1702bounds.Location = new Point(bounds.X, bounds.Y);
System\Windows\Forms\ContextMenuStrip.cs (3)
97Rectangle bounds = CalculateDropDownLocation(new Point(x, y), ToolStripDropDownDirection.AboveLeft); 101bounds = CalculateDropDownLocation(new Point(x, y), ToolStripDropDownDirection.BelowLeft); 105bounds = CalculateDropDownLocation(new Point(x, y), ToolStripDropDownDirection.AboveRight);
System\Windows\Forms\Control.cs (5)
412Location = new Point(left, top); 2421get => new(_x, _y); 9102Location = new Point(0, 0); 11113client = new Point(Width / 2, Height / 2); 11117client = PointToClient(new Point(x, y));
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (16)
137Point p1 = new(bounds.X + bounds.Width - 1, bounds.Y); // Upper inner right 138Point p2 = new(bounds.X, bounds.Y); // Upper left 139Point p3 = new(bounds.X, bounds.Y + bounds.Height - 1); // Bottom inner left 140Point p4 = new(bounds.X + bounds.Width - 1, bounds.Y + bounds.Height - 1); // Inner bottom right 192Point p1 = new(bounds.X + bounds.Width - 1, bounds.Y); // Upper inner right 193Point p2 = new(bounds.X, bounds.Y); // Upper left 194Point p3 = new(bounds.X, bounds.Y + bounds.Height - 1); // Bottom inner left 195Point p4 = new(bounds.X + bounds.Width - 1, bounds.Y + bounds.Height - 1); // Inner bottom right 240Point p1 = new(bounds.X + bounds.Width - 1, bounds.Y); // Upper inner right 241Point p2 = new(bounds.X, bounds.Y); // Upper left 242Point p3 = new(bounds.X, bounds.Y + bounds.Height - 1); // Bottom inner left 243Point p4 = new(bounds.X + bounds.Width - 1, bounds.Y + bounds.Height - 1); // Inner bottom right 299Point p1 = new(r.Right - 1, r.Top); // Upper inner right 300Point p2 = new(r.Left, r.Top); // Upper left 301Point p3 = new(r.Left, r.Bottom - 1); // Bottom inner left 302Point 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 (1)
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)
1370return new Point(0, 0); 1383return new Point(comboXMid, comboYMid);
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (1)
167Point middle = new(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.Height / 2);
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)
475_ptCurrentCell = new Point(-1, -1); 476_ptAnchorCell = new Point(-1, -1); 477_ptMouseDownCell = new Point(-2, -2); 478_ptMouseEnteredCell = new Point(-2, -2); 479_ptToolTipCell = new Point(-1, -1); 480_ptMouseDownGridCoord = new Point(-1, -1); 2331Point ptFirstDisplayedCellAddress = new(-1, -1)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (23)
66_ptToolTipCell = new Point(columnIndex, rowIndex); 4931return new Point(columnX + x, rowY + y); 13881Debug.Assert(CurrentCellAddress == new Point(-1, -1)); 15416newCurrentCell = new Point(columnIndexInserted <= _ptCurrentCell.X ? _ptCurrentCell.X + 1 : _ptCurrentCell.X, 15422newCurrentCell = new Point(-1, -1); 15536newCurrentCell = new Point(_ptCurrentCell.X, _ptCurrentCell.Y + insertionCount); 15557newCurrentCell = new Point(-1, -1); 15619newCurrentCell = new Point(_ptCurrentCell.X, _ptCurrentCell.Y + dataGridViewRows.Length); 15624newCurrentCell = new Point(-1, -1); 16123_ptMouseDownGridCoord = new Point(e.X, e.Y); 16340_ptToolTipCell = new Point(-1, -1); 17073newCurrentCell = new Point(newX, (newX == -1) ? -1 : _ptCurrentCell.Y); 17106newCurrentCell = new Point(-1, -1); 17257newCurrentCell = new Point(-1, -1); 17288newCurrentCell = new Point(_ptCurrentCell.X, newY); 18163Debug.Assert(CurrentCellAddress == new Point(-1, -1)); 18821Invalidate(new Rectangle(new Point(-pt.X, ColumnHeadersHeight), new Size(-step, ClientSize.Height))); 18831Invalidate(new Rectangle(new Point(ClientSize.Width - (pt.X - rect.Right) - step, ColumnHeadersHeight), 18838Invalidate(new Rectangle(new Point(0, -pt.Y), 18845Invalidate(new Rectangle(new Point(0, ColumnHeadersHeight), 19865_editingPanel.Location = new Point(Width + 1, 0); 26998AccessibilityNotifyCurrentCellChanged(new Point(_ptCurrentCell.X, _ptCurrentCell.Y)); 29980client = new Point(Width / 2, Height / 2);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (3)
1011cellBounds = new Rectangle(new Point(0, 0), GetSize(rowIndex)); 3767DataGridView.EditingControl.Location = new Point(editingControlBounds.X, editingControlBounds.Y); 3857DataGridView.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 (4)
2155Point middle = new(dropRect.Left + dropRect.Width / 2, dropRect.Top + dropRect.Height / 2); 2178Point middle = new(dropRect.Left + (dropRect.Width - 1) / 2, 2184Point pt1 = new(middle.X - (s_nonXPTriangleWidth - 1) / 2, middle.Y - s_nonXPTriangleHeight); 2185Point 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)
798DataGridView!.EditingControl!.Location = new Point(editingControlBounds.X, editingControlBounds.Y);
System\Windows\Forms\Controls\DataGridView\DataGridViewUtilities.cs (1)
355Point ptTextLocation = new(0, 0);
System\Windows\Forms\Controls\Labels\LinkLabel.LinkLabelAccessibleObject.cs (1)
64Point p = owner.PointToClient(new Point(x, y));
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (1)
561CheckBoxRenderer.DrawCheckBoxWithVisualStyles(e, new Point(box.X, box.Y), cbState, HWNDInternal);
System\Windows\Forms\Controls\ListView\ListView.cs (6)
3205return FindItem(true, text, isPrefixSearch, new Point(0, 0), SearchDirectionHint.Down, startIndex, includeSubItemsInSearch); 3264return FindItem(false, string.Empty, false, new Point(x, y), searchDirection, 0, false); 3476pt = new Point(x, y) 3525pt = new Point(x, y) 3712pt = new Point(x, y) 5432Point 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)
1300pt = 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 (7)
1974ControlPaint.DrawReversibleLine(new Point(rc.X + i, rc.Y), new Point(rc.X + i, rc.Y + rc.Height), targetControl.BackColor); 1981ControlPaint.DrawReversibleLine(new Point(rc.X, rc.Y + i), new Point(rc.X + rc.Width, rc.Y + i), targetControl.BackColor); 2611_gridView.Location = new Point(0, 0); 2627_gridView.Location = new Point(0, 0); 4111Point 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); 1614_labelTipPoint = maxSpace <= labelWidth ? new Point(stringX + 2, rect.Y + 1) : InvalidPoint; 1946ValueToolTipLocation = 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)
135_titleLabel.Location = new(_borderSize, _borderSize); 136_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)
23private static Point InvalidPoint { get; } = new(int.MinValue, int.MinValue); 53private static Point InvalidPosition { get; } = new(int.MinValue, int.MinValue); 91private Point _location = new(1, 1); 456Point point = PointToScreen(new(rect.X, rect.Y)); 457return new Point(point.X + (rect.Width / 2), point.Y + (rect.Height / 2)); 602Point pt = new(rect.X, rect.Y); 1102Point newOrigin = new(rect.X, rect.Y); 1157Point newOrigin = new(rect.X, rect.Y); 1419Point location = PointToScreen(new Point(0, 0)); 1658Point pt = new(RowLabel, 0); 2983_lastMouseDown = new Point(e.X, e.Y); 3786Point 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)
2218Point wpt = new(pt.X, pt.Y);
System\Windows\Forms\Controls\Splitter\Splitter.cs (1)
901_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)
1593return new Point(PARAM.SignedLOWORD(i), PARAM.SignedHIWORD(i)); 2044client = 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)
582gripLocation = new Point(SizeGripBounds.Left, SizeGripBounds.Bottom); 586gripLocation = new Point(SizeGripBounds.Right, SizeGripBounds.Bottom);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (8)
28internal static Point s_invalidMouseEnter = new(int.MaxValue, int.MaxValue); 2140Point midPointOfCurrent = new(selectedItem.Bounds.X + selectedItem.Width / 2, 2164Point otherItemMidLocation = new(otherItem.Bounds.X + otherItem.Width / 2, (down) ? otherItem.Bounds.Top : otherItem.Bounds.Bottom); 2604ToolStripLocationCancelEventArgs cae = new(new Point(x, y), false); 3330Point itemRelativePoint = item.TranslatePoint(new Point(mea.X, mea.Y), ToolStripPointType.ToolStripCoords, ToolStripPointType.ToolStripItemCoords); 3386Point itemRelativePoint = item!.TranslatePoint(new Point(mea.X, mea.Y), ToolStripPointType.ToolStripCoords, ToolStripPointType.ToolStripItemCoords); 3430Point itemRelativePoint = item.TranslatePoint(new Point(mea.X, mea.Y), ToolStripPointType.ToolStripCoords, ToolStripPointType.ToolStripItemCoords); 3864public 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 (1)
142Point middle = new(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.Height / 2);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (4)
21private Point _displayLocation = new(0, 0); 1043dropDownBounds.Location = new Point(start.X + offset.X, start.Y + offset.Y); 1844Show(control, new Point(x, y)); 1865_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); 796Point upLocation = new(1, 0); 803Point downLocation = new(1, height - downSize.Height);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropTargetManager.cs (1)
56return _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 (10)
854Point topRight = new(bounds.Width - 1, 0); 855Point bottomLeft = new(0, bounds.Height - 1); 856Point bottomRight = new(bounds.Width - 1, bounds.Height - 1); 1270Point start = new(overflowBoundsFill.Left - 1, overflowBoundsFill.Height - 2); 1271Point end = new(overflowBoundsFill.Left, overflowBoundsFill.Height - 2); 1298Point top1 = new(overflowBoundsFill.X - 2, 0); 1299Point top2 = new(overflowBoundsFill.X - 1, 1); 1345Point topRight = new(bounds.Width - 1, 0); 1346Point bottomLeft = new(0, bounds.Height - 1); 1648Point middle = new(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.Height / 2);
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (1)
618Point middle = new(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.Height / 2);
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\TrackBar\TrackBar.TrackBarAccessibleObject.cs (1)
107Point point = new(x, y);
System\Windows\Forms\Controls\TreeView\TreeView.cs (4)
1641pt = new Point(x, y) 1682pt = new Point(x, y) 2829Point textLoc = new(bounds.X - 1, bounds.Y); // required to center the text 3431client = 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 (2)
324Point pt1 = new(clientRect.Left, clientRect.Bottom - 1); 325Point pt2 = new(clientRect.Right, clientRect.Bottom - 1);
System\Windows\Forms\Controls\WebBrowser\HtmlWindow.cs (1)
176return new(x, y);
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (1)
1356client = new Point(Width / 2, Height / 2);
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
1112Point 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)
4355Point pointToSnap = new(button.Left + button.Width / 2, button.Top + button.Height / 2); 5333Location = 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\OLE\DragDropHelper.cs (3)
82Point point = new(e.X, e.Y); 128Point point = new(e.X, e.Y); 144Point point = new(e.X, e.Y);
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)
491new Point(imageRect.X - imageRectangle.X, imageRect.Y - imageRectangle.Y), 1675Point start = new(bounds.X + bounds.Width - 1, bounds.Y - 1); 1676Point end = new(bounds.X + bounds.Width - 1, bounds.Y + bounds.Height);
System\Windows\Forms\Scrolling\ScrollableControl.cs (2)
124return new Point(rect.X, rect.Y); 901return 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 (147)
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (1)
244Point middle = new(
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)
177_button.Location = new Point(EditRegionLocation.X + EditRegionSize.Width - buttonHeight - EditorLineButtonPadding, EditRegionLocation.Y + EditorLineButtonPadding + 1); 300g.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)
79_container.Location = new Point(0, 0); 83_control.Location = new Point(30, 30); 87_right.Location = new Point(60, 40); 94_left.Location = new Point(XBORDER, 40); 101_top.Location = new Point(40, YBORDER); 108_bottom.Location = new Point(40, 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, 588_lastFeedbackLocation = new Point(-1, -1); 739Point newPosition = new(mouseLoc.X - _initialMouseLoc.X + _dragComponents[_primaryComponentIndex].originalControlLocation.X, 788newPosition = new Point(mouseLoc.X - _initialMouseLoc.X + _originalDragImageLocation.X, 948_dragComponents[i].positionOffset = new Point(dragControl.Location.X - primaryControl.Location.X, 1045_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)
261ToolboxSnapDragDropEventArgs se = CreateToolboxSnapArgs(e, new Point(e.X - screenOffset.X, e.Y - screenOffset.Y)); 350Point adornerServiceOrigin = _behaviorService.MapAdornerWindowPoint(baseControl.Handle, new Point(0, 0));
System\Windows\Forms\Design\CommandSet.cs (3)
813Point snappedOffset = dragManager.OffsetToNearestSnapLocation(primaryControl, new Point(moveOffsetX, moveOffsetY)); 3278Point offset = new(-min.X, -min.Y); 3291Point parentOffset = new(parentSize.Width / 2, parentSize.Height / 2);
System\Windows\Forms\Design\ComponentTray.cs (19)
27private static Point InvalidPoint { get; } = new(int.MinValue, int.MinValue); 365AutoScrollPosition = new Point(0, 0); 604SetTrayLocation(comp, new Point(tc.Location.X - _autoScrollPosBeforeDragging.X, tc.Location.Y - _autoScrollPosBeforeDragging.Y)); 608AutoScrollPosition = new Point(-_autoScrollPosBeforeDragging.X, -_autoScrollPosBeforeDragging.Y); 994return new Point(loc.X - autoScrollLoc.X, loc.Y - autoScrollLoc.Y); 1069_mouseDropLocation = PointToClient(new Point(de.X, de.Y)); 1242_mouseDropLocation = new Point(e.X, e.Y); 1265_mouseDragStart = new Point(e.X, e.Y); 1308_mouseDragEnd = new Point(0, 0); 1575location = new Point(location.X + autoScrollLoc.X, location.Y + autoScrollLoc.Y); 1832Point newLoc = new(display.X + _whiteSpace.X, display.Y + _whiteSpace.Y); 1844newLoc = new Point(newLoc.X - autoScrollLoc.X, newLoc.Y - autoScrollLoc.Y); 1860Point newLoc = new(bounds.X + bounds.Width + _whiteSpace.X, bounds.Y); 1879newLoc = new Point(newLoc.X - autoScrollLoc.X, newLoc.Y - autoScrollLoc.Y); 2161_mouseDragLast = PointToScreen(new Point(me.X, me.Y)); 2194Point newPt = PointToScreen(new Point(me.X, me.Y)); 2691return _hitTestedGlyph.Behavior.OnMouseDoubleClick(_hitTestedGlyph, e.Button, new Point(e.X, e.Y)); 2705return _hitTestedGlyph.Behavior.OnMouseDown(_hitTestedGlyph, e.Button, new Point(e.X, e.Y)); 2719return _hitTestedGlyph.Behavior.OnMouseMove(_hitTestedGlyph, e.Button, new Point(e.X, e.Y));
System\Windows\Forms\Design\ControlCommandSet.cs (1)
634Point 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); 1306_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)
1753Point pt = new(e.X, e.Y); 2074TreeViewHitTestInfo treeViewHitTestInfo = HitTest(new Point(e.X, e.Y));
System\Windows\Forms\Design\DesignerFrame.cs (1)
166_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)
785Location = 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); 1823Point location = new(baseVar.X, baseVar.Y); 2014Point offset = new(_mouseDragOffset.X, _mouseDragOffset.Y); 2191newLoc = new Point(controlLoc.X - parentLoc.X, controlLoc.Y - parentLoc.Y); 2196newLoc = 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); 519Point anchor = PointToScreen(new Point(me.X, me.Y)); 606Point screenCoord = PointToScreen(new Point(me.X, me.Y)); 718Point 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)
573Point dropPoint = Control.PointToClient(new Point(de.X, de.Y));
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (3)
972Point position = new(-1, -1); 1056return new Point(pos.Column, pos.Row); 1295Point cell = GetCellPosition(new Point(x, y));
System\Windows\Forms\Design\ToolStripAdornerWindowService.cs (2)
98public Point AdornerWindowToScreen() => AdornerWindowPointToScreen(new Point(0, 0)); 110Point pt = new(c.Left, c.Top);
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
1802Point 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)
991parentDesigner.DragBoxFromMouseDown = _dragBoxFromMouseDown = new Rectangle(new Point(mouseLoc.X - (dragSize.Width / 2), mouseLoc.Y - (dragSize.Height / 2)), dragSize); 1014ownerItemDesigner._dragBoxFromMouseDown = _dragBoxFromMouseDown = new Rectangle(new Point(mouseLoc.X - (dragSize.Width / 2), mouseLoc.Y - (dragSize.Height / 2)), dragSize);
System\Windows\Forms\Design\ToolStripItemDesigner.cs (1)
1317newPoint = behaviorService.ScreenToAdornerWindow(new Point(x, y));
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (1)
507node.ShowContextMenu(new Point(x, y));
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
1376dropDownItem.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)
380Point 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);
System.Windows.Forms.Primitives.Tests (55)
System\SpanReaderTests.cs (4)
103value.Should().Be(new Point(1, 2)); 106value.Should().Be(new Point(3, 4)); 120value.ToArray().Should().BeEquivalentTo([new Point(1, 2), new Point(3, 4)]);
System\SpanWriterTests.cs (15)
76writer.TryWriteCount(2, new Point(1, 2)).Should().BeTrue(); 77span.ToArray().Should().BeEquivalentTo([new Point(1, 2), new Point(1, 2), default, default, default]); 79writer.TryWriteCount(2, new Point(3, 4)).Should().BeTrue(); 80span.ToArray().Should().BeEquivalentTo([new Point(1, 2), new Point(1, 2), new Point(3, 4), new Point(3, 4), default]); 82writer.TryWriteCount(1, new Point(5, 6)).Should().BeTrue(); 83span.ToArray().Should().BeEquivalentTo([new Point(1, 2), new Point(1, 2), new Point(3, 4), new Point(3, 4), new Point(5, 6)]); 85writer.TryWriteCount(1, new Point(7, 8)).Should().BeFalse();
System\Windows\Forms\Automation\UiaTextRangeTests.cs (28)
658providerMock.Setup(m => m.GetPositionFromChar(3)).Returns(new Point(17, 0)); 659providerMock.Setup(m => m.GetPositionFromChar(0)).Returns(new Point(1, 0)); 660providerMock.Setup(m => m.GetPositionFromCharForUpperRightCorner(5, testText)).Returns(new Point(28, 0)); 661providerMock.Setup(m => m.GetPositionFromCharForUpperRightCorner(1, testText)).Returns(new Point(17, 0)); 727providerMock.Setup(m => m.GetPositionFromChar(0)).Returns(new Point(5, 1)); 728providerMock.Setup(m => m.GetPositionFromChar(16)).Returns(new Point(5, 18)); 729providerMock.Setup(m => m.GetPositionFromChar(23)).Returns(new Point(45, 18)); 730providerMock.Setup(m => m.GetPositionFromChar(31)).Returns(new Point(5, 35)); 731providerMock.Setup(m => m.GetPositionFromChar(46)).Returns(new Point(5, 52)); 732providerMock.Setup(m => m.GetPositionFromChar(58)).Returns(new Point(5, 69)); 734providerMock.Setup(m => m.GetPositionFromCharForUpperRightCorner(15, testText)).Returns(new Point(108, 1)); 735providerMock.Setup(m => m.GetPositionFromCharForUpperRightCorner(30, testText)).Returns(new Point(90, 18)); 736providerMock.Setup(m => m.GetPositionFromCharForUpperRightCorner(45, testText)).Returns(new Point(88, 35)); 737providerMock.Setup(m => m.GetPositionFromCharForUpperRightCorner(52, testText)).Returns(new Point(61, 52)); 738providerMock.Setup(m => m.GetPositionFromCharForUpperRightCorner(57, testText)).Returns(new Point(95, 52)); 739providerMock.Setup(m => m.GetPositionFromCharForUpperRightCorner(62, testText)).Returns(new Point(45, 69)); 809providerMock.Setup(m => m.GetPositionFromChar(0)).Returns(new Point(22, 1)); 810providerMock.Setup(m => m.GetPositionFromChar(16)).Returns(new Point(42, 18)); 811providerMock.Setup(m => m.GetPositionFromChar(23)).Returns(new Point(82, 18)); 812providerMock.Setup(m => m.GetPositionFromChar(31)).Returns(new Point(42, 35)); 813providerMock.Setup(m => m.GetPositionFromChar(46)).Returns(new Point(37, 52)); 814providerMock.Setup(m => m.GetPositionFromChar(58)).Returns(new Point(83, 69)); 816providerMock.Setup(m => m.GetPositionFromCharForUpperRightCorner(15, testText)).Returns(new Point(125, 1)); 817providerMock.Setup(m => m.GetPositionFromCharForUpperRightCorner(30, testText)).Returns(new Point(127, 18)); 818providerMock.Setup(m => m.GetPositionFromCharForUpperRightCorner(45, testText)).Returns(new Point(125, 35)); 819providerMock.Setup(m => m.GetPositionFromCharForUpperRightCorner(52, testText)).Returns(new Point(93, 52)); 820providerMock.Setup(m => m.GetPositionFromCharForUpperRightCorner(57, testText)).Returns(new Point(127, 52)); 821providerMock.Setup(m => m.GetPositionFromCharForUpperRightCorner(62, testText)).Returns(new Point(123, 69));
System\Windows\Forms\DeviceContextHdcScopeTests.cs (8)
31Assert.Equal(new Point(1, 2), origin); 46Assert.Equal(new Point(0, 0), origin); 61Assert.Equal(new Point(1, 2), origin); 76Assert.Equal(new Point(0, 0), origin); 114Assert.Equal(new Point(1, 2), origin); 141Assert.Equal(new Point(0, 0), origin); 164Assert.Equal(new Point(1, 2), origin); 187Assert.Equal(new Point(0, 0), origin);
System.Windows.Forms.Primitives.TestUtilities (1)
Extensions\GdiExtensions.cs (1)
31return new Point((int)x, (int)y);
System.Windows.Forms.Tests (597)
NumericUpDownTests.cs (4)
59new(0, 18), new(16, 18), 94new(0, 18), new(16, 18),
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxItemAccessibleObjectTests.cs (1)
373Point point = new(x, y + initialYPosition);
System\Windows\Forms\AccessibleObjects\DataGridViewAccessibleObjectTests.cs (2)
159actualBounds.Location = new Point(0, 0); 180actualBounds.Location = new Point(0, 0);
System\Windows\Forms\AccessibleObjects\ListBoxAccessibleObjectTests.cs (1)
348Point testPoint = new Point(10, 10);
System\Windows\Forms\AccessibleObjects\ListVIew.ListViewAccessibleObjectTests.cs (1)
1177Point point = new(15, 55);
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (2)
306actualBounds.Location = new Point(0, 0); 344actualBounds.Location = new Point(0, 0);
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObjectTests.cs (2)
664actualBounds.Location = new Point(0, 0); 667Location = new Point(0, 0)
System\Windows\Forms\AccessibleObjects\Panel.PanelAccessibleObjectTests.cs (2)
265panel1.Location = new(50, 50); 268button1.Location = new(17, 16);
System\Windows\Forms\AccessibleObjects\PropertyGridView.PropertyGridViewAccessibleObjectTests.cs (1)
236propertyGrid.Location = new Point(0, 0);
System\Windows\Forms\AccessibleObjects\TabPage.TabPageAccessibleObjectTests.cs (3)
532tabControl.Location = new(22, 25); 535button.Location = new(16, 12); 540tabPage.Location = new(4, 24);
System\Windows\Forms\AccessibleObjects\TreeView.TreeViewAccessibleObjectTests.cs (1)
249Point point = new(accessibleObject.Bounds.X, accessibleObject.Bounds.Bottom - 1);
System\Windows\Forms\BinaryFormatUtilitiesTests.cs (5)
124new Point(-1, int.MaxValue), 861Location = new Point(1, 2); 903public Point Point = new(1, 2); 1045Point = new(1, 2); 1048public Point Point { get; set; } = new(1, 2);
System\Windows\Forms\ButtonRenderingTests.cs (32)
47new(bounds.Right - 1, 0), new(0, 0), 50new(0, 0), new(0, bounds.Bottom - 1), 53new(0, bounds.Bottom - 1), new(bounds.Right - 1, bounds.Bottom - 1), 56new(bounds.Right - 1, bounds.Bottom - 1), new(bounds.Right - 1, -1), 59new(bounds.Right - 2, 1), new(1, 1), 62new(1, 1), new(1, bounds.Bottom - 2), 65new(1, bounds.Bottom - 2), new(bounds.Right - 2, bounds.Bottom - 2), 68new(bounds.Right - 2, bounds.Bottom - 2), new(bounds.Right - 2, 0), 133new(bounds.Right - 1, 0), new(0, 0), 136new(0, 0), new(0, bounds.Bottom - 1), 139new(0, bounds.Bottom - 1), new(bounds.Right - 1, bounds.Bottom - 1), 142new(bounds.Right - 1, bounds.Bottom - 1), new(bounds.Right - 1, -1), 145new(bounds.Right - 2, 1), new(1, 1), 148new(1, 1), new(1, bounds.Bottom - 2), 151new(1, bounds.Bottom - 2), new(bounds.Right - 2, bounds.Bottom - 2), 154new(bounds.Right - 2, bounds.Bottom - 2), new(bounds.Right - 2, 0),
System\Windows\Forms\CheckBoxRendererTests.cs (5)
28Point point = new(control.Location.X, control.Location.Y); 64Point point = new(control.Location.X, control.Location.Y); 101Point point = new(control.Location.X, control.Location.Y); 135Point point = new(control.Location.X, control.Location.Y); 152? Validate.PolyPolygon16(new(new(bounds.X, bounds.Y), new Size(-1, -1)))
System\Windows\Forms\CheckBoxTests.cs (1)
822MouseEventArgs eventArgs = new(MouseButtons.Left, 1, new Point(0, 0), 0);
System\Windows\Forms\ComboBox.ComboBoxUiaTextProviderTests.cs (14)
423yield return new object[] { ComboBoxStyle.DropDown, new Size(50, 20), "Some test text for testing", 0, new Point(1, 0) }; 424yield return new object[] { ComboBoxStyle.DropDown, new Size(50, 20), "Some test text for testing", 15, new Point(79, 0) }; 426yield return new object[] { ComboBoxStyle.Simple, new Size(50, 20), "Some test text for testing", 0, new Point(1, 0) }; 427yield return new object[] { ComboBoxStyle.Simple, new Size(50, 20), "Some test text for testing", 15, new Point(79, 0) }; 485yield return new object[] { comboBoxStyle, new Size(50, 20), "", 0, new Point(0, 0) }; 486yield return new object[] { comboBoxStyle, new Size(50, 20), "Some test text", 100, new Point(0, 0) }; 487yield return new object[] { comboBoxStyle, new Size(50, 20), "Some test text", -1, new Point(0, 0) }; 488yield return new object[] { comboBoxStyle, new Size(50, 20), "Some test text", 12, new Point(71, 0) }; 489yield return new object[] { comboBoxStyle, new Size(100, 60), "Some test \n text", 10, new Point(56, 0) }; 490yield return new object[] { comboBoxStyle, new Size(100, 60), "Some test \r\n text", 10, new Point(56, 0) }; 491yield return new object[] { comboBoxStyle, new Size(100, 60), "Some test \r\n text", 12, new Point(60, 0) }; 492yield return new object[] { comboBoxStyle, new Size(100, 60), "Some test \t text", 10, new Point(57, 0) }; 903yield return new object[] { ComboBoxStyle.DropDown, new Point(10, 10) }; 905yield return new object[] { ComboBoxStyle.Simple, new Point(10, 10) };
System\Windows\Forms\ComboBoxTests.cs (1)
2582ownerDrawComboBox.Location = new Point(0, 50);
System\Windows\Forms\ControlPaintTests.cs (22)
1708yield return new object[] { new Point(1, 2), new Point(1, 2), Color.Red }; 1709yield return new object[] { new Point(2, 3), new Point(1, 2), Color.Red }; 1710yield return new object[] { new Point(1, 2), new Point(2, 3), Color.Empty }; 1711yield return new object[] { new Point(1, 2), new Point(2, 3), Color.Red }; 1712yield return new object[] { new Point(1, 2), new Point(2, 3), SystemColors.ControlLight }; 1713yield return new object[] { new Point(1, 2), new Point(2, 3), SystemColors.Control }; 1714yield return new object[] { new Point(1, 2), new Point(2, 3), SystemColors.ControlDark }; 1715yield return new object[] { new Point(1, 2), new Point(2, 3), Color.Black }; 1716yield return new object[] { new Point(1, 2), new Point(2, 3), Color.White }; 1717yield return new object[] { new Point(1, 2), new Point(2, 3), Color.Transparent }; 1718yield return new object[] { new Point(1, 2), new Point(2, 3), Color.Empty };
System\Windows\Forms\ControlTests.cs (6)
257Assert.Equal(new Point(left, top), control.Location); 449Assert.Equal(new Point(left, top), control.Location); 1044checkedListBox1.Location = new Point(10, 10); 1047button1.Location = new Point(12, 166); 1051listBox1.Location = new Point(12, 80); 1055listView1.Location = new Point(130, 10);
System\Windows\Forms\ControlTests.Handlers.cs (4)
2586yield return new object[] { new HelpEventArgs(new Point(1, 2)) }; 2650HelpEventArgs eventArgs = new(new Point(1, 2)); 2682HelpEventArgs eventArgs = new(new Point(1, 2)); 2704HelpEventArgs eventArgs = new(new Point(1, 2));
System\Windows\Forms\ControlTests.Methods.cs (5)
2081Assert.Null(control.GetChildAtPoint(new Point(5, 5), skipValue)); 2085Assert.Null(control.GetChildAtPoint(new Point(5, 5), skipValue)); 2095Assert.Throws<InvalidEnumArgumentException>("skipValue", () => control.GetChildAtPoint(new Point(5, 5), skipValue)); 12513Point p = control.PointToScreen(new Point(5, 5)); 12587Point p = control.PointToScreen(new Point(5, 5));
System\Windows\Forms\ControlTests.Properties.cs (68)
6697Assert.Equal(new Point(value, 0), control.Location); 6719Assert.Equal(new Point(value, 0), control.Location); 6788Assert.Equal(new Point(value, 0), control.Location); 6810Assert.Equal(new Point(value, 0), control.Location); 6887Assert.Equal(new Point(value, 0), control.Location); 6912Assert.Equal(new Point(value, 0), control.Location); 6997Assert.Equal(new Point(value, 0), control.Location); 7026Assert.Equal(new Point(value, 0), control.Location); 7070Assert.Equal(new Point(1, 0), control.Location); 7075Assert.Equal(new Point(1, 0), control.Location); 7080Assert.Equal(new Point(2, 0), control.Location); 7107Assert.Equal(new Point(1, 0), control.Location); 7113Assert.Equal(new Point(1, 0), control.Location); 7119Assert.Equal(new Point(2, 0), control.Location); 7127Assert.Equal(new Point(1, 0), control.Location); 7134yield return new object[] { new Point(0, 0), 0 }; 7135yield return new object[] { new Point(-1, -2), 1 }; 7136yield return new object[] { new Point(1, 0), 1 }; 7137yield return new object[] { new Point(0, 2), 1 }; 7138yield return new object[] { new Point(1, 2), 1 }; 7316yield return new object[] { resizeRedraw, new Point(0, 0), 0 }; 7317yield return new object[] { resizeRedraw, new Point(-1, -2), 1 }; 7318yield return new object[] { resizeRedraw, new Point(1, 0), 1 }; 7319yield return new object[] { resizeRedraw, new Point(0, 2), 1 }; 7320yield return new object[] { resizeRedraw, new Point(1, 2), 1 }; 7554control.Location = new Point(1, 2); 7555Assert.Equal(new Point(1, 2), control.Location); 7559control.Location = new Point(1, 2); 7560Assert.Equal(new Point(1, 2), control.Location); 7564control.Location = new Point(2, 3); 7565Assert.Equal(new Point(2, 3), control.Location); 7576control.Location = new Point(1, 0); 7577Assert.Equal(new Point(1, 0), control.Location); 7580control.Location = new Point(0, 1); 7581Assert.Equal(new Point(0, 1), control.Location); 7584control.Location = new Point(1, 2); 7585Assert.Equal(new Point(1, 2), control.Location); 7600control.Location = new Point(1, 0); 7601Assert.Equal(new Point(1, 0), control.Location); 7604control.Location = new Point(0, 1); 7605Assert.Equal(new Point(0, 1), control.Location); 7608control.Location = new Point(1, 2); 7609Assert.Equal(new Point(1, 2), control.Location); 7639control.Location = new Point(1, 2); 7640Assert.Equal(new Point(1, 2), control.Location); 7645control.Location = new Point(1, 2); 7646Assert.Equal(new Point(1, 2), control.Location); 7651control.Location = new Point(2, 2); 7652Assert.Equal(new Point(2, 2), control.Location); 7657control.Location = new Point(2, 3); 7658Assert.Equal(new Point(2, 3), control.Location); 7665control.Location = new Point(1, 2); 7666Assert.Equal(new Point(1, 2), control.Location); 12132Assert.Equal(new Point(0, value), control.Location); 12153Assert.Equal(new Point(0, value), control.Location); 12222Assert.Equal(new Point(0, value), control.Location); 12244Assert.Equal(new Point(0, value), control.Location); 12320Assert.Equal(new Point(0, value), control.Location); 12344Assert.Equal(new Point(0, value), control.Location); 12429Assert.Equal(new Point(0, value), control.Location); 12458Assert.Equal(new Point(0, value), control.Location); 12502Assert.Equal(new Point(0, 1), control.Location); 12507Assert.Equal(new Point(0, 1), control.Location); 12512Assert.Equal(new Point(0, 2), control.Location); 12539Assert.Equal(new Point(0, 1), control.Location); 12545Assert.Equal(new Point(0, 1), control.Location); 12551Assert.Equal(new Point(0, 2), control.Location); 12559Assert.Equal(new Point(0, 1), control.Location);
System\Windows\Forms\CursorConverterTests.cs (1)
40Assert.Equal(new Point(5, 8), cursor.HotSpot);
System\Windows\Forms\CursorTests.cs (5)
45Assert.Equal(new Point(0, 0), cursor.HotSpot); 59yield return new object[] { Path.Combine("bitmaps", "10x16_one_entry_32bit.ico"), new Point(5, 8) }; 157Assert.Equal(new Point(5, 8), cursor.HotSpot); 278Cursor.Position = new Point(1, 2); 284Cursor.Position = new Point(virtualScreen.X - 1, virtualScreen.Y - 1);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
77Assert.Equal(new Point(-SystemInformation.WorkingArea.X, -SystemInformation.WorkingArea.Y), control.DesktopLocation);
System\Windows\Forms\DragDropHelperTests.cs (8)
18yield return new object[] { new DataObject(), new Bitmap(1, 1), new Point(1, 1), false }; 19yield return new object[] { new DataObject(), null, new Point(1, 1), false }; 20yield return new object[] { new DataObject(), new Bitmap(1, 1), new Point(1, 1), true }; 25yield return new object[] { new DataObject(), new GiveFeedbackEventArgs(DragDropEffects.All, false, new Bitmap(1, 1), new Point(0, 0), false) }; 26yield return new object[] { new DataObject(), new GiveFeedbackEventArgs(DragDropEffects.All, false, null, new Point(0, 0), false) }; 27yield return new object[] { new DataObject(), new GiveFeedbackEventArgs(DragDropEffects.All, false, new Bitmap(1, 1), new Point(0, 0), true) }; 161Assert.Throws<InvalidOperationException>(() => DragDropHelper.SetDragImage(new DataObject(), bitmap, new Point(0, 0), false)); 170() => DragDropHelper.SetDragImage(dataObject, bitmap, new Point(0, 0), false));
System\Windows\Forms\ErrorProviderTests.cs (4)
1151control.Location = new Point(1, 2); 1152Assert.Equal(new Point(1, 2), control.Location); 1183control.Location = new Point(2, 3); 1184Assert.Equal(new Point(2, 3), control.Location);
System\Windows\Forms\FormTests.cs (9)
76Assert.Equal(new Point(-SystemInformation.WorkingArea.X, -SystemInformation.WorkingArea.Y), control.DesktopLocation); 985form.Location = new Point(10, 11); 990form.Location = new Point(20, 21); 994Assert.NotEqual(new Point(20, 21), form.Location); 999Assert.Equal(new Point(20, 21), form.Location); 1014form.Location = new Point(10, 11); 1019form.Location = new Point(20, 21); 1023Assert.NotEqual(new Point(20, 21), form.Location); 1028Assert.Equal(new Point(20, 21), form.Location);
System\Windows\Forms\GiveFeedbackEventArgsTests.cs (5)
25GiveFeedbackEventArgs e = new(DragDropEffects.None, false, new Bitmap(1, 1), new Point(0, 0), false) 34yield return new object[] { new Point(1, 1) }; 35yield return new object[] { new Point(-1, -1) }; 42GiveFeedbackEventArgs e = new(DragDropEffects.None, false, new Bitmap(2, 2), new Point(0, 0), false) 72GiveFeedbackEventArgs e = new(DragDropEffects.None, false, new Bitmap(1, 1), new Point(0, 0), false)
System\Windows\Forms\HandledMouseEventArgsTests.cs (2)
23Assert.Equal(new Point(x, y), e.Location); 39Assert.Equal(new Point(x, y), e.Location);
System\Windows\Forms\HelpEventArgsTests.cs (3)
14yield return new object[] { new Point(1, 2) }; 15yield return new object[] { new Point(-1, -2) }; 32HelpEventArgs e = new(new Point(1, 2))
System\Windows\Forms\HelpProviderTests.cs (3)
520control.OnHelpRequested(new HelpEventArgs(new Point(1, 2))); 530HelpEventArgs e = new(new Point(1, 2)); 549HelpEventArgs e = new(new Point(1, 2));
System\Windows\Forms\HtmlDocumentTests.cs (2)
1752Assert.Equal("BODY", document.GetElementFromPoint(new Point(int.MinValue, int.MinValue)).TagName); 1753Assert.Equal("BODY", document.GetElementFromPoint(new Point(int.MaxValue, int.MaxValue)).TagName);
System\Windows\Forms\ImageListTests.cs (2)
918yield return new object[] { new Point(1, 2) }; 919yield return new object[] { new Point(-1, -2) };
System\Windows\Forms\ListViewInsertionMarkTests.cs (3)
565Assert.True(insertionMark.NearestIndex(new Point(-10, -11)) >= -1); 582Assert.True(insertionMark.NearestIndex(new Point(-10, -11)) >= -1); 602Assert.Equal(result, insertionMark.NearestIndex(new Point(1, 2)));
System\Windows\Forms\ListViewItemTests.cs (22)
30Assert.Equal(new Point(-1, -1), item.Position); 69Assert.Equal(new Point(-1, -1), item.Position); 107Assert.Equal(new Point(-1, -1), item.Position); 145Assert.Equal(new Point(-1, -1), item.Position); 183Assert.Equal(new Point(-1, -1), item.Position); 220Assert.Equal(new Point(-1, -1), item.Position); 257Assert.Equal(new Point(-1, -1), item.Position); 295Assert.Equal(new Point(-1, -1), item.Position); 333Assert.Equal(new Point(-1, -1), item.Position); 370Assert.Equal(new Point(-1, -1), item.Position); 408Assert.Equal(new Point(-1, -1), item.Position); 446Assert.Equal(new Point(-1, -1), item.Position); 483Assert.Equal(new Point(-1, -1), item.Position); 521Assert.Equal(new Point(-1, -1), item.Position); 559Assert.Equal(new Point(-1, -1), item.Position); 597Assert.Equal(new Point(-1, -1), item.Position); 634Assert.Equal(new Point(-1, -1), item.Position); 672Assert.Equal(new Point(-1, -1), item.Position); 710Assert.Equal(new Point(-1, -1), item.Position); 747Assert.Equal(new Point(-1, -1), item.Position); 786Assert.Equal(new Point(-1, -1), item.Position); 816Assert.Equal(new Point(-1, -1), item.Position);
System\Windows\Forms\ListViewTests.cs (4)
5155listView.AnnounceColumnHeader(new Point(15, 40)); 5180listView.AnnounceColumnHeader(new Point(15, 40)); 5205listView.AnnounceColumnHeader(new Point(10, 20)); 5232listView.AnnounceColumnHeader(new Point(x, y));
System\Windows\Forms\MdiClientTests.cs (12)
439control.Location = new Point(1, 0); 440Assert.Equal(new Point(1, 0), control.Location); 443control.Location = new Point(0, 1); 444Assert.Equal(new Point(0, 1), control.Location); 447control.Location = new Point(1, 2); 448Assert.Equal(new Point(1, 2), control.Location); 463control.Location = new Point(1, 0); 464Assert.Equal(new Point(1, 0), control.Location); 467control.Location = new Point(0, 1); 468Assert.Equal(new Point(0, 1), control.Location); 471control.Location = new Point(1, 2); 472Assert.Equal(new Point(1, 2), control.Location);
System\Windows\Forms\MonthCalendar.HitTestInfoTests.cs (2)
17Point point = new(5, 5); 44Point point = new(5, 5);
System\Windows\Forms\MonthCalendarTests.cs (1)
4490HitTestInfo hitTestInfo = calendar.HitTest(new Point(x, y));
System\Windows\Forms\MouseEventArgsTests.cs (1)
23Assert.Equal(new Point(x, y), e.Location);
System\Windows\Forms\NativeToWinFormsAdapterTests.cs (3)
79TestData value = new(new(6, 7)); 434SimpleTestData value = new("text", new(10, 10)); 453SimpleTestData value = new("text", new(10, 10));
System\Windows\Forms\RadioButtonRendererTests.cs (5)
27Point point = new(control.Location.X, control.Location.Y); 58Point point = new(control.Location.X, control.Location.Y); 95Point point = new(control.Location.X, control.Location.Y); 114Point point = new(control.Location.X, control.Location.Y); 141? Validate.PolyPolygon16(new(new(bounds.X, bounds.Y), new Size(-1, -1)))
System\Windows\Forms\RichTextBoxTests.cs (1)
10646Point pt = new(x, y);
System\Windows\Forms\ScreenTests.cs (4)
107yield return new object[] { new Point(-1, -2) }; 108yield return new object[] { new Point(0, 0) }; 109yield return new object[] { new Point(1, 2) }; 110yield return new object[] { new Point(int.MaxValue, int.MaxValue) };
System\Windows\Forms\ScrollableControlTests.cs (33)
2296yield return new object[] { true, width, height, 0, 0, new Point(0, 0), scrollableSize }; 2297yield return new object[] { false, width, height, 0, 0, new Point(0, 0), nonScrollableSize }; 2299yield return new object[] { true, width, height, -10, 0, new Point(-10, 0), scrollableSize }; 2300yield return new object[] { false, width, height, -10, 0, new Point(0, 0), nonScrollableSize }; 2302yield return new object[] { true, width, height, 0, -20, new Point(0, -20), scrollableSize }; 2303yield return new object[] { false, width, height, 0, -20, new Point(0, 0), nonScrollableSize }; 2305yield return new object[] { true, width, height, -10, -20, new Point(-10, -20), scrollableSize }; 2306yield return new object[] { false, width, height, -10, -20, new Point(0, 0), nonScrollableSize }; 2309yield return new object[] { true, width, height, -100, -20, new Point(-30, -20), scrollableSize }; 2310yield return new object[] { false, width, height, -100, -20, new Point(0, 0), nonScrollableSize }; 2312yield return new object[] { true, width, height, -10, -200, new Point(-10, -70), scrollableSize }; 2313yield return new object[] { false, width, height, -10, -200, new Point(0, 0), nonScrollableSize }; 2316yield return new object[] { true, width, height, 1, 20, new Point(0, 0), scrollableSize }; 2317yield return new object[] { false, width, height, 1, 20, new Point(0, 0), nonScrollableSize }; 2319yield return new object[] { true, width, height, 10, 2, new Point(0, 0), scrollableSize }; 2320yield return new object[] { false, width, height, 10, 2, new Point(0, 0), nonScrollableSize }; 2357yield return new object[] { true, width, height, 0, 0, new Point(0, 0), scrollableSize, 1 }; 2358yield return new object[] { false, width, height, 0, 0, new Point(0, 0), nonScrollableSize, 0 }; 2360yield return new object[] { true, width, height, -10, 0, new Point(-10, 0), scrollableSize, 1 }; 2361yield return new object[] { false, width, height, -10, 0, new Point(0, 0), nonScrollableSize, 0 }; 2363yield return new object[] { true, width, height, 0, -20, new Point(0, -20), scrollableSize, 1 }; 2364yield return new object[] { false, width, height, 0, -20, new Point(0, 0), nonScrollableSize, 0 }; 2366yield return new object[] { true, width, height, -10, -20, new Point(-10, -20), scrollableSize, 1 }; 2367yield return new object[] { false, width, height, -10, -20, new Point(0, 0), nonScrollableSize, 0 }; 2370yield return new object[] { true, width, height, -100, -20, new Point(-47, -20), scrollableSize, 1 }; 2371yield return new object[] { false, width, height, -100, -20, new Point(0, 0), nonScrollableSize, 0 }; 2373yield return new object[] { true, width, height, -10, -200, new Point(-10, -87), scrollableSize, 1 }; 2374yield return new object[] { false, width, height, -10, -200, new Point(0, 0), nonScrollableSize, 0 }; 2377yield return new object[] { true, width, height, 1, 20, new Point(0, 0), scrollableSize, 1 }; 2378yield return new object[] { false, width, height, 1, 20, new Point(0, 0), nonScrollableSize, 0 }; 2380yield return new object[] { true, width, height, 10, 2, new Point(0, 0), scrollableSize, 1 }; 2381yield return new object[] { false, width, height, 10, 2, new Point(0, 0), nonScrollableSize, 0 }; 2552public Rectangle ExpectedSize => new(new Point(0, 0), DefaultSize);
System\Windows\Forms\SearchForVirtualItemEventArgsTests.cs (4)
14yield return new object[] { false, true, false, "", new Point(1, 2), SearchDirectionHint.Down, -1 }; 15yield return new object[] { false, true, false, "text", new Point(-1, -2), SearchDirectionHint.Down, 0 }; 16yield return new object[] { false, true, false, "text", new Point(1, 2), SearchDirectionHint.Down, 1 }; 41SearchForVirtualItemEventArgs e = new(false, true, false, "text", new Point(1, 2), SearchDirectionHint.Down, 1)
System\Windows\Forms\SplitterPanelTests.cs (15)
502yield return new object[] { new Point(0, 0), 0 }; 503yield return new object[] { new Point(-1, -2), 1 }; 504yield return new object[] { new Point(1, 0), 1 }; 505yield return new object[] { new Point(0, 2), 1 }; 506yield return new object[] { new Point(1, 2), 1 }; 605control.Location = new Point(1, 2); 606Assert.Equal(new Point(1, 2), control.Location); 611control.Location = new Point(1, 2); 612Assert.Equal(new Point(1, 2), control.Location); 617control.Location = new Point(2, 2); 618Assert.Equal(new Point(2, 2), control.Location); 623control.Location = new Point(2, 3); 624Assert.Equal(new Point(2, 3), control.Location); 631control.Location = new Point(1, 2); 632Assert.Equal(new Point(1, 2), control.Location);
System\Windows\Forms\SplitterTests.cs (1)
1210Location = new Point(50, 0)
System\Windows\Forms\TabControlTests.cs (21)
84Assert.Equal(new Point(6, 3), control.Padding); 1711yield return new object[] { new Point(0, 0) }; 1712yield return new object[] { new Point(0, 16) }; 1713yield return new object[] { new Point(16, 0) }; 1714yield return new object[] { new Point(16, 16) }; 1770control.Padding = new Point(1, 0); 1771Assert.Equal(new Point(1, 0), control.Padding); 1774control.Padding = new Point(0, 1); 1775Assert.Equal(new Point(0, 1), control.Padding); 1778control.Padding = new Point(1, 2); 1779Assert.Equal(new Point(1, 2), control.Padding); 1783Assert.Equal(new Point(6, 3), control.Padding); 1794control.Padding = new Point(1, 0); 1795Assert.Equal(new Point(1, 0), control.Padding); 1798control.Padding = new Point(0, 1); 1799Assert.Equal(new Point(0, 1), control.Padding); 1802control.Padding = new Point(1, 2); 1803Assert.Equal(new Point(1, 2), control.Padding); 1807Assert.Equal(new Point(6, 3), control.Padding); 1815Assert.Throws<ArgumentOutOfRangeException>("value", () => control.Padding = new Point(-1, 1)); 1822Assert.Throws<ArgumentOutOfRangeException>("value", () => control.Padding = new Point(1, -1));
System\Windows\Forms\TabPageTests.cs (45)
1860yield return new object[] { new Point(0, 0), 0 }; 1861yield return new object[] { new Point(-1, -2), 1 }; 1862yield return new object[] { new Point(1, 0), 1 }; 1863yield return new object[] { new Point(0, 2), 1 }; 1864yield return new object[] { new Point(1, 2), 1 }; 2042yield return new object[] { resizeRedraw, new Point(0, 0), 0 }; 2043yield return new object[] { resizeRedraw, new Point(-1, -2), 1 }; 2044yield return new object[] { resizeRedraw, new Point(1, 0), 1 }; 2045yield return new object[] { resizeRedraw, new Point(0, 2), 1 }; 2046yield return new object[] { resizeRedraw, new Point(1, 2), 1 }; 2142yield return new object[] { resizeRedraw, new Point(0, 0) }; 2143yield return new object[] { resizeRedraw, new Point(-1, -2) }; 2144yield return new object[] { resizeRedraw, new Point(1, 0) }; 2145yield return new object[] { resizeRedraw, new Point(0, 2) }; 2146yield return new object[] { resizeRedraw, new Point(1, 2) }; 2292control.Location = new Point(1, 2); 2293Assert.Equal(new Point(1, 2), control.Location); 2297control.Location = new Point(1, 2); 2298Assert.Equal(new Point(1, 2), control.Location); 2302control.Location = new Point(2, 3); 2303Assert.Equal(new Point(2, 3), control.Location); 2329control.Location = new Point(1, 2); 2330Assert.Equal(new Point(1, 2), control.Location); 2335control.Location = new Point(1, 2); 2336Assert.Equal(new Point(1, 2), control.Location); 2341control.Location = new Point(2, 2); 2342Assert.Equal(new Point(2, 2), control.Location); 2347control.Location = new Point(2, 3); 2348Assert.Equal(new Point(2, 3), control.Location); 2355control.Location = new Point(1, 2); 2356Assert.Equal(new Point(1, 2), control.Location); 2368control.Location = new Point(1, 0); 2369Assert.Equal(new Point(1, 0), control.Location); 2372control.Location = new Point(0, 1); 2373Assert.Equal(new Point(0, 1), control.Location); 2376control.Location = new Point(1, 2); 2377Assert.Equal(new Point(1, 2), control.Location); 2381Assert.Equal(new Point(1, 2), control.Location); 2396control.Location = new Point(1, 0); 2397Assert.Equal(new Point(1, 0), control.Location); 2400control.Location = new Point(0, 1); 2401Assert.Equal(new Point(0, 1), control.Location); 2404control.Location = new Point(1, 2); 2405Assert.Equal(new Point(1, 2), control.Location); 2409Assert.Equal(new Point(1, 2), control.Location);
System\Windows\Forms\TextBoxBase.TextBoxBaseUiaTextProviderTests.cs (21)
388yield return new object[] { new Size(50, 20), "Some test text for testing", false, 0, new Point(1, 0) }; 389yield return new object[] { new Size(50, 20), "Some test text for testing", false, 15, new Point(79, 0) }; 390yield return new object[] { new Size(50, 20), "Some test text for testing", true, 15, new Point(27, 30) }; 391yield return new object[] { new Size(100, 60), "This is a\r\nlong long text\r\nfor testing\r\nGetPositionFromChar method", true, 0, new Point(4, 1) }; 392yield return new object[] { new Size(100, 60), "This is a\r\nlong long text\r\nfor testing\r\nGetPositionFromChar method", true, 6, new Point(31, 1) }; 393yield return new object[] { new Size(100, 60), "This is a\r\nlong long text\r\nfor testing\r\nGetPositionFromChar method", true, 26, new Point(78, 16) }; 426yield return new object[] { new Size(50, 20), "", false, 0, new Point(0, 0) }; 427yield return new object[] { new Size(50, 20), "Some test text", false, 100, new Point(0, 0) }; 428yield return new object[] { new Size(50, 20), "Some test text", false, -1, new Point(0, 0) }; 429yield return new object[] { new Size(50, 20), "Some test text", false, 12, new Point(71, 0) }; 430yield return new object[] { new Size(50, 20), "Some test text", true, 12, new Point(19, 30) }; 431yield return new object[] { new Size(100, 60), "Some test \n text", false, 10, new Point(56, 0) }; 432yield return new object[] { new Size(100, 60), "Some test \n text", true, 10, new Point(59, 1) }; 433yield return new object[] { new Size(100, 60), "Some test \r\n text", false, 10, new Point(56, 0) }; 434yield return new object[] { new Size(100, 60), "Some test \r\n text", true, 10, new Point(59, 1) }; 435yield return new object[] { new Size(100, 60), "Some test \r\n text", false, 12, new Point(60, 0) }; 436yield return new object[] { new Size(100, 60), "Some test \r\n text", true, 12, new Point(7, 16) }; 437yield return new object[] { new Size(100, 60), "Some test \t text", false, 10, new Point(57, 0) }; 438yield return new object[] { new Size(100, 60), "Some test \t text", true, 10, new Point(60, 1) }; 439yield return new object[] { new Size(40, 60), "Some test \t text", true, 12, new Point(8, 46) }; 782yield return new object[] { new Point(10, 10) };
System\Windows\Forms\TextBoxRendererTests.cs (3)
44? Validate.Polygon16(new(new(1, 1), new(bounds.Width - 2, bounds.Height - 2))) 74? Validate.Polygon16(new(new(1, 1), new(bounds.Width - 2, bounds.Height - 2))) 110? Validate.Polygon16(new(new(1, 1), new(bounds.Width - 2, bounds.Height - 2)))
System\Windows\Forms\TextRendererTests.cs (20)
22yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Red }; 23yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Black }; 24yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.White }; 25yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Transparent }; 26yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Empty }; 51yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Red, Color.Blue }; 52yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Black, Color.Blue }; 53yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.White, Color.Blue }; 54yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Transparent, Color.Blue }; 55yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Empty, Color.Blue }; 85yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Red, TextFormatFlags.Default, }; 86yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Black, TextFormatFlags.Default, }; 87yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.White, TextFormatFlags.Default, }; 88yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Transparent, TextFormatFlags.Default, }; 89yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Empty, TextFormatFlags.Default, }; 122yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Red, Color.Blue, TextFormatFlags.Default, }; 123yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Black, Color.Blue, TextFormatFlags.Default, }; 124yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.White, Color.Blue, TextFormatFlags.Default, }; 125yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Transparent, Color.Blue, TextFormatFlags.Default, }; 126yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Empty, Color.Blue, TextFormatFlags.Default, };
System\Windows\Forms\ToolStripContentPanelTests.cs (15)
901yield return new object[] { new Point(0, 0), 0 }; 902yield return new object[] { new Point(-1, -2), 1 }; 903yield return new object[] { new Point(1, 0), 1 }; 904yield return new object[] { new Point(0, 2), 1 }; 905yield return new object[] { new Point(1, 2), 1 }; 1004control.Location = new Point(1, 2); 1005Assert.Equal(new Point(1, 2), control.Location); 1010control.Location = new Point(1, 2); 1011Assert.Equal(new Point(1, 2), control.Location); 1016control.Location = new Point(2, 2); 1017Assert.Equal(new Point(2, 2), control.Location); 1022control.Location = new Point(2, 3); 1023Assert.Equal(new Point(2, 3), control.Location); 1030control.Location = new Point(1, 2); 1031Assert.Equal(new Point(1, 2), control.Location);
System\Windows\Forms\ToolStripDropDownTests.cs (19)
1918yield return new object[] { new Point(0, 0), new Point(0, 0), 0 }; 1919yield return new object[] { new Point(-1, -2), new Point(0, 0), 0 }; 1920yield return new object[] { new Point(1, 0), new Point(1, 0), 1 }; 1921yield return new object[] { new Point(0, 2), new Point(0, 2), 1 }; 1922yield return new object[] { new Point(1, 2), new Point(1, 2), 1 }; 4033yield return new object[] { new HelpEventArgs(new Point(1, 2)) }; 4992toolStripDropDown.Show(control, new Point(x, y), direction); 4994toolStripDropDown.Location.Should().Be(new Point(x + 6, y + 27)); 5003toolStripDropDown.Show(new Point(x, y), direction); 5004Point expectedLocation = new(x, y); 5026toolStripDropDown.Show(control, new Point(x, y)); 5033toolStripDropDown.Location.Should().Be(new Point(x + 8, y + 31)); 5045toolStripDropDown.Show(new Point(x, y)); 5052toolStripDropDown.Location.Should().Be(new Point(x, y));
System\Windows\Forms\ToolStripItemTests.cs (2)
15419menuStrip1.MoveMouse(new MouseEventArgs(MouseButtons.None, 0, new Point(i, 5))); 15426menuStrip1.MoveMouse(new MouseEventArgs(MouseButtons.None, 0, new Point(i, 5)));
System\Windows\Forms\ToolStripPanelRow.ToolStripPanelRowControlCollectionTests.cs (2)
26toolStrip1.Location = new Point(3, 0); 27toolStrip2.Location = new Point(148, 0);
System\Windows\Forms\ToolStripSplitStackDragDropHandlerTests.cs (2)
117Point point = new(10, 10); 127Point point = new(10, 10);
System\Windows\Forms\ToolStripTests.cs (36)
6677yield return new object[] { new ScrollEventArgs(scrollEventType, 100, 200), new Point(x, 101), new Point(0, 100) }; 6678yield return new object[] { new ScrollEventArgs(scrollEventType, 200, 100), new Point(x, -99), new Point(0, -100) }; 6679yield return new object[] { new ScrollEventArgs(scrollEventType, 100, 100), new Point(x, 1), new Point(0, 0) }; 6682yield return new object[] { new ScrollEventArgs(ScrollEventType.ThumbTrack, 100, 200), new Point(x, 1), new Point(0, 0) }; 6683yield return new object[] { new ScrollEventArgs(ScrollEventType.ThumbTrack, 200, 100), new Point(x, 1), new Point(0, 0) }; 6684yield return new object[] { new ScrollEventArgs(ScrollEventType.ThumbTrack, 0, 0), new Point(x, 1), new Point(0, 0) }; 6722yield return new object[] { new ScrollEventArgs(scrollEventType, 100, 200), new Point(x, 101), new Point(0, 100), 1 }; 6723yield return new object[] { new ScrollEventArgs(scrollEventType, 200, 100), new Point(x, -99), new Point(0, -100), 1 }; 6724yield return new object[] { new ScrollEventArgs(scrollEventType, 100, 100), new Point(x, 1), new Point(0, 0), 0 }; 6727yield return new object[] { new ScrollEventArgs(ScrollEventType.ThumbTrack, 100, 200), new Point(x, 1), new Point(0, 0), 0 }; 6728yield return new object[] { new ScrollEventArgs(ScrollEventType.ThumbTrack, 200, 100), new Point(x, 1), new Point(0, 0), 0 }; 6729yield return new object[] { new ScrollEventArgs(ScrollEventType.ThumbTrack, 0, 0), new Point(x, 1), new Point(0, 0), 0 }; 6984yield return new object[] { new Point(1, 0), 1 }; 6985yield return new object[] { new Point(0, 2), 1 }; 6986yield return new object[] { new Point(1, 2), 1 }; 6987yield return new object[] { new Point(0, 0), 0 }; 6988yield return new object[] { new Point(0, 0), 0 }; 6989yield return new object[] { new Point(0, 0), 0 }; 6990yield return new object[] { new Point(0, 0), 0 }; 6991yield return new object[] { new Point(0, 0), 0 }; 6992yield return new object[] { new Point(0, 0), 0 }; 6993yield return new object[] { new Point(1, 2), 1 }; 7378var child = toolStrip.GetChildAtPoint(new Point(x, y)); 7391var child = toolStrip.GetChildAtPoint(new Point(10, 10), skipValue);
System\Windows\Forms\ToolStripTextBoxTests.cs (5)
729char result = _toolStripTextBox.GetCharFromPosition(new Point(x, y)); 737int result = _toolStripTextBox.GetCharIndexFromPosition(new Point(1, 1)); 778_toolStripTextBox.GetPositionFromCharIndex(0).Should().Be(new Point(1, 0)); 779_toolStripTextBox.GetPositionFromCharIndex(5).Should().Be(new Point(29, 0)); 780_toolStripTextBox.GetPositionFromCharIndex(10).Should().Be(new Point(57, 0));
System\Windows\Forms\TreeNodeMouseClickEventArgsTests.cs (1)
29Assert.Equal(new Point(x, y), e.Location);
System\Windows\Forms\TreeViewTests.cs (39)
4757yield return new object[] { new Point(int.MinValue, int.MinValue) }; 4758yield return new object[] { new Point(-1, -2) }; 4759yield return new object[] { new Point(-1, 0) }; 4760yield return new object[] { new Point(-1, 2) }; 4761yield return new object[] { new Point(0, -2) }; 4762yield return new object[] { new Point(0, 0) }; 4763yield return new object[] { new Point(0, 2) }; 4764yield return new object[] { new Point(1, -2) }; 4765yield return new object[] { new Point(1, 0) }; 4766yield return new object[] { new Point(1, 2) }; 4767yield return new object[] { new Point(int.MaxValue, int.MaxValue) }; 4785yield return new object[] { new Point(0, 0) }; 4786yield return new object[] { new Point(20, 0) }; 4806yield return new object[] { new Point(int.MinValue, int.MinValue) }; 4807yield return new object[] { new Point(-1, -2) }; 4808yield return new object[] { new Point(-1, 0) }; 4809yield return new object[] { new Point(-1, 2) }; 4810yield return new object[] { new Point(0, -2) }; 4811yield return new object[] { new Point(1, -2) }; 4812yield return new object[] { new Point(int.MaxValue, int.MaxValue) }; 5082yield return new object[] { new Point(int.MinValue, int.MinValue), TreeViewHitTestLocations.AboveClientArea | TreeViewHitTestLocations.LeftOfClientArea }; 5083yield return new object[] { new Point(-1, -2), TreeViewHitTestLocations.AboveClientArea | TreeViewHitTestLocations.LeftOfClientArea }; 5084yield return new object[] { new Point(-1, 0), TreeViewHitTestLocations.LeftOfClientArea }; 5085yield return new object[] { new Point(-1, 2), TreeViewHitTestLocations.LeftOfClientArea }; 5086yield return new object[] { new Point(0, -2), TreeViewHitTestLocations.AboveClientArea }; 5087yield return new object[] { new Point(0, 0), TreeViewHitTestLocations.None }; 5088yield return new object[] { new Point(0, 2), TreeViewHitTestLocations.None }; 5089yield return new object[] { new Point(1, -2), TreeViewHitTestLocations.AboveClientArea }; 5090yield return new object[] { new Point(1, 0), TreeViewHitTestLocations.None }; 5091yield return new object[] { new Point(1, 2), TreeViewHitTestLocations.None }; 5092yield return new object[] { new Point(int.MaxValue, int.MaxValue), TreeViewHitTestLocations.BelowClientArea | TreeViewHitTestLocations.RightOfClientArea }; 5114yield return new object[] { new Point(0, 0), TreeViewHitTestLocations.Indent }; 5138yield return new object[] { new Point(int.MinValue, int.MinValue), TreeViewHitTestLocations.AboveClientArea | TreeViewHitTestLocations.LeftOfClientArea }; 5139yield return new object[] { new Point(-1, -2), TreeViewHitTestLocations.AboveClientArea | TreeViewHitTestLocations.LeftOfClientArea }; 5140yield return new object[] { new Point(-1, 0), TreeViewHitTestLocations.LeftOfClientArea }; 5141yield return new object[] { new Point(-1, 2), TreeViewHitTestLocations.LeftOfClientArea }; 5142yield return new object[] { new Point(0, -2), TreeViewHitTestLocations.AboveClientArea }; 5143yield return new object[] { new Point(1, -2), TreeViewHitTestLocations.AboveClientArea }; 5144yield return new object[] { new Point(int.MaxValue, int.MaxValue), TreeViewHitTestLocations.BelowClientArea | TreeViewHitTestLocations.RightOfClientArea };
System\Windows\Forms\WebBrowserTests.cs (2)
4524Point p = control.PointToScreen(new Point(5, 5)); 4598Point p = control.PointToScreen(new Point(5, 5));
TextBoxBaseTests.cs (25)
4247yield return new object[] { new Point(-1, -2) }; 4248yield return new object[] { new Point(1, 2) }; 4268Assert.NotEqual('\0', control.GetCharFromPosition(new Point(10, 2))); 4275yield return new object[] { new Point(-1, -2), "t" }; 4276yield return new object[] { new Point(1, 2), "T" }; 4277yield return new object[] { new Point(int.MaxValue, int.MaxValue), "t" }; 4327Assert.NotEqual('\0', control.GetCharFromPosition(new Point(10, 2))); 4360yield return new object[] { new Point(-1, -2) }; 4361yield return new object[] { new Point(1, 2) }; 4381int index = control.GetCharIndexFromPosition(new Point(10, 2)); 4389yield return new object[] { new Point(-1, -2), 3 }; 4390yield return new object[] { new Point(1, 2), 0 }; 4391yield return new object[] { new Point(int.MaxValue, int.MaxValue), 3 }; 4441int index = control.GetCharIndexFromPosition(new Point(10, 2)); 4500Assert.Equal(expected, control.GetCharIndexFromPosition(new Point(1, 2))); 4953yield return new object[] { (IntPtr)1, new Point(1, 0) }; 4954yield return new object[] { PARAM.FromLowHigh(1, 2), new Point(1, 2) }; 4955yield return new object[] { PARAM.FromLowHigh(-1, -2), new Point(-1, -2) }; 4956yield return new object[] { PARAM.FromLowHigh(int.MaxValue, int.MaxValue), new Point(-1, -1) }; 6973Point p = control.PointToScreen(new Point(5, 5)); 7054Point p = control.PointToScreen(new Point(5, 5)); 7812yield return new object[] { new Size(50, 20), false, 0, new Point(1, 0) }; 7813yield return new object[] { new Size(50, 20), false, 15, new Point(79, 0) }; 7814yield return new object[] { new Size(50, 50), true, 12, new Point(14, 31) }; 7815yield return new object[] { new Size(100, 50), true, 22, new Point(37, 16) };
System.Windows.Forms.UI.IntegrationTests (48)
AnchorLayoutTests.cs (1)
281Location = new Point(20, 30),
ButtonTests.cs (8)
120Point mouseDragHandleOnForm = new(form.DisplayRectangle.Right, form.DisplayRectangle.Top + form.DisplayRectangle.Height / 2); 144Point mouseDragHandleOnForm = new(form.DisplayRectangle.Left + form.DisplayRectangle.Width / 2, form.DisplayRectangle.Bottom); 170Point mouseDragHandleOnForm = new(form.DisplayRectangle.Right, form.DisplayRectangle.Top + form.DisplayRectangle.Height / 2); 200Point mouseDragHandleOnForm = new(form.DisplayRectangle.Left + form.DisplayRectangle.Width / 2, form.DisplayRectangle.Bottom); 263Point virtualPoint = new((int)Math.Round(65535.0 / horizontalResolution * centerOnScreen.X), 299Point virtualPoint = new((int)Math.Round(65535.0 / horizontalResolution * centerOnScreen.X), (int)Math.Round(65535.0 / verticalResolution * centerOnScreen.Y)); 300Point virtualPoint1 = new((int)Math.Round(65535.0 / horizontalResolution * centerOnScreen1.X), (int)Math.Round(65535.0 / verticalResolution * centerOnScreen1.Y)); 403Location = new Point(0, 0),
Dpi\SplitContainerTests.cs (1)
49Location = new Point(0, 0),
Dpi\ToolStripItemTests.Dpi.cs (1)
42toolStrip.Location = new Point(0, 0);
DragDropTests.cs (19)
42var targetMousePosition = ToVirtualPoint(form.ListDragTarget.PointToScreen(new Point(20, 20))); 103Point endCoordinates = new(startCoordinates.X + 5, startCoordinates.Y + 5); 169WaitForExplorer(DragDrop, new Point(dragDropForm.Location.X + dragDropForm.Width, dragDropForm.Location.Y)); 318Point endCoordinates = new(startCoordinates.X + 5, startCoordinates.Y + 5); 352e.CursorOffset = new Point(0, 48); 431Point startCoordinates = form.PictureBoxDragSource.PointToScreen(new Point(20, 20)); 467Point toolStripItemCoordinates = form.ToolStrip.PointToScreen(new Point(5, 5)); 528Point endCoordinates = new(startCoordinates.X + 5, startCoordinates.Y + 5); 594Location = new Point(0, 0), 666ListDragSource.Location = new Point(10, 17); 676ListDragTarget.Location = new Point(154, 17); 684_useCustomCursorsCheck.Location = new Point(10, 243); 689_dropLocationLabel.Location = new Point(154, 245); 721new Point(e.X - (dragSize.Width / 2), 867ListDragTarget.IndexFromPoint(ListDragTarget.PointToClient(new Point(e.X, e.Y))); 970PictureBoxDragSource.Location = new Point(10, 45); 979RichTextBoxDropTarget.Location = new Point(145, 45); 1090dragAcceptItem.DoDragDrop(data, DragDropEffects.All, _dragAcceptBmp, new Point(0, 16), false); 1150PictureBoxDragSource.DoDragDrop(data, DragDropEffects.All, _dragImage, new Point(0, 16), false);
FormTests.cs (2)
34form.Location = new Point(20, 21); 93form.Location = new Point(20, 21);
ImageListTests.cs (1)
102Location = new Point(12, 33),
Infra\ControlTestBase.cs (2)
184return new Point( 397return new Point(GetMiddle(cell.Right, cell.Left), GetMiddle(cell.Top, cell.Bottom));
ListBoxAccesibleObjectTests.cs (2)
39Point testPoint = listBox.PointToScreen(new Point(0, listBox.ClientRectangle.Height - 1)); 55Point testPoint = listBox.PointToScreen(new Point(itemBounds.Left + 1, itemBounds.Top + 1));
MonthCalendarAccessibleObjectTests.cs (1)
46Location = new Point(0, 0)
MonthCalendarTests.cs (2)
208Location = new Point(0, 0), 232Location = new Point(0, 0),
PropertyGridTests.cs (1)
229Point newLocation = new(10, 20);
RichTextBoxTests.cs (1)
253Location = new Point(100, 100),
TabControlTests.cs (6)
22bool result = await IsHoveredWithMouseAsync(form, tabControl, new(10, 10)); 34bool result = await IsHoveredWithMouseAsync(form, tabControl, new(60, 10)); 46bool result = await IsHoveredWithMouseAsync(form, tabControl, new(300, 300)); 61bool result = await IsHoveredWithMouseAsync(form, tabControl, new(1000, 1000), assertCorrectLocation: false); 85Location = new Point(0, 0) 135Location = new Point(0, 0)
TrimTest (4)
Form1.Designer.cs (4)
47splitContainer1.Location = new Point(0, 0); 66textBox1.Location = new Point(0, 0); 81comboBox1.Location = new Point(37, 37); 88button1.Location = new Point(76, 108);
TrimTestBinaryDeserialization (1)
Form1.Designer.cs (1)
49listView1.Location = new Point(0, 0);
VisualBasicRuntimeTest (2)
Program.cs (2)
135if (expectedValue == new Point(0, 0)) 159if (expectedValue == new Point(0, 0))
WindowsFormsIntegration (1)
System\Windows\Integration\WindowsFormsHost.cs (1)
821this.Location = new SD.Point(short.MinValue, short.MinValue);
WinFormsControlsTest (303)
AnchorLayoutTests.Designer.cs (9)
47this.button1.Location = new System.Drawing.Point(12, 12); 57this.button2.Location = new System.Drawing.Point(338, 12); 67this.button3.Location = new System.Drawing.Point(676, 12); 77this.button4.Location = new System.Drawing.Point(12, 198); 87this.button5.Location = new System.Drawing.Point(12, 404); 99this.button6.Location = new System.Drawing.Point(338, 198); 109this.button7.Location = new System.Drawing.Point(676, 198); 119this.button8.Location = new System.Drawing.Point(338, 404); 129this.button9.Location = new System.Drawing.Point(676, 404);
Calendar.Designer.cs (16)
63this.monthCalendar1.Location = new System.Drawing.Point(18, 80); 73this.minDateDateTimePicker.Location = new System.Drawing.Point(18, 334); 81this.setMinDateButton.Location = new System.Drawing.Point(18, 367); 93this.label1.Location = new System.Drawing.Point(18, 308); 103this.label2.Location = new System.Drawing.Point(19, 422); 112this.setMaxDateButton.Location = new System.Drawing.Point(19, 481); 123this.maxDateDateTimePicker.Location = new System.Drawing.Point(19, 448); 132this.label3.Location = new System.Drawing.Point(301, 336); 151this.daysOfWeekComboBox.Location = new System.Drawing.Point(301, 363); 160this.label4.Location = new System.Drawing.Point(18, 50); 169this.resetMinDateButton.Location = new System.Drawing.Point(146, 367); 180this.resetMaxDateButton.Location = new System.Drawing.Point(146, 481); 192this.showWeekNumbersCheckBox.Location = new System.Drawing.Point(301, 452); 204this.showTodayCheckBox.Location = new System.Drawing.Point(301, 484); 216this.label5.Location = new System.Drawing.Point(301, 422); 224this.currentDPILabel1.Location = new System.Drawing.Point(18, 18);
ChartControl.Designer.cs (4)
142this.chart1.Location = new System.Drawing.Point(16, 64); 215this.chart2.Location = new System.Drawing.Point(752, 64); 288this.chart3.Location = new System.Drawing.Point(16, 522); 357this.chart4.Location = new System.Drawing.Point(752, 522);
CollectionEditors.Designer.cs (7)
46this.comboBox1.Location = new System.Drawing.Point(4, 64); 54this.maskedTextBox1.Location = new System.Drawing.Point(4, 91); 62this.textBox1.Location = new System.Drawing.Point(4, 12); 71this.listView1.Location = new System.Drawing.Point(4, 117); 83this.propertyGrid1.Location = new System.Drawing.Point(132, 37); 91this.label1.Location = new System.Drawing.Point(132, 13); 99this.domainUpDown1.Location = new System.Drawing.Point(4, 38);
ComboBoxes.Designer.cs (16)
59this.comboBox1.Location = new System.Drawing.Point(21, 22); 79this.comboBox2.Location = new System.Drawing.Point(148, 22); 98this.comboBox3.Location = new System.Drawing.Point(21, 59); 113this.comboBox4.Location = new System.Drawing.Point(148, 59); 124this.comboBox5.Location = new System.Drawing.Point(21, 96); 137this.comboBox6.Location = new System.Drawing.Point(148, 96); 149this.comboBox7.Location = new System.Drawing.Point(21, 136); 162this.comboBox8.Location = new System.Drawing.Point(148, 136); 175this.comboBox9.Location = new System.Drawing.Point(696, 22); 188this.comboBox10.Location = new System.Drawing.Point(560, 22); 202this.comboBox11.Location = new System.Drawing.Point(419, 22); 222this.comboBox12.Location = new System.Drawing.Point(275, 22); 231this.dataBoundComboBox.Location = new System.Drawing.Point(836, 22); 239this.currentDPILabel1.Location = new System.Drawing.Point(18, 173); 249this.label1.Location = new System.Drawing.Point(18, 6); 258this.dataBoundLabel.Location = new System.Drawing.Point(836, 6);
ComboBoxesWithScrollBars.Designer.cs (22)
74this.comboBox1.Location = new System.Drawing.Point(37, 348); 86this.comboBox2.Location = new System.Drawing.Point(206, 348); 98this.comboBox3.Location = new System.Drawing.Point(370, 348); 113this.changeHeightGroupBox1.Location = new System.Drawing.Point(14, 14); 125this.label1.Location = new System.Drawing.Point(23, 28); 134this.changeDDH_UpDown1.Location = new System.Drawing.Point(23, 61); 150this.label2.Location = new System.Drawing.Point(192, 28); 159this.changeCBHeight_UpDown2.Location = new System.Drawing.Point(192, 61); 173this.label3.Location = new System.Drawing.Point(356, 28); 182this.changeDDH_UpDown3.Location = new System.Drawing.Point(356, 61); 200this.changeMaxDropDownItemsGroupBox2.Location = new System.Drawing.Point(14, 121); 211this.maxDropDownItemsUpDown1.Location = new System.Drawing.Point(23, 22); 224this.maxDropDownItemsUpDown2.Location = new System.Drawing.Point(192, 22); 238this.maxDropDownItemsUpDown3.Location = new System.Drawing.Point(356, 22); 254this.changeIntegralHeightGroupBox3.Location = new System.Drawing.Point(14, 192); 266this.integralHeightCheckBox1.Location = new System.Drawing.Point(23, 33); 277this.integralHeightCheckBox2.Location = new System.Drawing.Point(192, 33); 288this.integralHeightCheckBox3.Location = new System.Drawing.Point(356, 33); 301this.changeHeightsStyleGroupBox4.Location = new System.Drawing.Point(14, 262); 313this.useDifferentHeightsCheckBox1.Location = new System.Drawing.Point(23, 33); 324this.useDifferentHeightsCheckBox2.Location = new System.Drawing.Point(192, 33); 335this.useDifferentHeightsCheckBox3.Location = new System.Drawing.Point(356, 33);
CustomComCtl32Button.cs (3)
30Location = new Point(1, 0) 40Location = new Point(1, 30) 49Location = new Point(1, 60)
DataGridViewInVirtualModeTest.Designer.cs (1)
53this.dataGridView1.Location = new System.Drawing.Point(0, 15);
DataGridViewTest.Designer.cs (6)
84this.dataGridView1.Location = new System.Drawing.Point(0, 0); 138this.currentDPILabel1.Location = new System.Drawing.Point(12, 174); 149this.changeFontButton.Location = new System.Drawing.Point(12, 234); 160this.numericUpDown1.Location = new System.Drawing.Point(89, 208); 186this.label1.Location = new System.Drawing.Point(12, 210); 197this.resetFontButton.Location = new System.Drawing.Point(192, 234);
DateTimePicker.Designer.cs (5)
45this.dateTimePicker1.Location = new Point(31, 32); 55this.dateTimePicker2.Location = new Point(31, 78); 66this.dateTimePicker3.Location = new Point(31, 128); 76this.dateTimePicker4.Location = new Point(31, 175); 86this.dateTimePicker5.Location = new Point(31, 221);
DesignTimeAligned.Designer.cs (5)
44this.label1.Location = new System.Drawing.Point(72, 18); 55this.label2.Location = new System.Drawing.Point(72, 76); 65this.button1.Location = new System.Drawing.Point(122, 66); 76this.textBox1.Location = new System.Drawing.Point(122, 12); 86this.currentDPILabel1.Location = new System.Drawing.Point(25, 159);
Dialogs.Designer.cs (8)
54this.propertyGrid1.Location = new System.Drawing.Point(171, 0); 63this.btnOpenFileDialog.Location = new System.Drawing.Point(3, 3); 73this.btnColorDialog.Location = new System.Drawing.Point(3, 32); 83this.btnThreadExceptionDialog.Location = new System.Drawing.Point(3, 32); 93this.btnPrintDialog.Location = new System.Drawing.Point(3, 32); 103this.btnFolderBrowserDialog.Location = new System.Drawing.Point(3, 61); 113this.btnSaveFileDialog.Location = new System.Drawing.Point(3, 3); 130this.flowLayoutPanel1.Location = new System.Drawing.Point(0, 0);
DockLayoutTests.Designer.cs (5)
46this.button1.Location = new System.Drawing.Point(0, 0); 56this.button3.Location = new System.Drawing.Point(688, 0); 66this.button2.Location = new System.Drawing.Point(112, 0); 76this.button4.Location = new System.Drawing.Point(112, 384); 86this.button5.Location = new System.Drawing.Point(112, 89);
DragDrop.cs (6)
183pictureBox.DoDragDrop(data, DragDropEffects.All, _nyanCatBmp, new Point(0, 96), true); 196e.CursorOffset = new Point(0, 111); 204e.CursorOffset = new Point(0, 96); 546toolStripItem.DoDragDrop(data, DragDropEffects.All, _dragAcceptBmp, new Point(0, 96), true); 558toolStripItem.DoDragDrop(data, DragDropEffects.All, _nyanCatBmp, new Point(0, 96), true); 570toolStripItem.DoDragDrop(data, DragDropEffects.All, _nyanCatAscii301Bmp, new Point(0, 111), false);
DragDrop.Designer.cs (11)
71tableLayoutPanel1.Location = new Point(0, 0); 87textBox.Location = new Point(735, 3); 98richTextBox.Location = new Point(118, 3); 110pictureBox1.Location = new Point(3, 3); 121pictureBox2.Location = new Point(3, 115); 132pictureBox3.Location = new Point(3, 227); 143pictureBox4.Location = new Point(3, 339); 154pictureBox5.Location = new Point(3, 451); 168tableLayoutPanel2.Location = new Point(1046, 563); 178buttonOpenCats.Location = new Point(3, 3); 188buttonClear.Location = new Point(92, 3);
ErrorProviderTest.Designer.cs (7)
60this.label1.Location = new System.Drawing.Point(19, 26); 69this.label1_2.Location = new System.Drawing.Point(19, 41); 77this.textBox1.Location = new System.Drawing.Point(19, 60); 90this.label2.Location = new System.Drawing.Point(19, 100); 99this.label2_1.Location = new System.Drawing.Point(19, 115); 107this.textBox2.Location = new System.Drawing.Point(19, 135); 118this.submitButton.Location = new System.Drawing.Point(19, 180);
FormBorderStyles.Designer.cs (2)
37this.btnChangeFormBorderStyle.Location = new System.Drawing.Point(13, 13); 48this.lblFormBorderStyle.Location = new System.Drawing.Point(13, 43);
FormShowInTaskbar.cs (2)
20Location = new Point(10, 10), 41Location = new Point(10, 10),
ListBoxes.Designer.cs (20)
58this.label1.Location = new System.Drawing.Point(20, 10); 64this.listBox1.Location = new System.Drawing.Point(20, 40); 72this.textBox1.Location = new System.Drawing.Point(240, 40); 79this.addButton1.Location = new System.Drawing.Point(240, 80); 87this.deleteButton1.Location = new System.Drawing.Point(240, 110); 94this.label2.Location = new System.Drawing.Point(20, 200); 99this.listBox2.Location = new System.Drawing.Point(20, 240); 105this.textBox2.Location = new System.Drawing.Point(240, 240); 112this.addButton2.Location = new System.Drawing.Point(240, 300); 120this.deleteButton2.Location = new System.Drawing.Point(240, 330); 127this.label3.Location = new System.Drawing.Point(360, 10); 133this.listBox3.Location = new System.Drawing.Point(360, 40); 141this.textBox3.Location = new System.Drawing.Point(600, 40); 148this.addButton3.Location = new System.Drawing.Point(600, 80); 156this.deleteButton3.Location = new System.Drawing.Point(600, 110); 163this.label4.Location = new System.Drawing.Point(360, 200); 169this.listBox4.Location = new System.Drawing.Point(360, 240); 178this.textBox4.Location = new System.Drawing.Point(600, 240); 185this.addButton4.Location = new System.Drawing.Point(600, 300); 193this.deleteButton4.Location = new System.Drawing.Point(600, 330);
ListViewTest.cs (1)
57Bounds = new Rectangle(new Point(0, 0), new Size(400, 200)),
ListViewTest.Designer.cs (4)
79this.listView1.Location = new System.Drawing.Point(12, 33); 109this.btnClearListView1.Location = new System.Drawing.Point(13, 4); 119this.btnLoadImagesListView1.Location = new System.Drawing.Point(95, 4); 141this.btnReplaceImageListView1.Location = new System.Drawing.Point(176, 4);
MainForm.Designer.cs (1)
42this.overarchingFlowLayoutPanel.Location = new System.Drawing.Point(8, 8);
MdiChild.Designer.cs (8)
55this.panel1.Location = new System.Drawing.Point(0, 0); 64this.chkChildAlign.Location = new System.Drawing.Point(43, 121); 75this.chkRightToLeft.Location = new System.Drawing.Point(228, 121); 86this.btnOpenChild.Location = new System.Drawing.Point(40, 22); 97this.chkSetParentMenustrip.Location = new System.Drawing.Point(43, 73); 108this.chkSetMenustrip.Location = new System.Drawing.Point(228, 73); 119this.chkAddParentMenustrip.Location = new System.Drawing.Point(43, 97); 130this.chkAddMenustrip.Location = new System.Drawing.Point(228, 97);
MediaPlayer.Designer.cs (1)
45this.axWindowsMediaPlayer1.Location = new System.Drawing.Point(0, 0);
MenuStripAndCheckedListBox.Designer.cs (2)
73this.menuStrip1.Location = new System.Drawing.Point(0, 0); 274this.currentDpiLabel.Location = new System.Drawing.Point(22, 66);
MessageBoxes.Designer.cs (1)
42this.propertyGrid1.Location = new System.Drawing.Point(171, 0);
MultipleControls.cs (1)
22Bounds = new Rectangle(new Point(0, 0), new Size(400, 200)),
MultipleControls.Designer.cs (21)
65this.progressBar1.Location = new System.Drawing.Point(0, 0); 79this.button1.Location = new System.Drawing.Point(15, 50); 93this.label1.Location = new System.Drawing.Point(15, 84); 101this.maskedTextBox1.Location = new System.Drawing.Point(15, 104); 110this.richTextBox1.Location = new System.Drawing.Point(15, 135); 118this.textBox1.Location = new System.Drawing.Point(15, 264); 129this.tabControl1.Location = new System.Drawing.Point(141, 50); 140this.tabPage1.Location = new System.Drawing.Point(4, 24); 151this.comboBox1.Location = new System.Drawing.Point(22, 30); 160this.tabPage2.Location = new System.Drawing.Point(4, 24); 171this.checkBox1.Location = new System.Drawing.Point(8, 22); 181this.checkBox2.Location = new System.Drawing.Point(8, 50); 191this.radioButton2.Location = new System.Drawing.Point(19, 55); 201this.radioButton1.Location = new System.Drawing.Point(19, 29); 216this.groupBox1.Location = new System.Drawing.Point(146, 197); 232this.checkedListBox1.Location = new System.Drawing.Point(378, 49); 241this.numericUpDown1.Location = new System.Drawing.Point(378, 197); 252this.domainUpDown1.Location = new System.Drawing.Point(378, 227); 261this.linkLabel1.Location = new System.Drawing.Point(62, 84); 271this.linkLabel2.Location = new System.Drawing.Point(378, 255); 290this.checkedListBox2.Location = new System.Drawing.Point(525, 49);
Password.Designer.cs (20)
60textBox1.Location = new Point(26, 113); 68textBox2.Location = new Point(26, 191); 77label1.Location = new Point(26, 84); 86label2.Location = new Point(25, 163); 94maskedTextBox1.Location = new Point(316, 191); 102maskedTextBox2.Location = new Point(316, 113); 110maskedTextBox3.Location = new Point(316, 279); 120textBox3.Location = new Point(26, 279); 128button1.Location = new Point(26, 338); 138textBox4.Location = new Point(623, 251); 147textBox5.Location = new Point(623, 113); 157label3.Location = new Point(26, 27); 166label4.Location = new Point(310, 27); 175label5.Location = new Point(611, 27); 184label6.Location = new Point(611, 213); 193label7.Location = new Point(611, 84); 202label8.Location = new Point(310, 163); 211label9.Location = new Point(310, 84); 220label10.Location = new Point(26, 251); 229label11.Location = new Point(310, 251);
PictureBoxes.Designer.cs (3)
45this.pictureBox1.Location = new System.Drawing.Point(11, 39); 58this.btnloadImage.Location = new System.Drawing.Point(539, 9); 71this.imageUri.Location = new System.Drawing.Point(13, 11);
PropertyGrid.Designer.cs (1)
41this.propertyGrid1.Location = new System.Drawing.Point(0, 0);
RichTextBoxes.Designer.cs (2)
41this.richTextBox1.Location = new System.Drawing.Point(0, 0); 52this.richTextBox2.Location = new System.Drawing.Point(0, 104);
ScalingBeforeChanges.Designer.cs (1)
40this.checkBox1.Location = new System.Drawing.Point(39, 73);
ScrollableControls.Designer.cs (33)
97flowLayoutPanel1.Location = new Point(12, 33); 104button1.Location = new Point(3, 3); 113button2.Location = new Point(3, 32); 122button3.Location = new Point(3, 61); 131button4.Location = new Point(3, 90); 140button5.Location = new Point(3, 119); 150label1.Location = new Point(12, 9); 164panel1.Location = new Point(166, 37); 171button9.Location = new Point(24, 113); 180button8.Location = new Point(24, 87); 189button7.Location = new Point(3, 29); 198button6.Location = new Point(3, 3); 208label2.Location = new Point(200, 9); 217splitContainer1.Location = new Point(344, 40); 240button16.Location = new Point(3, 87); 249button15.Location = new Point(-11, 61); 258button10.Location = new Point(-31, 31); 267button14.Location = new Point(62, 112); 276button13.Location = new Point(48, 87); 285button12.Location = new Point(31, 61); 294button11.Location = new Point(16, 31); 304label3.Location = new Point(371, 4); 314tabControl1.Location = new Point(538, 47); 324tabPage1.Location = new Point(4, 24); 334button17.Location = new Point(11, 24); 343tabPage2.Location = new Point(4, 24); 354label4.Location = new Point(593, 9); 363label5.Location = new Point(29, 193); 371textBox1.Location = new Point(16, 247); 382treeView1.Location = new Point(170, 229); 409label6.Location = new Point(181, 193); 418label7.Location = new Point(389, 193); 429listBox1.Location = new Point(348, 229);
ScrollBars.Designer.cs (9)
51this.hScrollBar.Location = new System.Drawing.Point(37, 63); 59this.vScrollBar.Location = new System.Drawing.Point(275, 63); 67this.numericMinimum.Location = new System.Drawing.Point(37, 132); 75this.numericMaximum.Location = new System.Drawing.Point(37, 194); 89this.chbRightToLeft.Location = new System.Drawing.Point(37, 250); 100this.lblMinimum.Location = new System.Drawing.Point(37, 109); 109this.lblMaximum.Location = new System.Drawing.Point(37, 171); 118this.lblHValue.Location = new System.Drawing.Point(37, 33); 127this.lblVValue.Location = new System.Drawing.Point(275, 33);
Splitter.Designer.cs (1)
42this.splitContainer1.Location = new System.Drawing.Point(0, 0);
TextBoxes.Designer.cs (6)
44this.textBox.Location = new System.Drawing.Point(20, 20); 52this.RTLTextBox.Location = new System.Drawing.Point(160, 20); 61this.multilineTextBox.Location = new System.Drawing.Point(20, 60); 84this.RTLMultilineTextBox.Location = new System.Drawing.Point(160, 60); 108this.richTextBox.Location = new System.Drawing.Point(20, 190); 129this.RTLRichTextBox.Location = new System.Drawing.Point(160, 190);
ToolStripSeparatorPreferredSize.cs (3)
48_toolStrip1.Location = new System.Drawing.Point(0, 0); 71_buttonChangeOrientation.Location = new System.Drawing.Point(10, 75); 80_label1.Location = new System.Drawing.Point(10, 50);
ToolStripTests.Designer.cs (6)
88this.toolStrip1.Location = new System.Drawing.Point(0, 0); 108this.toolStrip2.Location = new System.Drawing.Point(0, 22); 120this.toolStrip3.Location = new System.Drawing.Point(0, 45); 132this.toolStrip4.Location = new System.Drawing.Point(0, 68); 381this.statusStrip1.Location = new System.Drawing.Point(0, 142); 391this.label1.Location = new System.Drawing.Point(12, 127);
ToolTipTests.Designer.cs (8)
52this.delaysNotSetButton.Location = new System.Drawing.Point(8, 411); 63this.automaticDelayButton.Location = new System.Drawing.Point(8, 9); 74this.autoPopDelayButton.Location = new System.Drawing.Point(8, 210); 92this.flowLayoutPanel1.Location = new System.Drawing.Point(0, 0); 100this.defaultAutomaticDelayButton.Location = new System.Drawing.Point(8, 612); 111this.defaultAutoPopDelayButton.Location = new System.Drawing.Point(8, 813); 122this.initialDelayButton.Location = new System.Drawing.Point(8, 1014); 134this.autoEllipsisButton.Location = new System.Drawing.Point(8, 1215);
TrackBars.Designer.cs (15)
60this.trackBar1.Location = new System.Drawing.Point(10, 30); 72this.rbHorizontal.Location = new System.Drawing.Point(18, 26); 85this.rbVertical.Location = new System.Drawing.Point(18, 56); 98this.gbOrientation.Location = new System.Drawing.Point(65, 78); 110this.chbRightToLeft.Location = new System.Drawing.Point(83, 176); 122this.chbRightToLeftLayout.Location = new System.Drawing.Point(83, 199); 134this.tickstyleNone.Location = new System.Drawing.Point(83, 222); 145this.numericMinimum.Location = new System.Drawing.Point(260, 104); 164this.numericMaximum.Location = new System.Drawing.Point(260, 149); 183this.numericFrequency.Location = new System.Drawing.Point(260, 193); 203this.lblMinimum.Location = new System.Drawing.Point(260, 87); 212this.lblMaximum.Location = new System.Drawing.Point(260, 131); 221this.lblTickFrequency.Location = new System.Drawing.Point(260, 176); 230this.lblTrackBarSize.Location = new System.Drawing.Point(166, 9); 239this.lblTrackBarValue.Location = new System.Drawing.Point(12, 9);