847 references to Point
System.Drawing (21)
commonui\System\Drawing\Advanced\Gdiplus.cs (1)
3245
points[index] = new
Point
( (int)pt.X, (int) pt.Y);
commonui\System\Drawing\Advanced\GraphicsPath.cs (4)
509
return IsVisible(new
Point
(x,y), (Graphics)null);
530
return IsVisible(new
Point
(x,y), graphics);
625
return IsOutlineVisible(new
Point
(x,y), pen, (Graphics)null);
648
return IsOutlineVisible(new
Point
(x,y), pen, graphics);
commonui\System\Drawing\BufferedGraphicsContext.cs (1)
164
this.targetLoc = new
Point
(targetRectangle.X, targetRectangle.Y);
commonui\System\Drawing\Graphics.cs (2)
517
return new
Point
(x, y);
4302
return IsVisible(new
Point
(x,y));
commonui\System\Drawing\Point.cs (5)
191
return new
Point
(pt.X + sz.Width, pt.Y + sz.Height);
200
return new
Point
(pt.X - sz.Width, pt.Y - sz.Height);
209
return new
Point
((int)Math.Ceiling(value.X), (int)Math.Ceiling(value.Y));
218
return new
Point
((int)value.X, (int)value.Y);
227
return new
Point
((int)Math.Round(value.X), (int)Math.Round(value.Y));
commonui\System\Drawing\PointConverter.cs (2)
88
return new
Point
(values[0], values[1]);
167
return new
Point
((int)x,
commonui\System\Drawing\Printing\PrinterUnitConvert.cs (1)
56
return new
Point
(
commonui\System\Drawing\Rectangle.cs (1)
100
return new
Point
(X, Y);
commonui\System\Drawing\Region.cs (1)
889
return IsVisible(new
Point
(x, y), g);
commonui\System\Drawing\Size.cs (1)
127
return new
Point
(size.Width, size.Height);
misc\GDI\NativeMethods.cs (1)
237
return new System.Drawing.
Point
(this.x, this.y);
misc\GDI\WindowsRegion.cs (1)
196
return new Rectangle(new
Point
(rect.left, rect.top), rect.Size);
System.Web.Entity.Design (40)
System\Data\WebControls\Design\EntityDataSourceConfigureObjectContextPanel.cs (9)
45
_databaseConnectionGroupLabel.Location = new
Point
(10, top);
49
_databaseConnectionGroupBox.Location = new
Point
(13, top);
51
_radioButtonsGroupContainer.Location = new
Point
(0, 0);
56
_namedConnectionRadioButton.Location = new
Point
(9, top + 20);
60
_namedConnectionComboBox.Location = new
Point
(25, top + 6);
64
_connectionStringRadioButton.Location = new
Point
(9, top + 6);
68
_connectionStringTextBox.Location = new
Point
(25, top + 6);
72
_containerNameLabel.Location = new
Point
(10, top + 30);
76
_containerNameComboBox.Location = new
Point
(13, top + 3);
System\Data\WebControls\Design\EntityDataSourceDataSelectionPanel.cs (10)
42
_entitySetLabel.Location = new
Point
(9, top + 8);
46
_entitySetComboBox.Location = new
Point
(12, top + 3);
50
_entityTypeFilterLabel.Location = new
Point
(9, top + 6);
54
_entityTypeFilterComboBox.Location = new System.Drawing.
Point
(12, top + 3);
58
_selectLabel.Location = new
Point
(9, top + 6);
62
_selectAdvancedTextBox.Location = new
Point
(12, top + 3);
72
_insertUpdateDeletePanel.Location = new
Point
(12, top + 3);
76
_enableInsertCheckBox.Location = new
Point
(3, top + 3);
80
_enableUpdateCheckBox.Location = new
Point
(3, top + 6);
84
_enableDeleteCheckBox.Location = new
Point
(3, top + 6);
System\Data\WebControls\Design\EntityDataSourceStatementEditorForm.cs (8)
250
_checkBoxPanel.Location = new
Point
(12, 12);
252
_autoGenerateCheckBox.Location = new
Point
(0, 0);
256
_statementPanel.Location = new
Point
(12, top + 4);
260
_statementLabel.Location = new
Point
(0, 0);
264
_statementTextBox.Location = new
Point
(0, top + 3);
268
_parameterEditorUserControl.Location = new
Point
(12, top + 5);
272
_okButton.Location = new
Point
(313, top + 6);
274
_cancelButton.Location = new
Point
(393, top + 6);
System\Data\WebControls\Design\Util\TaskFormBase.cs (5)
91
this._taskPanel.Location = new System.Drawing.
Point
(0, 63);
101
this._bottomDividerLabel.Location = new System.Drawing.
Point
(0, 382);
113
this._headerPanel.Location = new System.Drawing.
Point
(0, 0);
120
this._glyphPictureBox.Location = new System.Drawing.
Point
(0, 0);
130
this._captionLabel.Location = new System.Drawing.
Point
(71, 17);
System\Data\WebControls\Design\Util\WizardForm.cs (8)
124
this._wizardButtonsTableLayoutPanel.Location = new System.Drawing.
Point
(205, 394);
135
this._previousButton.Location = new System.Drawing.
Point
(0, 0);
144
this._dummyLabel1.Location = new System.Drawing.
Point
(75, 0);
154
this._nextButton.Location = new System.Drawing.
Point
(78, 0);
163
this._dummyLabel2.Location = new System.Drawing.
Point
(153, 0);
174
this._finishButton.Location = new System.Drawing.
Point
(160, 0);
183
this._dummyLabel3.Location = new System.Drawing.
Point
(235, 0);
194
this._cancelButton.Location = new System.Drawing.
Point
(242, 0);
System.Web.Mobile (60)
UI\MobileControls\Design\AppliedDeviceFiltersDialog.cs (9)
159
this._appliedFiltersList.Location = new System.Drawing.
Point
(0, 74);
165
this._btnEditFilters.Location = new System.Drawing.
Point
(201, 15);
171
this._cmdOK.Location = new System.Drawing.
Point
(120, 334);
187
this._pnlMain.Location = new System.Drawing.
Point
(6, 8);
193
this._tbArgument.Location = new System.Drawing.
Point
(0, 306);
200
this._lblArgument.Location = new System.Drawing.
Point
(0, 290);
207
this._cmdCancel.Location = new System.Drawing.
Point
(201, 334);
218
this._cbAvailableFilters.Location = new System.Drawing.
Point
(0, 16);
225
this._btnApplyFilter.Location = new System.Drawing.
Point
(0, 44);
UI\MobileControls\Design\DeviceFilterEditorDialog.cs (19)
235
this._txtType.Location = new System.Drawing.
Point
(0, 20);
238
this._lblHeader.Location = new System.Drawing.
Point
(0, 0);
245
this._pnlHeader.Location = new System.Drawing.
Point
(6, 5);
252
this._pnlMain.Location = new System.Drawing.
Point
(6, 27);
257
this._filterList.Location = new System.Drawing.
Point
(0, 0);
258
this._rbCompare.Location = new System.Drawing.
Point
(8, 21);
260
this._lblCompare.Location = new System.Drawing.
Point
(0, 4);
262
this._dialogButtons.Location = new System.Drawing.
Point
(197, 230);
264
this._lblType.Location = new System.Drawing.
Point
(0, 4);
266
this._txtMethod.Location = new System.Drawing.
Point
(0, 64);
268
this._txtArgument.Location = new System.Drawing.
Point
(0, 64);
276
this._pnlRight.Location = new System.Drawing.
Point
(215, 0);
278
this._lblMethod.Location = new System.Drawing.
Point
(0, 48);
280
this._glAttributes.Location = new System.Drawing.
Point
(0, 73);
282
this._rbDelegate.Location = new System.Drawing.
Point
(8, 46);
289
this._pnlCompare.Location = new System.Drawing.
Point
(8, 90);
292
this._cbCompare.Location = new System.Drawing.
Point
(0, 20);
295
this._lblArgument.Location = new System.Drawing.
Point
(0, 48);
301
this._pnlDelegate.Location = new System.Drawing.
Point
(8, 90);
UI\MobileControls\Design\PropertyOverridesDialog.cs (7)
146
this._cbChoices.Location = new System.Drawing.
Point
(0, 16);
148
this._cmdOK.Location = new System.Drawing.
Point
(120, 290);
149
this._cmdCancel.Location = new System.Drawing.
Point
(201, 290);
150
this._btnEditFilters.Location = new System.Drawing.
Point
(201, 15);
162
this._pnlMain.Location = new System.Drawing.
Point
(6, 5);
168
this._pgProperties.Location = new System.Drawing.
Point
(0, 64);
176
this._lblProperties.Location = new System.Drawing.
Point
(0, 48);
UI\MobileControls\Design\StylesEditorDialog.cs (2)
302
_btnOK.Location = new System.Drawing.
Point
(282, 370);
309
_btnCancel.Location = new System.Drawing.
Point
(363, 370);
UI\MobileControls\Design\StyleSheetDesigner.cs (7)
847
_mergedUI.BtnEdit.Location = new System.Drawing.
Point
(201, 39);
857
_mergedUI.BtnEdit.Location = new System.Drawing.
Point
(201, 39);
1293
this.LblStyles.Location = new System.Drawing.
Point
(0, 24);
1298
this.CbStyles.Location = new System.Drawing.
Point
(0, 40);
1301
this.BtnEdit.Location = new System.Drawing.
Point
(164, 39);
1303
this.LblHeader.Location = new System.Drawing.
Point
(0, 0);
1310
this.Location = new System.Drawing.
Point
(5,6);
UI\MobileControls\Design\TemplatingOptionsDialog.cs (7)
122
_lblChoices.Location = new System.Drawing.
Point
(0, 0);
126
_cmbChoices.Location = new System.Drawing.
Point
(0, 16);
134
_btnEditChoices.Location = new System.Drawing.
Point
(201, 15);
139
_lblSchemas.Location = new System.Drawing.
Point
(0, 48);
143
_cmbSchemas.Location = new System.Drawing.
Point
(0, 64);
150
_btnClose.Location = new System.Drawing.
Point
(201, 104);
163
this._pnlMain.Location = new System.Drawing.
Point
(6, 5);
UI\MobileControls\Design\Util\DefaultDialogButtons.cs (2)
62
CmdOK.Location = new System.Drawing.
Point
(81, 0);
65
CmdCancel.Location = new System.Drawing.
Point
(162, 0);
UI\MobileControls\Design\Util\EditableTreeList.cs (6)
67
TvList.Location = new System.Drawing.
Point
(0, 16);
85
BtnUp.Location = new System.Drawing.
Point
(182, 16);
92
BtnDown.Location = new System.Drawing.
Point
(182, 48);
99
BtnRemove.Location = new System.Drawing.
Point
(182, 136);
106
BtnAdd.Location = new System.Drawing.
Point
(0, 168);
113
this.Location = new System.Drawing.
Point
(8, Y);
UI\MobileControls\Design\Util\GenericUI.cs (1)
87
header.Location = new
Point
(6, 5);
System.Windows.Forms (385)
misc\GDI\NativeMethods.cs (1)
237
return new System.Drawing.
Point
(this.x, this.y);
misc\GDI\WindowsGraphics2.cs (1)
92
Point p = new
Point
(bounds.X+sideLength/2, bounds.Y+sideLength/2);
misc\GDI\WindowsRegion.cs (1)
196
return new Rectangle(new
Point
(rect.left, rect.top), rect.Size);
winforms\Managed\System\Resources\ResXDataNode.cs (1)
809
result.ReaderPosition = new
Point
(this.ReaderPosition.X, this.ReaderPosition.Y);
winforms\Managed\System\Resources\ResXResourceReader.cs (1)
368
Point pt = new
Point
(0, 0);
winforms\Managed\System\WinForms\Button.cs (1)
305
Point pt = PointToScreen(new
Point
(mevent.X, mevent.Y));
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (16)
179
Point p1 = new
Point
(bounds.X + bounds.Width - 1, bounds.Y ); // upper inner right.
180
Point p2 = new
Point
(bounds.X , bounds.Y ); // upper left.
181
Point p3 = new
Point
(bounds.X , bounds.Y + bounds.Height - 1 ); // bottom inner left.
182
Point p4 = new
Point
(bounds.X + bounds.Width - 1, bounds.Y + bounds.Height - 1 ); // inner bottom right.
273
Point p1 = new
Point
(bounds.X + bounds.Width - 1, bounds.Y ); // upper inner right.
274
Point p2 = new
Point
(bounds.X , bounds.Y ); // upper left.
275
Point p3 = new
Point
(bounds.X , bounds.Y + bounds.Height - 1 ); // bottom inner left.
276
Point p4 = new
Point
(bounds.X + bounds.Width - 1, bounds.Y + bounds.Height - 1 ); // inner bottom right.
343
Point p1 = new
Point
(bounds.X + bounds.Width - 1, bounds.Y ); // upper inner right.
344
Point p2 = new
Point
(bounds.X , bounds.Y ); // upper left.
345
Point p3 = new
Point
(bounds.X , bounds.Y + bounds.Height - 1 ); // bottom inner left.
346
Point p4 = new
Point
(bounds.X + bounds.Width - 1, bounds.Y + bounds.Height - 1 ); // inner bottom right.
446
Point p1 = new
Point
(r.Right - 1, r.Top ); // upper inner right.
447
Point p2 = new
Point
(r.Left , r.Top ); // upper left.
448
Point p3 = new
Point
(r.Left , r.Bottom - 1); // bottom inner left.
449
Point p4 = new
Point
(r.Right - 1, r.Bottom - 1); // inner bottom right.
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxBaseAdapter.cs (2)
222
CheckBoxRenderer.DrawCheckBox(g, new
Point
(layout.checkBounds.Left, layout.checkBounds.Top), CheckBoxRenderer.ConvertFromButtonState(style, true, Control.MouseIsOver), Control.HandleInternal);
230
CheckBoxRenderer.DrawCheckBox(g, new
Point
(layout.checkBounds.Left, layout.checkBounds.Top), CheckBoxRenderer.ConvertFromButtonState(style, false, Control.MouseIsOver), Control.HandleInternal);
winforms\Managed\System\WinForms\ButtonInternal\RadioButtonBaseAdapter.cs (25)
108
wg.DrawLine(borderPen, new
Point
(bounds.X + 4, bounds.Y + 0), new
Point
(bounds.X + 8, bounds.Y + 0));
109
wg.DrawLine(borderPen, new
Point
(bounds.X + 4, bounds.Y + 11), new
Point
(bounds.X + 8, bounds.Y + 11));
111
wg.DrawLine(borderPen, new
Point
(bounds.X + 2, bounds.Y + 1), new
Point
(bounds.X + 4, bounds.Y + 1));
112
wg.DrawLine(borderPen, new
Point
(bounds.X + 8, bounds.Y + 1), new
Point
(bounds.X + 10, bounds.Y + 1));
114
wg.DrawLine(borderPen, new
Point
(bounds.X + 2, bounds.Y + 10), new
Point
(bounds.X + 4, bounds.Y + 10));
115
wg.DrawLine(borderPen, new
Point
(bounds.X + 8, bounds.Y + 10), new
Point
(bounds.X + 10, bounds.Y + 10));
117
wg.DrawLine(borderPen, new
Point
(bounds.X + 0, bounds.Y + 4), new
Point
(bounds.X + 0, bounds.Y + 8));
118
wg.DrawLine(borderPen, new
Point
(bounds.X + 11, bounds.Y + 4), new
Point
(bounds.X + 11, bounds.Y + 8));
120
wg.DrawLine(borderPen, new
Point
(bounds.X + 1, bounds.Y + 2), new
Point
(bounds.X + 1, bounds.Y + 4));
121
wg.DrawLine(borderPen, new
Point
(bounds.X + 1, bounds.Y + 8), new
Point
(bounds.X + 1, bounds.Y + 10));
123
wg.DrawLine(borderPen, new
Point
(bounds.X + 10, bounds.Y + 2), new
Point
(bounds.X + 10, bounds.Y + 4));
124
wg.DrawLine(borderPen, new
Point
(bounds.X + 10, bounds.Y + 8), new
Point
(bounds.X + 10, bounds.Y + 10));
188
RadioButtonRenderer.DrawRadioButton(g, new
Point
(check.Left, check.Top), RadioButtonRenderer.ConvertFromButtonState(style, Control.MouseIsOver), Control.HandleInternal);
winforms\Managed\System\WinForms\CheckBox.cs (1)
647
Point pt = PointToScreen(new
Point
(mevent.X, mevent.Y));
winforms\Managed\System\WinForms\CheckedListBox.cs (1)
712
CheckBoxRenderer.DrawCheckBox(e.Graphics, new
Point
(box.X, box.Y), cbState, HandleInternal);
winforms\Managed\System\WinForms\ComboBox.cs (8)
1603
return new
Point
(0, 0);
1619
return (new
Point
(comboXMid, comboYMid));
1844
Point pt = new
Point
(x, y);
3729
Point pt = new
Point
(x, y);
6065
Point middle = new
Point
(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.Height / 2);
6076
new
Point
(middle.X - Offset2Pixels, middle.Y - 1),
6077
new
Point
(middle.X + Offset2Pixels + 1, middle.Y - 1),
6078
new
Point
(middle.X, middle.Y + Offset2Pixels)
winforms\Managed\System\WinForms\ContextMenuStrip.cs (3)
102
Rectangle bounds = CalculateDropDownLocation(new
Point
(x,y), ToolStripDropDownDirection.AboveLeft);
105
bounds = CalculateDropDownLocation(new
Point
(x,y), ToolStripDropDownDirection.BelowLeft);
108
bounds = CalculateDropDownLocation(new
Point
(x,y), ToolStripDropDownDirection.AboveRight);
winforms\Managed\System\WinForms\Control.cs (14)
587
this.Location = new
Point
( left, top );
3233
return new
Point
(x, y);
3384
return new
Point
(pt.x, pt.y);
10091
return new
Point
(point.x, point.y);
10108
return new
Point
(point.x, point.y);
10382
clientOffset = new
Point
(clientOffset.X - windowRect.left, clientOffset.Y - windowRect.top);
10907
Location = new
Point
(0,0);
12867
client = new
Point
(Width/2, Height/2);
12870
client = PointToClientInternal(new
Point
(x, y));
13152
HelpEventArgs hevent = new HelpEventArgs(new
Point
(info.MousePos.x, info.MousePos.y));
13489
Point pt = new
Point
(x,y);
13551
Point p = new
Point
(NativeMethods.Util.SignedLOWORD(m.LParam), NativeMethods.Util.SignedHIWORD(m.LParam));
16582
Control realTarget = target.GetChildAtPoint(new
Point
(pt.x, pt.y));
18262
bounds.Location = new
Point
(bounds.X, bounds.Y);
winforms\Managed\System\WinForms\ControlPaint.cs (1)
509
Rectangle partOfImageToDraw = new Rectangle(new
Point
(imageRect.X - imageRectangle.X, imageRect.Y - imageRectangle.Y)
winforms\Managed\System\WinForms\Cursor.cs (2)
279
hotSpot = new
Point
(info.xHotspot, info.yHotspot);
313
return new
Point
(p.x, p.y);
winforms\Managed\System\WinForms\DataGrid.cs (3)
7084
Point origin = new
Point
(0, layout.Data.Y);
7093
return new
Point
(x, y - origin.Y);
9184
Point client = DataGrid.PointToClient(new
Point
(x, y));
winforms\Managed\System\WinForms\DataGridCaption.cs (1)
37
private static readonly Point minimumBounds = new
Point
(50, 30);
winforms\Managed\System\WinForms\DataGridRelationshipRow.cs (3)
776
points[0] = new
Point
(outline.X + outline.Height/2, outline.Bottom);
778
points[1] = new
Point
(points[0].X, bounds.Y + 2*indent + base.Height);
780
points[2] = new
Point
(alignToRight ? bounds.X : bounds.Right,
winforms\Managed\System\WinForms\DataGridView.cs (7)
517
this.ptCurrentCell = new
Point
(-1, -1);
518
this.ptAnchorCell = new
Point
(-1, -1);
519
this.ptMouseDownCell = new
Point
(-2, -2);
520
this.ptMouseEnteredCell = new
Point
(-2, -2);
521
this.ptToolTipCell = new
Point
(-1, -1);
522
this.ptMouseDownGridCoord = new
Point
(-1, -1);
2957
Point ptFirstDisplayedCellAddress = new
Point
(-1, -1);
winforms\Managed\System\WinForms\DataGridViewAccessibleObject.cs (1)
196
Point pt = this.owner.PointToClient(new
Point
(x, y));
winforms\Managed\System\WinForms\DataGridViewCell.cs (3)
1244
cellBounds = new Rectangle(new
Point
(0, 0), GetSize(rowIndex));
4508
this.DataGridView.EditingControl.Location = new
Point
(editingControlBounds.X, editingControlBounds.Y);
4598
this.DataGridView.EditingPanel.Location = new
Point
(xEditingPanel, yEditingPanel);
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (3)
972
NotifyMASSClient(new
Point
(this.ColumnIndex, rowIndex));
1078
NotifyMASSClient(new
Point
(e.ColumnIndex, e.RowIndex));
1908
checkBoxCell.NotifyMASSClient(new
Point
(dataGridViewCell.ColumnIndex, dataGridViewCell.RowIndex));
winforms\Managed\System\WinForms\DataGridViewColumnCollection.cs (3)
299
OnCollectionChanged(new CollectionChangeEventArgs(CollectionChangeAction.Add, dataGridViewColumn), false /*changeIsInsertion*/, new
Point
(-1, -1));
391
OnCollectionChanged(new CollectionChangeEventArgs(CollectionChangeAction.Refresh, null), false /*changeIsInsertion*/, new
Point
(-1, -1));
437
OnCollectionChanged(new CollectionChangeEventArgs(CollectionChangeAction.Refresh, null), false /*changeIsInsertion*/, new
Point
(-1, -1));
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (4)
916
Point sortGlyphLocation = new
Point
(0, 0);
962
sortGlyphLocation = new
Point
(valBounds.Left -
972
sortGlyphLocation = new
Point
(valBounds.Right +
1011
sortGlyphLocation = new
Point
(valBounds.Left + (valBounds.Width-sortGlyphWidth)/2,
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (7)
2441
Point middle = new
Point
(dropRect.Left + dropRect.Width / 2, dropRect.Top + dropRect.Height / 2);
2449
new
Point
(middle.X - offset2X, middle.Y - 1),
2450
new
Point
(middle.X + offset2X + 1, middle.Y - 1),
2451
new
Point
(middle.X, middle.Y + offset2Y)
2462
Point middle = new
Point
(dropRect.Left + (dropRect.Width - 1) / 2,
2468
Point pt1 = new
Point
(middle.X - (nonXPTriangleWidth - 1) / 2, middle.Y - nonXPTriangleHeight);
2469
Point pt2 = new
Point
(middle.X + (nonXPTriangleWidth - 1) / 2, middle.Y - nonXPTriangleHeight);
winforms\Managed\System\WinForms\DataGridViewMethods.cs (24)
76
this.ptToolTipCell = new
Point
(columnIndex, rowIndex);
4932
return new
Point
(columnX + x, rowY + y);
14328
Debug.Assert(this.CurrentCellAddress == new
Point
(-1, -1));
15896
newCurrentCell = new
Point
(columnIndexInserted <= this.ptCurrentCell.X ? this.ptCurrentCell.X + 1 : this.ptCurrentCell.X,
15902
newCurrentCell = new
Point
(-1, -1);
16008
newCurrentCell = new
Point
(this.ptCurrentCell.X, this.ptCurrentCell.Y + insertionCount);
16024
newCurrentCell = new
Point
(-1, -1);
16082
newCurrentCell = new
Point
(this.ptCurrentCell.X, this.ptCurrentCell.Y + dataGridViewRows.Length);
16087
newCurrentCell = new
Point
(-1, -1);
16542
this.ptMouseDownGridCoord = new
Point
(e.X, e.Y);
16780
this.ptToolTipCell = new
Point
(-1, -1);
17528
newCurrentCell = new
Point
(newX, (newX == -1) ? -1 : this.ptCurrentCell.Y);
17551
newCurrentCell = new
Point
(-1, -1);
17693
newCurrentCell = new
Point
(-1, -1);
17736
newCurrentCell = new
Point
(this.ptCurrentCell.X, newY);
18614
Debug.Assert(this.CurrentCellAddress == new
Point
(-1, -1));
19353
Invalidate(new Rectangle(new
Point
(-pt.X, ColumnHeadersHeight),
19364
Invalidate(new Rectangle(new
Point
(ClientSize.Width - (pt.X - rect.Right) - step, ColumnHeadersHeight),
19371
Invalidate(new Rectangle(new
Point
(0, -pt.Y),
19378
Invalidate(new Rectangle(new
Point
(0, ColumnHeadersHeight),
20393
this.editingPanel.Location = new
Point
(this.Width + 1, 0);
27056
AccessibilityNotifyCurrentCellChanged(new
Point
(this.ptCurrentCell.X, this.ptCurrentCell.Y));
29861
client = new
Point
(this.Width/2, this.Height/2);
29866
client = PointToClientInternal(new
Point
(x, y));
winforms\Managed\System\WinForms\DataGridViewRowCollection.cs (6)
974
OnCollectionChanged(new CollectionChangeEventArgs(CollectionChangeAction.Refresh, null), 0, rowCount, true, false, recreateNewRow, new
Point
(-1, -1));
1633
Point newCurrentCell = new
Point
(-1, -1);
1741
Point newCurrentCell = new
Point
(-1, -1);
1915
Point newCurrentCell = new
Point
(-1, -1);
2043
Point newCurrentCell = new
Point
(-1, -1);
2333
Point newCurrentCell = new
Point
(-1, -1);
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (1)
824
this.DataGridView.EditingControl.Location = new
Point
(editingControlBounds.X, editingControlBounds.Y);
winforms\Managed\System\WinForms\DataGridViewUtilities.cs (1)
352
Point ptTextLocation = new
Point
(0, 0);
winforms\Managed\System\WinForms\ErrorProvider.cs (1)
1039
mirrordc.ViewportOrigin = new
Point
(mirrordcOrigin.X + originOffset, mirrordcOrigin.Y);
winforms\Managed\System\WinForms\Form.cs (2)
5006
Cursor.Position = new
Point
(ptToSnap.x, ptToSnap.y);
6063
Location = new
Point
(workingArea.X + x, workingArea.Y + y);
winforms\Managed\System\WinForms\HtmlElementEventArgs.cs (3)
67
return new
Point
(this.NativeHTMLEventObj.GetClientX(), this.NativeHTMLEventObj.GetClientY());
77
return new
Point
(this.NativeHTMLEventObj.GetOffsetX(), this.NativeHTMLEventObj.GetOffsetY());
87
return new
Point
(this.NativeHTMLEventObj.GetX(), this.NativeHTMLEventObj.GetY());
winforms\Managed\System\WinForms\HtmlWindow.cs (1)
192
return new
Point
(((UnsafeNativeMethods.IHTMLWindow3)this.NativeHtmlWindow).GetScreenLeft(),
winforms\Managed\System\WinForms\Layout\FlowLayout.cs (3)
57
Rectangle measureBounds = new Rectangle(new
Point
(0, 0), proposedConstraints);
352
Point pt = new
Point
(value.X, value.Y);
427
Point pt = new
Point
(newBounds.X, newBounds.Y);
winforms\Managed\System\WinForms\LinkLabel.cs (1)
2677
Point p = Owner.PointToClient(new
Point
(x, y));
winforms\Managed\System\WinForms\ListBox.cs (2)
2414
Point pt = new
Point
(x,y);
2461
Point rpt = new
Point
(rx,ry);
winforms\Managed\System\WinForms\ListView.cs (4)
3093
return FindItem(true, text, isPrefixSearch, new
Point
(0,0), SearchDirectionHint.Down, startIndex, includeSubItemsInSearch);
3150
return FindItem(false, String.Empty, false, new
Point
(x, y), searchDirection, -1, false);
3381
return new
Point
(pt.x, pt.y);
6188
startingPoint = new
Point
(nmlvif.lvfi.ptX, nmlvif.lvfi.ptY);
winforms\Managed\System\WinForms\ListViewItem.cs (2)
56
private Point position = new
Point
(-1,-1);
1358
return !this.position.Equals(new
Point
(-1,-1));
winforms\Managed\System\WinForms\MonthCalendar.cs (2)
1590
return new HitTestInfo(new
Point
(mchi.pt_x, mchi.pt_y), hitArea, DateTimePicker.SysTimeToDateTime(sys));
1593
return new HitTestInfo(new
Point
(mchi.pt_x, mchi.pt_y), hitArea);
winforms\Managed\System\WinForms\MouseEvent.cs (1)
143
return new
Point
(x,y);
winforms\Managed\System\WinForms\Printing\PrintControllerWithStatusDialog.cs (3)
269
label1.Location = new
Point
(8, 16);
279
button1.Location = new
Point
(88, 88);
287
tableLayoutPanel1.Location = new System.Drawing.
Point
(0, 0);
winforms\Managed\System\WinForms\Printing\PrintPreviewControl.cs (6)
38
Point position = new
Point
(0,0);
427
screendpi = new
Point
(UnsafeNativeMethods.GetDeviceCaps(new HandleRef(tempGraphics, dc), NativeMethods.LOGPIXELSX),
444
SetVirtualSizeNoInvalidate(new Size(PhysicalToPixels(new
Point
(virtualX, virtualY), screendpi)));
579
Point offset = new
Point
(Math.Max(0, (Size.Width - virtualPixels.X) / 2),
674
return new
Point
(PhysicalToPixels(physical.X, dpi.X),
688
return new
Point
(PixelsToPhysical(pixels.X, dpi.X),
winforms\Managed\System\WinForms\Printing\PrintPreviewDialog.cs (1)
1505
previewControl.Location = new
Point
(0, 43);
winforms\Managed\System\WinForms\PropertyGrid.cs (8)
2348
ControlPaint.DrawReversibleLine(new
Point
(rc.X+i, rc.Y), new
Point
(rc.X+i, rc.Y+rc.Height), ctlDrawTo.BackColor);
2353
ControlPaint.DrawReversibleLine(new
Point
(rc.X, rc.Y+i), new
Point
(rc.X+rc.Width, rc.Y+i), ctlDrawTo.BackColor);
2986
gridView.Location = new
Point
(0,0);
2999
gridView.Location = new
Point
(0, toolStrip.Height + toolStrip.Top);
3012
gridView.Location = new
Point
(0, 0);
5439
Point clientPoint = _owningPropertyGrid.PointToClient(new
Point
((int)x, (int)y));
winforms\Managed\System\WinForms\PropertyGridInternal\DocComment.cs (4)
125
m_labelTitle.Location = new
Point
(cBorder, cBorder);
126
m_labelDesc.Location = new
Point
(cBorder, cBorder + lineHeight);
235
m_labelTitle.Location = new
Point
(cBorder, cBorder);
236
m_labelDesc.Location = new
Point
(cBorder, cBorder + lineHeight);
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (3)
38
protected static readonly Point InvalidPoint = new
Point
(int.MinValue, int.MinValue);
1952
this.labelTipPoint = new
Point
(stringX+2, rect.Y+1);
2248
this.ValueToolTipLocation = new
Point
(rect.X+2, rect.Y-1);
winforms\Managed\System\WinForms\PropertyGridInternal\GridErrorDlg.cs (10)
172
this.lblMessage.Location = new System.Drawing.
Point
(73, 30);
180
this.pictureBox.Location = new System.Drawing.
Point
(3, 3);
191
this.detailsBtn.Location = new System.Drawing.
Point
(3, 3);
206
this.overarchingTableLayoutPanel.Location = new System.Drawing.
Point
(1, 0);
229
this.buttonTableLayoutPanel.Location = new System.Drawing.
Point
(0, 79);
240
this.okBtn.Location = new System.Drawing.
Point
(131, 3);
250
this.cancelBtn.Location = new System.Drawing.
Point
(212, 3);
267
this.pictureLabelTableLayoutPanel.Location = new System.Drawing.
Point
(3, 3);
276
this.details.Location = new System.Drawing.
Point
(4, 114);
341
details.Location = new System.Drawing.
Point
(x, y);
winforms\Managed\System\WinForms\PropertyGridInternal\GridToolTip.cs (1)
185
Point locPoint = parent.PointToScreen(new
Point
(rect.left, rect.top));
winforms\Managed\System\WinForms\PropertyGridInternal\HotCommands.cs (1)
211
links[i] = new
Point
(charLoc, name.Length);
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyDescriptorGridEntry.cs (1)
433
return new
Point
(mouseX, mouseY);
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (15)
41
protected static readonly Point InvalidPoint = new
Point
(int.MinValue, int.MinValue);
91
protected static readonly Point InvalidPosition = new
Point
(int.MinValue, int.MinValue);
149
private Point ptOurLocation = new
Point
(1,1);
557
Point pt = PointToScreen( new
Point
( rect.X, rect.Y ) );
558
return new
Point
(pt.X + (rect.Width / 2), pt.Y + (rect.Height / 2));
1275
Point newOrigin = new
Point
(rect.X, rect.Y);
1318
Point newOrigin = new
Point
(r.X, r.Y);
1480
Point point = new
Point
(x, y);
1638
Point loc = PointToScreen(new
Point
(0, 0));
1713
Point loc = PointToScreen(new
Point
(0, 0));
1925
Point pt = new
Point
(ROWLABEL,0);
2811
Point screenPoint = Edit.PointToScreen(new
Point
(me.X, me.Y));
3202
lastMouseDown = new
Point
(me.X, me.Y);
5792
dragStart = PointToScreen(new
Point
(e.X, e.Y));
5831
Point dragPoint = PointToScreen(new
Point
(e.X, e.Y));
winforms\Managed\System\WinForms\RadioButton.cs (1)
573
Point pt = PointToScreen(new
Point
(mevent.X, mevent.Y));
winforms\Managed\System\WinForms\RichTextBox.cs (1)
2379
return new
Point
(pt.x, pt.y);
winforms\Managed\System\WinForms\ScrollableControl.cs (2)
186
return new
Point
(rect.X, rect.Y);
985
return new
Point
(xCalc, yCalc);
winforms\Managed\System\WinForms\SplitContainer.cs (20)
1789
panel2.Location = new
Point
(panel1.WidthInternal + SplitterWidthInternal, 0);
1792
panel1.Location = new
Point
(Width - panel1.WidthInternal, 0);
1801
panel2.Location = new
Point
(0,0);
1805
panel1.Location = new
Point
(0,0);
1820
panel2.Location = new
Point
(0,panel2Start);
1829
panel2.Location = new
Point
(0, panel2Start);
1841
panel2.Location = new
Point
(0,panel2Start);
1852
panel2.Location = new
Point
(0,0);
1856
panel1.Location = new
Point
(0,0);
2166
anchor = new
Point
(x, y);
2269
panel1.Location = new
Point
(0,0);
2270
panel2.Location = new
Point
(splitterDistance + SplitterWidthInternal, 0);
2273
panel1.Location = new
Point
(Width - splitterDistance, 0);
2274
panel2.Location = new
Point
(0, 0);
2288
panel2.Location = new
Point
(0,0);
2292
panel1.Location = new
Point
(0,0);
2304
panel1.Location = new
Point
(0,0);
2310
panel2.Location = new
Point
(0,panel2Start);
2322
panel2.Location = new
Point
(0,0);
2326
panel1.Location = new
Point
(0,0);
winforms\Managed\System\WinForms\Splitter.cs (1)
974
anchor = new
Point
(x, y);
winforms\Managed\System\WinForms\StatusBar.cs (1)
50
private Point lastClick = new
Point
(0, 0);
winforms\Managed\System\WinForms\StatusStrip.cs (2)
562
if (sizeGripBounds.Contains(PointToClient(new
Point
(x, y)))) {
621
if (ClientRectangle.Contains(PointToClient(new
Point
(x, y)))) {
winforms\Managed\System\WinForms\TabControl.cs (1)
47
private static readonly Point DEFAULT_PADDING = new
Point
(6, 3);
winforms\Managed\System\WinForms\TextBoxBase.cs (3)
1796
return new
Point
(NativeMethods.Util.SignedLOWORD(i), NativeMethods.Util.SignedHIWORD(i));
2257
client = new
Point
(Width/2, Height/2);
2260
client = PointToClientInternal(new
Point
(x, y));
winforms\Managed\System\WinForms\ThreadExceptionDialog.cs (1)
281
pictureBox.Location = new
Point
(scaledPictureWidth/8, scaledPictureHeight/8);
winforms\Managed\System\WinForms\ToolBar.cs (1)
1548
((ContextMenu)menu).Show(this, new
Point
(rc.left, rc.bottom));
winforms\Managed\System\WinForms\ToolStrip.cs (36)
52
internal static Point InvalidMouseEnter = new
Point
(Int32.MaxValue, Int32.MaxValue);
2344
Point midPointOfCurrent = new
Point
(selectedItem.Bounds.X + selectedItem.Width / 2,
2365
Point otherItemMidLocation = new
Point
(otherItem.Bounds.X + otherItem.Width/2, (down)? otherItem.Bounds.Top : otherItem.Bounds.Bottom);
2793
ToolStripLocationCancelEventArgs cae = new ToolStripLocationCancelEventArgs(new
Point
(x, y), false);
3500
Point itemRelativePoint = item.TranslatePoint(new
Point
(mea.X, mea.Y), ToolStripPointType.ToolStripCoords, ToolStripPointType.ToolStripItemCoords);
3563
Point itemRelativePoint = item.TranslatePoint(new
Point
(mea.X, mea.Y), ToolStripPointType.ToolStripCoords, ToolStripPointType.ToolStripItemCoords);
3610
Point itemRelativePoint = item.TranslatePoint(new
Point
(mea.X, mea.Y), ToolStripPointType.ToolStripCoords, ToolStripPointType.ToolStripItemCoords);
3942
new Point[] { new
Point
(verticalBeamStart, lastInsertionMarkRect.Y), new
Point
(verticalBeamStart, lastInsertionMarkRect.Bottom-1), // first vertical line
3943
new
Point
(verticalBeamStart+1, lastInsertionMarkRect.Y), new
Point
(verticalBeamStart+1, lastInsertionMarkRect.Bottom-1), //second vertical line
3947
new Point[] { new
Point
(start, lastInsertionMarkRect.Bottom-1), new
Point
(start + widthOfBeam-1, lastInsertionMarkRect.Bottom-1), //bottom line
3948
new
Point
(start+1, lastInsertionMarkRect.Bottom -2), new
Point
(start + widthOfBeam-2, lastInsertionMarkRect.Bottom-2),//bottom second line
3952
new Point[] { new
Point
(start, lastInsertionMarkRect.Y), new
Point
(start + widthOfBeam-1, lastInsertionMarkRect.Y), //top line
3953
new
Point
(start+1, lastInsertionMarkRect.Y+1), new
Point
(start + widthOfBeam-2, lastInsertionMarkRect.Y+1)//top second line
3964
new Point[] { new
Point
(lastInsertionMarkRect.X, horizontalBeamStart), new
Point
(lastInsertionMarkRect.Right-1, horizontalBeamStart), // first vertical line
3965
new
Point
(lastInsertionMarkRect.X, horizontalBeamStart+1), new
Point
(lastInsertionMarkRect.Right-1, horizontalBeamStart+1), //second vertical line
3969
new Point[] { new
Point
(lastInsertionMarkRect.X, start), new
Point
(lastInsertionMarkRect.X, start + widthOfBeam-1), //left line
3970
new
Point
(lastInsertionMarkRect.X+1, start+1), new
Point
(lastInsertionMarkRect.X+1, start + widthOfBeam-2), //second left line
3974
new Point[] { new
Point
(lastInsertionMarkRect.Right-1, start), new
Point
(lastInsertionMarkRect.Right-1, start + widthOfBeam-1), //right line
3975
new
Point
(lastInsertionMarkRect.Right-2, start+1), new
Point
(lastInsertionMarkRect.Right-2, start + widthOfBeam-2), //second right line
4015
return GetItemAt(new
Point
(x,y));
4838
Point clientHit = owner.PointToClient(new
Point
(x,y));
5364
this.ShowItemDropPoint(owner.PointToClient(new
Point
(e.X, e.Y)));
5380
OnDropItem(item, owner.PointToClient(new
Point
(e.X, e.Y)));
5388
if (this.ShowItemDropPoint(owner.PointToClient(new
Point
(e.X, e.Y)))) {
winforms\Managed\System\WinForms\ToolStripComboBox.cs (4)
736
Point middle = new
Point
(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.Height / 2);
741
new
Point
(middle.X - FlatComboAdapter.Offset2Pixels, middle.Y - 1),
742
new
Point
(middle.X + FlatComboAdapter.Offset2Pixels + 1, middle.Y - 1),
743
new
Point
(middle.X, middle.Y + FlatComboAdapter.Offset2Pixels)
winforms\Managed\System\WinForms\ToolStripDropDown.cs (4)
42
private Point displayLocation = new
Point
(0,0);
1265
dropDownBounds.Location = new
Point
(start.X + offset.X, start.Y + offset.Y);
2073
Show(control, new
Point
(x,y));
2094
this.displayLocation = new
Point
(x,y);
winforms\Managed\System\WinForms\ToolStripDropDownItem.cs (1)
342
dropDownBounds.Location = new
Point
(itemScreenLocation.X + offset.X, itemScreenLocation.Y + offset.Y);
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (5)
416
nextPoint = new
Point
(scaledCheckPadding.Left, scaledCheckPadding.Top);
431
nextPoint = new
Point
(1,scaledCheckPadding.Top);
451
nextPoint = new
Point
(1, scaledCheckPadding.Top);
781
Point upLocation = new
Point
(1, 0);
788
Point downLocation = new
Point
(1, height - downSize.Height);
winforms\Managed\System\WinForms\ToolStripDropTargetManager.cs (1)
88
return owner.GetItemAt(owner.PointToClient(new
Point
(x,y)));
winforms\Managed\System\WinForms\ToolStripGrip.cs (3)
145
startLocation = TranslatePoint(new
Point
(mea.X, mea.Y), ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords);
178
Point endLocation = TranslatePoint(new
Point
(mea.X, mea.Y), ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords);
229
Point endLocation = TranslatePoint(new
Point
(mea.X, mea.Y), ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords);
winforms\Managed\System\WinForms\ToolStripPanel.cs (8)
491
return new
Point
(toolStripToDrag.Right,toolStripToDrag.Top);
590
controlLocations[j] = new
Point
(row.Bounds.Width - control.Right, control.Top);
690
controlLocation = new
Point
(this.Width - controlArray[i].Right, controlLocation.Y);
929
location = new
Point
(0, dragRect.Bottom -1);
932
location = new
Point
(dragRect.Right -1, 0);
940
Join(toolStripToDrag, new
Point
(x, y));
1083
Point endLocation = (Orientation == Orientation.Horizontal) ? new
Point
(clientLocation.X, row.Bounds.Y) : new
Point
(row.Bounds.X, clientLocation.Y);
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (22)
742
Point topRight = new
Point
(bounds.Width - 1, 0);
743
Point bottomLeft = new
Point
(0, bounds.Height - 1);
744
Point bottomRight = new
Point
(bounds.Width - 1, bounds.Height - 1);
1103
Point start = new
Point
(overflowBoundsFill.Left - 1, overflowBoundsFill.Height - 2);
1104
Point end = new
Point
(overflowBoundsFill.Left, overflowBoundsFill.Height - 2);
1122
Point top1 = new
Point
(overflowBoundsFill.X - 2, 0);
1123
Point top2 = new
Point
(overflowBoundsFill.X - 1, 1);
1162
Point topRight = new
Point
(bounds.Width - 1, 0);
1163
Point bottomLeft = new
Point
(0, bounds.Height - 1);
1443
Point middle = new
Point
(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.Height / 2);
1453
new
Point
(middle.X - ToolStripRenderer.Offset2X, middle.Y + 1),
1454
new
Point
(middle.X + ToolStripRenderer.Offset2X + 1, middle.Y + 1),
1455
new
Point
(middle.X, middle.Y - ToolStripRenderer.Offset2Y)
1461
new
Point
(middle.X + ToolStripRenderer.Offset2X, middle.Y - ToolStripRenderer.Offset2Y - 1),
1462
new
Point
(middle.X + ToolStripRenderer.Offset2X, middle.Y + ToolStripRenderer.Offset2Y + 1),
1463
new
Point
(middle.X - 1, middle.Y)
1469
new
Point
(middle.X - ToolStripRenderer.Offset2X, middle.Y - ToolStripRenderer.Offset2Y - 1),
1470
new
Point
(middle.X - ToolStripRenderer.Offset2X, middle.Y + ToolStripRenderer.Offset2Y + 1),
1471
new
Point
(middle.X + 1, middle.Y)
1478
new
Point
(middle.X - ToolStripRenderer.Offset2X, middle.Y - 1),
1479
new
Point
(middle.X + ToolStripRenderer.Offset2X + 1, middle.Y - 1),
1480
new
Point
(middle.X, middle.Y + ToolStripRenderer.Offset2Y)
winforms\Managed\System\WinForms\ToolStripRenderer.cs (13)
711
Point middle = new
Point
(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.Height / 2);
733
new
Point
(middle.X - Offset2X, middle.Y + 1),
734
new
Point
(middle.X + Offset2X + 1, middle.Y + 1),
735
new
Point
(middle.X, middle.Y - Offset2Y)};
740
new
Point
(middle.X + Offset2X, middle.Y - offset4Y),
741
new
Point
(middle.X + Offset2X, middle.Y + offset4Y),
742
new
Point
(middle.X - horizontalOffset, middle.Y)};
747
new
Point
(middle.X - Offset2X, middle.Y - offset4Y),
748
new
Point
(middle.X - Offset2X, middle.Y + offset4Y),
749
new
Point
(middle.X + horizontalOffset, middle.Y)};
755
new
Point
(middle.X - Offset2X, middle.Y - 1),
756
new
Point
(middle.X + Offset2X + 1, middle.Y - 1),
757
new
Point
(middle.X, middle.Y + Offset2Y) };
winforms\Managed\System\WinForms\ToolStripSplitButton.cs (1)
556
Point clickPoint = new
Point
(e.X, e.Y);
winforms\Managed\System\WinForms\ToolStripSplitStackLayout.cs (2)
352
Point itemLocation = new
Point
(x,y);
475
Point itemLocation = new
Point
(x,y);
winforms\Managed\System\WinForms\ToolTip.cs (8)
1665
SetTool(window, text, TipInfo.Type.Absolute, new
Point
(pointX, pointY));
1691
SetTool(window, text, TipInfo.Type.Absolute, new
Point
(pointX, pointY));
1716
SetTool(window, text, TipInfo.Type.Absolute, new
Point
(pointX, pointY));
1741
SetTool(window, text, TipInfo.Type.Absolute, new
Point
(pointX, pointY));
1758
this.SetTool(tool.GetOwnerWindow(), text, TipInfo.Type.Absolute, new
Point
(pointX, pointY));
1771
tipInfo.Position = new
Point
(pointX, pointY);
1866
return new
Point
(optimalLocation.Left, optimalLocation.Top);
2268
Point screenCoords = new
Point
(sc.x, sc.y);
winforms\Managed\System\WinForms\TreeView.cs (2)
2827
Point textLoc = new
Point
(bounds.X -1, bounds.Y); // required to center the text
3392
client = new
Point
(treeNode.Bounds.X , treeNode.Bounds.Y + treeNode.Bounds.Height / 2);
winforms\Managed\System\WinForms\Triangle.cs (12)
73
points[0] = new
Point
(0, updnHeight);
74
points[1] = new
Point
(updnWidth, updnHeight);
75
points[2] = new
Point
(updnWidth / 2, 0);
80
points[0] = new
Point
(0, 0);
81
points[1] = new
Point
(updnWidth, 0);
82
points[2] = new
Point
(updnWidth / 2, updnHeight);
87
points[0] = new
Point
(lrWidth, 0);
88
points[1] = new
Point
(lrWidth, lrHeight);
89
points[2] = new
Point
(0, lrHeight / 2);
94
points[0] = new
Point
(0, 0);
95
points[1] = new
Point
(0, lrHeight);
96
points[2] = new
Point
(lrWidth, lrHeight / 2);
winforms\Managed\System\WinForms\UpDownBase.cs (3)
965
Point pt = PointToScreen(new
Point
(mevent.X, mevent.Y));
1306
Point pt = new
Point
(e.X,e.Y);
1652
Point pt = new
Point
(e.X,e.Y);
winforms\Managed\System\WinForms\VisualStyles\VisualStyleRenderer.cs (1)
810
return new
Point
(point.x, point.y);
winforms\Managed\System\WinForms\WebBrowser.cs (2)
1624
client = new
Point
(Width / 2, Height / 2);
1626
client = PointToClientInternal(new
Point
(x, y));
winforms\Managed\System\WinForms\WinFormsUtils.cs (2)
56
return new
Point
(NativeMethods.Util.SignedLOWORD(lastXY),NativeMethods.Util.SignedHIWORD(lastXY)) ;
332
return new
Point
(pt.x, pt.y);
System.Workflow.Activities (40)
Designers\ConditionalDesigner.cs (5)
121
new
Point
(rectangle.Left + rectangle.Width / 2, rectangle.Top),
122
new
Point
(rectangle.Right - 1, rectangle.Top + rectangle.Height / 2),
123
new
Point
(rectangle.Left + rectangle.Width / 2, rectangle.Bottom - 1),
124
new
Point
(rectangle.Left, rectangle.Top + rectangle.Height / 2),
125
new
Point
(rectangle.Left + rectangle.Width / 2, rectangle.Top)
Designers\SetStateDesigner.cs (1)
93
Point location = new
Point
(
Designers\StateDesigner.cs (6)
803
Point point = new
Point
(midHorz, bounds.Top);
814
Point point = new
Point
(midHorz, bounds.Bottom);
1454
stateDesigner.Location = new
Point
(location.X, location.Y + deltaY);
1456
stateDesigner.Location = new
Point
(location.X, location.Y + moveBounds.Height + DefaultStateDesignerAutoLayoutDistance - freeSpaceHeight);
1484
stateDesigner.Location = new
Point
(x, y);
1647
Point snapPoint = new
Point
(e.Y, e.Y);
Designers\StateDesigner.Layouts.cs (12)
221
Point offset = new
Point
(_location.X - newLocation.X, _location.Y - newLocation.Y);
225
Point newChildDesignerLocation = new
Point
(currentLocation.X - offset.X, currentLocation.Y - offset.Y);
435
Point offset = new
Point
(this.Location.X - newLocation.X, this.Location.Y - newLocation.Y);
436
_textLocation = new
Point
(_textLocation.X - offset.X, _textLocation.Y - offset.Y);
437
_imageLocation = new
Point
(_imageLocation.X - offset.X, _imageLocation.Y - offset.Y);
513
Point point = new
Point
(layoutBounds.Left - 4, midVert);
524
Point point = new
Point
(layoutBounds.Right + 4, midVert);
690
layout.Location = new
Point
(x, y);
1052
_textLayout.Location = new
Point
(xPos, this.Location.Y + margin.Height);
1185
_eventHandlersLayout.Location = new
Point
(x, y);
1203
Point location = new
Point
(this.Location.X, _titleBarLayout.Bounds.Bottom);
1376
Point designerLayoutLocation = new
Point
(
Designers\StateDesignerConnector.cs (8)
234
path.AddLine(new
Point
(bounds.Left + bounds.Width / 2, bounds.Top), new
Point
(bounds.Right, bounds.Top + bounds.Height / 2));
235
path.AddLine(new
Point
(bounds.Right, bounds.Top + bounds.Height / 2), new
Point
(bounds.Left + bounds.Width / 2, bounds.Bottom));
236
path.AddLine(new
Point
(bounds.Left + bounds.Width / 2, bounds.Bottom), new
Point
(bounds.Left, bounds.Top + bounds.Height / 2));
237
path.AddLine(new
Point
(bounds.Left, bounds.Top + bounds.Height / 2), new
Point
(bounds.Left + bounds.Width / 2, bounds.Top));
Designers\StateMachineDesignerPaint.cs (2)
87
optimized.Add(new
Point
(p3.X, p2.Y));
100
optimized.Add(new
Point
(p3.X, p2.Y));
Designers\WhileDesigner.cs (4)
47
connectionPoint = new
Point
(imageRectangle.Right + e.AmbientTheme.Margin.Width / 2, imageRectangle.Top + imageRectangle.Height / 2);
49
connectionPoint = new
Point
(textRectangle.Right + e.AmbientTheme.Margin.Width / 2, textRectangle.Top + textRectangle.Height / 2);
51
connectionPoint = new
Point
(bounds.Left + bounds.Width / 2 + e.AmbientTheme.Margin.Width / 2, bounds.Top + e.AmbientTheme.Margin.Height / 2);
64
DrawConnectors(e.Graphics, compositeDesignerTheme.ForegroundPen, new Point[] { points[0], new
Point
(bounds.Left + bounds.Width / 2, bounds.Bottom) }, LineAnchor.None, LineAnchor.None);
Rules\Design\Dialogs\IntellisenseTextBox.cs (2)
434
Point parentScreenLocation = TopLevelControl.PointToScreen(new
Point
(0, 0));
447
locationInDialog = new
Point
(topLevelControlSize.Width - this.listBoxAutoComplete.Size.Width, locationInDialog.Y);
System.Workflow.ComponentModel (292)
AuthoringOM\Design\ActivityDesigner.cs (15)
1180
connections.Add(new
Point
(bounds.Left, bounds.Top + bounds.Height / 2));
1183
connections.Add(new
Point
(bounds.Left + bounds.Width / 2, bounds.Top));
1186
connections.Add(new
Point
(bounds.Right, bounds.Top + bounds.Height / 2));
1189
connections.Add(new
Point
(bounds.Left + bounds.Width / 2, bounds.Bottom));
1982
activityDesigner.Location = new
Point
(-1, -1);
2590
Point logicalPoint = parentView.ClientPointToLogical(new
Point
(e.X, e.Y));
2607
Point logicalPoint = parentView.ClientPointToLogical(new
Point
(e.X, e.Y));
2624
Point logicalPoint = parentView.ClientPointToLogical(new
Point
(e.X, e.Y));
2641
Point logicalPoint = parentView.ClientPointToLogical(new
Point
(e.X, e.Y));
2658
Point logicalPoint = parentView.ClientPointToLogical(new
Point
(e.X, e.Y));
2675
Point logicalPoint = parentView.ClientPointToLogical(new
Point
(e.X, e.Y));
2724
Point logicalPoint = parentView.ClientPointToLogical(new
Point
(e.X, e.Y));
2741
Point logicalPoint = parentView.ClientPointToLogical(new
Point
(e.X, e.Y));
3065
formShown = (Form.ActiveForm.Location == designer.PointToScreen(new
Point
(activatedBounds.Left, activatedBounds.Bottom)));
3119
this.activeDesigner.OnShowSmartTagVerbs(new
Point
(bounds.Left, bounds.Bottom + 1));
AuthoringOM\Design\ActivityPreviewDesigner.cs (12)
160
this.previewStrip.Location = new
Point
(this.previewStrip.Location.X + moveDelta.Width, this.previewStrip.Location.Y + moveDelta.Height);
164
this.previewWindow.Location = new
Point
(this.previewWindow.Location.X + moveDelta.Width, this.previewWindow.Location.Y + moveDelta.Height);
165
this.separatorLine[0] = new
Point
(this.separatorLine[0].X + moveDelta.Width, this.separatorLine[0].Y + moveDelta.Height);
166
this.separatorLine[1] = new
Point
(this.separatorLine[1].X + moveDelta.Width, this.separatorLine[1].Y + moveDelta.Height);
172
PreviewedDesigner.Location = new
Point
(Location.X + (Size.Width - PreviewedDesigner.Size.Width) / 2, Location.Y + headerHeight + 2 * WorkflowTheme.CurrentTheme.AmbientTheme.Margin.Height);
572
this.previewStrip.Location = new
Point
(bounds.Left + bounds.Width / 2 - this.previewStrip.Size.Width / 2, Location.Y + TitleHeight + e.AmbientTheme.Margin.Height);
581
this.previewWindow.Location = new
Point
(bounds.Left + bounds.Width / 2 - this.previewWindow.Size.Width / 2, previewStripRectangle.Bottom + 3 * e.AmbientTheme.Margin.Height);
595
PreviewedDesigner.Location = new
Point
(Location.X + (Size.Width - PreviewedDesigner.Size.Width) / 2, Location.Y + headerHeight + 2 * e.AmbientTheme.Margin.Height);
666
Point point = new
Point
(e.X, e.Y);
680
Point point = new
Point
(e.X, e.Y);
800
return new
Point
(dropConnector.Left + dropConnector.Width / 2, dropConnector.Top + dropConnector.Height / 2);
991
Point configErrorLocation = new
Point
(rectangle.Right - configErrorSize.Width / 2, rectangle.Top - configErrorSize.Height / 2);
AuthoringOM\Design\CompositeActivityDesigner.cs (2)
216
activityDesigner.Location = new
Point
(activityDesigner.Location.X + moveDelta.Width, activityDesigner.Location.Y + moveDelta.Height);
1213
if (ExpandButtonRectangle.Contains(new
Point
(e.X, e.Y)))
AuthoringOM\Design\Connector.cs (94)
137
Rectangle enclosingBounds = new Rectangle(new
Point
(location.X - size.Width / 2, location.Y - size.Height / 2), size);
346
this.segments[i] = new
Point
(this.segments[i].X + size.Width, this.segments[i].Y + size.Height);
523
path.AddLine(new
Point
(bounds.Left + bounds.Width / 2, bounds.Top), new
Point
(bounds.Right, bounds.Top + bounds.Height / 2));
524
path.AddLine(new
Point
(bounds.Right, bounds.Top + bounds.Height / 2), new
Point
(bounds.Left + bounds.Width / 2, bounds.Bottom));
525
path.AddLine(new
Point
(bounds.Left + bounds.Width / 2, bounds.Bottom), new
Point
(bounds.Left, bounds.Top + bounds.Height / 2));
526
path.AddLine(new
Point
(bounds.Left, bounds.Top + bounds.Height / 2), new
Point
(bounds.Left + bounds.Width / 2, bounds.Top));
762
if (this.connector.HitTest(parentView.ScreenPointToLogical(new
Point
(x, y))))
1137
Point editPointLocation = (orientation == Orientation.Horizontal) ? new
Point
(previous.Location.X + editPointOffset, previous.Location.Y) : new
Point
(previous.Location.X, previous.Location.Y + editPointOffset);
1154
Point editPointLocation = (orientation == Orientation.Horizontal) ? new
Point
(next.Location.X + editPointOffset, next.Location.Y) : new
Point
(next.Location.X, next.Location.Y + editPointOffset);
1193
previous.Location = (orientation == Orientation.Horizontal) ? new
Point
(previous.Location.X, newPoint.Y) : new
Point
(newPoint.X, previous.Location.Y);
1198
next.Location = (orientation == Orientation.Horizontal) ? new
Point
(next.Location.X, newPoint.Y) : new
Point
(newPoint.X, next.Location.Y);
1218
previous.Location = new
Point
(previous.Location.X, newPoint.Y);
1219
next.Location = new
Point
(next.Location.X, newPoint.Y);
1220
this.activeEditPoint.Location = new
Point
(this.activeEditPoint.Location.X, newPoint.Y);
1224
previous.Location = new
Point
(newPoint.X, previous.Location.Y);
1225
next.Location = new
Point
(newPoint.X, next.Location.Y);
1226
this.activeEditPoint.Location = new
Point
(newPoint.X, this.activeEditPoint.Location.Y);
1352
next.Location = (slope < 1) ? new
Point
(next.Location.X, previous.Location.Y) : new
Point
(previous.Location.X, next.Location.Y);
1362
previous.Location = (slope < 1) ? new
Point
(previous.Location.X, next.Location.Y) : new
Point
(next.Location.X, previous.Location.Y);
1398
Point location = (slope < 1) ? new
Point
(next.Location.X, current.Location.Y) : new
Point
(current.Location.X, next.Location.Y);
1543
Point intermediatePoint = (slope < 1) ? new
Point
(targetPoint.X, sourcePoint.Y) : new
Point
(sourcePoint.X, targetPoint.Y);
1699
designerEdgeCover.Add(DesignerEdges.Left, new Point[] { new
Point
(bounds.Left, bounds.Top), new
Point
(bounds.Left, bounds.Bottom) });
1700
designerEdgeCover.Add(DesignerEdges.Top, new Point[] { new
Point
(bounds.Left, bounds.Top), new
Point
(bounds.Right, bounds.Top) });
1701
designerEdgeCover.Add(DesignerEdges.Right, new Point[] { new
Point
(bounds.Right, bounds.Top), new
Point
(bounds.Right, bounds.Bottom) });
1702
designerEdgeCover.Add(DesignerEdges.Bottom, new Point[] { new
Point
(bounds.Left, bounds.Bottom), new
Point
(bounds.Right, bounds.Bottom) });
1714
escapeCover.Add(new
Point
(edge[0].X, edge[0].Y));
1720
escapeCover.Add(new
Point
(edge[0].X, escapePoint.Y - 1));
1721
escapeCover.Add(new
Point
(escapePoint.X + 1, escapePoint.Y - 1));
1722
escapeCover.Add(new
Point
(escapePoint.X + 1, escapePoint.Y + 1));
1723
escapeCover.Add(new
Point
(edge[0].X, escapePoint.Y + 1));
1726
escapeCover.Add(new
Point
(edge[0].X, edge[1].Y));
1730
escapeCover.Add(new
Point
(edge[0].X, edge[0].Y));
1736
escapeCover.Add(new
Point
(edge[0].X, escapePoint.Y - 1));
1737
escapeCover.Add(new
Point
(escapePoint.X - 1, escapePoint.Y - 1));
1738
escapeCover.Add(new
Point
(escapePoint.X - 1, escapePoint.Y + 1));
1739
escapeCover.Add(new
Point
(edge[0].X, escapePoint.Y + 1));
1742
escapeCover.Add(new
Point
(edge[0].X, edge[1].Y));
1746
escapeCover.Add(new
Point
(edge[0].X, edge[0].Y));
1752
escapeCover.Add(new
Point
(escapePoint.X - 1, edge[0].Y));
1753
escapeCover.Add(new
Point
(escapePoint.X - 1, escapePoint.Y + 1));
1754
escapeCover.Add(new
Point
(escapePoint.X + 1, escapePoint.Y + 1));
1755
escapeCover.Add(new
Point
(escapePoint.X + 1, edge[0].Y));
1758
escapeCover.Add(new
Point
(edge[1].X, edge[0].Y));
1763
escapeCover.Add(new
Point
(edge[0].X, edge[0].Y));
1769
escapeCover.Add(new
Point
(escapePoint.X - 1, edge[0].Y));
1770
escapeCover.Add(new
Point
(escapePoint.X - 1, escapePoint.Y - 1));
1771
escapeCover.Add(new
Point
(escapePoint.X + 1, escapePoint.Y - 1));
1772
escapeCover.Add(new
Point
(escapePoint.X + 1, edge[0].Y));
1775
escapeCover.Add(new
Point
(edge[1].X, edge[0].Y));
1829
excludedLines.Add(new
Point
(point.X - width, point.Y));
1830
excludedLines.Add(new
Point
(point.X + width, point.Y));
1832
excludedLines.Add(new
Point
(point.X, point.Y - height));
1833
excludedLines.Add(new
Point
(point.X, point.Y + height));
2092
r1 = new
Point
(Z.X, topCover.A.Y);
2094
r2 = new
Point
(rightCover.A.X, Z.Y);
2096
r3 = new
Point
(Z.X, bottomCover.A.Y);
2098
r4 = new
Point
(leftCover.A.X, Z.Y);
2233
Point direction = new
Point
(Math.Sign(p.X - Z.X), Math.Sign(p.Y - Z.Y));
2239
direction = new
Point
(Math.Sign(p.X - Z.X), Math.Sign(p.Y - Z.Y));
2253
escapePoint = new
Point
(p.X + direction.X * margin.Width, Z.Y);
2255
escapePoint = new
Point
(Z.X, p.Y + direction.Y * margin.Height);
2471
Point direction = new
Point
(a2.X - a1.X, a2.Y - a1.Y);
2480
Point k = new
Point
(a1.X + i * margin.Width * direction.X, a1.Y + i * margin.Height * direction.Y);
2638
return new
Point
(vertical.A.X, horizontal.A.Y);
2693
Point newPoint = new
Point
(p.X, p.Y);
2717
return new
Point
((this.orientation == Orientation.Horizontal) ? k : p.X, (this.orientation == Orientation.Horizontal) ? p.Y : k);
2742
Point left = new
Point
((leftCover != null) ? leftCover.A.X : int.MinValue, p.Y);
2743
Point right = new
Point
((rightCover != null) ? rightCover.A.X : int.MaxValue, p.Y);
2754
Point bottom = new
Point
(p.X, (bottomCover != null) ? bottomCover.A.Y : int.MinValue);
2755
Point top = new
Point
(p.X, (topCover != null) ? topCover.A.Y : int.MaxValue);
2791
AddCover(new ConnectorSegment(new
Point
(rectangle.Left, rectangle.Top), new
Point
(rectangle.Left, rectangle.Bottom)));
2792
AddCover(new ConnectorSegment(new
Point
(rectangle.Right, rectangle.Top), new
Point
(rectangle.Right, rectangle.Bottom)));
2793
AddCover(new ConnectorSegment(new
Point
(rectangle.Left, rectangle.Top), new
Point
(rectangle.Right, rectangle.Top)));
2794
AddCover(new ConnectorSegment(new
Point
(rectangle.Left, rectangle.Bottom), new
Point
(rectangle.Right, rectangle.Bottom)));
AuthoringOM\Design\DesignerHelpers.cs (20)
339
graphics.FillRectangle(ambientTheme.MajorGridBrush, new Rectangle(new
Point
(gridCoOrdX, gridCoOrdY), new Size(1, 1)));
343
graphics.FillRectangle(ambientTheme.MinorGridBrush, new Rectangle(new
Point
(gridCoOrdX + ambientTheme.GridSize.Width / 2, gridCoOrdY + ambientTheme.GridSize.Height / 2), new Size(1, 1)));
503
GraphicsPath designerPath = GetDesignerPath(designer, new
Point
(-location.X, -location.Y), Size.Empty, DesignerEdges.None);
1841
distances.Add(DistanceFromPointToLineSegment(point, new Point[] { new
Point
(rect.Left, rect.Top), new
Point
(rect.Left, rect.Bottom) }));
1847
distances.Add(DistanceFromPointToLineSegment(point, new Point[] { new
Point
(rect.Left, rect.Top), new
Point
(rect.Right, rect.Top) }));
1853
distances.Add(DistanceFromPointToLineSegment(point, new Point[] { new
Point
(rect.Right, rect.Top), new
Point
(rect.Right, rect.Bottom) }));
1859
distances.Add(DistanceFromPointToLineSegment(point, new Point[] { new
Point
(rect.Left, rect.Bottom), new
Point
(rect.Right, rect.Bottom) }));
1919
distances.Add(DistanceBetweenPoints(point, new
Point
(rect.Left, rect.Top)));
1920
distances.Add(DistanceBetweenPoints(point, new
Point
(rect.Left + rect.Width / 2, rect.Top)));
1921
distances.Add(DistanceBetweenPoints(point, new
Point
(rect.Right, rect.Top)));
1922
distances.Add(DistanceBetweenPoints(point, new
Point
(rect.Right, rect.Top + rect.Height / 2)));
1923
distances.Add(DistanceBetweenPoints(point, new
Point
(rect.Right, rect.Bottom)));
1924
distances.Add(DistanceBetweenPoints(point, new
Point
(rect.Right + rect.Width / 2, rect.Bottom)));
1925
distances.Add(DistanceBetweenPoints(point, new
Point
(rect.Left, rect.Bottom)));
1926
distances.Add(DistanceBetweenPoints(point, new
Point
(rect.Left, rect.Bottom - rect.Height / 2)));
1989
return new
Point
((point1.X + point2.X) / 2, (point1.Y + point2.Y) / 2);
AuthoringOM\Design\DesignerWidgets.cs (20)
336
this.itemStrip.Location = new
Point
(leftScrollButtonBounds.Right, leftScrollButtonBounds.Top);
338
this.itemStrip.Location = new
Point
(leftScrollButtonBounds.Left, leftScrollButtonBounds.Bottom);
425
Point mousePoint = new
Point
(e.X, e.Y);
450
ActiveButton = HitTest(new
Point
(e.X, e.Y));
455
Point mousePoint = new
Point
(e.X, e.Y);
791
ItemInfo itemHit = HitTest(new
Point
(e.X, e.Y));
800
ItemInfo itemHit = HitTest(new
Point
(e.X, e.Y));
814
ItemInfo itemHit = HitTest(new
Point
(e.X, e.Y));
1176
Point mousePoint = new
Point
(e.X, e.Y);
1203
Point mousePoint = new
Point
(e.X, e.Y);
1228
using (Brush gradientBrush = new LinearGradientBrush(new
Point
(this.leftGradientRectangle.Left, this.leftGradientRectangle.Top), new
Point
(this.leftGradientRectangle.Right, this.leftGradientRectangle.Top), SystemColors.Window, SystemColors.ScrollBar))
1245
Point imagePoint = new
Point
(itemBounds.Left + 3, itemBounds.Top + 3);
1414
Location = new
Point
(this.parent.Location.X + Palette.DropShadowWidth, this.parent.Location.Y + Palette.DropShadowWidth);
1833
if (buttonRectangle.Contains(new
Point
(e.X, e.Y)))
1850
if (buttonRectangle.Contains(new
Point
(e.X, e.Y)) && tabItemInfo.Text != this.buttonTips.GetToolTip(this))
2261
Point screenCoOrd = this.parentControl.PointToScreen(new
Point
(this.inplaceTipRectangle.Left, this.inplaceTipRectangle.Top));
2617
Point point = new
Point
(e.X, e.Y);
3254
this.canvasBounds.Location = new
Point
(value.X + this.bounds.Width / 2 - this.canvasBounds.Width / 2, this.previewModeDescRectangle.Bottom + margin.Height);
3361
if (PreviewModeButtonRectangle.Contains(new
Point
(e.X, e.Y)))
AuthoringOM\Design\Dialogs\ActivityBindForm.cs (1)
166
this.workflowOutline.Location = new
Point
(3, 3);
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (2)
549
Point top = new
Point
(this.propertiesGrid.Right + (this.dummyPreviewPanel.Left - this.propertiesGrid.Right) / 2, this.themePanel.Margin.Top);
550
Point bottom = new
Point
(top.X, this.themePanel.Height - this.themePanel.Margin.Bottom);
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (1)
808
this.helpTextWindow.Location = new
Point
(this.helpTextHolder.Location.X + 3, this.helpTextHolder.Location.Y + 3);
AuthoringOM\Design\FreeFormDesigner.cs (4)
885
Point dropPoint = new
Point
(e.X, e.Y);
919
designer.Location = new
Point
(location.X + autoSizeMargin.Width, location.Y + autoSizeMargin.Height);
1111
Point leftTop = new
Point
(int.MaxValue, int.MaxValue), rightBottom = new
Point
(int.MinValue, int.MinValue);
AuthoringOM\Design\Glyphs\ConfigErrorGlyph.cs (2)
52
Point configErrorLocation = new
Point
(designer.Bounds.Right - configErrorSize.Width - margin.Width / 2, designer.Bounds.Top - configErrorSize.Height + margin.Height);
115
Point location = designer.ParentView.LogicalPointToScreen(new
Point
(bounds.Left, bounds.Bottom));
AuthoringOM\Design\Glyphs\ConnectorDragDropGlyph.cs (1)
21
this.glyphPoint = new
Point
(connectorCenter.X - ambientTheme.DropIndicatorSize.Width / 2, connectorCenter.Y - ambientTheme.DropIndicatorSize.Height / 2);
AuthoringOM\Design\Glyphs\SelectionGlyph.cs (4)
56
grabHandles[1] = new Rectangle(new
Point
(selectionRect.Left + (selectionRect.Width - grabHandleSize.Width) / 2, selectionRect.Top), grabHandleSize);
58
grabHandles[3] = new Rectangle(new
Point
(selectionRect.Right - grabHandleSize.Width, selectionRect.Top + (selectionRect.Height - grabHandleSize.Height) / 2), grabHandleSize);
60
grabHandles[5] = new Rectangle(new
Point
(selectionRect.Left + (selectionRect.Width - grabHandleSize.Width) / 2, selectionRect.Bottom - grabHandleSize.Height), grabHandleSize);
62
grabHandles[7] = new Rectangle(new
Point
(selectionRect.Left, selectionRect.Top + (selectionRect.Height - grabHandleSize.Height) / 2), grabHandleSize);
AuthoringOM\Design\MessageFilters\AutoScrollExpandMessageFilter.cs (3)
42
Point clientPoint = ParentView.PointToClient(new
Point
(eventArgs.X, eventArgs.Y));
259
if (parentView.IsClientPointInActiveLayout(parentView.PointToClient(new
Point
(eventArgs.X, eventArgs.Y))))
270
if (parentView.IsClientPointInActiveLayout(parentView.PointToClient(new
Point
(eventArgs.X, eventArgs.Y))))
AuthoringOM\Design\MessageFilters\ConnectionManager.cs (4)
86
Point clientPoint = new
Point
(eventArgs.X, eventArgs.Y);
115
Point clientPoint = new
Point
(eventArgs.X, eventArgs.Y);
157
Point clientPoint = new
Point
(eventArgs.X, eventArgs.Y);
201
Point clientPoint = new
Point
(eventArgs.X, eventArgs.Y);
AuthoringOM\Design\MessageFilters\DragDropManager.cs (12)
81
Point clientPoint = new
Point
(eventArgs.X, eventArgs.Y);
102
Point clientPoint = new
Point
(eventArgs.X, eventArgs.Y);
265
Point clientPoint = parentView.PointToClient(new
Point
(eventArgs.X, eventArgs.Y));
266
Point logicalPoint = parentView.ScreenPointToLogical(new
Point
(eventArgs.X, eventArgs.Y));
272
this.dragImagePointInClientCoOrd = new
Point
(clientPoint.X + SystemInformation.CursorSize.Width / 4, clientPoint.Y + SystemInformation.CursorSize.Height / 4);
306
this.dragImagePointInClientCoOrd = new
Point
(midPointInClientCoOrd.X - dragImageIconSize.Width / 2, midPointInClientCoOrd.Y - dragImageIconSize.Height / 2);
327
Point clientPoint = parentView.PointToClient(new
Point
(eventArgs.X, eventArgs.Y));
328
Point logicalPoint = parentView.ScreenPointToLogical(new
Point
(eventArgs.X, eventArgs.Y));
332
this.dragImagePointInClientCoOrd = new
Point
(clientPoint.X + SystemInformation.CursorSize.Width / 4, clientPoint.Y + SystemInformation.CursorSize.Height / 4);
383
this.dragImagePointInClientCoOrd = new
Point
(midPointInClientCoOrd.X - dragImageIconSize.Width / 2, midPointInClientCoOrd.Y - dragImageIconSize.Height / 2);
418
Point clientPoint = parentView.PointToClient(new
Point
(eventArgs.X, eventArgs.Y));
419
Point logicalPoint = parentView.ScreenPointToLogical(new
Point
(eventArgs.X, eventArgs.Y));
AuthoringOM\Design\MessageFilters\DragSelectionMessageFilter.cs (3)
49
this.startDrag = this.endDrag = ParentView.ClientPointToLogical(new
Point
(eventArgs.X, eventArgs.Y));
57
Point logicalPoint = parentView.ClientPointToLogical(new
Point
(eventArgs.X, eventArgs.Y));
94
this.endDrag = parentView.ClientPointToLogical(new
Point
(eventArgs.X, eventArgs.Y));
AuthoringOM\Design\MessageFilters\DynamicActionMessageFilter.cs (5)
107
UpdateTransparency(new
Point
(eventArgs.X, eventArgs.Y));
114
Point clientPoint = new
Point
(eventArgs.X, eventArgs.Y);
166
Point clientPoint = new
Point
(eventArgs.X, eventArgs.Y);
233
if (actionBounds.Contains(new
Point
(eventArgs.X, eventArgs.Y)))
242
Point clientPoint = new
Point
(eventArgs.X, eventArgs.Y);
AuthoringOM\Design\MessageFilters\FreeFormDragDropManager.cs (6)
38
Point clientPoint = parentView.PointToClient(new
Point
(eventArgs.X, eventArgs.Y));
39
Point logicalPoint = parentView.ScreenPointToLogical(new
Point
(eventArgs.X, eventArgs.Y));
63
Point clientPoint = parentView.PointToClient(new
Point
(eventArgs.X, eventArgs.Y));
64
Point logicalPoint = parentView.ScreenPointToLogical(new
Point
(eventArgs.X, eventArgs.Y));
170
ActivityDesignerPaint.DrawImage(eventArgs.Graphics, this.draggedDesignerImages[i], new Rectangle(new
Point
(locations[i].X - 2 * ambientTheme.Margin.Width, locations[i].Y - 2 * ambientTheme.Margin.Height), imageSize), new Rectangle(Point.Empty, imageSize), DesignerContentAlignment.Fill, 0.4f, false);
256
location = new
Point
(designerToMove.Location.X + delta.Width, designerToMove.Location.Y + delta.Height);
AuthoringOM\Design\MessageFilters\GlyphManager.cs (3)
206
RefreshActiveGlyph(ParentView.ClientPointToLogical(new
Point
(eventArgs.X, eventArgs.Y)));
212
RefreshActiveGlyph(ParentView.ClientPointToLogical(new
Point
(eventArgs.X, eventArgs.Y)));
218
RefreshActiveGlyph(ParentView.ClientPointToLogical(new
Point
(eventArgs.X, eventArgs.Y)));
AuthoringOM\Design\MessageFilters\PanningMessageFilter.cs (3)
66
SetPanPoint(new
Point
(eventArgs.X, eventArgs.Y));
76
parentView.ScrollPosition = new
Point
(parentView.ScrollPosition.X - panSize.Width, parentView.ScrollPosition.Y - panSize.Height);
77
SetPanPoint(new
Point
(eventArgs.X, eventArgs.Y));
AuthoringOM\Design\MessageFilters\ResizingMessageFilter.cs (13)
32
Point clientPoint = new
Point
(eventArgs.X, eventArgs.Y);
51
Point clientPoint = new
Point
(eventArgs.X, eventArgs.Y);
80
UpdateDesignerSize(workflowView.ClientPointToLogical(new
Point
(eventArgs.X, eventArgs.Y)), this.designerToResize, this.designerSizingEdge);
195
if (Math.Floor(DesignerGeometryHelper.DistanceFromPointToLineSegment(point, new Point[] { new
Point
(designerBounds.Left, designerBounds.Top), new
Point
(designerBounds.Left, designerBounds.Bottom) })) <= selectionSize.Width + 1)
197
if (Math.Floor(DesignerGeometryHelper.DistanceFromPointToLineSegment(point, new Point[] { new
Point
(designerBounds.Left, designerBounds.Top), new
Point
(designerBounds.Right, designerBounds.Top) })) <= selectionSize.Height + 1)
199
if (Math.Floor(DesignerGeometryHelper.DistanceFromPointToLineSegment(point, new Point[] { new
Point
(designerBounds.Right, designerBounds.Top), new
Point
(designerBounds.Right, designerBounds.Bottom) })) <= selectionSize.Width + 1)
201
if (Math.Floor(DesignerGeometryHelper.DistanceFromPointToLineSegment(point, new Point[] { new
Point
(designerBounds.Left, designerBounds.Bottom), new
Point
(designerBounds.Right, designerBounds.Bottom) })) <= selectionSize.Height + 1)
288
x = DesignerHelpers.SnapToGrid(new
Point
(x, 0)).X;
300
y = DesignerHelpers.SnapToGrid(new
Point
(0, y)).Y;
AuthoringOM\Design\MessageFilters\WindowManager.cs (3)
28
Point clientPoint = new
Point
(eventArgs.X, eventArgs.Y);
74
Point clientPoint = new
Point
(eventArgs.X, eventArgs.Y);
108
Point clientPoint = new
Point
(eventArgs.X, eventArgs.Y);
AuthoringOM\Design\MessageFilters\ZoomingMessageFilter.cs (4)
119
Point center = new
Point
((this.currentState == ZoomState.In) ? eventArgs.X : parentView.ViewPortSize.Width / 2, (this.currentState == ZoomState.In) ? eventArgs.Y : parentView.ViewPortSize.Height / 2);
170
Point center = parentView.LogicalPointToClient(new
Point
(dragRectangle.Location.X + dragRectangle.Width / 2, dragRectangle.Location.Y + dragRectangle.Height / 2));
187
Point newCenter = new
Point
((int)((float)parentView.HScrollBar.Maximum * relativeCenterF.X), (int)((float)parentView.VScrollBar.Maximum * relativeCenterF.Y));
188
parentView.ScrollPosition = new
Point
(newCenter.X - parentView.HScrollBar.LargeChange / 2, newCenter.Y - parentView.VScrollBar.LargeChange / 2);
AuthoringOM\Design\ParallelActivityDesigner.cs (8)
221
Point location = (connectionPoints.Count > 0) ? new
Point
(Location.X, connectionPoints[0].Y) : Location;
230
activityDesigner.Location = new
Point
(location.X + width, location.Y + height);
289
dropTargets[0].Location = new
Point
(bounds.X, firstDesigner.Location.Y);
300
dropTargets[i + 1].Location = new
Point
(designerBounds1.Right + (designerBounds2.Left - designerBounds1.Right) / 2 - ((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0) / 2, designerBounds1.Top);
306
dropTargets[containedDesigners.Count].Location = new
Point
(bounds.Right - ((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0), lastDesigner.Location.Y);
311
dropTargets[0].Location = new
Point
(Location.X + (Size.Width - ((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0)) / 2, TextRectangle.Bottom);
424
DrawConnectors(e.Graphics, e.AmbientTheme.DropIndicatorPen, new Point[] { new
Point
(dropTargetRectangle.Left + dropTargetRectangle.Width / 2, dropTargetRectangle.Top + 2), new
Point
(dropTargetRectangle.Left + dropTargetRectangle.Width / 2, dropTargetRectangle.Bottom - 2) }, compositeDesignerTheme.ConnectorStartCap, compositeDesignerTheme.ConnectorEndCap);
AuthoringOM\Design\SequentialActivityDesigner.cs (17)
208
connections.Add(new
Point
(startDesignerBounds.Left + startDesignerBounds.Width / 2, startDesignerBounds.Top));
209
connections.Add(new
Point
(startDesignerBounds.Left + startDesignerBounds.Width / 2, startDesignerBounds.Bottom));
213
connectorBounds[0].Location = new
Point
(containerStartConnection.X - ((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0) / 2, containerStartConnection.Y);
226
connectorBounds[i + 1].Location = new
Point
(designerFromConnections[designerFromPointCount - 1].X - ((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0) / 2, designerFromConnections[designerFromPointCount - 1].Y);
238
connections.Add(new
Point
(endDesignerBounds.Left + endDesignerBounds.Width / 2, endDesignerBounds.Top));
239
connections.Add(new
Point
(endDesignerBounds.Left + endDesignerBounds.Width / 2, endDesignerBounds.Bottom));
243
connectorBounds[connectorCount - 1].Location = new
Point
(endDesignerConnections[endDesignerConnections.Count - 1].X - ((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0) / 2, endDesignerConnections[endDesignerConnections.Count - 1].Y);
249
connectorBounds[0].Location = new
Point
(containerStartConnection.X - ((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0) / 2, containerStartConnection.Y);
411
DrawConnectors(e.Graphics, compositeDesignerTheme.ForegroundPen, new Point[] { new
Point
(connectors[0].X + connectors[0].Width / 2, connectors[0].Y + 2), new
Point
(connectors[0].X + connectors[0].Width / 2, helpTextRectangle.Top - 2) }, compositeDesignerTheme.ConnectorStartCap, LineAnchor.None);
412
DrawConnectors(e.Graphics, compositeDesignerTheme.ForegroundPen, new Point[] { new
Point
(connectors[0].X + connectors[0].Width / 2, helpTextRectangle.Bottom + 2), new
Point
(connectors[0].X + connectors[0].Width / 2, connectors[0].Bottom - 2) }, LineAnchor.None, compositeDesignerTheme.ConnectorEndCap);
425
DrawConnectors(e.Graphics, pen, new Point[] { new
Point
(connectors[i].Left + connectors[i].Width / 2, connectors[i].Top + 2), new
Point
(connectors[i].Left + connectors[i].Width / 2, connectors[i].Bottom - 2) }, startCap, endCap);
463
activityDesigner.Location = new
Point
(location.X - (designerSize.Width / 2), location.Y + height);
528
glyphLocation = new
Point
(connectors[i].Location.X + connectors[i].Size.Width / 2 + 1, connectors[i].Location.Y + connectors[i].Size.Height / 2);
530
glyphLocation = new
Point
(helpTextRectangle.Left + helpTextRectangle.Width / 2 + 1, helpTextRectangle.Top - ambientTheme.DropIndicatorSize.Height / 2);
AuthoringOM\Design\SequentialWorkflowRootDesigner.cs (1)
261
connectionPoints[connectionPoints.Count - 1] = new
Point
(connectionPoints[connectionPoints.Count - 1].X, connectionPoints[connectionPoints.Count - 1].Y - Footer.Bounds.Height);
AuthoringOM\Design\StructuredCompositeActivityDesigner.cs (5)
443
connectionPoints[0] = new
Point
(connectionPoints[0].X, connectionPoints[0].Y + TitleHeight);
551
activityDesigner.Location = new
Point
(activityDesigner.Location.X, activityDesigner.Location.Y + titleHeight);
692
Rectangle[] dropTargets = GetDropTargets(new
Point
(e.X, e.Y));
696
return new
Point
(dropConnector.Left + dropConnector.Width / 2, dropConnector.Top + dropConnector.Height / 2);
708
Point dropPoint = new
Point
(e.X, e.Y);
AuthoringOM\Design\WorkflowLayouts.cs (8)
422
Point deltaLocation = new
Point
(intersectedPhysicalViewPort.X - pageLayoutData.ViewablePageBounds.X, intersectedPhysicalViewPort.Y - pageLayoutData.ViewablePageBounds.Y);
457
Point deltaLocation = new
Point
(intersectedLogicalViewPort.X - pageLayoutData.LogicalPageBounds.X, intersectedLogicalViewPort.Y - pageLayoutData.LogicalPageBounds.Y);
488
Point delta = new
Point
(logicalPoint.X - pageLayoutData.ViewablePageBounds.Left, logicalPoint.Y - pageLayoutData.ViewablePageBounds.Top);
489
logicalPoint = new
Point
(pageLayoutData.LogicalPageBounds.Left + delta.X, pageLayoutData.LogicalPageBounds.Top + delta.Y);
503
Point delta = new
Point
(logicalPoint.X - pageLayoutData.LogicalPageBounds.Left, logicalPoint.Y - pageLayoutData.LogicalPageBounds.Top);
504
logicalPoint = new
Point
(pageLayoutData.ViewablePageBounds.Left + delta.X, pageLayoutData.ViewablePageBounds.Top + delta.Y);
666
bitmapDrawingPoint = new
Point
(points[0].X - viewPortData.Translation.X, points[0].Y - viewPortData.Translation.Y);
815
this.pageLayoutInfo.Add(new PageLayoutData(logicalBounds, pageBounds, viewablePageBounds, new
Point
(column, row)));
AuthoringOM\Design\WorkflowPrinting.cs (2)
148
Point pageOffset = new
Point
(this.currentPrintablePage.X * printableArea.Width - this.workflowAlignment.X, this.currentPrintablePage.Y * printableArea.Height - this.workflowAlignment.Y);
220
Point dpi = new
Point
(Math.Max(NativeMethods.GetDeviceCaps(hDC, NativeMethods.LOGPIXELSX), 1), Math.Max(NativeMethods.GetDeviceCaps(hDC, NativeMethods.LOGPIXELSY), 1));
AuthoringOM\Design\WorkflowView.cs (14)
350
Point oldCenter = new
Point
(ScrollPosition.X, ScrollPosition.Y);
358
Point newCenter = new
Point
((int)((float)hScrollBar.Maximum * oldRelativeCenter.X), (int)((float)vScrollBar.Maximum * oldRelativeCenter.Y));
359
ScrollPosition = new
Point
(newCenter.X, newCenter.Y);
458
return new
Point
(HScrollBar.Value, VScrollBar.Value);
902
Point scrollPosition = new
Point
(0, 0);
1280
this.toolContainer.Location = new
Point
(Width - this.toolContainer.Width, 0);
1739
if (!clientRectangle.Contains(rect.Location) || !clientRectangle.Contains(new
Point
(rect.Right, rect.Bottom)))
1742
if (!clientRectangle.Contains(new
Point
(rect.Left, clientRectangle.Top)) || !clientRectangle.Contains(new
Point
(rect.Right, clientRectangle.Top)))
1752
if (!clientRectangle.Contains(new
Point
(clientRectangle.Left, rect.Top)) || !clientRectangle.Contains(new
Point
(clientRectangle.Left, rect.Bottom)))
1762
ScrollPosition = new
Point
(scrollPosition.X + scrollDelta.Width, scrollPosition.Y + scrollDelta.Height);
2179
clientPoint = new
Point
(((MouseEventArgs)e).X, ((MouseEventArgs)e).Y);
2183
clientPoint = this.workflowView.PointToClient(new
Point
(((DragEventArgs)e).X, ((DragEventArgs)e).Y));
System.WorkflowServices (9)
System\Workflow\Activities\Design\GradientPanel.cs (6)
90
Brush glossBrush = new LinearGradientBrush(new
Point
(frameRect.Left, frameRect.Top), new
Point
(frameRect.Left, frameRect.Top + glossHeight + 1), Color.FromArgb(120, 255, 255, 255), Color.FromArgb(60, 255, 255, 255)); // SolidBrush(Color.FromArgb(32, 255, 255, 255));
91
Brush frameBrush = new LinearGradientBrush(new
Point
(frameRect.Left, frameRect.Top), new
Point
(frameRect.Left, frameRect.Bottom), BaseColor, LightingColor);
152
path.AddLine(new
Point
(frame.Right, frame.Top + glossHeight), new
Point
(frame.Left, frame.Top + glossHeight));
System\Workflow\Activities\Design\RichListBox.cs (1)
141
listItemRenderer.DrawToBitmap(rendererBitmap, new Rectangle(new
Point
(0, 0), listItemRenderer.Size));
System\Workflow\ComponentModel\Design\HighlightOverlayGlyph.cs (2)
50
Brush frameBrush = new LinearGradientBrush(new
Point
(frameRect.Left, frameRect.Top), new
Point
(frameRect.Left, frameRect.Bottom), BaseColor, LightingColor);