2110 references to Point
Accessibility_Core_App (221)
CommonControl1.Designer.cs (48)
105
this.groupBox1.Location = new System.Drawing.
Point
(32, 4);
117
this.button12.Location = new System.Drawing.
Point
(15, 309);
128
this.button1.Location = new System.Drawing.
Point
(240, 245);
140
this.button10.Location = new System.Drawing.
Point
(15, 105);
150
this.button9.Location = new System.Drawing.
Point
(15, 245);
161
this.button8.Location = new System.Drawing.
Point
(15, 175);
172
this.button3.Location = new System.Drawing.
Point
(15, 34);
184
this.button4.Location = new System.Drawing.
Point
(240, 309);
196
this.button5.Location = new System.Drawing.
Point
(240, 100);
207
this.button2.Location = new System.Drawing.
Point
(241, 34);
218
this.button6.Location = new System.Drawing.
Point
(240, 175);
233
this.groupBox2.Location = new System.Drawing.
Point
(32, 397);
249
this.checkedListBox1.Location = new System.Drawing.
Point
(299, 83);
258
this.label7.Location = new System.Drawing.
Point
(301, 32);
268
this.checkBox3.Location = new System.Drawing.
Point
(15, 137);
280
this.checkBox2.Location = new System.Drawing.
Point
(15, 83);
293
this.checkBox1.Location = new System.Drawing.
Point
(15, 30);
307
this.groupBox3.Location = new System.Drawing.
Point
(839, 4);
326
this.comboBox2.Location = new System.Drawing.
Point
(314, 85);
335
this.label11.Location = new System.Drawing.
Point
(371, 34);
351
this.comboBox1.Location = new System.Drawing.
Point
(15, 90);
360
this.label10.Location = new System.Drawing.
Point
(15, 41);
371
this.groupBox4.Location = new System.Drawing.
Point
(839, 397);
387
this.listView1.Location = new System.Drawing.
Point
(149, 83);
397
this.label8.Location = new System.Drawing.
Point
(223, 30);
418
this.groupBox5.Location = new System.Drawing.
Point
(33, 678);
431
this.linkLabel6.Location = new System.Drawing.
Point
(386, 38);
443
this.linkLabel5.Location = new System.Drawing.
Point
(340, 207);
455
this.linkLabel4.Location = new System.Drawing.
Point
(598, 143);
467
this.linkLabel3.Location = new System.Drawing.
Point
(17, 143);
479
this.label6.Location = new System.Drawing.
Point
(154, 207);
490
this.label5.Location = new System.Drawing.
Point
(15, 87);
501
this.label4.Location = new System.Drawing.
Point
(598, 87);
512
this.label3.Location = new System.Drawing.
Point
(171, 41);
521
this.linkLabel2.Location = new System.Drawing.
Point
(340, 143);
532
this.linkLabel1.Location = new System.Drawing.
Point
(340, 87);
542
this.label2.Location = new System.Drawing.
Point
(121, 143);
552
this.label1.Location = new System.Drawing.
Point
(121, 87);
563
this.groupBox6.Location = new System.Drawing.
Point
(839, 678);
581
this.listBox1.Location = new System.Drawing.
Point
(150, 77);
590
this.label12.Location = new System.Drawing.
Point
(223, 38);
601
this.groupBox7.Location = new System.Drawing.
Point
(702, 983);
612
this.maskedTextBox1.Location = new System.Drawing.
Point
(288, 119);
621
this.label9.Location = new System.Drawing.
Point
(15, 126);
633
this.groupBox8.Location = new System.Drawing.
Point
(33, 983);
645
this.dateTimePicker3.Location = new System.Drawing.
Point
(37, 126);
655
this.dateTimePicker2.Location = new System.Drawing.
Point
(37, 205);
670
this.dateTimePicker1.Location = new System.Drawing.
Point
(37, 47);
CommonControl2.Designer.cs (17)
69
this.label3.Location = new System.Drawing.
Point
(18, 278);
79
this.pictureBox1.Location = new System.Drawing.
Point
(18, 301);
90
this.label4.Location = new System.Drawing.
Point
(517, 153);
100
this.progressBar1.Location = new System.Drawing.
Point
(517, 175);
111
this.radioButton1.Location = new System.Drawing.
Point
(18, 459);
123
this.label5.Location = new System.Drawing.
Point
(309, 10);
133
this.richTextBox1.Location = new System.Drawing.
Point
(313, 36);
143
this.label6.Location = new System.Drawing.
Point
(313, 153);
157
this.textBox1.Location = new System.Drawing.
Point
(313, 175);
166
this.label7.Location = new System.Drawing.
Point
(517, 10);
175
this.treeView1.Location = new System.Drawing.
Point
(517, 36);
203
this.label8.Location = new System.Drawing.
Point
(313, 218);
212
this.webBrowser1.Location = new System.Drawing.
Point
(313, 236);
224
this.label1.Location = new System.Drawing.
Point
(14, 10);
233
this.monthCalendar1.Location = new System.Drawing.
Point
(18, 36);
241
this.label2.Location = new System.Drawing.
Point
(18, 218);
250
this.numericUpDown1.Location = new System.Drawing.
Point
(18, 236);
ContainerControls.Designer.cs (63)
128
this.flowLayoutPanel2.Location = new System.Drawing.
Point
(26, 31);
136
this.button2.Location = new System.Drawing.
Point
(90, 3);
146
this.button5.Location = new System.Drawing.
Point
(90, 36);
156
this.button6.Location = new System.Drawing.
Point
(90, 69);
167
this.label2.Location = new System.Drawing.
Point
(26, 172);
177
this.label3.Location = new System.Drawing.
Point
(26, 10);
187
this.label4.Location = new System.Drawing.
Point
(28, 427);
197
this.groupBox1.Location = new System.Drawing.
Point
(194, 445);
208
this.button7.Location = new System.Drawing.
Point
(12, 22);
220
this.groupBox2.Location = new System.Drawing.
Point
(33, 445);
231
this.button8.Location = new System.Drawing.
Point
(12, 22);
243
this.groupBox3.Location = new System.Drawing.
Point
(522, 445);
254
this.button9.Location = new System.Drawing.
Point
(12, 22);
266
this.groupBox4.Location = new System.Drawing.
Point
(350, 445);
277
this.button10.Location = new System.Drawing.
Point
(12, 22);
288
this.label6.Location = new System.Drawing.
Point
(285, 172);
298
this.label7.Location = new System.Drawing.
Point
(561, 172);
308
this.radioButton6.Location = new System.Drawing.
Point
(223, 72);
318
this.radioButton5.Location = new System.Drawing.
Point
(203, 72);
328
this.radioButton4.Location = new System.Drawing.
Point
(183, 72);
340
this.checkBox2.Location = new System.Drawing.
Point
(93, 72);
351
this.radioButton3.Location = new System.Drawing.
Point
(223, 3);
362
this.radioButton2.Location = new System.Drawing.
Point
(203, 3);
371
this.button18.Location = new System.Drawing.
Point
(93, 3);
380
this.button17.Location = new System.Drawing.
Point
(3, 3);
390
this.radioButton1.Location = new System.Drawing.
Point
(183, 3);
400
this.checkBox1.Location = new System.Drawing.
Point
(3, 72);
410
this.label10.Location = new System.Drawing.
Point
(561, 10);
421
this.tabControl5.Location = new System.Drawing.
Point
(561, 31);
431
this.tabPage9.Location = new System.Drawing.
Point
(4, 24);
442
this.button19.Location = new System.Drawing.
Point
(16, 24);
453
this.tabPage10.Location = new System.Drawing.
Point
(4, 24);
467
this.tabControl6.Location = new System.Drawing.
Point
(4, 3);
477
this.tabPage11.Location = new System.Drawing.
Point
(4, 24);
488
this.button20.Location = new System.Drawing.
Point
(0, 0);
499
this.tabPage12.Location = new System.Drawing.
Point
(4, 24);
510
this.button21.Location = new System.Drawing.
Point
(9, 9);
526
this.flowLayoutPanel1.Location = new System.Drawing.
Point
(26, 192);
534
this.button4.Location = new System.Drawing.
Point
(4, 3);
544
this.button1.Location = new System.Drawing.
Point
(100, 3);
554
this.button3.Location = new System.Drawing.
Point
(4, 36);
565
this.label1.Location = new System.Drawing.
Point
(26, 308);
576
this.panel2.Location = new System.Drawing.
Point
(285, 199);
586
this.tabControl2.Location = new System.Drawing.
Point
(8, 12);
595
this.tabPage1.Location = new System.Drawing.
Point
(4, 24);
607
this.tabPage2.Location = new System.Drawing.
Point
(4, 24);
618
this.button12.Location = new System.Drawing.
Point
(17, 24);
629
this.label5.Location = new System.Drawing.
Point
(286, 9);
641
this.panel1.Location = new System.Drawing.
Point
(286, 30);
651
this.tabControl1.Location = new System.Drawing.
Point
(5, 4);
661
this.tabPage3.Location = new System.Drawing.
Point
(4, 24);
672
this.button11.Location = new System.Drawing.
Point
(9, 9);
683
this.tabPage4.Location = new System.Drawing.
Point
(4, 24);
694
this.button13.Location = new System.Drawing.
Point
(9, 9);
709
this.flowLayoutPanel3.Location = new System.Drawing.
Point
(26, 326);
717
this.button14.Location = new System.Drawing.
Point
(4, 3);
727
this.button22.Location = new System.Drawing.
Point
(4, 36);
737
this.button23.Location = new System.Drawing.
Point
(4, 69);
748
this.panel3.Location = new System.Drawing.
Point
(561, 199);
758
this.tabControl3.Location = new System.Drawing.
Point
(12, 14);
767
this.tabPage5.Location = new System.Drawing.
Point
(4, 24);
779
this.tabPage6.Location = new System.Drawing.
Point
(4, 24);
790
this.button24.Location = new System.Drawing.
Point
(19, 23);
ContainerControls2.Designer.cs (30)
75
this.label8.Location = new System.Drawing.
Point
(13, 21);
84
this.splitContainer1.Location = new System.Drawing.
Point
(13, 45);
107
this.button15.Location = new System.Drawing.
Point
(10, 57);
117
this.button16.Location = new System.Drawing.
Point
(21, 57);
128
this.label9.Location = new System.Drawing.
Point
(27, 294);
144
this.tableLayoutPanel1.Location = new System.Drawing.
Point
(27, 329);
159
this.radioButton6.Location = new System.Drawing.
Point
(223, 72);
169
this.radioButton5.Location = new System.Drawing.
Point
(203, 72);
179
this.radioButton4.Location = new System.Drawing.
Point
(183, 72);
191
this.checkBox2.Location = new System.Drawing.
Point
(93, 72);
202
this.radioButton3.Location = new System.Drawing.
Point
(223, 3);
213
this.radioButton2.Location = new System.Drawing.
Point
(203, 3);
222
this.button18.Location = new System.Drawing.
Point
(93, 3);
231
this.button17.Location = new System.Drawing.
Point
(3, 3);
241
this.radioButton1.Location = new System.Drawing.
Point
(183, 3);
251
this.checkBox1.Location = new System.Drawing.
Point
(3, 72);
261
this.label13.Location = new System.Drawing.
Point
(337, 21);
271
this.flowLayoutPanel4.Location = new System.Drawing.
Point
(337, 45);
280
this.label14.Location = new System.Drawing.
Point
(337, 157);
291
this.groupBox5.Location = new System.Drawing.
Point
(337, 182);
303
this.label15.Location = new System.Drawing.
Point
(337, 294);
313
this.panel4.Location = new System.Drawing.
Point
(337, 329);
322
this.label16.Location = new System.Drawing.
Point
(582, 21);
331
this.splitContainer2.Location = new System.Drawing.
Point
(586, 39);
350
this.label17.Location = new System.Drawing.
Point
(582, 157);
361
this.tabControl4.Location = new System.Drawing.
Point
(582, 182);
371
this.tabPage7.Location = new System.Drawing.
Point
(4, 24);
382
this.tabPage8.Location = new System.Drawing.
Point
(4, 24);
393
this.label18.Location = new System.Drawing.
Point
(582, 294);
406
this.tableLayoutPanel2.Location = new System.Drawing.
Point
(582, 329);
DataBindingExample.Designer.cs (19)
57
this.comboBox1.Location = new System.Drawing.
Point
(10, 9);
68
this.dataGridView1.Location = new System.Drawing.
Point
(12, 21);
80
this.label1.Location = new System.Drawing.
Point
(10, 48);
90
this.textBox1.Location = new System.Drawing.
Point
(10, 77);
100
this.button1.Location = new System.Drawing.
Point
(10, 136);
122
this.panel1.Location = new System.Drawing.
Point
(272, 12);
132
this.radioButton1.Location = new System.Drawing.
Point
(336, 77);
144
this.numericUpDown1.Location = new System.Drawing.
Point
(336, 39);
153
this.domainUpDown1.Location = new System.Drawing.
Point
(336, 10);
163
this.richTextBox1.Location = new System.Drawing.
Point
(169, 102);
175
this.checkBox1.Location = new System.Drawing.
Point
(169, 77);
186
this.maskedTextBox1.Location = new System.Drawing.
Point
(169, 45);
197
this.linkLabel1.Location = new System.Drawing.
Point
(169, 12);
209
this.label2.Location = new System.Drawing.
Point
(37, 224);
219
this.treeView1.Location = new System.Drawing.
Point
(12, 242);
229
this.label3.Location = new System.Drawing.
Point
(244, 225);
240
this.listView1.Location = new System.Drawing.
Point
(162, 246);
252
this.label4.Location = new System.Drawing.
Point
(476, 225);
264
this.listBox1.Location = new System.Drawing.
Point
(453, 249);
DataControls.Designer.cs (3)
98
this.bindingNavigator1.Location = new System.Drawing.
Point
(0, 0);
276
this.dataGridView1.Location = new System.Drawing.
Point
(13, 323);
340
this.dataGridView2.Location = new System.Drawing.
Point
(13, 46);
DialogControls.Designer.cs (4)
38
this.ColorDialog.Location = new System.Drawing.
Point
(42, 12);
49
this.FolderBrowserDialog.Location = new System.Drawing.
Point
(42, 67);
60
this.OpenFileDialog.Location = new System.Drawing.
Point
(42, 125);
71
this.SaveFileDialog.Location = new System.Drawing.
Point
(42, 181);
Main.Designer.cs (11)
47
this.button1.Location = new System.Drawing.
Point
(14, 14);
58
this.button2.Location = new System.Drawing.
Point
(14, 60);
69
this.button3.Location = new System.Drawing.
Point
(13, 105);
80
this.button4.Location = new System.Drawing.
Point
(13, 152);
91
this.button5.Location = new System.Drawing.
Point
(13, 199);
102
this.button6.Location = new System.Drawing.
Point
(14, 247);
113
this.button7.Location = new System.Drawing.
Point
(13, 292);
124
this.button8.Location = new System.Drawing.
Point
(14, 336);
135
this.button9.Location = new System.Drawing.
Point
(13, 380);
146
this.button10.Location = new System.Drawing.
Point
(14, 425);
156
this.button12.Location = new System.Drawing.
Point
(15, 470);
Menu_Toolbars_controls.Designer.cs (3)
111
menuStrip1.Location = new
Point
(0, 0);
422
statusStrip1.Location = new
Point
(0, 520);
505
toolStrip1.Location = new
Point
(0, 34);
MenuForm.Designer.cs (2)
37
this.button1.Location = new System.Drawing.
Point
(78, 46);
48
this.button2.Location = new System.Drawing.
Point
(264, 46);
PrintingControls.Designer.cs (8)
73
this.label1.Location = new System.Drawing.
Point
(14, 10);
82
this.txtPrint.Location = new System.Drawing.
Point
(191, 7);
91
this.btnSetting.Location = new System.Drawing.
Point
(18, 43);
102
this.btnPreView.Location = new System.Drawing.
Point
(112, 43);
113
this.btnPrint.Location = new System.Drawing.
Point
(206, 43);
124
this.button1.Location = new System.Drawing.
Point
(301, 43);
136
this.label2.Location = new System.Drawing.
Point
(18, 86);
148
this.printPreviewControl1.Location = new System.Drawing.
Point
(18, 104);
RemainingControls.Designer.cs (8)
46
this.hScrollBar1.Location = new System.Drawing.
Point
(0, 406);
55
this.vScrollBar1.Location = new System.Drawing.
Point
(576, 0);
63
this.propertyGrid1.Location = new System.Drawing.
Point
(19, 80);
71
this.propertyGrid2.Location = new System.Drawing.
Point
(292, 80);
80
this.label1.Location = new System.Drawing.
Point
(19, 33);
89
this.domainUpDown1.Location = new System.Drawing.
Point
(192, 31);
99
this.label2.Location = new System.Drawing.
Point
(373, 33);
108
this.trackBar1.Location = new System.Drawing.
Point
(431, 29);
ToolStripContainer.Designer.cs (5)
106
this.toolStripContainer2.Location = new System.Drawing.
Point
(76, 44);
136
this.toolStrip1.Location = new System.Drawing.
Point
(0, 200);
279
this.statusStrip1.Location = new System.Drawing.
Point
(0, 0);
338
this.menuStrip1.Location = new System.Drawing.
Point
(0, 0);
581
this.button1.Location = new System.Drawing.
Point
(40, 369);
BinaryFormatTests (2)
FormatTests\FormattedObject\BinaryFormatWriterTests.cs (2)
190
new
Point
(-1, 2),
191
new
Point
(int.MaxValue, int.MinValue),
DesignSurface (60)
MainForm.cs (51)
128
TextBox t1 = surface.CreateControl<TextBox>(new Size(200, 23), new
Point
(172, 12));
129
Button b1 = surface.CreateControl<Button>(new Size(200, 40), new
Point
(172, 63));
130
CustomButton b2 = surface.CreateControl<CustomButton>(new Size(200, 40), new
Point
(172, 200));
136
RadioButton rb1 = surface.CreateControl<RadioButton>(new Size(120, 22), new
Point
(12, 10));
138
RadioButton rb2 = surface.CreateControl<RadioButton>(new Size(120, 22), new
Point
(12, 35));
142
CheckBox checkbox1 = surface.CreateControl<CheckBox>(new Size(120, 22), new
Point
(12, 60));
144
CheckBox checkbox2 = surface.CreateControl<CheckBox>(new Size(120, 22), new
Point
(12, 85));
148
CheckBox checkbox3 = surface.CreateControl<CheckBox>(new Size(120, 22), new
Point
(12, 110));
152
Panel pnl = surface.CreateControl<Panel>(new Size(140, 140), new
Point
(12, 12));
160
Label l1 = surface.CreateControl<Label>(new Size(100, 25), new
Point
(12, 12));
161
Label l2 = surface.CreateControl<Label>(new Size(120, 25), new
Point
(12, 12));
167
SplitContainer sct = surface.CreateControl<SplitContainer>(new Size(400, 100), new
Point
(0, 0));
173
PictureBox pb1 = surface.CreateControl<PictureBox>(new Size(64, 64), new
Point
(12, 176));
178
surface.CreateControl<DateTimePicker>(new Size(200, 23), new
Point
(172, 150));
189
TextBox t1 = surface.CreateControl<TextBox>(new Size(200, 20), new
Point
(10, 10));
190
Button b1 = surface.CreateControl<Button>(new Size(200, 40), new
Point
(10, 40));
191
Label l1 = surface.CreateControl<Label>(new Size(200, 100), new
Point
(10, 100));
198
MaskedTextBox maskTextBox = surface.CreateControl<MaskedTextBox>(new Size(200, 20), new
Point
(260, 60));
200
ComboBox cb1 = surface.CreateControl<ComboBox>(new Size(200, 20), new
Point
(260, 16));
204
ListBox lb1 = surface.CreateControl<ListBox>(new Size(200, 130), new
Point
(260, 100));
207
TreeView tv1 = surface.CreateControl<TreeView>(new Size(200, 160), new
Point
(10, 220));
218
Button b1 = surface.CreateControl<Button>(new Size(200, 40), new
Point
(10, 10));
219
Button b2 = surface.CreateControl<Button>(new Size(200, 40), new
Point
(100, 100));
220
Button b3 = surface.CreateControl<Button>(new Size(200, 40), new
Point
(22, 22));
224
GroupBox gb = surface.CreateControl<GroupBox>(new Size(300, 180), new
Point
(100, 200));
228
ListView lb1 = surface.CreateControl<ListView>(new Size(290, 160), new
Point
(320, 30));
240
Button b1 = surface.CreateControl<Button>(new Size(200, 40), new
Point
(10, 10));
241
Button b2 = surface.CreateControl<Button>(new Size(200, 40), new
Point
(10, 60));
251
MonthCalendar monthCalendar1 = surface.CreateControl<MonthCalendar>(new Size(230, 170), new
Point
(10, 110));
253
Button subButton1OfLayoutPanel = surface.CreateControl<Button>(new Size(100, 40), new
Point
(10, 10));
254
Button subButton2OfLayoutPanel = surface.CreateControl<Button>(new Size(100, 40), new
Point
(10, 10));
255
FlowLayoutPanel layoutPanel = surface.CreateControl<FlowLayoutPanel>(new Size(430, 200), new
Point
(250, 10));
259
TrackBar trackBar = surface.CreateControl<TrackBar>(new Size(200, 50), new
Point
(250, 220));
264
ToolStripContainer toolStripContainer = surface.CreateControl<ToolStripContainer>(new Size(200, 180), new
Point
(250, 280));
274
surface.CreateControl<TabControl>(new Size(400, 100), new
Point
(12, 21));
275
surface.CreateControl<TableLayoutPanel>(new Size(290, 160), new
Point
(20, 150));
276
surface.CreateControl<PropertyGrid>(new Size(200, 150), new
Point
(430, 23));
279
ListBox listBox = surface.CreateControl<ListBox>(new Size(120, 94), new
Point
(337, 217));
283
DataGridView dataGridView = surface.CreateControl<DataGridView>(new Size(200, 150), new
Point
(470, 220));
296
ToolStripContainer toolStripContainer = surface.CreateControl<ToolStripContainer>(new Size(800, 200), new
Point
(0, 0));
315
ToolStripPanel topToolStripPanel = surface.CreateControl<ToolStripPanel>(new(50, 50),
new
(0, 0));
318
ToolStripPanel bottomToolStripPanel = surface.CreateControl<ToolStripPanel>(new(50, 50),
new
(0, 0));
322
SplitContainer splitContainer = surface.CreateControl<SplitContainer>(new(0, 0),
new
(0, 0));
326
RichTextBox richTextBox = surface.CreateControl<RichTextBox>(new Size(0, 0), new
Point
(0, 0));
331
MyUserControl userControl = surface.CreateControl<MyUserControl>(new Size(0, 0), new
Point
(0, 0));
335
MyScrollableControl scrollableControl = surface.CreateControl<MyScrollableControl>(new Size(0, 0), new
Point
(0, 0));
348
Splitter splitter = surface.CreateControl<Splitter>(new(5, 0),
new
(0, 0));
352
Panel panel = surface.CreateControl<Panel>(new(0, tabPage6.Height / 2),
new
(0, 0));
354
NumericUpDown numericUpDown = surface.CreateControl<NumericUpDown>(new(50, 10),
new
(10, 10));
357
BindingNavigator bindingNavigator = surface.CreateControl<BindingNavigator>(new(0, 0),
new
(0, 0));
434
Location = new
Point
(0, 0),
MainForm.Designer.cs (9)
68
this.splitContainer.Location = new System.Drawing.
Point
(0, 28);
94
this.tabControl1.Location = new System.Drawing.
Point
(0, 0);
102
this.tabPage1.Location = new System.Drawing.
Point
(4, 25);
112
this.tabPage2.Location = new System.Drawing.
Point
(4, 25);
122
this.tabPage3.Location = new System.Drawing.
Point
(4, 25);
132
this.tabPage4.Location = new System.Drawing.
Point
(4, 25);
142
this.tabPage5.Location = new System.Drawing.
Point
(4, 25);
152
this.tabPage6.Location = new System.Drawing.
Point
(4, 25);
167
this.menuStrip1.Location = new System.Drawing.
Point
(0, 0);
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\Helpers\VBInputBox.vb (1)
111
DesktopLocation = New
Point
(xPos, yPos)
NativeHost.ManagedControl (1)
ManagedControl.Designer.cs (1)
38
this.button1.Location = new System.Drawing.
Point
(37, 59);
PresentationUI (130)
MS\Internal\Documents\Application\DocumentPropertiesDialog.Designer.cs (54)
128
this.tableLayoutPanel3.Location = new System.Drawing.
Point
(6, 6);
139
this._tabControl.Location = new System.Drawing.
Point
(3, 3);
141
this._tabControl.Padding = new System.Drawing.
Point
(7, 3);
152
this._summaryTab.Location = new System.Drawing.
Point
(4, 22);
190
this.tableLayoutPanel1.Location = new System.Drawing.
Point
(3, 3);
210
this._language.Location = new System.Drawing.
Point
(69, 205);
220
this._title.Location = new System.Drawing.
Point
(69, 3);
229
this._titleLabel.Location = new System.Drawing.
Point
(3, 3);
237
this._identifier.Location = new System.Drawing.
Point
(69, 281);
246
this._versionLabel.Location = new System.Drawing.
Point
(3, 262);
254
this._authorLabel.Location = new System.Drawing.
Point
(3, 22);
262
this._statusLabel.Location = new System.Drawing.
Point
(3, 243);
270
this._contentLabel.Location = new System.Drawing.
Point
(3, 224);
278
this._languageLabel.Location = new System.Drawing.
Point
(3, 205);
286
this._subjectLabel.Location = new System.Drawing.
Point
(3, 41);
294
this._version.Location = new System.Drawing.
Point
(69, 262);
303
this._categoryLabel.Location = new System.Drawing.
Point
(3, 186);
311
this._category.Location = new System.Drawing.
Point
(69, 186);
320
this._status.Location = new System.Drawing.
Point
(69, 243);
329
this._content.Location = new System.Drawing.
Point
(69, 224);
338
this._keywordsLabel.Location = new System.Drawing.
Point
(3, 167);
347
this._author.Location = new System.Drawing.
Point
(69, 22);
356
this._subject.Location = new System.Drawing.
Point
(69, 41);
365
this._description.Location = new System.Drawing.
Point
(69, 60);
376
this._keywords.Location = new System.Drawing.
Point
(69, 167);
388
this._identifierLabel.Location = new System.Drawing.
Point
(3, 281);
397
this._descriptionLabel.Location = new System.Drawing.
Point
(3, 60);
424
this._infoTab.Location = new System.Drawing.
Point
(4, 22);
439
this.tableLayoutPanel2.Location = new System.Drawing.
Point
(6, 3);
461
this.tableLayoutPanel4.Location = new System.Drawing.
Point
(3, 3);
473
this._size.Location = new System.Drawing.
Point
(90, 41);
492
this._filename.Location = new System.Drawing.
Point
(75, 3);
502
this._documentType.Location = new System.Drawing.
Point
(75, 22);
512
this._sizeLabel.Location = new System.Drawing.
Point
(75, 41);
524
this._documentDetailBox.Location = new System.Drawing.
Point
(3, 225);
547
this._documentTable.Location = new System.Drawing.
Point
(16, 16);
560
this._documentPrintedDate.Location = new System.Drawing.
Point
(88, 79);
569
this._documentModifiedDate.Location = new System.Drawing.
Point
(88, 60);
578
this._documentCreatedDate.Location = new System.Drawing.
Point
(88, 41);
587
this._revision.Location = new System.Drawing.
Point
(88, 22);
596
this._documentPrintedLabel.Location = new System.Drawing.
Point
(3, 79);
604
this._documentModifiedLabel.Location = new System.Drawing.
Point
(3, 60);
612
this._documentCreatedLabel.Location = new System.Drawing.
Point
(3, 41);
620
this._revisionLabel.Location = new System.Drawing.
Point
(3, 22);
628
this._lastSavedLabel.Location = new System.Drawing.
Point
(3, 3);
636
this._lastSaved.Location = new System.Drawing.
Point
(88, 3);
648
this._fileSystemBox.Location = new System.Drawing.
Point
(3, 124);
666
this._fileTable.Location = new System.Drawing.
Point
(16, 19);
676
this._fileModifiedDate.Location = new System.Drawing.
Point
(66, 22);
685
this._fileAccessedDate.Location = new System.Drawing.
Point
(66, 41);
694
this._fileCreatedLabel.Location = new System.Drawing.
Point
(3, 3);
702
this._fileModifiedLabel.Location = new System.Drawing.
Point
(3, 22);
710
this._fileCreatedDate.Location = new System.Drawing.
Point
(66, 3);
719
this._fileAccessedLabel.Location = new System.Drawing.
Point
(3, 41);
MS\Internal\Documents\CredentialManagerDialog.Designer.cs (3)
63
this._mainDialogTableLayoutPanel.Location = new System.Drawing.
Point
(8, 8);
142
this._credListBox.Location = new System.Drawing.
Point
(3, 3);
151
this._instructionLabel.Location = new System.Drawing.
Point
(3, 0);
MS\Internal\Documents\RequestedSignatureDialog.Designer.cs (11)
62
_buttomControlLayoutpanel.Location = new System.Drawing.
Point
(374, 246);
106
_userInputTableLayoutPanel.Location = new System.Drawing.
Point
(10, 23);
123
_dateTimePicker.Location = new System.Drawing.
Point
(3, 174);
134
_requestedLocationTextBox.Location = new System.Drawing.
Point
(3, 125);
144
_signatureAppliedByDateLabel.Location = new System.Drawing.
Point
(3, 158);
153
_requestSignerNameLabel.Location = new System.Drawing.
Point
(3, 10);
162
_requestLocationLabel.Location = new System.Drawing.
Point
(3, 109);
170
_requestedSignerNameTextBox.Location = new System.Drawing.
Point
(3, 26);
180
_intentLabel.Location = new System.Drawing.
Point
(3, 59);
189
_intentComboBox.Location = new System.Drawing.
Point
(3, 75);
204
_mainDialogTableLayoutPanel.Location = new System.Drawing.
Point
(9, 9);
MS\Internal\Documents\RMEnrollmentPage1.Designer.cs (12)
67
_panel1.Location = new System.Drawing.
Point
(0, 0);
78
_flowLayoutPanel2.Location = new System.Drawing.
Point
(0, 0);
88
_flowLayoutPanel3.Location = new System.Drawing.
Point
(3, 16);
102
_flowLayoutPanel4.Location = new System.Drawing.
Point
(3, 3);
110
_label1.Location = new System.Drawing.
Point
(30, 1);
120
_label2.Location = new System.Drawing.
Point
(30, 20);
130
_label3.Location = new System.Drawing.
Point
(30, 30);
140
_privacyLabel.Location = new System.Drawing.
Point
(30, 53);
151
_instructionlabel.Location = new System.Drawing.
Point
(30, 76);
160
_panel2.Location = new System.Drawing.
Point
(207, 3);
168
_pictureBox.Location = new System.Drawing.
Point
(27, 4);
181
_flowLayoutPanel1.Location = new System.Drawing.
Point
(0, 153);
MS\Internal\Documents\RMEnrollmentPage2.Designer.cs (11)
67
this._flowLayoutPanel1.Location = new System.Drawing.
Point
(0, 326);
99
this._flowLayoutPanel2.Location = new System.Drawing.
Point
(0, 0);
107
this._label1.Location = new System.Drawing.
Point
(10, 10);
119
this._flowLayoutPanel3.Location = new System.Drawing.
Point
(10, 33);
128
this._pictureBox1.Location = new System.Drawing.
Point
(5, 5);
138
this._label2.Location = new System.Drawing.
Point
(31, 5);
155
this._tableLayoutPanel1.Location = new System.Drawing.
Point
(50, 89);
171
this._networkRadioButton.Location = new System.Drawing.
Point
(3, 13);
181
this._pictureBox2.Location = new System.Drawing.
Point
(368, 13);
191
this._passportRadioButton.Location = new System.Drawing.
Point
(3, 169);
200
this._pictureBox4.Location = new System.Drawing.
Point
(368, 169);
MS\Internal\Documents\RMEnrollmentPage3.Designer.cs (6)
54
this.tableLayoutPanel1.Location = new System.Drawing.
Point
(0, 0);
68
this.flowLayoutPanel2.Location = new System.Drawing.
Point
(3, 47);
76
this.label2.Location = new System.Drawing.
Point
(7, 7);
90
this.tableLayoutPanel2.Location = new System.Drawing.
Point
(3, 80);
102
this.label3.Location = new System.Drawing.
Point
(149, 49);
111
this.progressBar1.Location = new System.Drawing.
Point
(156, 72);
MS\Internal\Documents\RMPublishingDialog.Designer.cs (4)
305
this.flowLayoutPanelActions.Location = new System.Drawing.
Point
(6, 395);
314
this.buttonCancel.Location = new System.Drawing.
Point
(463, 3);
321
this.buttonSave.Location = new System.Drawing.
Point
(382, 3);
328
this.buttonSaveAs.Location = new System.Drawing.
Point
(301, 3);
MS\Internal\Documents\RMPublishingDialog.RightsTable.cs (1)
1034
System.Drawing.Point p = new System.Drawing.
Point
(
MS\Internal\Documents\SignatureSummaryDialog.Designer.cs (12)
57
_buttonDone.Location = new System.Drawing.
Point
(247, 13);
78
_flowpanelMiddleControls.Location = new System.Drawing.
Point
(297, 0);
91
_flowpanelBottomControls.Location = new System.Drawing.
Point
(297, 0);
100
_buttonSign.Location = new System.Drawing.
Point
(166, 13);
110
_buttonViewCert.Location = new System.Drawing.
Point
(85, 13);
120
_buttonRequestDelete.Location = new System.Drawing.
Point
(4, 13);
128
_buttonRequestAdd.Location = new System.Drawing.
Point
(247, 42);
141
_columnHeaderPanel.Location = new System.Drawing.
Point
(0, 0);
152
_listBoxSummary.Location = new System.Drawing.
Point
(0, 0);
168
_listboxMainPanel.Location = new System.Drawing.
Point
(15, 15);
177
_listboxItemPanel.Location = new System.Drawing.
Point
(0, 53);
191
_mainLayoutTable.Location = new System.Drawing.
Point
(6, 6);
MS\Internal\Documents\SigningDialog.Designer.cs (15)
64
_userInputFlowPanel.Location = new System.Drawing.
Point
(3, 71);
83
_signatureControlInputLayoutTable.Location = new System.Drawing.
Point
(6, 19);
101
_addDigSigCheckBox.Location = new System.Drawing.
Point
(3, 136);
110
_signerlabel.Location = new System.Drawing.
Point
(3, 20);
121
_addDocPropCheckBox.Location = new System.Drawing.
Point
(3, 116);
130
_reasonLabel.Location = new System.Drawing.
Point
(3, 40);
138
_reasonComboBox.Location = new System.Drawing.
Point
(3, 43);
148
_actionlabel.Location = new System.Drawing.
Point
(3, 113);
157
_locationLabel.Location = new System.Drawing.
Point
(3, 77);
165
_locationTextBox.Location = new System.Drawing.
Point
(3, 80);
186
_buttonflowLayoutPanel.Location = new System.Drawing.
Point
(3, 272);
200
_cancelButton.Location = new System.Drawing.
Point
(434, 8);
214
_signButton.Location = new System.Drawing.
Point
(392, 8);
228
_signSaveAsButton.Location = new System.Drawing.
Point
(350, 8);
243
_mainLayoutTable.Location = new System.Drawing.
Point
(6, 6);
MS\Internal\Documents\SigningProgress.Designer.cs (1)
42
_label.Location = new System.Drawing.
Point
(20, 9);
System.ComponentModel.TypeConverter (2)
System\Drawing\PointConverter.cs (2)
50
return new
Point
(values[0], values[1]);
107
return new
Point
((int)x, (int)y);
System.Drawing.Common.Tests (248)
mono\System.Drawing\GraphicsTests.cs (38)
113
Assert.Equal(new
Point
(0, 0), g.RenderingOrigin);
129
g.RenderingOrigin = new
Point
(10, 20);
140
Assert.Equal(new
Point
(10, 20), g.RenderingOrigin);
293
g.RenderingOrigin = new
Point
(10, 20);
306
g.RenderingOrigin = new
Point
(5, 6);
318
Assert.Equal(new
Point
(10, 20), g.RenderingOrigin);
332
Assert.Equal(new
Point
(0, 0), g.RenderingOrigin);
929
AssertEquals(message + ".RenderingOrigin", new
Point
(-1, -1), g.RenderingOrigin);
953
Assert.Equal(new
Point
(0, 0), g.RenderingOrigin);
962
g.RenderingOrigin = new
Point
(-1, -1);
974
Assert.Equal(new
Point
(-1, -1), g.RenderingOrigin);
986
Assert.Equal(new
Point
(0, 0), g.RenderingOrigin);
995
g.RenderingOrigin = new
Point
(-1, -1);
1007
Assert.Equal(new
Point
(-1, -1), g.RenderingOrigin);
1020
Assert.Equal(new
Point
(0, 0), g.RenderingOrigin);
1029
g.RenderingOrigin = new
Point
(-1, -1);
1041
Assert.Equal(new
Point
(-1, -1), g.RenderingOrigin);
1096
Assert.Equal(new
Point
(0, 0), g.RenderingOrigin);
1101
Assert.Equal(new
Point
(0, 0), g.RenderingOrigin);
1110
g.RenderingOrigin = new
Point
(-1, -1);
1127
Assert.Equal(new
Point
(0, 0), g.RenderingOrigin);
1900
SizeF 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);
1966
SizeF size = g.MeasureString(text, _font, new
Point
(0, 0), string_format);
2087
rect.Location = new
Point
(10, 10);
2104
rect.Location = new
Point
(10, 10);
2495
Assert.Throws<ArgumentNullException>(() => g.DrawImage(null, new
Point
(0, 0)));
2503
g.DrawImage(bmp, new
Point
(0, 0));
2654
Point p =
new
(1, 1);
2661
Point p =
new
(1, 1);
2668
Point p =
new
(1, 1);
2675
Point p =
new
(1, 1);
2740
Point p =
new
(1, 1);
2751
Point p =
new
(1, 1);
2765
Assert.Throws<ArgumentNullException>(() => g.DrawImageUnscaled(null, new
Point
(0, 0)));
2773
g.DrawImageUnscaled(bmp, new
Point
(0, 0));
2944
pts[i] = new
Point
(i, i);
System\Drawing\Drawing2D\CustomLineCapTests.cs (20)
27
strokePath.AddLine(new
Point
(0, 0), new
Point
(0, 5));
28
strokePath.AddLine(new
Point
(0, 5), new
Point
(5, 1));
29
strokePath.AddLine(new
Point
(5, 1), new
Point
(3, 1));
34
fillPath.AddLine(new
Point
(-5, -10), new
Point
(0, 10));
35
fillPath.AddLine(new
Point
(0, 10), new
Point
(5, -10));
36
fillPath.AddLine(new
Point
(5, -10), new
Point
(-5, -10));
71
fillPath.AddLine(new
Point
(0, -10), new
Point
(0, 10));
80
fillPath.AddLine(new
Point
(-5, 5), new
Point
(5, 5));
81
fillPath.AddLine(new
Point
(5, 5), new
Point
(5, 1));
82
fillPath.AddLine(new
Point
(5, 1), new
Point
(-5, 5));
System\Drawing\Drawing2D\GraphicsPathIteratorTests.cs (2)
271
gp.AddLine(
new
(0, 0),
new
(1, 1));
System\Drawing\Drawing2D\GraphicsPathTests.cs (55)
151
gp.PathData.Points[0] = new
Point
(0, 0);
164
gp.PathPoints[0] = new
Point
(0, 0);
220
gpPointsInt.AddLine(new
Point
(1, 1), new
Point
(2, 2));
232
gpi.AddLine(new
Point
(49, 157), new
Point
(75, 196));
233
gpi.AddLine(new
Point
(75, 196), new
Point
(102, 209));
237
gpi.AddLine(new
Point
(102, 209), new
Point
(75, 196));
369
gpi.AddBezier(new
Point
(1, 1), new
Point
(2, 2), new
Point
(3, 3), new
Point
(4, 4));
382
gp.AddBezier(new
Point
(0, 0), new
Point
(0, 0), new
Point
(0, 0), new
Point
(0, 0));
386
gp.AddBezier(new
Point
(0, 0), new
Point
(0, 0), new
Point
(0, 0), new
Point
(0, 0));
580
yield return new object[] { new Point[1] {
new
(1, 1) } };
673
yield return new object[] { new Point[1] {
new
(1, 1) } };
674
yield return new object[] { new Point[2] {
new
(1, 1),
new
(2, 2) } };
961
yield return new object[] { new Point[1] {
new
(1, 1) } };
962
yield return new object[] { new Point[2] {
new
(1, 1),
new
(2, 2) } };
995
gpi.AddString("mono", FontFamily.GenericMonospace, 0, 10, new
Point
(10, 10), StringFormat.GenericDefault);
1019
gpi.AddString("mono", FontFamily.GenericMonospace, 0, -10, new
Point
(10, 10), StringFormat.GenericDefault);
1055
gpi.AddString(string.Empty, FontFamily.GenericMonospace, 0, 10, new
Point
(10, 10), StringFormat.GenericDefault);
1067
gp.AddString(null, FontFamily.GenericMonospace, 0, 10, new
Point
(10, 10), StringFormat.GenericDefault));
1081
new GraphicsPath().AddString("mono", null, 0, 10, new
Point
(10, 10), StringFormat.GenericDefault));
1331
gp.AddLine(new
Point
(1, 1), new
Point
(2, 2));
1342
gp.AddLine(new
Point
(1, 1), new
Point
(2, 2));
1363
gp.AddLine(new
Point
(1, 1), new
Point
(2, 2));
1381
gp.AddLine(new
Point
(1, 1), new
Point
(2, 2));
1383
gp.AddLine(new
Point
(3, 3), new
Point
(4, 4));
1636
gp.AddString("mono", FontFamily.GenericMonospace, 0, 10, new
Point
(20, 20), StringFormat.GenericDefault);
1851
new
(1, 2),
new
(3, 4),
new
(5, 6),
new
(7, 8),
1852
new
(9, 10),
new
(11, 12),
new
(13, 14)
1979
gp.AddString("Mono::", FontFamily.GenericMonospace, 0, 10, new
Point
(10, 10), StringFormat.GenericDefault);
2258
Point point =
new
(12, 2);
2286
Point point =
new
(15, 10);
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (18)
10
yield return new object[] { new
Point
(0, 0), new
Point
(2, 2), Color.Empty, Color.Empty, new RectangleF(0, 0, 2, 2) };
11
yield return new object[] { new
Point
(1, 0), new
Point
(0, 0), Color.Empty, Color.Red, new RectangleF(0, -0.5f, 1, 1) };
12
yield return new object[] { new
Point
(1, 2), new
Point
(4, 6), Color.Plum, Color.Red, new RectangleF(1, 2, 3, 4) };
13
yield return new object[] { new
Point
(1, 2), new
Point
(4, 6), Color.Red, Color.Red, new RectangleF(1, 2, 3, 4) };
14
yield return new object[] { new
Point
(-1, -2), new
Point
(4, 6), Color.Red, Color.Plum, new RectangleF(-1, -2, 5, 8) };
15
yield return new object[] { new
Point
(-4, -6), new
Point
(1, 2), Color.Black, Color.Wheat, new RectangleF(-4, -6, 5, 8) };
16
yield return new object[] { new
Point
(4, 6), new
Point
(-1, -2), Color.Black, Color.Wheat, new RectangleF(-1, -2, 5, 8) };
17
yield return new object[] { new
Point
(4, 6), new
Point
(1, 2), Color.Black, Color.Wheat, new RectangleF(1, 2, 3, 4) };
69
Assert.Throws<OutOfMemoryException>(() => new LinearGradientBrush(new
Point
(x, y), new
Point
(x, y), Color.Fuchsia, Color.GhostWhite));
System\Drawing\Drawing2D\MatrixTests.cs (29)
97
yield 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 };
98
yield 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 };
99
yield 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 };
100
yield 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 };
698
yield 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) } };
699
yield return new object[] { new Matrix(), new Point[] {
new
(2, 4),
new
(4, 8) }, new Point[] {
new
(2, 4),
new
(4, 8) } };
700
yield return new object[] { new Matrix(2, 4, 6, 8, 10, 12), new Point[1], new Point[] {
new
(10, 12) } };
753
yield 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) } };
754
yield 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)
197
yield return new object[] { new Point[2] {
new
(1, 1),
new
(2, 2) }, Array.Empty<Color>() };
198
yield return new object[] { new Point[2] {
new
(1, 1),
new
(2, 2) }, new Color[3] };
System\Drawing\Graphics_DrawBezierTests.cs (4)
15
graphics.DrawBezier(pen,
new
(10, 10),
new
(20, 1),
new
(35, 5),
new
(50, 10));
System\Drawing\GraphicsTests.cs (54)
823
new
Point
(0, 0),
834
new
Point
(1, 1),
850
yield return new object[] { new
Point
(-3, -3), allEmpty };
851
yield return new object[] { new
Point
(3, 3), allEmpty };
1544
graphics.CopyFromScreen(new
Point
(sourceX, sourceY), new
Point
(destinationX, destinationY), size);
1690
new Point[] {
new
(1, 1),
new
(2, 2) },
1691
new Point[] {
new
(1, 1),
new
(2, 2) }
1698
new Point[] {
new
(1, 1),
new
(2, 2) },
1699
new Point[] {
new
(9, 12),
new
(13, 18) }
1706
new Point[] {
new
(1, 1),
new
(2, 2) },
1707
new Point[] {
new
(1, 1),
new
(2, 2) }
1714
new Point[] {
new
(1, 1),
new
(2, 2) },
1715
new Point[] {
new
(9, 12),
new
(13, 18) }
1722
new Point[] {
new
(1, 1),
new
(2, 2) },
1723
new Point[] {
new
(1, -1),
new
(0, -1) }
1730
new Point[] {
new
(1, 1),
new
(2, 2) },
1731
new Point[] {
new
(1, -1),
new
(0, -1) }
1755
new PointF[] { new
Point
(1, 1), new
Point
(2, 2) },
1756
new PointF[] { new
Point
(1, 1), new
Point
(2, 2) }
1763
new PointF[] { new
Point
(1, 1), new
Point
(2, 2) },
1764
new PointF[] { new
Point
(9, 12), new
Point
(13, 18) }
1771
new PointF[] { new
Point
(1, 1), new
Point
(2, 2) },
1772
new PointF[] { new
Point
(1, 1), new
Point
(2, 2) }
1779
new PointF[] { new
Point
(1, 1), new
Point
(2, 2) },
1780
new PointF[] { new
Point
(9, 12), new
Point
(13, 18) }
1787
new PointF[] { new
Point
(1, 1), new
Point
(2, 2) },
1788
new PointF[] { new(0.5f, -1.5f), new
Point
(0, -1) }
1795
new PointF[] { new
Point
(1, 1), new
Point
(2, 2) },
1796
new PointF[] { new(0.5f, -1.5f), new
Point
(0, -1) }
1825
var points = new Point[] {
new
(1, 1) };
2828
Point point =
new
(10, 10);
System\Drawing\IconConverterTests.cs (2)
115
Assert.Throws<NotSupportedException>(() => _icoConv.ConvertFrom(null, CultureInfo.InvariantCulture, new
Point
(10, 10)));
127
Assert.Throws<NotSupportedException>(() => _icoConvFrmTD.ConvertFrom(null, CultureInfo.InvariantCulture, new
Point
(10, 10)));
System\Drawing\ImageConverterTests.cs (2)
142
Assert.Throws<NotSupportedException>(() => _imgConv.ConvertFrom(null, CultureInfo.InvariantCulture, new
Point
(10, 10)));
149
Assert.Throws<NotSupportedException>(() => _imgConvFrmTD.ConvertFrom(null, CultureInfo.InvariantCulture, new
Point
(10, 10)));
System\Drawing\PenTests.cs (3)
15
yield return new object[] { new LinearGradientBrush(new
Point
(0, 0), new
Point
(0, 2), Color.Purple, Color.Plum), PenType.LinearGradient };
253
using LinearGradientBrush brush = new(Point.Empty, new
Point
(1, 2), Color.Blue, Color.Red);
System\Drawing\Printing\PrinterUnitConvertTests.cs (2)
76
var converted = PrinterUnitConvert.Convert(new
Point
(100, 1000), fromUnit, toUnit);
77
Assert.Equal(new
Point
(expectedX, expectedY), converted);
System\Drawing\RegionTests.cs (15)
1359
yield return new object[] { infiniteExclude, new
Point
(66, 292), true };
1362
yield return new object[] { new Region(new Rectangle(500, 30, 60, 80)), new
Point
(500, 29), false };
1363
yield return new object[] { new Region(new Rectangle(500, 30, 60, 80)), new
Point
(500, 30), true };
1365
yield return new object[] { new Region(new Rectangle(1, 1, 2, 1)), new
Point
(0, 1), false };
1366
yield return new object[] { new Region(new Rectangle(1, 1, 2, 1)), new
Point
(1, 0), false };
1367
yield return new object[] { new Region(new Rectangle(1, 1, 2, 1)), new
Point
(2, 0), false };
1368
yield return new object[] { new Region(new Rectangle(1, 1, 2, 1)), new
Point
(3, 0), false };
1369
yield return new object[] { new Region(new Rectangle(1, 1, 2, 1)), new
Point
(1, 1), true };
1370
yield return new object[] { new Region(new Rectangle(1, 1, 2, 1)), new
Point
(2, 1), true };
1371
yield return new object[] { new Region(new Rectangle(1, 1, 2, 1)), new
Point
(3, 1), false };
1372
yield return new object[] { new Region(new Rectangle(1, 1, 2, 1)), new
Point
(0, 2), false };
1373
yield return new object[] { new Region(new Rectangle(1, 1, 2, 1)), new
Point
(2, 2), false };
1374
yield return new object[] { new Region(new Rectangle(1, 1, 2, 1)), new
Point
(3, 2), false };
1417
AssertExtensions.Throws<ArgumentException>(null, () => disposedRegion.IsVisible(new
Point
(1, 2)));
1421
AssertExtensions.Throws<ArgumentException>(null, () => disposedRegion.IsVisible(new
Point
(1, 2), s_graphic));
System.Drawing.Primitives (7)
System\Drawing\Point.cs (5)
113
public static Point Add(Point pt, Size sz) => new
Point
(unchecked(pt.X + sz.Width), unchecked(pt.Y + sz.Height));
118
public static Point Subtract(Point pt, Size sz) => new
Point
(unchecked(pt.X - sz.Width), unchecked(pt.Y - sz.Height));
123
public static Point Ceiling(PointF value) => new
Point
(unchecked((int)Math.Ceiling(value.X)), unchecked((int)Math.Ceiling(value.Y)));
128
public static Point Truncate(PointF value) => new
Point
(unchecked((int)value.X), unchecked((int)value.Y));
133
public static Point Round(PointF value) => new
Point
(unchecked((int)Math.Round(value.X)), unchecked((int)Math.Round(value.Y)));
System\Drawing\Rectangle.cs (1)
60
readonly get => new
Point
(X, Y);
System\Drawing\Size.cs (1)
121
public static explicit operator Point(Size size) => new
Point
(size.Width, size.Height);
System.Private.Windows.Core (2)
System\Private\Windows\Core\Nrbf\SerializationRecordExtensions.cs (1)
123
value = new
Point
(classInfo.GetInt32("x"), classInfo.GetInt32("y"));
Windows\Win32\Foundation\LPARAM.cs (1)
27
public static explicit operator Point(LPARAM value) =>
new
(value.SIGNEDLOWORD, value.SIGNEDHIWORD);
System.Private.Windows.Core.TestUtilities (4)
CommonTestHelper.cs (4)
83
data.Add(new
Point
(1, 2));
88
data.Add(new
Point
(int.MaxValue, int.MinValue));
89
data.Add(new
Point
(-1, -2));
103
data.Add(new Size(new
Point
(1, 1)));
System.Windows.Forms (270)
System\Windows\Forms\Accessibility\LabelEditUiaTextProvider.cs (3)
192
Point ptStart =
new
(rectangle.X + 1, rectangle.Y + 1);
193
Point ptEnd =
new
(rectangle.Right - 1, rectangle.Bottom - 1);
369
return new
Point
(PARAM.SignedLOWORD(i), PARAM.SignedHIWORD(i));
System\Windows\Forms\ActiveX\AxHost.cs (1)
1076
Point phm =
new
(sz.Width, sz.Height);
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (3)
361
Point pt =
new
(PARAM.LOWORD(lpmsg->lParam), PARAM.HIWORD(lpmsg->lParam));
459
Point p1 =
new
(rc.left, rc.top);
1702
bounds.Location = new
Point
(bounds.X, bounds.Y);
System\Windows\Forms\ContextMenuStrip.cs (3)
97
Rectangle bounds = CalculateDropDownLocation(new
Point
(x, y), ToolStripDropDownDirection.AboveLeft);
101
bounds = CalculateDropDownLocation(new
Point
(x, y), ToolStripDropDownDirection.BelowLeft);
105
bounds = CalculateDropDownLocation(new
Point
(x, y), ToolStripDropDownDirection.AboveRight);
System\Windows\Forms\Control.cs (5)
412
Location = new
Point
(left, top);
2421
get =>
new
(_x, _y);
9102
Location = new
Point
(0, 0);
11113
client = new
Point
(Width / 2, Height / 2);
11117
client = PointToClient(new
Point
(x, y));
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (16)
137
Point p1 =
new
(bounds.X + bounds.Width - 1, bounds.Y); // Upper inner right
138
Point p2 =
new
(bounds.X, bounds.Y); // Upper left
139
Point p3 =
new
(bounds.X, bounds.Y + bounds.Height - 1); // Bottom inner left
140
Point p4 =
new
(bounds.X + bounds.Width - 1, bounds.Y + bounds.Height - 1); // Inner bottom right
192
Point p1 =
new
(bounds.X + bounds.Width - 1, bounds.Y); // Upper inner right
193
Point p2 =
new
(bounds.X, bounds.Y); // Upper left
194
Point p3 =
new
(bounds.X, bounds.Y + bounds.Height - 1); // Bottom inner left
195
Point p4 =
new
(bounds.X + bounds.Width - 1, bounds.Y + bounds.Height - 1); // Inner bottom right
240
Point p1 =
new
(bounds.X + bounds.Width - 1, bounds.Y); // Upper inner right
241
Point p2 =
new
(bounds.X, bounds.Y); // Upper left
242
Point p3 =
new
(bounds.X, bounds.Y + bounds.Height - 1); // Bottom inner left
243
Point p4 =
new
(bounds.X + bounds.Width - 1, bounds.Y + bounds.Height - 1); // Inner bottom right
299
Point p1 =
new
(r.Right - 1, r.Top); // Upper inner right
300
Point p2 =
new
(r.Left, r.Top); // Upper left
301
Point p3 =
new
(r.Left, r.Bottom - 1); // Bottom inner left
302
Point p4 =
new
(r.Right - 1, r.Bottom - 1); // Inner bottom right
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (2)
268
new
Point
(layout.CheckBounds.Left, layout.CheckBounds.Top),
283
new
Point
(layout.CheckBounds.Left, layout.CheckBounds.Top),
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonBaseAdapter.cs (1)
209
new
Point
(check.Left, check.Top),
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxUiaTextProvider.cs (3)
253
Point ptStart =
new
(rectangle.X + 1, rectangle.Y + 1);
254
Point ptEnd =
new
(rectangle.Right - 1, rectangle.Bottom - 1);
444
return new
Point
(PARAM.SignedLOWORD(i), PARAM.SignedHIWORD(i));
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
1370
return new
Point
(0, 0);
1383
return new
Point
(comboXMid, comboYMid);
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (1)
167
Point middle =
new
(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.Height / 2);
System\Windows\Forms\Controls\DataGridView\DataGridView.AccessibleObject.cs (1)
160
Point pt = owner.PointToClient(new
Point
(x, y));
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (7)
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);
2331
Point ptFirstDisplayedCellAddress =
new
(-1, -1)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (23)
66
_ptToolTipCell = new
Point
(columnIndex, rowIndex);
4931
return new
Point
(columnX + x, rowY + y);
13881
Debug.Assert(CurrentCellAddress == new
Point
(-1, -1));
15416
newCurrentCell = new
Point
(columnIndexInserted <= _ptCurrentCell.X ? _ptCurrentCell.X + 1 : _ptCurrentCell.X,
15422
newCurrentCell = new
Point
(-1, -1);
15536
newCurrentCell = new
Point
(_ptCurrentCell.X, _ptCurrentCell.Y + insertionCount);
15557
newCurrentCell = new
Point
(-1, -1);
15619
newCurrentCell = new
Point
(_ptCurrentCell.X, _ptCurrentCell.Y + dataGridViewRows.Length);
15624
newCurrentCell = new
Point
(-1, -1);
16123
_ptMouseDownGridCoord = new
Point
(e.X, e.Y);
16340
_ptToolTipCell = new
Point
(-1, -1);
17073
newCurrentCell = new
Point
(newX, (newX == -1) ? -1 : _ptCurrentCell.Y);
17106
newCurrentCell = new
Point
(-1, -1);
17257
newCurrentCell = new
Point
(-1, -1);
17288
newCurrentCell = new
Point
(_ptCurrentCell.X, newY);
18163
Debug.Assert(CurrentCellAddress == new
Point
(-1, -1));
18821
Invalidate(new Rectangle(new
Point
(-pt.X, ColumnHeadersHeight), new Size(-step, ClientSize.Height)));
18831
Invalidate(new Rectangle(new
Point
(ClientSize.Width - (pt.X - rect.Right) - step, ColumnHeadersHeight),
18838
Invalidate(new Rectangle(new
Point
(0, -pt.Y),
18845
Invalidate(new Rectangle(new
Point
(0, ColumnHeadersHeight),
19865
_editingPanel.Location = new
Point
(Width + 1, 0);
26998
AccessibilityNotifyCurrentCellChanged(new
Point
(_ptCurrentCell.X, _ptCurrentCell.Y));
29980
client = new
Point
(Width / 2, Height / 2);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (3)
1011
cellBounds = new Rectangle(new
Point
(0, 0), GetSize(rowIndex));
3767
DataGridView.EditingControl.Location = new
Point
(editingControlBounds.X, editingControlBounds.Y);
3857
DataGridView.EditingPanel.Location = new
Point
(xEditingPanel, yEditingPanel);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnCollection.cs (3)
167
OnCollectionChanged(new CollectionChangeEventArgs(CollectionChangeAction.Add, dataGridViewColumn), false /*changeIsInsertion*/, new
Point
(-1, -1));
259
OnCollectionChanged(new CollectionChangeEventArgs(CollectionChangeAction.Refresh, null), false /*changeIsInsertion*/, new
Point
(-1, -1));
307
OnCollectionChanged(new CollectionChangeEventArgs(CollectionChangeAction.Refresh, null), false /*changeIsInsertion*/, new
Point
(-1, -1));
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (4)
894
Point sortGlyphLocation =
new
(0, 0);
945
sortGlyphLocation = new
Point
(valBounds.Left -
955
sortGlyphLocation = new
Point
(valBounds.Right +
997
sortGlyphLocation = new
Point
(valBounds.Left + (valBounds.Width - s_sortGlyphWidth) / 2,
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (4)
2155
Point middle =
new
(dropRect.Left + dropRect.Width / 2, dropRect.Top + dropRect.Height / 2);
2178
Point middle =
new
(dropRect.Left + (dropRect.Width - 1) / 2,
2184
Point pt1 =
new
(middle.X - (s_nonXPTriangleWidth - 1) / 2, middle.Y - s_nonXPTriangleHeight);
2185
Point pt2 =
new
(middle.X + (s_nonXPTriangleWidth - 1) / 2, middle.Y - s_nonXPTriangleHeight);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.cs (6)
828
OnCollectionChanged(new CollectionChangeEventArgs(CollectionChangeAction.Refresh, null), 0, rowCount, true, false, recreateNewRow, new
Point
(-1, -1));
1502
Point newCurrentCell =
new
(-1, -1);
1612
Point newCurrentCell =
new
(-1, -1);
1786
Point newCurrentCell =
new
(-1, -1);
1911
Point newCurrentCell =
new
(-1, -1);
2237
OnCollectionChanged(new CollectionChangeEventArgs(CollectionChangeAction.Remove, dataGridViewRow), index, 1, true, false, false, new
Point
(-1, -1));
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (1)
798
DataGridView!.EditingControl!.Location = new
Point
(editingControlBounds.X, editingControlBounds.Y);
System\Windows\Forms\Controls\DataGridView\DataGridViewUtilities.cs (1)
355
Point ptTextLocation =
new
(0, 0);
System\Windows\Forms\Controls\Labels\LinkLabel.LinkLabelAccessibleObject.cs (1)
64
Point p = owner.PointToClient(new
Point
(x, y));
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (1)
561
CheckBoxRenderer.DrawCheckBoxWithVisualStyles(e, new
Point
(box.X, box.Y), cbState, HWNDInternal);
System\Windows\Forms\Controls\ListView\ListView.cs (6)
3205
return FindItem(true, text, isPrefixSearch, new
Point
(0, 0), SearchDirectionHint.Down, startIndex, includeSubItemsInSearch);
3264
return FindItem(false, string.Empty, false, new
Point
(x, y), searchDirection, 0, false);
3476
pt = new
Point
(x, y)
3525
pt = new
Point
(x, y)
3712
pt = new
Point
(x, y)
5432
Point pt =
new
(x, y);
System\Windows\Forms\Controls\ListView\ListView.ListViewAccessibleObject.cs (1)
291
Point hitTestPoint =
new
(x, y);
System\Windows\Forms\Controls\ListView\ListViewItem.cs (2)
33
private Point _position =
new
(-1, -1);
1305
private bool ShouldSerializePosition() => !_position.Equals(new
Point
(-1, -1));
System\Windows\Forms\Controls\ListView\ListViewItem.IKeyboardToolTip.cs (1)
97
Point point =
new
(listviewBounds.X + itemBounds.X, listviewBounds.Y + itemBounds.Y);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
1300
pt = new
Point
(x, y),
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.MonthCalendarAccessibleObject.cs (1)
394
Point point = owner.PointToClient(new
Point
(xScreen, yScreen));
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (7)
1974
ControlPaint.DrawReversibleLine(new
Point
(rc.X + i, rc.Y), new
Point
(rc.X + i, rc.Y + rc.Height), targetControl.BackColor);
1981
ControlPaint.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);
4111
Point temp =
new
(e.X, e.Y);
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.PropertyGridAccessibleObject.cs (1)
29
Point clientPoint = owningPropertyGrid.PointToClient(new
Point
((int)x, (int)y));
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CommandsPane.cs (1)
224
links[i] = new
Point
(index, name.Length);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (3)
20
protected static Point InvalidPoint { get; } =
new
(int.MinValue, int.MinValue);
1614
_labelTipPoint = maxSpace <= labelWidth ? new
Point
(stringX + 2, rect.Y + 1) : InvalidPoint;
1946
ValueToolTipLocation = doToolTip ? new
Point
(rect.X + 2, rect.Y - 1) : InvalidPoint;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (10)
127
Location =
new
(73, 30),
136
Location =
new
(3, 3),
148
Location =
new
(3, 3),
161
Location =
new
(131, 3),
173
Location =
new
(212, 3),
187
Location =
new
(0, 79),
210
Location =
new
(3, 3),
229
Location =
new
(1, 0),
250
Location =
new
(4, 114),
320
_detailsTextBox.Location = new
Point
(x, y);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (4)
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)
323
return new
Point
(mouseX, mouseY);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (12)
23
private static Point InvalidPoint { get; } =
new
(int.MinValue, int.MinValue);
53
private static Point InvalidPosition { get; } =
new
(int.MinValue, int.MinValue);
91
private Point _location =
new
(1, 1);
456
Point point = PointToScreen(
new
(rect.X, rect.Y));
457
return new
Point
(point.X + (rect.Width / 2), point.Y + (rect.Height / 2));
602
Point pt =
new
(rect.X, rect.Y);
1102
Point newOrigin =
new
(rect.X, rect.Y);
1157
Point newOrigin =
new
(rect.X, rect.Y);
1419
Point location = PointToScreen(new
Point
(0, 0));
1658
Point pt =
new
(RowLabel, 0);
2983
_lastMouseDown = new
Point
(e.X, e.Y);
3786
Point location = parent.PointToScreen(
new
(rect.left, rect.top));
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (2)
397
_dragStart = PointToScreen(new
Point
(e.X, e.Y));
429
Point dragPoint = PointToScreen(new
Point
(e.X, e.Y));
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.PropertyGridViewAccessibleObject.cs (1)
431
Point point =
new
(x, y);
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
2218
Point 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)
25
private static readonly Point s_defaultPaddingPoint =
new
(6, 3);
System\Windows\Forms\Controls\TabControl\TabControl.TabControlAccessibleObject.cs (1)
90
Point point =
new
(x, y);
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (2)
1593
return new
Point
(PARAM.SignedLOWORD(i), PARAM.SignedHIWORD(i));
2044
client = new
Point
(Width / 2, Height / 2);
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (2)
371
Point ptStart =
new
(rectangle.X + 1, rectangle.Y + 1);
372
Point ptEnd =
new
(rectangle.Right - 1, rectangle.Bottom - 1);
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (2)
582
gripLocation = new
Point
(SizeGripBounds.Left, SizeGripBounds.Bottom);
586
gripLocation = new
Point
(SizeGripBounds.Right, SizeGripBounds.Bottom);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (8)
28
internal static Point s_invalidMouseEnter =
new
(int.MaxValue, int.MaxValue);
2140
Point midPointOfCurrent =
new
(selectedItem.Bounds.X + selectedItem.Width / 2,
2164
Point otherItemMidLocation =
new
(otherItem.Bounds.X + otherItem.Width / 2, (down) ? otherItem.Bounds.Top : otherItem.Bounds.Bottom);
2604
ToolStripLocationCancelEventArgs cae = new(new
Point
(x, y), false);
3330
Point itemRelativePoint = item.TranslatePoint(new
Point
(mea.X, mea.Y), ToolStripPointType.ToolStripCoords, ToolStripPointType.ToolStripItemCoords);
3386
Point itemRelativePoint = item!.TranslatePoint(new
Point
(mea.X, mea.Y), ToolStripPointType.ToolStripCoords, ToolStripPointType.ToolStripItemCoords);
3430
Point itemRelativePoint = item.TranslatePoint(new
Point
(mea.X, mea.Y), ToolStripPointType.ToolStripCoords, ToolStripPointType.ToolStripItemCoords);
3864
public ToolStripItem? GetItemAt(int x, int y) => GetItemAt(new
Point
(x, y));
System\Windows\Forms\Controls\ToolStrips\ToolStrip.ToolStripAccessibleObject.cs (1)
29
Point clientHit = owner.PointToClient(new
Point
(x, y));
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxFlatComboAdapter.cs (1)
142
Point middle =
new
(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.Height / 2);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (4)
21
private Point _displayLocation =
new
(0, 0);
1043
dropDownBounds.Location = new
Point
(start.X + offset.X, start.Y + offset.Y);
1844
Show(control, new
Point
(x, y));
1865
_displayLocation = new
Point
(x, y);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (1)
336
dropDownBounds.Location = new
Point
(itemScreenLocation.X + offset.X, itemScreenLocation.Y + offset.Y);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (5)
363
nextPoint = new
Point
(_checkPadding.Left, _checkPadding.Top);
378
nextPoint = new
Point
(1, _checkPadding.Top);
398
nextPoint = new
Point
(1, _checkPadding.Top);
796
Point upLocation =
new
(1, 0);
803
Point downLocation =
new
(1, height - downSize.Height);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropTargetManager.cs (1)
56
return _owner.GetItemAt(_owner.PointToClient(new
Point
(x, y)));
System\Windows\Forms\Controls\ToolStrips\ToolStripGrip.cs (3)
120
_startLocation = TranslatePoint(new
Point
(mea.X, mea.Y), ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords);
160
Point endLocation = TranslatePoint(new
Point
(mea.X, mea.Y), ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords);
217
Point endLocation = TranslatePoint(new
Point
(mea.X, mea.Y), ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (7)
423
return new
Point
(toolStripToDrag.Right, toolStripToDrag.Top);
529
controlLocations[j] = new
Point
(row.Bounds.Width - control.Right, control.Top);
731
location = new
Point
(0, dragRect.Bottom - 1);
735
location = new
Point
(dragRect.Right - 1, 0);
743
Join(toolStripToDrag, new
Point
(x, y));
894
Point endLocation = (Orientation == Orientation.Horizontal) ? new
Point
(clientLocation.X, row.Bounds.Y) : new
Point
(row.Bounds.X, clientLocation.Y);
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (10)
854
Point topRight =
new
(bounds.Width - 1, 0);
855
Point bottomLeft =
new
(0, bounds.Height - 1);
856
Point bottomRight =
new
(bounds.Width - 1, bounds.Height - 1);
1270
Point start =
new
(overflowBoundsFill.Left - 1, overflowBoundsFill.Height - 2);
1271
Point end =
new
(overflowBoundsFill.Left, overflowBoundsFill.Height - 2);
1298
Point top1 =
new
(overflowBoundsFill.X - 2, 0);
1299
Point top2 =
new
(overflowBoundsFill.X - 1, 1);
1345
Point topRight =
new
(bounds.Width - 1, 0);
1346
Point bottomLeft =
new
(0, bounds.Height - 1);
1648
Point middle =
new
(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.Height / 2);
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (1)
618
Point middle =
new
(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.Height / 2);
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (1)
466
Point clickPoint =
new
(e.X, e.Y);
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackDragDropHandler.cs (3)
26
ShowItemDropPoint(_owner.PointToClient(new
Point
(e.X, e.Y)));
40
OnDropItem(item, _owner.PointToClient(new
Point
(e.X, e.Y)));
48
if (ShowItemDropPoint(_owner.PointToClient(new
Point
(e.X, e.Y))))
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (2)
320
Point itemLocation =
new
(x, y);
452
Point itemLocation =
new
(x, y);
System\Windows\Forms\Controls\TrackBar\TrackBar.TrackBarAccessibleObject.cs (1)
107
Point point =
new
(x, y);
System\Windows\Forms\Controls\TreeView\TreeView.cs (4)
1641
pt = new
Point
(x, y)
1682
pt = new
Point
(x, y)
2829
Point textLoc =
new
(bounds.X - 1, bounds.Y); // required to center the text
3431
client = new
Point
(treeNode.Bounds.X, treeNode.Bounds.Y + treeNode.Bounds.Height / 2);
System\Windows\Forms\Controls\TreeView\TreeView.TreeViewAccessibleObject.cs (1)
64
Point p = owningTreeView.PointToClient(new
Point
(x, y));
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (2)
324
Point pt1 =
new
(clientRect.Left, clientRect.Bottom - 1);
325
Point pt2 =
new
(clientRect.Right, clientRect.Bottom - 1);
System\Windows\Forms\Controls\WebBrowser\HtmlWindow.cs (1)
176
return
new
(x, y);
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (1)
1356
client = new
Point
(Width / 2, Height / 2);
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
1112
Point phm =
new
(sz.Width, sz.Height);
System\Windows\Forms\Dialogs\ThreadExceptionDialog.cs (1)
256
_pictureBox.Location = new
Point
(_scaledPictureWidth / 8, _scaledPictureHeight / 8);
System\Windows\Forms\Form.cs (2)
4355
Point pointToSnap =
new
(button.Left + button.Width / 2, button.Top + button.Height / 2);
5333
Location = new
Point
(workingArea.X + x, workingArea.Y + y);
System\Windows\Forms\Input\Cursor.cs (1)
173
return new
Point
((int)info.xHotspot, (int)info.yHotspot);
System\Windows\Forms\Input\MouseEventArgs.cs (1)
64
public Point Location =>
new
(X, Y);
System\Windows\Forms\Internal\WinFormsUtils.cs (1)
29
return new
Point
(PARAM.SignedLOWORD(lastXY), PARAM.SignedHIWORD(lastXY));
System\Windows\Forms\Layout\Containers\SplitContainer.cs (20)
1645
Panel2.Location = new
Point
(Panel1.WidthInternal + SplitterWidthInternal, 0);
1649
Panel1.Location = new
Point
(Width - Panel1.WidthInternal, 0);
1660
Panel2.Location = new
Point
(0, 0);
1665
Panel1.Location = new
Point
(0, 0);
1680
Panel2.Location = new
Point
(0, panel2Start);
1690
Panel2.Location = new
Point
(0, panel2Start);
1705
Panel2.Location = new
Point
(0, panel2Start);
1716
Panel2.Location = new
Point
(0, 0);
1721
Panel1.Location = new
Point
(0, 0);
2091
_anchor = new
Point
(x, y);
2182
Panel1.Location = new
Point
(0, 0);
2183
Panel2.Location = new
Point
(_splitterDistance + SplitterWidthInternal, 0);
2187
Panel1.Location = new
Point
(Width - _splitterDistance, 0);
2188
Panel2.Location = new
Point
(0, 0);
2203
Panel2.Location = new
Point
(0, 0);
2208
Panel1.Location = new
Point
(0, 0);
2223
Panel1.Location = new
Point
(0, 0);
2229
Panel2.Location = new
Point
(0, panel2Start);
2244
Panel2.Location = new
Point
(0, 0);
2249
Panel1.Location = new
Point
(0, 0);
System\Windows\Forms\Layout\FlowLayout.ContainerProxy.cs (2)
67
Point pt =
new
(value.X, value.Y);
145
Point pt =
new
(newBounds.X, newBounds.Y);
System\Windows\Forms\Layout\FlowLayout.cs (1)
25
Rectangle measureBounds = new(new
Point
(0, 0), proposedConstraints);
System\Windows\Forms\OLE\DragDropHelper.cs (3)
82
Point point =
new
(e.X, e.Y);
128
Point point =
new
(e.X, e.Y);
144
Point point =
new
(e.X, e.Y);
System\Windows\Forms\Printing\PrintControllerWithStatusDialog.StatusDialog.cs (3)
38
Location = new
Point
(8, 16),
50
Location = new
Point
(88, 88),
61
Location = new
Point
(0, 0),
System\Windows\Forms\Printing\PrintPreviewControl.cs (3)
35
private Point _position =
new
(0, 0);
477
_screenDPI = new
Point
(
625
Point offset =
new
(
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
911
_previewControl.Location = new
Point
(0, 43);
System\Windows\Forms\Rendering\ControlPaint.cs (3)
491
new
Point
(imageRect.X - imageRectangle.X, imageRect.Y - imageRectangle.Y),
1675
Point start =
new
(bounds.X + bounds.Width - 1, bounds.Y - 1);
1676
Point end =
new
(bounds.X + bounds.Width - 1, bounds.Y + bounds.Height);
System\Windows\Forms\Scrolling\ScrollableControl.cs (2)
124
return new
Point
(rect.X, rect.Y);
901
return new
Point
(xCalc, yCalc);
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarAccessibleObject.cs (1)
91
Point point =
new
(x, y);
System\Windows\Forms\ToolTip\ToolTip.cs (7)
1414
SetTool(window, text, TipInfo.Type.Absolute, new
Point
(pointX, pointY));
1433
SetTool(window, text, TipInfo.Type.Absolute, new
Point
(pointX, pointY));
1451
SetTool(window, text, TipInfo.Type.Absolute, new
Point
(pointX, pointY));
1469
SetTool(window, text, TipInfo.Type.Absolute, new
Point
(pointX, pointY));
1490
SetTool(ownerWindow, text, TipInfo.Type.Absolute, new
Point
(pointX, pointY));
1505
tipInfo.Position = new
Point
(pointX, pointY);
1630
return new
Point
(optimalLocation.Left, optimalLocation.Top);
System.Windows.Forms.Design (147)
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (1)
244
Point middle =
new
(
System\ComponentModel\Design\DesignerActionPanel.CheckBoxPropertyLine.cs (1)
39
_checkBox.Location = new
Point
(LineLeftMargin, top + LineVerticalPadding / 2);
System\ComponentModel\Design\DesignerActionPanel.cs (1)
345
return new
Point
(x, y);
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (2)
177
_button.Location = new
Point
(EditRegionLocation.X + EditRegionSize.Width - buttonHeight - EditorLineButtonPadding, EditRegionLocation.Y + EditorLineButtonPadding + 1);
300
g.DrawImage(_swatch, new
Point
(EditRegionRelativeLocation.X + 2, EditorLineSwatchPadding + 5));
System\ComponentModel\Design\DesignerActionPanel.MethodLine.cs (1)
48
_linkLabel.Location = new
Point
(LineLeftMargin, top + LineVerticalPadding / 2);
System\ComponentModel\Design\DesignerActionPanel.PanelHeaderLine.cs (2)
65
_titleLabel.Location = new
Point
(LineLeftMargin, top + PanelHeaderVerticalPadding);
68
_subtitleLabel.Location = new
Point
(LineLeftMargin, top + PanelHeaderVerticalPadding * 2 + titleSize.Height);
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (6)
105
_editRegionLocation = new
Point
(editRegionXPos, top + TextBoxTopPadding);
106
EditRegionRelativeLocation = new
Point
(editRegionXPos, TextBoxTopPadding);
109
_label.Location = new
Point
(LineLeftMargin, top);
114
EditControl!.Location = new
Point
(_editRegionLocation.X + GetTextBoxLeftPadding(textBoxPreferredHeight) + 1 + specialPadding, _editRegionLocation.Y + TextBoxLineInnerPadding + 1);
137
_textBox.Location = new
Point
(int.MaxValue, int.MaxValue);
144
_readOnlyTextBoxLabel.Location = new
Point
(int.MaxValue, int.MaxValue);
System\ComponentModel\Design\DesignerActionPanel.TextLine.cs (1)
43
_label.Location = new
Point
(LineLeftMargin, top + LineVerticalPadding / 2);
System\ComponentModel\Design\DesignerActionUI.cs (1)
665
Point glyphLocationScreenCoord =
new
(0, 0);
System\Drawing\Design\ColorEditor.ColorPalette.ColorPaletteAccessibleObject.ColorCellAccessibleObject.cs (1)
36
Point pt =
new
(rect.X, rect.Y);
System\Drawing\Design\ColorEditor.ColorPalette.ColorPaletteAccessibleObject.cs (1)
43
Point point = palette.PointToClient(
new
(x, y));
System\Drawing\Design\ColorEditor.ColorPalette.cs (5)
137
return new
Point
(x, y);
165
return new
Point
(-1, -1);
172
return new
Point
(-1, -1);
175
return new
Point
(across, down);
196
return new
Point
(x, y);
System\Drawing\Design\ColorEditor.ColorUI.cs (1)
318
_pal.Location = new
Point
(0, rectTabControl.Y);
System\Drawing\Design\ContentAlignmentEditor.ContentUI.cs (8)
225
_topCenter.Location = new
Point
(pixel_32, 0);
228
_topRight.Location = new
Point
(pixel_99, 0);
231
_middleLeft.Location = new
Point
(0, pixel_32);
234
_middleCenter.Location = new
Point
(pixel_32, pixel_32);
237
_middleRight.Location = new
Point
(pixel_99, pixel_32);
240
_bottomLeft.Location = new
Point
(0, pixel_64);
243
_bottomCenter.Location = new
Point
(pixel_32, pixel_64);
246
_bottomRight.Location = new
Point
(pixel_99, pixel_64);
System\Windows\Forms\Design\AnchorEditor.AnchorUI.cs (6)
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)
345
Point mouseLoc =
new
(x, y);
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.MouseHook.cs (1)
179
Point pt = adornerWindow.PointToClient(new
Point
(x, y));
System\Windows\Forms\Design\Behavior\BehaviorService.cs (2)
260
public Point AdornerWindowToScreen() => AdornerWindowPointToScreen(new
Point
(0, 0));
272
Point pt =
new
(c.Left, c.Top);
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (2)
1100
_dragOffset = new
Point
(dragBounds.X - _dragOffset.X, dragBounds.Y - _dragOffset.Y);
1143
Point snapPoint =
new
(_snapPointX != INVALID_VALUE ? _snapPointX : 0, _snapPointY != INVALID_VALUE ? _snapPointY : 0);
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (9)
113
_lastFeedbackLocation = new
Point
(-1, -1);
143
Point controlLocation =
new
(dragLoc.X - _parentLocation.X, dragLoc.Y - _parentLocation.Y);
271
Point pt =
new
(dropPoint.X, dropPoint.Y);
493
Point dropPoint =
new
(initialDropPoint.X + _dragComponents[i].positionOffset.X,
588
_lastFeedbackLocation = new
Point
(-1, -1);
739
Point newPosition =
new
(mouseLoc.X - _initialMouseLoc.X + _dragComponents[_primaryComponentIndex].originalControlLocation.X,
788
newPosition = 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)
482
Point mouseLocAbs =
new
(mouseLoc.X, mouseLoc.Y);
547
_lastMouseAbs = new
Point
(mouseLoc.X, mouseLoc.Y);
System\Windows\Forms\Design\Behavior\ToolboxItemSnapLineBehavior.cs (2)
261
ToolboxSnapDragDropEventArgs se = CreateToolboxSnapArgs(e, new
Point
(e.X - screenOffset.X, e.Y - screenOffset.Y));
350
Point adornerServiceOrigin = _behaviorService.MapAdornerWindowPoint(baseControl.Handle, new
Point
(0, 0));
System\Windows\Forms\Design\CommandSet.cs (3)
813
Point snappedOffset = dragManager.OffsetToNearestSnapLocation(primaryControl, new
Point
(moveOffsetX, moveOffsetY));
3278
Point offset =
new
(-min.X, -min.Y);
3291
Point parentOffset =
new
(parentSize.Width / 2, parentSize.Height / 2);
System\Windows\Forms\Design\ComponentTray.cs (19)
27
private static Point InvalidPoint { get; } =
new
(int.MinValue, int.MinValue);
365
AutoScrollPosition = new
Point
(0, 0);
604
SetTrayLocation(comp, new
Point
(tc.Location.X - _autoScrollPosBeforeDragging.X, tc.Location.Y - _autoScrollPosBeforeDragging.Y));
608
AutoScrollPosition = new
Point
(-_autoScrollPosBeforeDragging.X, -_autoScrollPosBeforeDragging.Y);
994
return 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);
1575
location = new
Point
(location.X + autoScrollLoc.X, location.Y + autoScrollLoc.Y);
1832
Point newLoc =
new
(display.X + _whiteSpace.X, display.Y + _whiteSpace.Y);
1844
newLoc = new
Point
(newLoc.X - autoScrollLoc.X, newLoc.Y - autoScrollLoc.Y);
1860
Point newLoc =
new
(bounds.X + bounds.Width + _whiteSpace.X, bounds.Y);
1879
newLoc = new
Point
(newLoc.X - autoScrollLoc.X, newLoc.Y - autoScrollLoc.Y);
2161
_mouseDragLast = PointToScreen(new
Point
(me.X, me.Y));
2194
Point newPt = PointToScreen(new
Point
(me.X, me.Y));
2691
return _hitTestedGlyph.Behavior.OnMouseDoubleClick(_hitTestedGlyph, e.Button, new
Point
(e.X, e.Y));
2705
return _hitTestedGlyph.Behavior.OnMouseDown(_hitTestedGlyph, e.Button, new
Point
(e.X, e.Y));
2719
return _hitTestedGlyph.Behavior.OnMouseMove(_hitTestedGlyph, e.Button, new
Point
(e.X, e.Y));
System\Windows\Forms\Design\ControlCommandSet.cs (1)
634
Point snappedOffset = dragManager.OffsetToNearestSnapLocation(primaryControl, targetSnaplines, new
Point
(moveOffsetX, moveOffsetY));
System\Windows\Forms\Design\ControlDesigner.cs (3)
20
protected static readonly Point InvalidPoint =
new
(int.MinValue, int.MinValue);
301
return new
Point
(Math.Abs(nativeOffset.X - offset.X), nativeOffset.Y - offset.Y);
1306
_mouseDragLast = new
Point
(x, y);
System\Windows\Forms\Design\ControlDesigner.TransparentBehavior.cs (1)
71
if (e is not null && _controlRect != Rectangle.Empty && !_controlRect.Contains(new
Point
(e.X, e.Y)))
System\Windows\Forms\Design\DesignBindingPicker.cs (2)
1753
Point pt =
new
(e.X, e.Y);
2074
TreeViewHitTestInfo 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)
159
return new
Point
(PARAM.SignedLOWORD(lastXY), PARAM.SignedHIWORD(lastXY));
System\Windows\Forms\Design\DockEditor.DockUI.cs (1)
194
_container.Location = new
Point
(scaledOffset, scaledOffset);
System\Windows\Forms\Design\DocumentDesigner.cs (1)
785
Location = new
Point
(0, 0);
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (17)
396
ReDrawIBar(new
Point
(bounds.Left, bounds.Top), new
Point
(bounds.Left, bounds.Bottom));
399
ReDrawIBar(new
Point
(bounds.Right, bounds.Top), new
Point
(bounds.Right, bounds.Bottom));
402
ReDrawIBar(new
Point
(bounds.Left, bounds.Top), new
Point
(bounds.Right, bounds.Top));
405
ReDrawIBar(new
Point
(bounds.Left, bounds.Bottom), new
Point
(bounds.Right, bounds.Bottom));
415
ReDrawIBar(new
Point
(bounds.Right, bounds.Top), new
Point
(bounds.Right, bounds.Bottom));
418
ReDrawIBar(new
Point
(bounds.Left, bounds.Top), new
Point
(bounds.Left, bounds.Bottom));
421
ReDrawIBar(new
Point
(bounds.Left, bounds.Bottom), new
Point
(bounds.Right, bounds.Bottom));
424
ReDrawIBar(new
Point
(bounds.Left, bounds.Top), new
Point
(bounds.Right, bounds.Top));
790
Point mouseLocation =
new
(de.X, de.Y);
System\Windows\Forms\Design\FormatStringDialog.cs (3)
174
_formatControl1.Location = new Drawing.
Point
(10, 10);
182
_cancelButton.Location = new Drawing.
Point
(299, 288);
192
_okButton.Location = new Drawing.
Point
(203, 288);
System\Windows\Forms\Design\GroupBoxDesigner.cs (1)
27
return new
Point
(gb.DisplayRectangle.X, gb.DisplayRectangle.Y);
System\Windows\Forms\Design\OleDragDropHandler.cs (6)
191
defaultValues["Location"] = new
Point
(x, y);
463
_dragBase = new
Point
(initialX, initialY);
465
c.PointToClient(new
Point
(initialX, initialY));
758
Point dropPt = Destination.GetDesignerControl().PointToClient(new
Point
(de.X, de.Y));
965
Point convertedPoint = Destination.GetDesignerControl().PointToClient(new
Point
(de.X, de.Y));
968
Point newOffset = _forceDrawFrames ? convertedPoint : new
Point
(de.X - _dragBase.X, de.Y - _dragBase.Y);
System\Windows\Forms\Design\ParentControlDesigner.cs (10)
111
protected virtual Point DefaultControlLocation =>
new
(0, 0);
576
Point pt =
new
(bounds.X, bounds.Y);
1121
return new
Point
(r.X, r.Y);
1139
Point halfGrid =
new
(gridSize.Width / 2, gridSize.Height / 2);
1433
CreateTool(_mouseDragTool, new
Point
(de.X, de.Y));
1729
_mouseDragBase = new
Point
(x, y);
1823
Point location =
new
(baseVar.X, baseVar.Y);
2014
Point offset =
new
(_mouseDragOffset.X, _mouseDragOffset.Y);
2191
newLoc = new
Point
(controlLoc.X - parentLoc.X, controlLoc.Y - parentLoc.Y);
2196
newLoc = new
Point
(controlLoc.X + oldParentLoc.X, controlLoc.Y + oldParentLoc.Y);
System\Windows\Forms\Design\SelectionUIService.cs (4)
25
private static readonly Point s_invalidPoint =
new
(int.MinValue, int.MinValue);
519
Point anchor = PointToScreen(new
Point
(me.X, me.Y));
606
Point screenCoord = PointToScreen(new
Point
(me.X, me.Y));
718
Point screenCoord = PointToScreen(new
Point
(me.X, me.Y));
System\Windows\Forms\Design\SplitterPanelDesigner.cs (1)
194
TextRenderer.DrawText(g, name, drawFont, new
Point
(watermarkX, watermarkY), waterMarkTextColor, TextFormatFlags.PreserveGraphicsClipping | TextFormatFlags.PreserveGraphicsTranslateTransform);
System\Windows\Forms\Design\TabControlDesigner.cs (1)
573
Point dropPoint = Control.PointToClient(new
Point
(de.X, de.Y));
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (3)
972
Point position =
new
(-1, -1);
1056
return new
Point
(pos.Column, pos.Row);
1295
Point cell = GetCellPosition(new
Point
(x, y));
System\Windows\Forms\Design\ToolStripAdornerWindowService.cs (2)
98
public Point AdornerWindowToScreen() => AdornerWindowPointToScreen(new
Point
(0, 0));
110
Point pt =
new
(c.Left, c.Top);
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
1802
Point offset =
new
(de.X, de.Y);
System\Windows\Forms\Design\ToolStripEditorManager.cs (1)
131
Location = new
Point
(bounds.X, bounds.Y);
System\Windows\Forms\Design\ToolStripItemBehavior.cs (2)
991
parentDesigner.DragBoxFromMouseDown = _dragBoxFromMouseDown = new Rectangle(new
Point
(mouseLoc.X - (dragSize.Width / 2), mouseLoc.Y - (dragSize.Height / 2)), dragSize);
1014
ownerItemDesigner._dragBoxFromMouseDown = _dragBoxFromMouseDown = new Rectangle(new
Point
(mouseLoc.X - (dragSize.Width / 2), mouseLoc.Y - (dragSize.Height / 2)), dragSize);
System\Windows\Forms\Design\ToolStripItemDesigner.cs (1)
1317
newPoint = behaviorService.ScreenToAdornerWindow(new
Point
(x, y));
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (1)
507
node.ShowContextMenu(new
Point
(x, y));
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
1376
dropDownItem.DropDown.Location = new
Point
(dropDownItem.DropDown.Location.X + _commitedEditorNode.Bounds.Width - dropDownItem.Bounds.Width, dropDownItem.DropDown.Location.Y);
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (2)
528
Point position = new
Point
(0, 0)
571
Point position = new
Point
(0, 0)
System.Windows.Forms.Primitives (3)
System\Windows\Forms\Automation\UiaTextRange.cs (1)
380
Point mapClientToScreen =
new
((int)ownerBounds[0], (int)ownerBounds[1]);
Windows\Win32\Foundation\Interop.PARAM.cs (1)
72
=>
new
(SignedLOWORD(param), SignedHIWORD(param));
Windows\Win32\UI\Accessibility\UiaPoint.cs (1)
10
public static implicit operator Point(UiaPoint value) =>
new
((int)value.x, (int)value.y);
System.Windows.Forms.Primitives.Tests (55)
System\SpanReaderTests.cs (4)
103
value.Should().Be(new
Point
(1, 2));
106
value.Should().Be(new
Point
(3, 4));
120
value.ToArray().Should().BeEquivalentTo([new
Point
(1, 2), new
Point
(3, 4)]);
System\SpanWriterTests.cs (15)
76
writer.TryWriteCount(2, new
Point
(1, 2)).Should().BeTrue();
77
span.ToArray().Should().BeEquivalentTo([new
Point
(1, 2), new
Point
(1, 2), default, default, default]);
79
writer.TryWriteCount(2, new
Point
(3, 4)).Should().BeTrue();
80
span.ToArray().Should().BeEquivalentTo([new
Point
(1, 2), new
Point
(1, 2), new
Point
(3, 4), new
Point
(3, 4), default]);
82
writer.TryWriteCount(1, new
Point
(5, 6)).Should().BeTrue();
83
span.ToArray().Should().BeEquivalentTo([new
Point
(1, 2), new
Point
(1, 2), new
Point
(3, 4), new
Point
(3, 4), new
Point
(5, 6)]);
85
writer.TryWriteCount(1, new
Point
(7, 8)).Should().BeFalse();
System\Windows\Forms\Automation\UiaTextRangeTests.cs (28)
658
providerMock.Setup(m => m.GetPositionFromChar(3)).Returns(new
Point
(17, 0));
659
providerMock.Setup(m => m.GetPositionFromChar(0)).Returns(new
Point
(1, 0));
660
providerMock.Setup(m => m.GetPositionFromCharForUpperRightCorner(5, testText)).Returns(new
Point
(28, 0));
661
providerMock.Setup(m => m.GetPositionFromCharForUpperRightCorner(1, testText)).Returns(new
Point
(17, 0));
727
providerMock.Setup(m => m.GetPositionFromChar(0)).Returns(new
Point
(5, 1));
728
providerMock.Setup(m => m.GetPositionFromChar(16)).Returns(new
Point
(5, 18));
729
providerMock.Setup(m => m.GetPositionFromChar(23)).Returns(new
Point
(45, 18));
730
providerMock.Setup(m => m.GetPositionFromChar(31)).Returns(new
Point
(5, 35));
731
providerMock.Setup(m => m.GetPositionFromChar(46)).Returns(new
Point
(5, 52));
732
providerMock.Setup(m => m.GetPositionFromChar(58)).Returns(new
Point
(5, 69));
734
providerMock.Setup(m => m.GetPositionFromCharForUpperRightCorner(15, testText)).Returns(new
Point
(108, 1));
735
providerMock.Setup(m => m.GetPositionFromCharForUpperRightCorner(30, testText)).Returns(new
Point
(90, 18));
736
providerMock.Setup(m => m.GetPositionFromCharForUpperRightCorner(45, testText)).Returns(new
Point
(88, 35));
737
providerMock.Setup(m => m.GetPositionFromCharForUpperRightCorner(52, testText)).Returns(new
Point
(61, 52));
738
providerMock.Setup(m => m.GetPositionFromCharForUpperRightCorner(57, testText)).Returns(new
Point
(95, 52));
739
providerMock.Setup(m => m.GetPositionFromCharForUpperRightCorner(62, testText)).Returns(new
Point
(45, 69));
809
providerMock.Setup(m => m.GetPositionFromChar(0)).Returns(new
Point
(22, 1));
810
providerMock.Setup(m => m.GetPositionFromChar(16)).Returns(new
Point
(42, 18));
811
providerMock.Setup(m => m.GetPositionFromChar(23)).Returns(new
Point
(82, 18));
812
providerMock.Setup(m => m.GetPositionFromChar(31)).Returns(new
Point
(42, 35));
813
providerMock.Setup(m => m.GetPositionFromChar(46)).Returns(new
Point
(37, 52));
814
providerMock.Setup(m => m.GetPositionFromChar(58)).Returns(new
Point
(83, 69));
816
providerMock.Setup(m => m.GetPositionFromCharForUpperRightCorner(15, testText)).Returns(new
Point
(125, 1));
817
providerMock.Setup(m => m.GetPositionFromCharForUpperRightCorner(30, testText)).Returns(new
Point
(127, 18));
818
providerMock.Setup(m => m.GetPositionFromCharForUpperRightCorner(45, testText)).Returns(new
Point
(125, 35));
819
providerMock.Setup(m => m.GetPositionFromCharForUpperRightCorner(52, testText)).Returns(new
Point
(93, 52));
820
providerMock.Setup(m => m.GetPositionFromCharForUpperRightCorner(57, testText)).Returns(new
Point
(127, 52));
821
providerMock.Setup(m => m.GetPositionFromCharForUpperRightCorner(62, testText)).Returns(new
Point
(123, 69));
System\Windows\Forms\DeviceContextHdcScopeTests.cs (8)
31
Assert.Equal(new
Point
(1, 2), origin);
46
Assert.Equal(new
Point
(0, 0), origin);
61
Assert.Equal(new
Point
(1, 2), origin);
76
Assert.Equal(new
Point
(0, 0), origin);
114
Assert.Equal(new
Point
(1, 2), origin);
141
Assert.Equal(new
Point
(0, 0), origin);
164
Assert.Equal(new
Point
(1, 2), origin);
187
Assert.Equal(new
Point
(0, 0), origin);
System.Windows.Forms.Primitives.TestUtilities (1)
Extensions\GdiExtensions.cs (1)
31
return new
Point
((int)x, (int)y);
System.Windows.Forms.Tests (597)
NumericUpDownTests.cs (4)
59
new
(0, 18),
new
(16, 18),
94
new
(0, 18),
new
(16, 18),
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxItemAccessibleObjectTests.cs (1)
373
Point point =
new
(x, y + initialYPosition);
System\Windows\Forms\AccessibleObjects\DataGridViewAccessibleObjectTests.cs (2)
159
actualBounds.Location = new
Point
(0, 0);
180
actualBounds.Location = new
Point
(0, 0);
System\Windows\Forms\AccessibleObjects\ListBoxAccessibleObjectTests.cs (1)
348
Point testPoint = new
Point
(10, 10);
System\Windows\Forms\AccessibleObjects\ListVIew.ListViewAccessibleObjectTests.cs (1)
1177
Point point =
new
(15, 55);
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (2)
306
actualBounds.Location = new
Point
(0, 0);
344
actualBounds.Location = new
Point
(0, 0);
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObjectTests.cs (2)
664
actualBounds.Location = new
Point
(0, 0);
667
Location = new
Point
(0, 0)
System\Windows\Forms\AccessibleObjects\Panel.PanelAccessibleObjectTests.cs (2)
265
panel1.Location =
new
(50, 50);
268
button1.Location =
new
(17, 16);
System\Windows\Forms\AccessibleObjects\PropertyGridView.PropertyGridViewAccessibleObjectTests.cs (1)
236
propertyGrid.Location = new
Point
(0, 0);
System\Windows\Forms\AccessibleObjects\TabPage.TabPageAccessibleObjectTests.cs (3)
532
tabControl.Location =
new
(22, 25);
535
button.Location =
new
(16, 12);
540
tabPage.Location =
new
(4, 24);
System\Windows\Forms\AccessibleObjects\TreeView.TreeViewAccessibleObjectTests.cs (1)
249
Point point =
new
(accessibleObject.Bounds.X, accessibleObject.Bounds.Bottom - 1);
System\Windows\Forms\BinaryFormatUtilitiesTests.cs (5)
124
new
Point
(-1, int.MaxValue),
861
Location = new
Point
(1, 2);
903
public Point Point =
new
(1, 2);
1045
Point =
new
(1, 2);
1048
public Point Point { get; set; } =
new
(1, 2);
System\Windows\Forms\ButtonRenderingTests.cs (32)
47
new
(bounds.Right - 1, 0),
new
(0, 0),
50
new
(0, 0),
new
(0, bounds.Bottom - 1),
53
new
(0, bounds.Bottom - 1),
new
(bounds.Right - 1, bounds.Bottom - 1),
56
new
(bounds.Right - 1, bounds.Bottom - 1),
new
(bounds.Right - 1, -1),
59
new
(bounds.Right - 2, 1),
new
(1, 1),
62
new
(1, 1),
new
(1, bounds.Bottom - 2),
65
new
(1, bounds.Bottom - 2),
new
(bounds.Right - 2, bounds.Bottom - 2),
68
new
(bounds.Right - 2, bounds.Bottom - 2),
new
(bounds.Right - 2, 0),
133
new
(bounds.Right - 1, 0),
new
(0, 0),
136
new
(0, 0),
new
(0, bounds.Bottom - 1),
139
new
(0, bounds.Bottom - 1),
new
(bounds.Right - 1, bounds.Bottom - 1),
142
new
(bounds.Right - 1, bounds.Bottom - 1),
new
(bounds.Right - 1, -1),
145
new
(bounds.Right - 2, 1),
new
(1, 1),
148
new
(1, 1),
new
(1, bounds.Bottom - 2),
151
new
(1, bounds.Bottom - 2),
new
(bounds.Right - 2, bounds.Bottom - 2),
154
new
(bounds.Right - 2, bounds.Bottom - 2),
new
(bounds.Right - 2, 0),
System\Windows\Forms\CheckBoxRendererTests.cs (5)
28
Point point =
new
(control.Location.X, control.Location.Y);
64
Point point =
new
(control.Location.X, control.Location.Y);
101
Point point =
new
(control.Location.X, control.Location.Y);
135
Point 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)
822
MouseEventArgs eventArgs = new(MouseButtons.Left, 1, new
Point
(0, 0), 0);
System\Windows\Forms\ComboBox.ComboBoxUiaTextProviderTests.cs (14)
423
yield return new object[] { ComboBoxStyle.DropDown, new Size(50, 20), "Some test text for testing", 0, new
Point
(1, 0) };
424
yield return new object[] { ComboBoxStyle.DropDown, new Size(50, 20), "Some test text for testing", 15, new
Point
(79, 0) };
426
yield return new object[] { ComboBoxStyle.Simple, new Size(50, 20), "Some test text for testing", 0, new
Point
(1, 0) };
427
yield return new object[] { ComboBoxStyle.Simple, new Size(50, 20), "Some test text for testing", 15, new
Point
(79, 0) };
485
yield return new object[] { comboBoxStyle, new Size(50, 20), "", 0, new
Point
(0, 0) };
486
yield return new object[] { comboBoxStyle, new Size(50, 20), "Some test text", 100, new
Point
(0, 0) };
487
yield return new object[] { comboBoxStyle, new Size(50, 20), "Some test text", -1, new
Point
(0, 0) };
488
yield return new object[] { comboBoxStyle, new Size(50, 20), "Some test text", 12, new
Point
(71, 0) };
489
yield return new object[] { comboBoxStyle, new Size(100, 60), "Some test \n text", 10, new
Point
(56, 0) };
490
yield return new object[] { comboBoxStyle, new Size(100, 60), "Some test \r\n text", 10, new
Point
(56, 0) };
491
yield return new object[] { comboBoxStyle, new Size(100, 60), "Some test \r\n text", 12, new
Point
(60, 0) };
492
yield return new object[] { comboBoxStyle, new Size(100, 60), "Some test \t text", 10, new
Point
(57, 0) };
903
yield return new object[] { ComboBoxStyle.DropDown, new
Point
(10, 10) };
905
yield return new object[] { ComboBoxStyle.Simple, new
Point
(10, 10) };
System\Windows\Forms\ComboBoxTests.cs (1)
2582
ownerDrawComboBox.Location = new
Point
(0, 50);
System\Windows\Forms\ControlPaintTests.cs (22)
1708
yield return new object[] { new
Point
(1, 2), new
Point
(1, 2), Color.Red };
1709
yield return new object[] { new
Point
(2, 3), new
Point
(1, 2), Color.Red };
1710
yield return new object[] { new
Point
(1, 2), new
Point
(2, 3), Color.Empty };
1711
yield return new object[] { new
Point
(1, 2), new
Point
(2, 3), Color.Red };
1712
yield return new object[] { new
Point
(1, 2), new
Point
(2, 3), SystemColors.ControlLight };
1713
yield return new object[] { new
Point
(1, 2), new
Point
(2, 3), SystemColors.Control };
1714
yield return new object[] { new
Point
(1, 2), new
Point
(2, 3), SystemColors.ControlDark };
1715
yield return new object[] { new
Point
(1, 2), new
Point
(2, 3), Color.Black };
1716
yield return new object[] { new
Point
(1, 2), new
Point
(2, 3), Color.White };
1717
yield return new object[] { new
Point
(1, 2), new
Point
(2, 3), Color.Transparent };
1718
yield return new object[] { new
Point
(1, 2), new
Point
(2, 3), Color.Empty };
System\Windows\Forms\ControlTests.cs (6)
257
Assert.Equal(new
Point
(left, top), control.Location);
449
Assert.Equal(new
Point
(left, top), control.Location);
1044
checkedListBox1.Location = new
Point
(10, 10);
1047
button1.Location = new
Point
(12, 166);
1051
listBox1.Location = new
Point
(12, 80);
1055
listView1.Location = new
Point
(130, 10);
System\Windows\Forms\ControlTests.Handlers.cs (4)
2586
yield return new object[] { new HelpEventArgs(new
Point
(1, 2)) };
2650
HelpEventArgs eventArgs = new(new
Point
(1, 2));
2682
HelpEventArgs eventArgs = new(new
Point
(1, 2));
2704
HelpEventArgs eventArgs = new(new
Point
(1, 2));
System\Windows\Forms\ControlTests.Methods.cs (5)
2081
Assert.Null(control.GetChildAtPoint(new
Point
(5, 5), skipValue));
2085
Assert.Null(control.GetChildAtPoint(new
Point
(5, 5), skipValue));
2095
Assert.Throws<InvalidEnumArgumentException>("skipValue", () => control.GetChildAtPoint(new
Point
(5, 5), skipValue));
12513
Point p = control.PointToScreen(new
Point
(5, 5));
12587
Point p = control.PointToScreen(new
Point
(5, 5));
System\Windows\Forms\ControlTests.Properties.cs (68)
6697
Assert.Equal(new
Point
(value, 0), control.Location);
6719
Assert.Equal(new
Point
(value, 0), control.Location);
6788
Assert.Equal(new
Point
(value, 0), control.Location);
6810
Assert.Equal(new
Point
(value, 0), control.Location);
6887
Assert.Equal(new
Point
(value, 0), control.Location);
6912
Assert.Equal(new
Point
(value, 0), control.Location);
6997
Assert.Equal(new
Point
(value, 0), control.Location);
7026
Assert.Equal(new
Point
(value, 0), control.Location);
7070
Assert.Equal(new
Point
(1, 0), control.Location);
7075
Assert.Equal(new
Point
(1, 0), control.Location);
7080
Assert.Equal(new
Point
(2, 0), control.Location);
7107
Assert.Equal(new
Point
(1, 0), control.Location);
7113
Assert.Equal(new
Point
(1, 0), control.Location);
7119
Assert.Equal(new
Point
(2, 0), control.Location);
7127
Assert.Equal(new
Point
(1, 0), control.Location);
7134
yield return new object[] { new
Point
(0, 0), 0 };
7135
yield return new object[] { new
Point
(-1, -2), 1 };
7136
yield return new object[] { new
Point
(1, 0), 1 };
7137
yield return new object[] { new
Point
(0, 2), 1 };
7138
yield return new object[] { new
Point
(1, 2), 1 };
7316
yield return new object[] { resizeRedraw, new
Point
(0, 0), 0 };
7317
yield return new object[] { resizeRedraw, new
Point
(-1, -2), 1 };
7318
yield return new object[] { resizeRedraw, new
Point
(1, 0), 1 };
7319
yield return new object[] { resizeRedraw, new
Point
(0, 2), 1 };
7320
yield return new object[] { resizeRedraw, new
Point
(1, 2), 1 };
7554
control.Location = new
Point
(1, 2);
7555
Assert.Equal(new
Point
(1, 2), control.Location);
7559
control.Location = new
Point
(1, 2);
7560
Assert.Equal(new
Point
(1, 2), control.Location);
7564
control.Location = new
Point
(2, 3);
7565
Assert.Equal(new
Point
(2, 3), control.Location);
7576
control.Location = new
Point
(1, 0);
7577
Assert.Equal(new
Point
(1, 0), control.Location);
7580
control.Location = new
Point
(0, 1);
7581
Assert.Equal(new
Point
(0, 1), control.Location);
7584
control.Location = new
Point
(1, 2);
7585
Assert.Equal(new
Point
(1, 2), control.Location);
7600
control.Location = new
Point
(1, 0);
7601
Assert.Equal(new
Point
(1, 0), control.Location);
7604
control.Location = new
Point
(0, 1);
7605
Assert.Equal(new
Point
(0, 1), control.Location);
7608
control.Location = new
Point
(1, 2);
7609
Assert.Equal(new
Point
(1, 2), control.Location);
7639
control.Location = new
Point
(1, 2);
7640
Assert.Equal(new
Point
(1, 2), control.Location);
7645
control.Location = new
Point
(1, 2);
7646
Assert.Equal(new
Point
(1, 2), control.Location);
7651
control.Location = new
Point
(2, 2);
7652
Assert.Equal(new
Point
(2, 2), control.Location);
7657
control.Location = new
Point
(2, 3);
7658
Assert.Equal(new
Point
(2, 3), control.Location);
7665
control.Location = new
Point
(1, 2);
7666
Assert.Equal(new
Point
(1, 2), control.Location);
12132
Assert.Equal(new
Point
(0, value), control.Location);
12153
Assert.Equal(new
Point
(0, value), control.Location);
12222
Assert.Equal(new
Point
(0, value), control.Location);
12244
Assert.Equal(new
Point
(0, value), control.Location);
12320
Assert.Equal(new
Point
(0, value), control.Location);
12344
Assert.Equal(new
Point
(0, value), control.Location);
12429
Assert.Equal(new
Point
(0, value), control.Location);
12458
Assert.Equal(new
Point
(0, value), control.Location);
12502
Assert.Equal(new
Point
(0, 1), control.Location);
12507
Assert.Equal(new
Point
(0, 1), control.Location);
12512
Assert.Equal(new
Point
(0, 2), control.Location);
12539
Assert.Equal(new
Point
(0, 1), control.Location);
12545
Assert.Equal(new
Point
(0, 1), control.Location);
12551
Assert.Equal(new
Point
(0, 2), control.Location);
12559
Assert.Equal(new
Point
(0, 1), control.Location);
System\Windows\Forms\CursorConverterTests.cs (1)
40
Assert.Equal(new
Point
(5, 8), cursor.HotSpot);
System\Windows\Forms\CursorTests.cs (5)
45
Assert.Equal(new
Point
(0, 0), cursor.HotSpot);
59
yield return new object[] { Path.Combine("bitmaps", "10x16_one_entry_32bit.ico"), new
Point
(5, 8) };
157
Assert.Equal(new
Point
(5, 8), cursor.HotSpot);
278
Cursor.Position = new
Point
(1, 2);
284
Cursor.Position = new
Point
(virtualScreen.X - 1, virtualScreen.Y - 1);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
77
Assert.Equal(new
Point
(-SystemInformation.WorkingArea.X, -SystemInformation.WorkingArea.Y), control.DesktopLocation);
System\Windows\Forms\DragDropHelperTests.cs (8)
18
yield return new object[] { new DataObject(), new Bitmap(1, 1), new
Point
(1, 1), false };
19
yield return new object[] { new DataObject(), null, new
Point
(1, 1), false };
20
yield return new object[] { new DataObject(), new Bitmap(1, 1), new
Point
(1, 1), true };
25
yield return new object[] { new DataObject(), new GiveFeedbackEventArgs(DragDropEffects.All, false, new Bitmap(1, 1), new
Point
(0, 0), false) };
26
yield return new object[] { new DataObject(), new GiveFeedbackEventArgs(DragDropEffects.All, false, null, new
Point
(0, 0), false) };
27
yield return new object[] { new DataObject(), new GiveFeedbackEventArgs(DragDropEffects.All, false, new Bitmap(1, 1), new
Point
(0, 0), true) };
161
Assert.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)
1151
control.Location = new
Point
(1, 2);
1152
Assert.Equal(new
Point
(1, 2), control.Location);
1183
control.Location = new
Point
(2, 3);
1184
Assert.Equal(new
Point
(2, 3), control.Location);
System\Windows\Forms\FormTests.cs (9)
76
Assert.Equal(new
Point
(-SystemInformation.WorkingArea.X, -SystemInformation.WorkingArea.Y), control.DesktopLocation);
985
form.Location = new
Point
(10, 11);
990
form.Location = new
Point
(20, 21);
994
Assert.NotEqual(new
Point
(20, 21), form.Location);
999
Assert.Equal(new
Point
(20, 21), form.Location);
1014
form.Location = new
Point
(10, 11);
1019
form.Location = new
Point
(20, 21);
1023
Assert.NotEqual(new
Point
(20, 21), form.Location);
1028
Assert.Equal(new
Point
(20, 21), form.Location);
System\Windows\Forms\GiveFeedbackEventArgsTests.cs (5)
25
GiveFeedbackEventArgs e = new(DragDropEffects.None, false, new Bitmap(1, 1), new
Point
(0, 0), false)
34
yield return new object[] { new
Point
(1, 1) };
35
yield return new object[] { new
Point
(-1, -1) };
42
GiveFeedbackEventArgs e = new(DragDropEffects.None, false, new Bitmap(2, 2), new
Point
(0, 0), false)
72
GiveFeedbackEventArgs e = new(DragDropEffects.None, false, new Bitmap(1, 1), new
Point
(0, 0), false)
System\Windows\Forms\HandledMouseEventArgsTests.cs (2)
23
Assert.Equal(new
Point
(x, y), e.Location);
39
Assert.Equal(new
Point
(x, y), e.Location);
System\Windows\Forms\HelpEventArgsTests.cs (3)
14
yield return new object[] { new
Point
(1, 2) };
15
yield return new object[] { new
Point
(-1, -2) };
32
HelpEventArgs e = new(new
Point
(1, 2))
System\Windows\Forms\HelpProviderTests.cs (3)
520
control.OnHelpRequested(new HelpEventArgs(new
Point
(1, 2)));
530
HelpEventArgs e = new(new
Point
(1, 2));
549
HelpEventArgs e = new(new
Point
(1, 2));
System\Windows\Forms\HtmlDocumentTests.cs (2)
1752
Assert.Equal("BODY", document.GetElementFromPoint(new
Point
(int.MinValue, int.MinValue)).TagName);
1753
Assert.Equal("BODY", document.GetElementFromPoint(new
Point
(int.MaxValue, int.MaxValue)).TagName);
System\Windows\Forms\ImageListTests.cs (2)
918
yield return new object[] { new
Point
(1, 2) };
919
yield return new object[] { new
Point
(-1, -2) };
System\Windows\Forms\ListViewInsertionMarkTests.cs (3)
565
Assert.True(insertionMark.NearestIndex(new
Point
(-10, -11)) >= -1);
582
Assert.True(insertionMark.NearestIndex(new
Point
(-10, -11)) >= -1);
602
Assert.Equal(result, insertionMark.NearestIndex(new
Point
(1, 2)));
System\Windows\Forms\ListViewItemTests.cs (22)
30
Assert.Equal(new
Point
(-1, -1), item.Position);
69
Assert.Equal(new
Point
(-1, -1), item.Position);
107
Assert.Equal(new
Point
(-1, -1), item.Position);
145
Assert.Equal(new
Point
(-1, -1), item.Position);
183
Assert.Equal(new
Point
(-1, -1), item.Position);
220
Assert.Equal(new
Point
(-1, -1), item.Position);
257
Assert.Equal(new
Point
(-1, -1), item.Position);
295
Assert.Equal(new
Point
(-1, -1), item.Position);
333
Assert.Equal(new
Point
(-1, -1), item.Position);
370
Assert.Equal(new
Point
(-1, -1), item.Position);
408
Assert.Equal(new
Point
(-1, -1), item.Position);
446
Assert.Equal(new
Point
(-1, -1), item.Position);
483
Assert.Equal(new
Point
(-1, -1), item.Position);
521
Assert.Equal(new
Point
(-1, -1), item.Position);
559
Assert.Equal(new
Point
(-1, -1), item.Position);
597
Assert.Equal(new
Point
(-1, -1), item.Position);
634
Assert.Equal(new
Point
(-1, -1), item.Position);
672
Assert.Equal(new
Point
(-1, -1), item.Position);
710
Assert.Equal(new
Point
(-1, -1), item.Position);
747
Assert.Equal(new
Point
(-1, -1), item.Position);
786
Assert.Equal(new
Point
(-1, -1), item.Position);
816
Assert.Equal(new
Point
(-1, -1), item.Position);
System\Windows\Forms\ListViewTests.cs (4)
5155
listView.AnnounceColumnHeader(new
Point
(15, 40));
5180
listView.AnnounceColumnHeader(new
Point
(15, 40));
5205
listView.AnnounceColumnHeader(new
Point
(10, 20));
5232
listView.AnnounceColumnHeader(new
Point
(x, y));
System\Windows\Forms\MdiClientTests.cs (12)
439
control.Location = new
Point
(1, 0);
440
Assert.Equal(new
Point
(1, 0), control.Location);
443
control.Location = new
Point
(0, 1);
444
Assert.Equal(new
Point
(0, 1), control.Location);
447
control.Location = new
Point
(1, 2);
448
Assert.Equal(new
Point
(1, 2), control.Location);
463
control.Location = new
Point
(1, 0);
464
Assert.Equal(new
Point
(1, 0), control.Location);
467
control.Location = new
Point
(0, 1);
468
Assert.Equal(new
Point
(0, 1), control.Location);
471
control.Location = new
Point
(1, 2);
472
Assert.Equal(new
Point
(1, 2), control.Location);
System\Windows\Forms\MonthCalendar.HitTestInfoTests.cs (2)
17
Point point =
new
(5, 5);
44
Point point =
new
(5, 5);
System\Windows\Forms\MonthCalendarTests.cs (1)
4490
HitTestInfo hitTestInfo = calendar.HitTest(new
Point
(x, y));
System\Windows\Forms\MouseEventArgsTests.cs (1)
23
Assert.Equal(new
Point
(x, y), e.Location);
System\Windows\Forms\NativeToWinFormsAdapterTests.cs (3)
79
TestData value = new(
new
(6, 7));
434
SimpleTestData value = new("text",
new
(10, 10));
453
SimpleTestData value = new("text",
new
(10, 10));
System\Windows\Forms\RadioButtonRendererTests.cs (5)
27
Point point =
new
(control.Location.X, control.Location.Y);
58
Point point =
new
(control.Location.X, control.Location.Y);
95
Point point =
new
(control.Location.X, control.Location.Y);
114
Point 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)
10646
Point pt =
new
(x, y);
System\Windows\Forms\ScreenTests.cs (4)
107
yield return new object[] { new
Point
(-1, -2) };
108
yield return new object[] { new
Point
(0, 0) };
109
yield return new object[] { new
Point
(1, 2) };
110
yield return new object[] { new
Point
(int.MaxValue, int.MaxValue) };
System\Windows\Forms\ScrollableControlTests.cs (33)
2296
yield return new object[] { true, width, height, 0, 0, new
Point
(0, 0), scrollableSize };
2297
yield return new object[] { false, width, height, 0, 0, new
Point
(0, 0), nonScrollableSize };
2299
yield return new object[] { true, width, height, -10, 0, new
Point
(-10, 0), scrollableSize };
2300
yield return new object[] { false, width, height, -10, 0, new
Point
(0, 0), nonScrollableSize };
2302
yield return new object[] { true, width, height, 0, -20, new
Point
(0, -20), scrollableSize };
2303
yield return new object[] { false, width, height, 0, -20, new
Point
(0, 0), nonScrollableSize };
2305
yield return new object[] { true, width, height, -10, -20, new
Point
(-10, -20), scrollableSize };
2306
yield return new object[] { false, width, height, -10, -20, new
Point
(0, 0), nonScrollableSize };
2309
yield return new object[] { true, width, height, -100, -20, new
Point
(-30, -20), scrollableSize };
2310
yield return new object[] { false, width, height, -100, -20, new
Point
(0, 0), nonScrollableSize };
2312
yield return new object[] { true, width, height, -10, -200, new
Point
(-10, -70), scrollableSize };
2313
yield return new object[] { false, width, height, -10, -200, new
Point
(0, 0), nonScrollableSize };
2316
yield return new object[] { true, width, height, 1, 20, new
Point
(0, 0), scrollableSize };
2317
yield return new object[] { false, width, height, 1, 20, new
Point
(0, 0), nonScrollableSize };
2319
yield return new object[] { true, width, height, 10, 2, new
Point
(0, 0), scrollableSize };
2320
yield return new object[] { false, width, height, 10, 2, new
Point
(0, 0), nonScrollableSize };
2357
yield return new object[] { true, width, height, 0, 0, new
Point
(0, 0), scrollableSize, 1 };
2358
yield return new object[] { false, width, height, 0, 0, new
Point
(0, 0), nonScrollableSize, 0 };
2360
yield return new object[] { true, width, height, -10, 0, new
Point
(-10, 0), scrollableSize, 1 };
2361
yield return new object[] { false, width, height, -10, 0, new
Point
(0, 0), nonScrollableSize, 0 };
2363
yield return new object[] { true, width, height, 0, -20, new
Point
(0, -20), scrollableSize, 1 };
2364
yield return new object[] { false, width, height, 0, -20, new
Point
(0, 0), nonScrollableSize, 0 };
2366
yield return new object[] { true, width, height, -10, -20, new
Point
(-10, -20), scrollableSize, 1 };
2367
yield return new object[] { false, width, height, -10, -20, new
Point
(0, 0), nonScrollableSize, 0 };
2370
yield return new object[] { true, width, height, -100, -20, new
Point
(-47, -20), scrollableSize, 1 };
2371
yield return new object[] { false, width, height, -100, -20, new
Point
(0, 0), nonScrollableSize, 0 };
2373
yield return new object[] { true, width, height, -10, -200, new
Point
(-10, -87), scrollableSize, 1 };
2374
yield return new object[] { false, width, height, -10, -200, new
Point
(0, 0), nonScrollableSize, 0 };
2377
yield return new object[] { true, width, height, 1, 20, new
Point
(0, 0), scrollableSize, 1 };
2378
yield return new object[] { false, width, height, 1, 20, new
Point
(0, 0), nonScrollableSize, 0 };
2380
yield return new object[] { true, width, height, 10, 2, new
Point
(0, 0), scrollableSize, 1 };
2381
yield return new object[] { false, width, height, 10, 2, new
Point
(0, 0), nonScrollableSize, 0 };
2552
public Rectangle ExpectedSize => new(new
Point
(0, 0), DefaultSize);
System\Windows\Forms\SearchForVirtualItemEventArgsTests.cs (4)
14
yield return new object[] { false, true, false, "", new
Point
(1, 2), SearchDirectionHint.Down, -1 };
15
yield return new object[] { false, true, false, "text", new
Point
(-1, -2), SearchDirectionHint.Down, 0 };
16
yield return new object[] { false, true, false, "text", new
Point
(1, 2), SearchDirectionHint.Down, 1 };
41
SearchForVirtualItemEventArgs e = new(false, true, false, "text", new
Point
(1, 2), SearchDirectionHint.Down, 1)
System\Windows\Forms\SplitterPanelTests.cs (15)
502
yield return new object[] { new
Point
(0, 0), 0 };
503
yield return new object[] { new
Point
(-1, -2), 1 };
504
yield return new object[] { new
Point
(1, 0), 1 };
505
yield return new object[] { new
Point
(0, 2), 1 };
506
yield return new object[] { new
Point
(1, 2), 1 };
605
control.Location = new
Point
(1, 2);
606
Assert.Equal(new
Point
(1, 2), control.Location);
611
control.Location = new
Point
(1, 2);
612
Assert.Equal(new
Point
(1, 2), control.Location);
617
control.Location = new
Point
(2, 2);
618
Assert.Equal(new
Point
(2, 2), control.Location);
623
control.Location = new
Point
(2, 3);
624
Assert.Equal(new
Point
(2, 3), control.Location);
631
control.Location = new
Point
(1, 2);
632
Assert.Equal(new
Point
(1, 2), control.Location);
System\Windows\Forms\SplitterTests.cs (1)
1210
Location = new
Point
(50, 0)
System\Windows\Forms\TabControlTests.cs (21)
84
Assert.Equal(new
Point
(6, 3), control.Padding);
1711
yield return new object[] { new
Point
(0, 0) };
1712
yield return new object[] { new
Point
(0, 16) };
1713
yield return new object[] { new
Point
(16, 0) };
1714
yield return new object[] { new
Point
(16, 16) };
1770
control.Padding = new
Point
(1, 0);
1771
Assert.Equal(new
Point
(1, 0), control.Padding);
1774
control.Padding = new
Point
(0, 1);
1775
Assert.Equal(new
Point
(0, 1), control.Padding);
1778
control.Padding = new
Point
(1, 2);
1779
Assert.Equal(new
Point
(1, 2), control.Padding);
1783
Assert.Equal(new
Point
(6, 3), control.Padding);
1794
control.Padding = new
Point
(1, 0);
1795
Assert.Equal(new
Point
(1, 0), control.Padding);
1798
control.Padding = new
Point
(0, 1);
1799
Assert.Equal(new
Point
(0, 1), control.Padding);
1802
control.Padding = new
Point
(1, 2);
1803
Assert.Equal(new
Point
(1, 2), control.Padding);
1807
Assert.Equal(new
Point
(6, 3), control.Padding);
1815
Assert.Throws<ArgumentOutOfRangeException>("value", () => control.Padding = new
Point
(-1, 1));
1822
Assert.Throws<ArgumentOutOfRangeException>("value", () => control.Padding = new
Point
(1, -1));
System\Windows\Forms\TabPageTests.cs (45)
1860
yield return new object[] { new
Point
(0, 0), 0 };
1861
yield return new object[] { new
Point
(-1, -2), 1 };
1862
yield return new object[] { new
Point
(1, 0), 1 };
1863
yield return new object[] { new
Point
(0, 2), 1 };
1864
yield return new object[] { new
Point
(1, 2), 1 };
2042
yield return new object[] { resizeRedraw, new
Point
(0, 0), 0 };
2043
yield return new object[] { resizeRedraw, new
Point
(-1, -2), 1 };
2044
yield return new object[] { resizeRedraw, new
Point
(1, 0), 1 };
2045
yield return new object[] { resizeRedraw, new
Point
(0, 2), 1 };
2046
yield return new object[] { resizeRedraw, new
Point
(1, 2), 1 };
2142
yield return new object[] { resizeRedraw, new
Point
(0, 0) };
2143
yield return new object[] { resizeRedraw, new
Point
(-1, -2) };
2144
yield return new object[] { resizeRedraw, new
Point
(1, 0) };
2145
yield return new object[] { resizeRedraw, new
Point
(0, 2) };
2146
yield return new object[] { resizeRedraw, new
Point
(1, 2) };
2292
control.Location = new
Point
(1, 2);
2293
Assert.Equal(new
Point
(1, 2), control.Location);
2297
control.Location = new
Point
(1, 2);
2298
Assert.Equal(new
Point
(1, 2), control.Location);
2302
control.Location = new
Point
(2, 3);
2303
Assert.Equal(new
Point
(2, 3), control.Location);
2329
control.Location = new
Point
(1, 2);
2330
Assert.Equal(new
Point
(1, 2), control.Location);
2335
control.Location = new
Point
(1, 2);
2336
Assert.Equal(new
Point
(1, 2), control.Location);
2341
control.Location = new
Point
(2, 2);
2342
Assert.Equal(new
Point
(2, 2), control.Location);
2347
control.Location = new
Point
(2, 3);
2348
Assert.Equal(new
Point
(2, 3), control.Location);
2355
control.Location = new
Point
(1, 2);
2356
Assert.Equal(new
Point
(1, 2), control.Location);
2368
control.Location = new
Point
(1, 0);
2369
Assert.Equal(new
Point
(1, 0), control.Location);
2372
control.Location = new
Point
(0, 1);
2373
Assert.Equal(new
Point
(0, 1), control.Location);
2376
control.Location = new
Point
(1, 2);
2377
Assert.Equal(new
Point
(1, 2), control.Location);
2381
Assert.Equal(new
Point
(1, 2), control.Location);
2396
control.Location = new
Point
(1, 0);
2397
Assert.Equal(new
Point
(1, 0), control.Location);
2400
control.Location = new
Point
(0, 1);
2401
Assert.Equal(new
Point
(0, 1), control.Location);
2404
control.Location = new
Point
(1, 2);
2405
Assert.Equal(new
Point
(1, 2), control.Location);
2409
Assert.Equal(new
Point
(1, 2), control.Location);
System\Windows\Forms\TextBoxBase.TextBoxBaseUiaTextProviderTests.cs (21)
388
yield return new object[] { new Size(50, 20), "Some test text for testing", false, 0, new
Point
(1, 0) };
389
yield return new object[] { new Size(50, 20), "Some test text for testing", false, 15, new
Point
(79, 0) };
390
yield return new object[] { new Size(50, 20), "Some test text for testing", true, 15, new
Point
(27, 30) };
391
yield 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) };
392
yield 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) };
393
yield 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) };
426
yield return new object[] { new Size(50, 20), "", false, 0, new
Point
(0, 0) };
427
yield return new object[] { new Size(50, 20), "Some test text", false, 100, new
Point
(0, 0) };
428
yield return new object[] { new Size(50, 20), "Some test text", false, -1, new
Point
(0, 0) };
429
yield return new object[] { new Size(50, 20), "Some test text", false, 12, new
Point
(71, 0) };
430
yield return new object[] { new Size(50, 20), "Some test text", true, 12, new
Point
(19, 30) };
431
yield return new object[] { new Size(100, 60), "Some test \n text", false, 10, new
Point
(56, 0) };
432
yield return new object[] { new Size(100, 60), "Some test \n text", true, 10, new
Point
(59, 1) };
433
yield return new object[] { new Size(100, 60), "Some test \r\n text", false, 10, new
Point
(56, 0) };
434
yield return new object[] { new Size(100, 60), "Some test \r\n text", true, 10, new
Point
(59, 1) };
435
yield return new object[] { new Size(100, 60), "Some test \r\n text", false, 12, new
Point
(60, 0) };
436
yield return new object[] { new Size(100, 60), "Some test \r\n text", true, 12, new
Point
(7, 16) };
437
yield return new object[] { new Size(100, 60), "Some test \t text", false, 10, new
Point
(57, 0) };
438
yield return new object[] { new Size(100, 60), "Some test \t text", true, 10, new
Point
(60, 1) };
439
yield return new object[] { new Size(40, 60), "Some test \t text", true, 12, new
Point
(8, 46) };
782
yield 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)
22
yield return new object[] { hint, text, SystemFonts.MenuFont, new
Point
(1, 2), Color.Red };
23
yield return new object[] { hint, text, SystemFonts.MenuFont, new
Point
(1, 2), Color.Black };
24
yield return new object[] { hint, text, SystemFonts.MenuFont, new
Point
(1, 2), Color.White };
25
yield return new object[] { hint, text, SystemFonts.MenuFont, new
Point
(1, 2), Color.Transparent };
26
yield return new object[] { hint, text, SystemFonts.MenuFont, new
Point
(1, 2), Color.Empty };
51
yield return new object[] { hint, text, SystemFonts.MenuFont, new
Point
(1, 2), Color.Red, Color.Blue };
52
yield return new object[] { hint, text, SystemFonts.MenuFont, new
Point
(1, 2), Color.Black, Color.Blue };
53
yield return new object[] { hint, text, SystemFonts.MenuFont, new
Point
(1, 2), Color.White, Color.Blue };
54
yield return new object[] { hint, text, SystemFonts.MenuFont, new
Point
(1, 2), Color.Transparent, Color.Blue };
55
yield return new object[] { hint, text, SystemFonts.MenuFont, new
Point
(1, 2), Color.Empty, Color.Blue };
85
yield return new object[] { hint, text, SystemFonts.MenuFont, new
Point
(1, 2), Color.Red, TextFormatFlags.Default, };
86
yield return new object[] { hint, text, SystemFonts.MenuFont, new
Point
(1, 2), Color.Black, TextFormatFlags.Default, };
87
yield return new object[] { hint, text, SystemFonts.MenuFont, new
Point
(1, 2), Color.White, TextFormatFlags.Default, };
88
yield return new object[] { hint, text, SystemFonts.MenuFont, new
Point
(1, 2), Color.Transparent, TextFormatFlags.Default, };
89
yield return new object[] { hint, text, SystemFonts.MenuFont, new
Point
(1, 2), Color.Empty, TextFormatFlags.Default, };
122
yield return new object[] { hint, text, SystemFonts.MenuFont, new
Point
(1, 2), Color.Red, Color.Blue, TextFormatFlags.Default, };
123
yield return new object[] { hint, text, SystemFonts.MenuFont, new
Point
(1, 2), Color.Black, Color.Blue, TextFormatFlags.Default, };
124
yield return new object[] { hint, text, SystemFonts.MenuFont, new
Point
(1, 2), Color.White, Color.Blue, TextFormatFlags.Default, };
125
yield return new object[] { hint, text, SystemFonts.MenuFont, new
Point
(1, 2), Color.Transparent, Color.Blue, TextFormatFlags.Default, };
126
yield return new object[] { hint, text, SystemFonts.MenuFont, new
Point
(1, 2), Color.Empty, Color.Blue, TextFormatFlags.Default, };
System\Windows\Forms\ToolStripContentPanelTests.cs (15)
901
yield return new object[] { new
Point
(0, 0), 0 };
902
yield return new object[] { new
Point
(-1, -2), 1 };
903
yield return new object[] { new
Point
(1, 0), 1 };
904
yield return new object[] { new
Point
(0, 2), 1 };
905
yield return new object[] { new
Point
(1, 2), 1 };
1004
control.Location = new
Point
(1, 2);
1005
Assert.Equal(new
Point
(1, 2), control.Location);
1010
control.Location = new
Point
(1, 2);
1011
Assert.Equal(new
Point
(1, 2), control.Location);
1016
control.Location = new
Point
(2, 2);
1017
Assert.Equal(new
Point
(2, 2), control.Location);
1022
control.Location = new
Point
(2, 3);
1023
Assert.Equal(new
Point
(2, 3), control.Location);
1030
control.Location = new
Point
(1, 2);
1031
Assert.Equal(new
Point
(1, 2), control.Location);
System\Windows\Forms\ToolStripDropDownTests.cs (19)
1918
yield return new object[] { new
Point
(0, 0), new
Point
(0, 0), 0 };
1919
yield return new object[] { new
Point
(-1, -2), new
Point
(0, 0), 0 };
1920
yield return new object[] { new
Point
(1, 0), new
Point
(1, 0), 1 };
1921
yield return new object[] { new
Point
(0, 2), new
Point
(0, 2), 1 };
1922
yield return new object[] { new
Point
(1, 2), new
Point
(1, 2), 1 };
4033
yield return new object[] { new HelpEventArgs(new
Point
(1, 2)) };
4992
toolStripDropDown.Show(control, new
Point
(x, y), direction);
4994
toolStripDropDown.Location.Should().Be(new
Point
(x + 6, y + 27));
5003
toolStripDropDown.Show(new
Point
(x, y), direction);
5004
Point expectedLocation =
new
(x, y);
5026
toolStripDropDown.Show(control, new
Point
(x, y));
5033
toolStripDropDown.Location.Should().Be(new
Point
(x + 8, y + 31));
5045
toolStripDropDown.Show(new
Point
(x, y));
5052
toolStripDropDown.Location.Should().Be(new
Point
(x, y));
System\Windows\Forms\ToolStripItemTests.cs (2)
15419
menuStrip1.MoveMouse(new MouseEventArgs(MouseButtons.None, 0, new
Point
(i, 5)));
15426
menuStrip1.MoveMouse(new MouseEventArgs(MouseButtons.None, 0, new
Point
(i, 5)));
System\Windows\Forms\ToolStripPanelRow.ToolStripPanelRowControlCollectionTests.cs (2)
26
toolStrip1.Location = new
Point
(3, 0);
27
toolStrip2.Location = new
Point
(148, 0);
System\Windows\Forms\ToolStripSplitStackDragDropHandlerTests.cs (2)
117
Point point =
new
(10, 10);
127
Point point =
new
(10, 10);
System\Windows\Forms\ToolStripTests.cs (36)
6677
yield return new object[] { new ScrollEventArgs(scrollEventType, 100, 200), new
Point
(x, 101), new
Point
(0, 100) };
6678
yield return new object[] { new ScrollEventArgs(scrollEventType, 200, 100), new
Point
(x, -99), new
Point
(0, -100) };
6679
yield return new object[] { new ScrollEventArgs(scrollEventType, 100, 100), new
Point
(x, 1), new
Point
(0, 0) };
6682
yield return new object[] { new ScrollEventArgs(ScrollEventType.ThumbTrack, 100, 200), new
Point
(x, 1), new
Point
(0, 0) };
6683
yield return new object[] { new ScrollEventArgs(ScrollEventType.ThumbTrack, 200, 100), new
Point
(x, 1), new
Point
(0, 0) };
6684
yield return new object[] { new ScrollEventArgs(ScrollEventType.ThumbTrack, 0, 0), new
Point
(x, 1), new
Point
(0, 0) };
6722
yield return new object[] { new ScrollEventArgs(scrollEventType, 100, 200), new
Point
(x, 101), new
Point
(0, 100), 1 };
6723
yield return new object[] { new ScrollEventArgs(scrollEventType, 200, 100), new
Point
(x, -99), new
Point
(0, -100), 1 };
6724
yield return new object[] { new ScrollEventArgs(scrollEventType, 100, 100), new
Point
(x, 1), new
Point
(0, 0), 0 };
6727
yield return new object[] { new ScrollEventArgs(ScrollEventType.ThumbTrack, 100, 200), new
Point
(x, 1), new
Point
(0, 0), 0 };
6728
yield return new object[] { new ScrollEventArgs(ScrollEventType.ThumbTrack, 200, 100), new
Point
(x, 1), new
Point
(0, 0), 0 };
6729
yield return new object[] { new ScrollEventArgs(ScrollEventType.ThumbTrack, 0, 0), new
Point
(x, 1), new
Point
(0, 0), 0 };
6984
yield return new object[] { new
Point
(1, 0), 1 };
6985
yield return new object[] { new
Point
(0, 2), 1 };
6986
yield return new object[] { new
Point
(1, 2), 1 };
6987
yield return new object[] { new
Point
(0, 0), 0 };
6988
yield return new object[] { new
Point
(0, 0), 0 };
6989
yield return new object[] { new
Point
(0, 0), 0 };
6990
yield return new object[] { new
Point
(0, 0), 0 };
6991
yield return new object[] { new
Point
(0, 0), 0 };
6992
yield return new object[] { new
Point
(0, 0), 0 };
6993
yield return new object[] { new
Point
(1, 2), 1 };
7378
var child = toolStrip.GetChildAtPoint(new
Point
(x, y));
7391
var child = toolStrip.GetChildAtPoint(new
Point
(10, 10), skipValue);
System\Windows\Forms\ToolStripTextBoxTests.cs (5)
729
char result = _toolStripTextBox.GetCharFromPosition(new
Point
(x, y));
737
int 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)
29
Assert.Equal(new
Point
(x, y), e.Location);
System\Windows\Forms\TreeViewTests.cs (39)
4757
yield return new object[] { new
Point
(int.MinValue, int.MinValue) };
4758
yield return new object[] { new
Point
(-1, -2) };
4759
yield return new object[] { new
Point
(-1, 0) };
4760
yield return new object[] { new
Point
(-1, 2) };
4761
yield return new object[] { new
Point
(0, -2) };
4762
yield return new object[] { new
Point
(0, 0) };
4763
yield return new object[] { new
Point
(0, 2) };
4764
yield return new object[] { new
Point
(1, -2) };
4765
yield return new object[] { new
Point
(1, 0) };
4766
yield return new object[] { new
Point
(1, 2) };
4767
yield return new object[] { new
Point
(int.MaxValue, int.MaxValue) };
4785
yield return new object[] { new
Point
(0, 0) };
4786
yield return new object[] { new
Point
(20, 0) };
4806
yield return new object[] { new
Point
(int.MinValue, int.MinValue) };
4807
yield return new object[] { new
Point
(-1, -2) };
4808
yield return new object[] { new
Point
(-1, 0) };
4809
yield return new object[] { new
Point
(-1, 2) };
4810
yield return new object[] { new
Point
(0, -2) };
4811
yield return new object[] { new
Point
(1, -2) };
4812
yield return new object[] { new
Point
(int.MaxValue, int.MaxValue) };
5082
yield return new object[] { new
Point
(int.MinValue, int.MinValue), TreeViewHitTestLocations.AboveClientArea | TreeViewHitTestLocations.LeftOfClientArea };
5083
yield return new object[] { new
Point
(-1, -2), TreeViewHitTestLocations.AboveClientArea | TreeViewHitTestLocations.LeftOfClientArea };
5084
yield return new object[] { new
Point
(-1, 0), TreeViewHitTestLocations.LeftOfClientArea };
5085
yield return new object[] { new
Point
(-1, 2), TreeViewHitTestLocations.LeftOfClientArea };
5086
yield return new object[] { new
Point
(0, -2), TreeViewHitTestLocations.AboveClientArea };
5087
yield return new object[] { new
Point
(0, 0), TreeViewHitTestLocations.None };
5088
yield return new object[] { new
Point
(0, 2), TreeViewHitTestLocations.None };
5089
yield return new object[] { new
Point
(1, -2), TreeViewHitTestLocations.AboveClientArea };
5090
yield return new object[] { new
Point
(1, 0), TreeViewHitTestLocations.None };
5091
yield return new object[] { new
Point
(1, 2), TreeViewHitTestLocations.None };
5092
yield return new object[] { new
Point
(int.MaxValue, int.MaxValue), TreeViewHitTestLocations.BelowClientArea | TreeViewHitTestLocations.RightOfClientArea };
5114
yield return new object[] { new
Point
(0, 0), TreeViewHitTestLocations.Indent };
5138
yield return new object[] { new
Point
(int.MinValue, int.MinValue), TreeViewHitTestLocations.AboveClientArea | TreeViewHitTestLocations.LeftOfClientArea };
5139
yield return new object[] { new
Point
(-1, -2), TreeViewHitTestLocations.AboveClientArea | TreeViewHitTestLocations.LeftOfClientArea };
5140
yield return new object[] { new
Point
(-1, 0), TreeViewHitTestLocations.LeftOfClientArea };
5141
yield return new object[] { new
Point
(-1, 2), TreeViewHitTestLocations.LeftOfClientArea };
5142
yield return new object[] { new
Point
(0, -2), TreeViewHitTestLocations.AboveClientArea };
5143
yield return new object[] { new
Point
(1, -2), TreeViewHitTestLocations.AboveClientArea };
5144
yield return new object[] { new
Point
(int.MaxValue, int.MaxValue), TreeViewHitTestLocations.BelowClientArea | TreeViewHitTestLocations.RightOfClientArea };
System\Windows\Forms\WebBrowserTests.cs (2)
4524
Point p = control.PointToScreen(new
Point
(5, 5));
4598
Point p = control.PointToScreen(new
Point
(5, 5));
TextBoxBaseTests.cs (25)
4247
yield return new object[] { new
Point
(-1, -2) };
4248
yield return new object[] { new
Point
(1, 2) };
4268
Assert.NotEqual('\0', control.GetCharFromPosition(new
Point
(10, 2)));
4275
yield return new object[] { new
Point
(-1, -2), "t" };
4276
yield return new object[] { new
Point
(1, 2), "T" };
4277
yield return new object[] { new
Point
(int.MaxValue, int.MaxValue), "t" };
4327
Assert.NotEqual('\0', control.GetCharFromPosition(new
Point
(10, 2)));
4360
yield return new object[] { new
Point
(-1, -2) };
4361
yield return new object[] { new
Point
(1, 2) };
4381
int index = control.GetCharIndexFromPosition(new
Point
(10, 2));
4389
yield return new object[] { new
Point
(-1, -2), 3 };
4390
yield return new object[] { new
Point
(1, 2), 0 };
4391
yield return new object[] { new
Point
(int.MaxValue, int.MaxValue), 3 };
4441
int index = control.GetCharIndexFromPosition(new
Point
(10, 2));
4500
Assert.Equal(expected, control.GetCharIndexFromPosition(new
Point
(1, 2)));
4953
yield return new object[] { (IntPtr)1, new
Point
(1, 0) };
4954
yield return new object[] { PARAM.FromLowHigh(1, 2), new
Point
(1, 2) };
4955
yield return new object[] { PARAM.FromLowHigh(-1, -2), new
Point
(-1, -2) };
4956
yield return new object[] { PARAM.FromLowHigh(int.MaxValue, int.MaxValue), new
Point
(-1, -1) };
6973
Point p = control.PointToScreen(new
Point
(5, 5));
7054
Point p = control.PointToScreen(new
Point
(5, 5));
7812
yield return new object[] { new Size(50, 20), false, 0, new
Point
(1, 0) };
7813
yield return new object[] { new Size(50, 20), false, 15, new
Point
(79, 0) };
7814
yield return new object[] { new Size(50, 50), true, 12, new
Point
(14, 31) };
7815
yield return new object[] { new Size(100, 50), true, 22, new
Point
(37, 16) };
System.Windows.Forms.UI.IntegrationTests (48)
AnchorLayoutTests.cs (1)
281
Location = new
Point
(20, 30),
ButtonTests.cs (8)
120
Point mouseDragHandleOnForm =
new
(form.DisplayRectangle.Right, form.DisplayRectangle.Top + form.DisplayRectangle.Height / 2);
144
Point mouseDragHandleOnForm =
new
(form.DisplayRectangle.Left + form.DisplayRectangle.Width / 2, form.DisplayRectangle.Bottom);
170
Point mouseDragHandleOnForm =
new
(form.DisplayRectangle.Right, form.DisplayRectangle.Top + form.DisplayRectangle.Height / 2);
200
Point mouseDragHandleOnForm =
new
(form.DisplayRectangle.Left + form.DisplayRectangle.Width / 2, form.DisplayRectangle.Bottom);
263
Point virtualPoint =
new
((int)Math.Round(65535.0 / horizontalResolution * centerOnScreen.X),
299
Point virtualPoint =
new
((int)Math.Round(65535.0 / horizontalResolution * centerOnScreen.X), (int)Math.Round(65535.0 / verticalResolution * centerOnScreen.Y));
300
Point virtualPoint1 =
new
((int)Math.Round(65535.0 / horizontalResolution * centerOnScreen1.X), (int)Math.Round(65535.0 / verticalResolution * centerOnScreen1.Y));
403
Location = new
Point
(0, 0),
Dpi\SplitContainerTests.cs (1)
49
Location = new
Point
(0, 0),
Dpi\ToolStripItemTests.Dpi.cs (1)
42
toolStrip.Location = new
Point
(0, 0);
DragDropTests.cs (19)
42
var targetMousePosition = ToVirtualPoint(form.ListDragTarget.PointToScreen(new
Point
(20, 20)));
103
Point endCoordinates =
new
(startCoordinates.X + 5, startCoordinates.Y + 5);
169
WaitForExplorer(DragDrop, new
Point
(dragDropForm.Location.X + dragDropForm.Width, dragDropForm.Location.Y));
318
Point endCoordinates =
new
(startCoordinates.X + 5, startCoordinates.Y + 5);
352
e.CursorOffset = new
Point
(0, 48);
431
Point startCoordinates = form.PictureBoxDragSource.PointToScreen(new
Point
(20, 20));
467
Point toolStripItemCoordinates = form.ToolStrip.PointToScreen(new
Point
(5, 5));
528
Point endCoordinates =
new
(startCoordinates.X + 5, startCoordinates.Y + 5);
594
Location = new
Point
(0, 0),
666
ListDragSource.Location = new
Point
(10, 17);
676
ListDragTarget.Location = new
Point
(154, 17);
684
_useCustomCursorsCheck.Location = new
Point
(10, 243);
689
_dropLocationLabel.Location = new
Point
(154, 245);
721
new
Point
(e.X - (dragSize.Width / 2),
867
ListDragTarget.IndexFromPoint(ListDragTarget.PointToClient(new
Point
(e.X, e.Y)));
970
PictureBoxDragSource.Location = new
Point
(10, 45);
979
RichTextBoxDropTarget.Location = new
Point
(145, 45);
1090
dragAcceptItem.DoDragDrop(data, DragDropEffects.All, _dragAcceptBmp, new
Point
(0, 16), false);
1150
PictureBoxDragSource.DoDragDrop(data, DragDropEffects.All, _dragImage, new
Point
(0, 16), false);
FormTests.cs (2)
34
form.Location = new
Point
(20, 21);
93
form.Location = new
Point
(20, 21);
ImageListTests.cs (1)
102
Location = new
Point
(12, 33),
Infra\ControlTestBase.cs (2)
184
return new
Point
(
397
return new
Point
(GetMiddle(cell.Right, cell.Left), GetMiddle(cell.Top, cell.Bottom));
ListBoxAccesibleObjectTests.cs (2)
39
Point testPoint = listBox.PointToScreen(new
Point
(0, listBox.ClientRectangle.Height - 1));
55
Point testPoint = listBox.PointToScreen(new
Point
(itemBounds.Left + 1, itemBounds.Top + 1));
MonthCalendarAccessibleObjectTests.cs (1)
46
Location = new
Point
(0, 0)
MonthCalendarTests.cs (2)
208
Location = new
Point
(0, 0),
232
Location = new
Point
(0, 0),
PropertyGridTests.cs (1)
229
Point newLocation =
new
(10, 20);
RichTextBoxTests.cs (1)
253
Location = new
Point
(100, 100),
TabControlTests.cs (6)
22
bool result = await IsHoveredWithMouseAsync(form, tabControl,
new
(10, 10));
34
bool result = await IsHoveredWithMouseAsync(form, tabControl,
new
(60, 10));
46
bool result = await IsHoveredWithMouseAsync(form, tabControl,
new
(300, 300));
61
bool result = await IsHoveredWithMouseAsync(form, tabControl,
new
(1000, 1000), assertCorrectLocation: false);
85
Location = new
Point
(0, 0)
135
Location = new
Point
(0, 0)
TrimTest (4)
Form1.Designer.cs (4)
47
splitContainer1.Location = new
Point
(0, 0);
66
textBox1.Location = new
Point
(0, 0);
81
comboBox1.Location = new
Point
(37, 37);
88
button1.Location = new
Point
(76, 108);
TrimTestBinaryDeserialization (1)
Form1.Designer.cs (1)
49
listView1.Location = new
Point
(0, 0);
VisualBasicRuntimeTest (2)
Program.cs (2)
135
if (expectedValue == new
Point
(0, 0))
159
if (expectedValue == new
Point
(0, 0))
WindowsFormsIntegration (1)
System\Windows\Integration\WindowsFormsHost.cs (1)
821
this.Location = new SD.
Point
(short.MinValue, short.MinValue);
WinFormsControlsTest (303)
AnchorLayoutTests.Designer.cs (9)
47
this.button1.Location = new System.Drawing.
Point
(12, 12);
57
this.button2.Location = new System.Drawing.
Point
(338, 12);
67
this.button3.Location = new System.Drawing.
Point
(676, 12);
77
this.button4.Location = new System.Drawing.
Point
(12, 198);
87
this.button5.Location = new System.Drawing.
Point
(12, 404);
99
this.button6.Location = new System.Drawing.
Point
(338, 198);
109
this.button7.Location = new System.Drawing.
Point
(676, 198);
119
this.button8.Location = new System.Drawing.
Point
(338, 404);
129
this.button9.Location = new System.Drawing.
Point
(676, 404);
Calendar.Designer.cs (16)
63
this.monthCalendar1.Location = new System.Drawing.
Point
(18, 80);
73
this.minDateDateTimePicker.Location = new System.Drawing.
Point
(18, 334);
81
this.setMinDateButton.Location = new System.Drawing.
Point
(18, 367);
93
this.label1.Location = new System.Drawing.
Point
(18, 308);
103
this.label2.Location = new System.Drawing.
Point
(19, 422);
112
this.setMaxDateButton.Location = new System.Drawing.
Point
(19, 481);
123
this.maxDateDateTimePicker.Location = new System.Drawing.
Point
(19, 448);
132
this.label3.Location = new System.Drawing.
Point
(301, 336);
151
this.daysOfWeekComboBox.Location = new System.Drawing.
Point
(301, 363);
160
this.label4.Location = new System.Drawing.
Point
(18, 50);
169
this.resetMinDateButton.Location = new System.Drawing.
Point
(146, 367);
180
this.resetMaxDateButton.Location = new System.Drawing.
Point
(146, 481);
192
this.showWeekNumbersCheckBox.Location = new System.Drawing.
Point
(301, 452);
204
this.showTodayCheckBox.Location = new System.Drawing.
Point
(301, 484);
216
this.label5.Location = new System.Drawing.
Point
(301, 422);
224
this.currentDPILabel1.Location = new System.Drawing.
Point
(18, 18);
ChartControl.Designer.cs (4)
142
this.chart1.Location = new System.Drawing.
Point
(16, 64);
215
this.chart2.Location = new System.Drawing.
Point
(752, 64);
288
this.chart3.Location = new System.Drawing.
Point
(16, 522);
357
this.chart4.Location = new System.Drawing.
Point
(752, 522);
CollectionEditors.Designer.cs (7)
46
this.comboBox1.Location = new System.Drawing.
Point
(4, 64);
54
this.maskedTextBox1.Location = new System.Drawing.
Point
(4, 91);
62
this.textBox1.Location = new System.Drawing.
Point
(4, 12);
71
this.listView1.Location = new System.Drawing.
Point
(4, 117);
83
this.propertyGrid1.Location = new System.Drawing.
Point
(132, 37);
91
this.label1.Location = new System.Drawing.
Point
(132, 13);
99
this.domainUpDown1.Location = new System.Drawing.
Point
(4, 38);
ComboBoxes.Designer.cs (16)
59
this.comboBox1.Location = new System.Drawing.
Point
(21, 22);
79
this.comboBox2.Location = new System.Drawing.
Point
(148, 22);
98
this.comboBox3.Location = new System.Drawing.
Point
(21, 59);
113
this.comboBox4.Location = new System.Drawing.
Point
(148, 59);
124
this.comboBox5.Location = new System.Drawing.
Point
(21, 96);
137
this.comboBox6.Location = new System.Drawing.
Point
(148, 96);
149
this.comboBox7.Location = new System.Drawing.
Point
(21, 136);
162
this.comboBox8.Location = new System.Drawing.
Point
(148, 136);
175
this.comboBox9.Location = new System.Drawing.
Point
(696, 22);
188
this.comboBox10.Location = new System.Drawing.
Point
(560, 22);
202
this.comboBox11.Location = new System.Drawing.
Point
(419, 22);
222
this.comboBox12.Location = new System.Drawing.
Point
(275, 22);
231
this.dataBoundComboBox.Location = new System.Drawing.
Point
(836, 22);
239
this.currentDPILabel1.Location = new System.Drawing.
Point
(18, 173);
249
this.label1.Location = new System.Drawing.
Point
(18, 6);
258
this.dataBoundLabel.Location = new System.Drawing.
Point
(836, 6);
ComboBoxesWithScrollBars.Designer.cs (22)
74
this.comboBox1.Location = new System.Drawing.
Point
(37, 348);
86
this.comboBox2.Location = new System.Drawing.
Point
(206, 348);
98
this.comboBox3.Location = new System.Drawing.
Point
(370, 348);
113
this.changeHeightGroupBox1.Location = new System.Drawing.
Point
(14, 14);
125
this.label1.Location = new System.Drawing.
Point
(23, 28);
134
this.changeDDH_UpDown1.Location = new System.Drawing.
Point
(23, 61);
150
this.label2.Location = new System.Drawing.
Point
(192, 28);
159
this.changeCBHeight_UpDown2.Location = new System.Drawing.
Point
(192, 61);
173
this.label3.Location = new System.Drawing.
Point
(356, 28);
182
this.changeDDH_UpDown3.Location = new System.Drawing.
Point
(356, 61);
200
this.changeMaxDropDownItemsGroupBox2.Location = new System.Drawing.
Point
(14, 121);
211
this.maxDropDownItemsUpDown1.Location = new System.Drawing.
Point
(23, 22);
224
this.maxDropDownItemsUpDown2.Location = new System.Drawing.
Point
(192, 22);
238
this.maxDropDownItemsUpDown3.Location = new System.Drawing.
Point
(356, 22);
254
this.changeIntegralHeightGroupBox3.Location = new System.Drawing.
Point
(14, 192);
266
this.integralHeightCheckBox1.Location = new System.Drawing.
Point
(23, 33);
277
this.integralHeightCheckBox2.Location = new System.Drawing.
Point
(192, 33);
288
this.integralHeightCheckBox3.Location = new System.Drawing.
Point
(356, 33);
301
this.changeHeightsStyleGroupBox4.Location = new System.Drawing.
Point
(14, 262);
313
this.useDifferentHeightsCheckBox1.Location = new System.Drawing.
Point
(23, 33);
324
this.useDifferentHeightsCheckBox2.Location = new System.Drawing.
Point
(192, 33);
335
this.useDifferentHeightsCheckBox3.Location = new System.Drawing.
Point
(356, 33);
CustomComCtl32Button.cs (3)
30
Location = new
Point
(1, 0)
40
Location = new
Point
(1, 30)
49
Location = new
Point
(1, 60)
DataGridViewInVirtualModeTest.Designer.cs (1)
53
this.dataGridView1.Location = new System.Drawing.
Point
(0, 15);
DataGridViewTest.Designer.cs (6)
84
this.dataGridView1.Location = new System.Drawing.
Point
(0, 0);
138
this.currentDPILabel1.Location = new System.Drawing.
Point
(12, 174);
149
this.changeFontButton.Location = new System.Drawing.
Point
(12, 234);
160
this.numericUpDown1.Location = new System.Drawing.
Point
(89, 208);
186
this.label1.Location = new System.Drawing.
Point
(12, 210);
197
this.resetFontButton.Location = new System.Drawing.
Point
(192, 234);
DateTimePicker.Designer.cs (5)
45
this.dateTimePicker1.Location = new
Point
(31, 32);
55
this.dateTimePicker2.Location = new
Point
(31, 78);
66
this.dateTimePicker3.Location = new
Point
(31, 128);
76
this.dateTimePicker4.Location = new
Point
(31, 175);
86
this.dateTimePicker5.Location = new
Point
(31, 221);
DesignTimeAligned.Designer.cs (5)
44
this.label1.Location = new System.Drawing.
Point
(72, 18);
55
this.label2.Location = new System.Drawing.
Point
(72, 76);
65
this.button1.Location = new System.Drawing.
Point
(122, 66);
76
this.textBox1.Location = new System.Drawing.
Point
(122, 12);
86
this.currentDPILabel1.Location = new System.Drawing.
Point
(25, 159);
Dialogs.Designer.cs (8)
54
this.propertyGrid1.Location = new System.Drawing.
Point
(171, 0);
63
this.btnOpenFileDialog.Location = new System.Drawing.
Point
(3, 3);
73
this.btnColorDialog.Location = new System.Drawing.
Point
(3, 32);
83
this.btnThreadExceptionDialog.Location = new System.Drawing.
Point
(3, 32);
93
this.btnPrintDialog.Location = new System.Drawing.
Point
(3, 32);
103
this.btnFolderBrowserDialog.Location = new System.Drawing.
Point
(3, 61);
113
this.btnSaveFileDialog.Location = new System.Drawing.
Point
(3, 3);
130
this.flowLayoutPanel1.Location = new System.Drawing.
Point
(0, 0);
DockLayoutTests.Designer.cs (5)
46
this.button1.Location = new System.Drawing.
Point
(0, 0);
56
this.button3.Location = new System.Drawing.
Point
(688, 0);
66
this.button2.Location = new System.Drawing.
Point
(112, 0);
76
this.button4.Location = new System.Drawing.
Point
(112, 384);
86
this.button5.Location = new System.Drawing.
Point
(112, 89);
DragDrop.cs (6)
183
pictureBox.DoDragDrop(data, DragDropEffects.All, _nyanCatBmp, new
Point
(0, 96), true);
196
e.CursorOffset = new
Point
(0, 111);
204
e.CursorOffset = new
Point
(0, 96);
546
toolStripItem.DoDragDrop(data, DragDropEffects.All, _dragAcceptBmp, new
Point
(0, 96), true);
558
toolStripItem.DoDragDrop(data, DragDropEffects.All, _nyanCatBmp, new
Point
(0, 96), true);
570
toolStripItem.DoDragDrop(data, DragDropEffects.All, _nyanCatAscii301Bmp, new
Point
(0, 111), false);
DragDrop.Designer.cs (11)
71
tableLayoutPanel1.Location = new
Point
(0, 0);
87
textBox.Location = new
Point
(735, 3);
98
richTextBox.Location = new
Point
(118, 3);
110
pictureBox1.Location = new
Point
(3, 3);
121
pictureBox2.Location = new
Point
(3, 115);
132
pictureBox3.Location = new
Point
(3, 227);
143
pictureBox4.Location = new
Point
(3, 339);
154
pictureBox5.Location = new
Point
(3, 451);
168
tableLayoutPanel2.Location = new
Point
(1046, 563);
178
buttonOpenCats.Location = new
Point
(3, 3);
188
buttonClear.Location = new
Point
(92, 3);
ErrorProviderTest.Designer.cs (7)
60
this.label1.Location = new System.Drawing.
Point
(19, 26);
69
this.label1_2.Location = new System.Drawing.
Point
(19, 41);
77
this.textBox1.Location = new System.Drawing.
Point
(19, 60);
90
this.label2.Location = new System.Drawing.
Point
(19, 100);
99
this.label2_1.Location = new System.Drawing.
Point
(19, 115);
107
this.textBox2.Location = new System.Drawing.
Point
(19, 135);
118
this.submitButton.Location = new System.Drawing.
Point
(19, 180);
FormBorderStyles.Designer.cs (2)
37
this.btnChangeFormBorderStyle.Location = new System.Drawing.
Point
(13, 13);
48
this.lblFormBorderStyle.Location = new System.Drawing.
Point
(13, 43);
FormShowInTaskbar.cs (2)
20
Location = new
Point
(10, 10),
41
Location = new
Point
(10, 10),
ListBoxes.Designer.cs (20)
58
this.label1.Location = new System.Drawing.
Point
(20, 10);
64
this.listBox1.Location = new System.Drawing.
Point
(20, 40);
72
this.textBox1.Location = new System.Drawing.
Point
(240, 40);
79
this.addButton1.Location = new System.Drawing.
Point
(240, 80);
87
this.deleteButton1.Location = new System.Drawing.
Point
(240, 110);
94
this.label2.Location = new System.Drawing.
Point
(20, 200);
99
this.listBox2.Location = new System.Drawing.
Point
(20, 240);
105
this.textBox2.Location = new System.Drawing.
Point
(240, 240);
112
this.addButton2.Location = new System.Drawing.
Point
(240, 300);
120
this.deleteButton2.Location = new System.Drawing.
Point
(240, 330);
127
this.label3.Location = new System.Drawing.
Point
(360, 10);
133
this.listBox3.Location = new System.Drawing.
Point
(360, 40);
141
this.textBox3.Location = new System.Drawing.
Point
(600, 40);
148
this.addButton3.Location = new System.Drawing.
Point
(600, 80);
156
this.deleteButton3.Location = new System.Drawing.
Point
(600, 110);
163
this.label4.Location = new System.Drawing.
Point
(360, 200);
169
this.listBox4.Location = new System.Drawing.
Point
(360, 240);
178
this.textBox4.Location = new System.Drawing.
Point
(600, 240);
185
this.addButton4.Location = new System.Drawing.
Point
(600, 300);
193
this.deleteButton4.Location = new System.Drawing.
Point
(600, 330);
ListViewTest.cs (1)
57
Bounds = new Rectangle(new
Point
(0, 0), new Size(400, 200)),
ListViewTest.Designer.cs (4)
79
this.listView1.Location = new System.Drawing.
Point
(12, 33);
109
this.btnClearListView1.Location = new System.Drawing.
Point
(13, 4);
119
this.btnLoadImagesListView1.Location = new System.Drawing.
Point
(95, 4);
141
this.btnReplaceImageListView1.Location = new System.Drawing.
Point
(176, 4);
MainForm.Designer.cs (1)
42
this.overarchingFlowLayoutPanel.Location = new System.Drawing.
Point
(8, 8);
MdiChild.Designer.cs (8)
55
this.panel1.Location = new System.Drawing.
Point
(0, 0);
64
this.chkChildAlign.Location = new System.Drawing.
Point
(43, 121);
75
this.chkRightToLeft.Location = new System.Drawing.
Point
(228, 121);
86
this.btnOpenChild.Location = new System.Drawing.
Point
(40, 22);
97
this.chkSetParentMenustrip.Location = new System.Drawing.
Point
(43, 73);
108
this.chkSetMenustrip.Location = new System.Drawing.
Point
(228, 73);
119
this.chkAddParentMenustrip.Location = new System.Drawing.
Point
(43, 97);
130
this.chkAddMenustrip.Location = new System.Drawing.
Point
(228, 97);
MediaPlayer.Designer.cs (1)
45
this.axWindowsMediaPlayer1.Location = new System.Drawing.
Point
(0, 0);
MenuStripAndCheckedListBox.Designer.cs (2)
73
this.menuStrip1.Location = new System.Drawing.
Point
(0, 0);
274
this.currentDpiLabel.Location = new System.Drawing.
Point
(22, 66);
MessageBoxes.Designer.cs (1)
42
this.propertyGrid1.Location = new System.Drawing.
Point
(171, 0);
MultipleControls.cs (1)
22
Bounds = new Rectangle(new
Point
(0, 0), new Size(400, 200)),
MultipleControls.Designer.cs (21)
65
this.progressBar1.Location = new System.Drawing.
Point
(0, 0);
79
this.button1.Location = new System.Drawing.
Point
(15, 50);
93
this.label1.Location = new System.Drawing.
Point
(15, 84);
101
this.maskedTextBox1.Location = new System.Drawing.
Point
(15, 104);
110
this.richTextBox1.Location = new System.Drawing.
Point
(15, 135);
118
this.textBox1.Location = new System.Drawing.
Point
(15, 264);
129
this.tabControl1.Location = new System.Drawing.
Point
(141, 50);
140
this.tabPage1.Location = new System.Drawing.
Point
(4, 24);
151
this.comboBox1.Location = new System.Drawing.
Point
(22, 30);
160
this.tabPage2.Location = new System.Drawing.
Point
(4, 24);
171
this.checkBox1.Location = new System.Drawing.
Point
(8, 22);
181
this.checkBox2.Location = new System.Drawing.
Point
(8, 50);
191
this.radioButton2.Location = new System.Drawing.
Point
(19, 55);
201
this.radioButton1.Location = new System.Drawing.
Point
(19, 29);
216
this.groupBox1.Location = new System.Drawing.
Point
(146, 197);
232
this.checkedListBox1.Location = new System.Drawing.
Point
(378, 49);
241
this.numericUpDown1.Location = new System.Drawing.
Point
(378, 197);
252
this.domainUpDown1.Location = new System.Drawing.
Point
(378, 227);
261
this.linkLabel1.Location = new System.Drawing.
Point
(62, 84);
271
this.linkLabel2.Location = new System.Drawing.
Point
(378, 255);
290
this.checkedListBox2.Location = new System.Drawing.
Point
(525, 49);
Password.Designer.cs (20)
60
textBox1.Location = new
Point
(26, 113);
68
textBox2.Location = new
Point
(26, 191);
77
label1.Location = new
Point
(26, 84);
86
label2.Location = new
Point
(25, 163);
94
maskedTextBox1.Location = new
Point
(316, 191);
102
maskedTextBox2.Location = new
Point
(316, 113);
110
maskedTextBox3.Location = new
Point
(316, 279);
120
textBox3.Location = new
Point
(26, 279);
128
button1.Location = new
Point
(26, 338);
138
textBox4.Location = new
Point
(623, 251);
147
textBox5.Location = new
Point
(623, 113);
157
label3.Location = new
Point
(26, 27);
166
label4.Location = new
Point
(310, 27);
175
label5.Location = new
Point
(611, 27);
184
label6.Location = new
Point
(611, 213);
193
label7.Location = new
Point
(611, 84);
202
label8.Location = new
Point
(310, 163);
211
label9.Location = new
Point
(310, 84);
220
label10.Location = new
Point
(26, 251);
229
label11.Location = new
Point
(310, 251);
PictureBoxes.Designer.cs (3)
45
this.pictureBox1.Location = new System.Drawing.
Point
(11, 39);
58
this.btnloadImage.Location = new System.Drawing.
Point
(539, 9);
71
this.imageUri.Location = new System.Drawing.
Point
(13, 11);
PropertyGrid.Designer.cs (1)
41
this.propertyGrid1.Location = new System.Drawing.
Point
(0, 0);
RichTextBoxes.Designer.cs (2)
41
this.richTextBox1.Location = new System.Drawing.
Point
(0, 0);
52
this.richTextBox2.Location = new System.Drawing.
Point
(0, 104);
ScalingBeforeChanges.Designer.cs (1)
40
this.checkBox1.Location = new System.Drawing.
Point
(39, 73);
ScrollableControls.Designer.cs (33)
97
flowLayoutPanel1.Location = new
Point
(12, 33);
104
button1.Location = new
Point
(3, 3);
113
button2.Location = new
Point
(3, 32);
122
button3.Location = new
Point
(3, 61);
131
button4.Location = new
Point
(3, 90);
140
button5.Location = new
Point
(3, 119);
150
label1.Location = new
Point
(12, 9);
164
panel1.Location = new
Point
(166, 37);
171
button9.Location = new
Point
(24, 113);
180
button8.Location = new
Point
(24, 87);
189
button7.Location = new
Point
(3, 29);
198
button6.Location = new
Point
(3, 3);
208
label2.Location = new
Point
(200, 9);
217
splitContainer1.Location = new
Point
(344, 40);
240
button16.Location = new
Point
(3, 87);
249
button15.Location = new
Point
(-11, 61);
258
button10.Location = new
Point
(-31, 31);
267
button14.Location = new
Point
(62, 112);
276
button13.Location = new
Point
(48, 87);
285
button12.Location = new
Point
(31, 61);
294
button11.Location = new
Point
(16, 31);
304
label3.Location = new
Point
(371, 4);
314
tabControl1.Location = new
Point
(538, 47);
324
tabPage1.Location = new
Point
(4, 24);
334
button17.Location = new
Point
(11, 24);
343
tabPage2.Location = new
Point
(4, 24);
354
label4.Location = new
Point
(593, 9);
363
label5.Location = new
Point
(29, 193);
371
textBox1.Location = new
Point
(16, 247);
382
treeView1.Location = new
Point
(170, 229);
409
label6.Location = new
Point
(181, 193);
418
label7.Location = new
Point
(389, 193);
429
listBox1.Location = new
Point
(348, 229);
ScrollBars.Designer.cs (9)
51
this.hScrollBar.Location = new System.Drawing.
Point
(37, 63);
59
this.vScrollBar.Location = new System.Drawing.
Point
(275, 63);
67
this.numericMinimum.Location = new System.Drawing.
Point
(37, 132);
75
this.numericMaximum.Location = new System.Drawing.
Point
(37, 194);
89
this.chbRightToLeft.Location = new System.Drawing.
Point
(37, 250);
100
this.lblMinimum.Location = new System.Drawing.
Point
(37, 109);
109
this.lblMaximum.Location = new System.Drawing.
Point
(37, 171);
118
this.lblHValue.Location = new System.Drawing.
Point
(37, 33);
127
this.lblVValue.Location = new System.Drawing.
Point
(275, 33);
Splitter.Designer.cs (1)
42
this.splitContainer1.Location = new System.Drawing.
Point
(0, 0);
TextBoxes.Designer.cs (6)
44
this.textBox.Location = new System.Drawing.
Point
(20, 20);
52
this.RTLTextBox.Location = new System.Drawing.
Point
(160, 20);
61
this.multilineTextBox.Location = new System.Drawing.
Point
(20, 60);
84
this.RTLMultilineTextBox.Location = new System.Drawing.
Point
(160, 60);
108
this.richTextBox.Location = new System.Drawing.
Point
(20, 190);
129
this.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)
88
this.toolStrip1.Location = new System.Drawing.
Point
(0, 0);
108
this.toolStrip2.Location = new System.Drawing.
Point
(0, 22);
120
this.toolStrip3.Location = new System.Drawing.
Point
(0, 45);
132
this.toolStrip4.Location = new System.Drawing.
Point
(0, 68);
381
this.statusStrip1.Location = new System.Drawing.
Point
(0, 142);
391
this.label1.Location = new System.Drawing.
Point
(12, 127);
ToolTipTests.Designer.cs (8)
52
this.delaysNotSetButton.Location = new System.Drawing.
Point
(8, 411);
63
this.automaticDelayButton.Location = new System.Drawing.
Point
(8, 9);
74
this.autoPopDelayButton.Location = new System.Drawing.
Point
(8, 210);
92
this.flowLayoutPanel1.Location = new System.Drawing.
Point
(0, 0);
100
this.defaultAutomaticDelayButton.Location = new System.Drawing.
Point
(8, 612);
111
this.defaultAutoPopDelayButton.Location = new System.Drawing.
Point
(8, 813);
122
this.initialDelayButton.Location = new System.Drawing.
Point
(8, 1014);
134
this.autoEllipsisButton.Location = new System.Drawing.
Point
(8, 1215);
TrackBars.Designer.cs (15)
60
this.trackBar1.Location = new System.Drawing.
Point
(10, 30);
72
this.rbHorizontal.Location = new System.Drawing.
Point
(18, 26);
85
this.rbVertical.Location = new System.Drawing.
Point
(18, 56);
98
this.gbOrientation.Location = new System.Drawing.
Point
(65, 78);
110
this.chbRightToLeft.Location = new System.Drawing.
Point
(83, 176);
122
this.chbRightToLeftLayout.Location = new System.Drawing.
Point
(83, 199);
134
this.tickstyleNone.Location = new System.Drawing.
Point
(83, 222);
145
this.numericMinimum.Location = new System.Drawing.
Point
(260, 104);
164
this.numericMaximum.Location = new System.Drawing.
Point
(260, 149);
183
this.numericFrequency.Location = new System.Drawing.
Point
(260, 193);
203
this.lblMinimum.Location = new System.Drawing.
Point
(260, 87);
212
this.lblMaximum.Location = new System.Drawing.
Point
(260, 131);
221
this.lblTickFrequency.Location = new System.Drawing.
Point
(260, 176);
230
this.lblTrackBarSize.Location = new System.Drawing.
Point
(166, 9);
239
this.lblTrackBarValue.Location = new System.Drawing.
Point
(12, 9);