875 instantiations of Point
System.Drawing (22)
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 (6)
38
public static readonly Point Empty = new
Point
();
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.DataVisualization (3)
Common\General\LegendColumns.cs (3)
2367
Point point1 = new
Point
();
2370
Point point2 = new
Point
();
2422
Point point = new
Point
();
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 (396)
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 (2)
585
return new
Point
();
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 (17)
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));
16508
logPixels = new
Point
();
16582
Control realTarget = target.GetChildAtPoint(new
Point
(pt.x, pt.y));
17020
Point pt = new
Point
();
17604
Point pt = new
Point
();
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 (4)
4448
Point p = new
Point
();
4489
Point p = new
Point
();
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\Label.cs (1)
1740
Point pt = new
Point
(unchecked((int)(long)m.LParam));
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 (10)
38
Point position = new
Point
(0,0);
427
screendpi = new
Point
(UnsafeNativeMethods.GetDeviceCaps(new HandleRef(tempGraphics, dc), NativeMethods.LOGPIXELSX),
433
Size controlPhysicalSize = new Size(PixelsToPhysical(new
Point
(Size), screendpi));
444
SetVirtualSizeNoInvalidate(new Size(PhysicalToPixels(new
Point
(virtualX, virtualY), screendpi)));
573
Size controlPhysicalSize = new Size(PixelsToPhysical(new
Point
(Size), screendpi));
576
Point virtualPixels = new
Point
(VirtualSize);
579
Point offset = new
Point
(Math.Max(0, (Size.Width - virtualPixels.X) / 2),
611
Point imagePixels = PhysicalToPixels(new
Point
(imageSize), screendpi);
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.Windows.Forms.DataVisualization (3)
Common\General\LegendColumns.cs (3)
2367
Point point1 = new
Point
();
2370
Point point2 = new
Point
();
2422
Point point = new
Point
();
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 (302)
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 (19)
191
Point containerStartConnection = new
Point
();
192
Point containerEndConnection = new
Point
();
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 (13)
96
return new
Point
(DefaultWorkflowLayout.Separator);
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);
538
Point[] points = new Point[] { viewPortData.Translation, new
Point
(viewPortData.ViewPortSize) };
570
points = new Point[] { viewPortBitmapArea.Location, new
Point
(viewPortBitmapArea.Size) };
610
Point[] points = new Point[] { viewPortData.Translation, new
Point
(viewPortData.ViewPortSize) };
666
bitmapDrawingPoint = new
Point
(points[0].X - viewPortData.Translation.X, points[0].Y - viewPortData.Translation.Y);
676
points = new Point[] { viewPortBitmapArea.Location, new
Point
(viewPortBitmapArea.Size) };
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 (17)
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);
1419
Point location = (LParam != -1) ? new
Point
(LParam) : Control.MousePosition;
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);
2052
Point[] points = new Point[] { new
Point
(logicalSize) };
2064
Point[] points = new Point[] { new
Point
(clientSize) };
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);
1580 references to Point
System.Drawing (154)
commonui\System\Drawing\Advanced\Gdiplus.cs (4)
3232
internal static
Point
[] ConvertGPPOINTArray(IntPtr memory, int count) {
3236
Point
[] points = new
Point
[count];
3275
internal static IntPtr ConvertPointToMemory(
Point
[] points) {
commonui\System\Drawing\Advanced\GPPOINT.cs (1)
31
internal GPPOINT(
Point
pt)
commonui\System\Drawing\Advanced\GPPOINTF.cs (1)
28
internal GPPOINTF(
Point
pt) {
commonui\System\Drawing\Advanced\GraphicsPath.cs (21)
134
public GraphicsPath(
Point
[] pts, byte[] types) :
147
public GraphicsPath(
Point
[] pts, byte[] types, FillMode fillMode) {
518
public bool IsVisible(
Point
point) {
539
public bool IsVisible(
Point
pt, Graphics graphics) {
635
public bool IsOutlineVisible(
Point
point, Pen pen) {
660
public bool IsOutlineVisible(
Point
pt, Pen pen, Graphics graphics) {
729
public void AddLine(
Point
pt1,
Point
pt2) {
752
public void AddLines(
Point
[] points) {
879
public void AddBezier(
Point
pt1,
Point
pt2,
Point
pt3,
Point
pt4) {
906
public void AddBeziers(params
Point
[] points) {
992
public void AddCurve(
Point
[] points) {
1011
public void AddCurve(
Point
[] points, float tension) {
1031
public void AddCurve(
Point
[] points, int offset, int numberOfSegments,
1096
public void AddClosedCurve(
Point
[] points) {
1116
public void AddClosedCurve(
Point
[] points, float tension) {
1319
public void AddPolygon(
Point
[] points) {
1385
Point
origin, StringFormat format) {
commonui\System\Drawing\Advanced\LinearGradientBrush.cs (2)
67
public LinearGradientBrush(
Point
point1,
Point
point2,
commonui\System\Drawing\Advanced\Matrix.cs (6)
115
public Matrix(Rectangle rect,
Point
[] plgpts) {
467
public void TransformPoints(
Point
[] pts) {
482
Point
[] newPts = SafeNativeMethods.Gdip.ConvertGPPOINTArray(buf, pts.Length);
530
public void VectorTransformPoints(
Point
[] pts) {
538
public void TransformVectors(
Point
[] pts) {
555
Point
[] newPts = SafeNativeMethods.Gdip.ConvertGPPOINTArray(buf, pts.Length);
commonui\System\Drawing\Advanced\PathGradientBrush.cs (2)
98
public PathGradientBrush(
Point
[] points)
112
public PathGradientBrush(
Point
[] points, WrapMode wrapMode)
commonui\System\Drawing\BufferedGraphics.cs (2)
37
private
Point
targetLoc;
47
IntPtr targetDC,
Point
targetLoc, Size virtualSize) {
commonui\System\Drawing\BufferedGraphicsContext.cs (1)
31
private
Point
targetLoc;
commonui\System\Drawing\Graphics.cs (46)
507
public
Point
RenderingOrigin {
861
public void CopyFromScreen(
Point
upperLeftSource,
Point
upperLeftDestination, Size blockRegionSize) {
879
public void CopyFromScreen(
Point
upperLeftSource,
Point
upperLeftDestination, Size blockRegionSize, CopyPixelOperation copyPixelOperation) {
1093
Point
[] pts) {
1107
Point
[] newPts = SafeNativeMethods.Gdip.ConvertGPPOINTArray(buf, pts.Length);
1221
public void DrawLine(Pen pen,
Point
pt1,
Point
pt2) {
1232
public void DrawLines(Pen pen,
Point
[] points) {
1374
public void DrawBezier(Pen pen,
Point
pt1,
Point
pt2,
Point
pt3,
Point
pt4) {
1385
public void DrawBeziers(Pen pen,
Point
[] points) {
1661
public void DrawPolygon(Pen pen,
Point
[] points) {
1796
public void DrawCurve(Pen pen,
Point
[] points) {
1821
public void DrawCurve(Pen pen,
Point
[] points, float tension) {
1846
public void DrawCurve(Pen pen,
Point
[] points, int offset, int numberOfSegments,
1927
public void DrawClosedCurve(Pen pen,
Point
[] points) {
1952
public void DrawClosedCurve(Pen pen,
Point
[] points, float tension, FillMode fillmode) {
2141
public void FillPolygon(Brush brush,
Point
[] points) {
2151
public void FillPolygon(Brush brush,
Point
[] points, FillMode fillMode) {
2371
public void FillClosedCurve(Brush brush,
Point
[] points) {
2394
public void FillClosedCurve(Brush brush,
Point
[] points, FillMode fillmode) {
2402
public void FillClosedCurve(Brush brush,
Point
[] points, FillMode fillmode, float tension) {
2807
public void DrawImage(Image image,
Point
point) {
2864
public void DrawImageUnscaled(Image image,
Point
point) {
2952
public void DrawImage(Image image,
Point
[] destPoints) {
3211
public void DrawImage(Image image,
Point
[] destPoints, Rectangle srcRect, GraphicsUnit srcUnit) {
3218
public void DrawImage(Image image,
Point
[] destPoints, Rectangle srcRect,
3225
public void DrawImage(Image image,
Point
[] destPoints, Rectangle srcRect,
3233
public void DrawImage(Image image,
Point
[] destPoints, Rectangle srcRect,
3422
public void EnumerateMetafile(Metafile metafile,
Point
destPoint,
3429
public void EnumerateMetafile(Metafile metafile,
Point
destPoint,
3437
public void EnumerateMetafile(Metafile metafile,
Point
destPoint,
3577
public void EnumerateMetafile(Metafile metafile,
Point
[] destPoints,
3584
public void EnumerateMetafile(Metafile metafile,
Point
[] destPoints,
3592
public void EnumerateMetafile(Metafile metafile,
Point
[] destPoints,
3664
public void EnumerateMetafile(Metafile metafile,
Point
destPoint,
3672
public void EnumerateMetafile(Metafile metafile,
Point
destPoint,
3681
public void EnumerateMetafile(Metafile metafile,
Point
destPoint,
3862
public void EnumerateMetafile(Metafile metafile,
Point
[] destPoints,
3873
public void EnumerateMetafile(Metafile metafile,
Point
[] destPoints,
3885
public void EnumerateMetafile(Metafile metafile,
Point
[] destPoints,
4308
public bool IsVisible(
Point
point) {
commonui\System\Drawing\Point.cs (46)
35
/// Creates a new instance of the <see cref='System.Drawing.
Point
'/> class
38
public static readonly
Point
Empty = new Point();
45
/// Initializes a new instance of the <see cref='System.Drawing.
Point
'/> class
56
/// Initializes a new instance of the <see cref='System.Drawing.
Point
'/> class
80
/// Gets a value indicating whether this <see cref='System.Drawing.
Point
'/> is empty.
92
/// Gets the x-coordinate of this <see cref='System.Drawing.
Point
'/>.
106
/// Gets the y-coordinate of this <see cref='System.Drawing.
Point
'/>.
122
/// <see cref='System.Drawing.
Point
'/>
126
public static implicit operator PointF(
Point
p) {
133
/// Creates a <see cref='System.Drawing.Size'/> with the coordinates of the specified <see cref='System.Drawing.
Point
'/> .
136
public static explicit operator Size(
Point
p) {
143
/// Translates a <see cref='System.Drawing.
Point
'/> by a given <see cref='System.Drawing.Size'/> .
146
public static
Point
operator +(
Point
pt, Size sz) {
153
/// Translates a <see cref='System.Drawing.
Point
'/> by the negative of a given <see cref='System.Drawing.Size'/> .
156
public static
Point
operator -(
Point
pt, Size sz) {
163
/// Compares two <see cref='System.Drawing.
Point
'/> objects. The result specifies
164
/// whether the values of the <see cref='System.Drawing.
Point
.X'/> and <see cref='System.Drawing.
Point
.Y'/> properties of the two <see cref='System.Drawing.
Point
'/>
168
public static bool operator ==(
Point
left,
Point
right) {
175
/// Compares two <see cref='System.Drawing.
Point
'/> objects. The result specifies whether the values
176
/// of the <see cref='System.Drawing.
Point
.X'/> or <see cref='System.Drawing.
Point
.Y'/> properties of the two
177
/// <see cref='System.Drawing.
Point
'/>
181
public static bool operator !=(
Point
left,
Point
right) {
187
/// Translates a <see cref='System.Drawing.
Point
'/> by a given <see cref='System.Drawing.Size'/> .
190
public static
Point
Add(
Point
pt, Size sz) {
196
/// Translates a <see cref='System.Drawing.
Point
'/> by the negative of a given <see cref='System.Drawing.Size'/> .
199
public static
Point
Subtract(
Point
pt, Size sz) {
208
public static
Point
Ceiling(PointF value) {
217
public static
Point
Truncate(PointF value) {
226
public static
Point
Round(PointF value) {
234
/// Specifies whether this <see cref='System.Drawing.
Point
'/> contains
239
if (!(obj is
Point
)) return false;
240
Point
comp = (
Point
)obj;
261
/// Translates this <see cref='System.Drawing.
Point
'/> by the specified amount.
270
/// Translates this <see cref='System.Drawing.
Point
'/> by the specified amount.
272
public void Offset(
Point
p) {
279
/// Converts this <see cref='System.Drawing.
Point
'/>
commonui\System\Drawing\PointConverter.cs (7)
114
if(value is
Point
){
116
Point
pt = (
Point
)value;
133
Point
pt = (
Point
)value;
135
ConstructorInfo ctor = typeof(
Point
).GetConstructor(new Type[] {typeof(int), typeof(int)});
188
PropertyDescriptorCollection props = TypeDescriptor.GetProperties(typeof(
Point
), attributes);
commonui\System\Drawing\Printing\PrinterUnitConvert.cs (2)
55
public static
Point
Convert(
Point
value, PrinterUnit fromUnit, PrinterUnit toUnit) {
commonui\System\Drawing\Rectangle.cs (4)
70
public Rectangle(
Point
location, Size size) {
98
public
Point
Location {
353
public bool Contains(
Point
pt) {
487
public void Offset(
Point
pos) {
commonui\System\Drawing\Region.cs (4)
895
/// Tests whether the specified <see cref='System.Drawing.
Point
'/> is contained within this <see cref='System.Drawing.Region'/>.
898
public bool IsVisible(
Point
point) {
905
/// Tests whether the specified <see cref='System.Drawing.
Point
'/> is contained within this
910
public bool IsVisible(
Point
point, Graphics g) {
commonui\System\Drawing\Size.cs (4)
51
/// the specified <see cref='System.Drawing.
Point
'/>.
54
public Size(
Point
pt) {
124
/// <see cref='System.Drawing.
Point
'/>.
126
public static explicit operator
Point
(Size size) {
misc\GDI\NativeMethods.cs (1)
235
public System.Drawing.
Point
ToPoint()
System.Messaging (7)
System\Messaging\Design\QueuePathDialog.cs (7)
223
this.okButton.Location = ((System.Drawing.
Point
)(resources.GetObject("okButton.Location")));
234
this.pathType.Location = ((System.Drawing.
Point
)(resources.GetObject("pathType.Location")));
240
this.enterprise.Location = ((System.Drawing.
Point
)(resources.GetObject("enterprise.Location")));
250
this.helpButton.Location = ((System.Drawing.
Point
)(resources.GetObject("helpButton.Location")));
257
this.selectLabel.Location = ((System.Drawing.
Point
)(resources.GetObject("selectLabel.Location")));
261
this.referenceLabel.Location = ((System.Drawing.
Point
)(resources.GetObject("referenceLabel.Location")));
266
this.cancelButton.Location = ((System.Drawing.
Point
)(resources.GetObject("cancelButton.Location")));
System.Web.DataVisualization (12)
Common\General\Axis.cs (2)
2471
PointF first =
Point
.Empty;
2472
PointF second =
Point
.Empty;
Common\General\ChartGraphics.cs (2)
2553
Point
center =
Point
.Round(new PointF(absPosition.X + absPosition.Width/2F, absPosition.Y + absPosition.Height/2F));
Common\General\ImageMap.cs (2)
392
PointF pConverted =
Point
.Empty;
393
PointF pOriginal =
Point
.Empty;
Common\General\LegendColumns.cs (3)
2367
Point
point1 = new Point();
2370
Point
point2 = new Point();
2422
Point
point = new Point();
Common\General\Selection.cs (3)
2542
Point
[] pointsAlligned = new
Point
[points.Length];
2545
pointsAlligned[i] =
Point
.Round(points[i]);
System.Web.Entity.Design (1)
System\Data\WebControls\Design\EntityDataSourceStatementEditorForm.cs (1)
116
Point
loc = _statementPanel.Location;
System.Windows.Forms (635)
misc\GDI\DeviceContext2.cs (3)
470
public
Point
ViewportOrigin
488
public
Point
SetViewportOrigin(
Point
newOrigin )
misc\GDI\NativeMethods.cs (1)
235
public System.Drawing.
Point
ToPoint()
misc\GDI\WindowsGraphics2.cs (7)
92
Point
p = new Point(bounds.X+sideLength/2, bounds.Y+sideLength/2);
138
public void DrawText(string text, WindowsFont font,
Point
pt, Color foreColor)
147
public void DrawText(string text, WindowsFont font,
Point
pt, Color foreColor, Color backColor)
156
public void DrawText(string text, WindowsFont font,
Point
pt, Color foreColor, IntTextFormatFlags flags)
165
public void DrawText(string text, WindowsFont font,
Point
pt, Color foreColor, Color backColor, IntTextFormatFlags flags)
650
public void DrawLine(WindowsPen pen,
Point
p1,
Point
p2)
winforms\Managed\System\Resources\ResXDataNode.cs (2)
583
public
Point
GetNodePosition() {
800
internal
Point
ReaderPosition; //only used to track position in the reader
winforms\Managed\System\Resources\ResXResourceReader.cs (5)
367
private
Point
GetPosition(XmlReader reader) {
368
Point
pt = new Point(0, 0);
406
Point
pt = GetPosition(reader);
414
Point
pt = GetPosition(reader);
428
Point
pt = GetPosition(reader);
winforms\Managed\System\WinForms\AxHost.cs (1)
3613
Point
location = Location;
winforms\Managed\System\WinForms\Button.cs (1)
305
Point
pt = PointToScreen(new Point(mevent.X, mevent.Y));
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (18)
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.
558
internal virtual void DrawImageCore(Graphics graphics, Image image, Rectangle imageBounds,
Point
imageStart, LayoutData layout) {
1493
internal
Point
imageStart; // FOR EVERETT COMPATIBILITY - DO NOT CHANGE
winforms\Managed\System\WinForms\CheckBox.cs (1)
647
Point
pt = PointToScreen(new Point(mevent.X, mevent.Y));
winforms\Managed\System\WinForms\CheckBoxRenderer.cs (7)
99
public static void DrawCheckBox(Graphics g,
Point
glyphLocation, CheckBoxState state) {
103
internal static void DrawCheckBox(Graphics g,
Point
glyphLocation, CheckBoxState state, IntPtr hWnd) {
128
public static void DrawCheckBox(Graphics g,
Point
glyphLocation, Rectangle textBounds, string checkBoxText, Font font, bool focused, CheckBoxState state) {
140
public static void DrawCheckBox(Graphics g,
Point
glyphLocation, Rectangle textBounds, string checkBoxText, Font font, TextFormatFlags flags, bool focused, CheckBoxState state) {
144
internal static void DrawCheckBox(Graphics g,
Point
glyphLocation, Rectangle textBounds, string checkBoxText, Font font, TextFormatFlags flags, bool focused, CheckBoxState state, IntPtr hWnd) {
178
public static void DrawCheckBox(Graphics g,
Point
glyphLocation, Rectangle textBounds, string checkBoxText, Font font, Image image, Rectangle imageBounds, bool focused, CheckBoxState state) {
190
public static void DrawCheckBox(Graphics g,
Point
glyphLocation, Rectangle textBounds, string checkBoxText, Font font, TextFormatFlags flags, Image image, Rectangle imageBounds, bool focused, CheckBoxState state) {
winforms\Managed\System\WinForms\ComboBox.cs (14)
1601
internal
Point
EditToComboboxMapping(Message m) {
1785
Point
Ptlc = EditToComboboxMapping(m);
1801
Point
Ptmc = EditToComboboxMapping(m);
1817
Point
Ptrc = EditToComboboxMapping(m);
1830
Point
Ptl = EditToComboboxMapping(m);
1844
Point
pt = new Point(x, y);
1881
Point
P = EditToComboboxMapping(m);
1899
Point
Pt = EditToComboboxMapping(m);
1922
Point
ptRBtnUp = EditToComboboxMapping(m);
1938
Point
point = EditToComboboxMapping(m);
1985
Point
p = MousePosition;
3729
Point
pt = new Point(x, y);
6065
Point
middle = new Point(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.Height / 2);
6075
g.FillPolygon(brush, new
Point
[] {
winforms\Managed\System\WinForms\ContextMenu.cs (3)
197
public void Show(Control control,
Point
pos) {
206
public void Show(Control control,
Point
pos, LeftRightAlignment alignment) {
220
private void Show(Control control,
Point
pos, int flags) {
winforms\Managed\System\WinForms\ContextMenuStrip.cs (1)
90
internal void ShowInternal(Control source,
Point
location, bool isKeyboardActivated) {
winforms\Managed\System\WinForms\Control.cs (34)
990
DefaultValue(typeof(
Point
), "0, 0")
992
public virtual
Point
AutoScrollOffset {
995
return (
Point
)Properties.GetObject(PropAutoScrollOffset);
997
return
Point
.Empty;
3231
public
Point
Location {
3373
public static
Point
MousePosition {
6477
public Control GetChildAtPoint(
Point
pt, GetChildAtPointSkip skipValue) {
6512
public Control GetChildAtPoint(
Point
pt) {
9417
Point
offs = this.Location;
9588
PaintBackground(e, rectangle, this.BackColor,
Point
.Empty);
9592
PaintBackground(e, rectangle, backColor,
Point
.Empty);
9595
internal void PaintBackground(PaintEventArgs e, Rectangle rectangle, Color backColor,
Point
scrollOffset) {
9618
Point
scrollLocation = scrollOffset;
9620
if (scrollControl != null && scrollLocation !=
Point
.Empty) {
10074
public
Point
PointToClient(
Point
p) {
10083
internal
Point
PointToClientInternal(
Point
p) {
10098
public
Point
PointToScreen(
Point
p) {
10362
PrintToMetaFileRecursive(hDC, lParam, new Rectangle(
Point
.Empty, this.Size));
10381
Point
clientOffset = PointToScreen(
Point
.Empty);
12860
Point
client;
13489
Point
pt = new Point(x,y);
13551
Point
p = new Point(NativeMethods.Util.SignedLOWORD(m.LParam), NativeMethods.Util.SignedHIWORD(m.LParam));
16266
private static
Point
logPixels =
Point
.Empty;
16505
private
Point
LogPixels {
16959
Point
pt = PixelToHiMetric(size.Width, size.Height);
17019
private
Point
HiMetricToPixel(int x, int y) {
17020
Point
pt = new Point();
17603
private
Point
PixelToHiMetric(int x, int y) {
17604
Point
pt = new Point();
winforms\Managed\System\WinForms\ControlPaint.cs (9)
353
internal static void CopyPixels(IntPtr sourceHwnd, IDeviceContext targetDC,
Point
sourceLocation,
Point
destinationLocation, Size blockRegionSize, CopyPixelOperation copyPixelOperation) {
447
DrawBackgroundImage(g, backgroundImage, backColor, backgroundImageLayout, bounds, clipRect,
Point
.Empty, RightToLeft.No);
449
internal static void DrawBackgroundImage(Graphics g, Image backgroundImage, Color backColor, ImageLayout backgroundImageLayout, Rectangle bounds, Rectangle clipRect,
Point
scrollOffset) {
453
internal static void DrawBackgroundImage(Graphics g, Image backgroundImage, Color backColor, ImageLayout backgroundImageLayout, Rectangle bounds, Rectangle clipRect,
Point
scrollOffset, RightToLeft rightToLeft) {
464
if (scrollOffset !=
Point
.Empty) {
502
Rectangle partOfImageToDraw = new Rectangle(
Point
.Empty, imageRect.Size);
1821
public static void DrawReversibleLine(
Point
start,
Point
end, Color backColor) {
winforms\Managed\System\WinForms\Cursor.cs (5)
258
public
Point
HotSpot
261
Point
hotSpot =
Point
.Empty;
305
/// Gets or sets a <see cref='System.Drawing.
Point
'/> that specifies the current cursor
309
public static
Point
Position {
winforms\Managed\System\WinForms\DataGrid.cs (7)
4069
Point
p = NormalizeToRow(e.X, e.Y, row);
4258
Point
p = NormalizeToRow(e.X, e.Y, rowOver);
6529
/// <see cref='System.Drawing.
Point
'/>.</para>
6531
public HitTestInfo HitTest(
Point
position) {
7079
private
Point
NormalizeToRow(int x, int y, int row) {
7084
Point
origin = new Point(0, layout.Data.Y);
9184
Point
client = DataGrid.PointToClient(new Point(x, y));
winforms\Managed\System\WinForms\DataGridCaption.cs (2)
37
private static readonly
Point
minimumBounds = new Point(50, 30);
255
internal
Point
MinimumBounds {
winforms\Managed\System\WinForms\DataGridRelationshipRow.cs (2)
775
Point
[] points = new
Point
[3];
winforms\Managed\System\WinForms\DataGridView.cs (12)
305
private
Point
ptCurrentCell, ptCurrentCellCache =
Point
.Empty, ptAnchorCell, ptMouseDownCell, ptMouseEnteredCell, ptToolTipCell, ptMouseDownGridCoord;
2237
public
Point
CurrentCellAddress
2753
internal
Point
MouseEnteredCellAddress
2767
Point
ptMouse = PointToClient(Control.MousePosition);
2780
Point
ptMouse = PointToClient(Control.MousePosition);
2791
Point
ptMouse = PointToClient(Control.MousePosition);
2906
Point
firstDisplayedCellAddress = this.FirstDisplayedCellAddress;
2953
private
Point
FirstDisplayedCellAddress
2957
Point
ptFirstDisplayedCellAddress = new Point(-1, -1);
3769
internal
Point
MouseDownCellAddress
4859
Point
mouseCoord = System.Windows.Forms.Control.MousePosition;
winforms\Managed\System\WinForms\DataGridViewAccessibleObject.cs (1)
196
Point
pt = this.owner.PointToClient(new Point(x, y));
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (1)
712
Point
ptCurrentCell = this.DataGridView.CurrentCellAddress;
winforms\Managed\System\WinForms\DataGridViewCell.cs (3)
501
Point
ptCurrentCell = this.DataGridView.CurrentCellAddress;
1798
Point
ptCurrentCell = this.DataGridView.CurrentCellAddress;
3102
Point
ptCurrentCell = this.DataGridView.CurrentCellAddress;
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (5)
508
Point
ptCurrentCell = this.DataGridView.CurrentCellAddress;
603
Point
ptCurrentCell = this.DataGridView.CurrentCellAddress;
913
Point
ptCurrentCell = this.DataGridView.CurrentCellAddress;
1082
private void NotifyMASSClient(
Point
position)
1181
Point
ptCurrentCell = this.DataGridView.CurrentCellAddress;
winforms\Managed\System\WinForms\DataGridViewColumnCollection.cs (4)
984
Point
newCurrentCell;
1067
private void OnCollectionChanged(CollectionChangeEventArgs ccea, bool changeIsInsertion,
Point
newCurrentCell)
1083
private void OnCollectionChanged_PostNotification(CollectionChangeEventArgs ccea, bool changeIsInsertion,
Point
newCurrentCell)
1189
Point
newCurrentCell;
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (1)
916
Point
sortGlyphLocation = new Point(0, 0);
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (8)
1911
Point
ptCurrentCell = this.DataGridView.CurrentCellAddress;
2152
Point
ptCurrentCell = this.DataGridView.CurrentCellAddress;
2441
Point
middle = new Point(dropRect.Left + dropRect.Width / 2, dropRect.Top + dropRect.Height / 2);
2447
g.FillPolygon(SystemBrushes.ControlText, new
Point
[]
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);
2470
g.FillPolygon(SystemBrushes.ControlText, new
Point
[] { pt1, pt2, middle });
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (1)
943
Point
ptCurrentCell = this.DataGridView.CurrentCellAddress;
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (1)
1016
Point
ptCurrentCell = this.DataGridView.CurrentCellAddress;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (23)
36
protected virtual void AccessibilityNotifyCurrentCellChanged(
Point
cellAddress)
4900
private
Point
ConvertCellToGridCoord(int columnIndex, int rowIndex, int x, int y)
6056
Point
ptMouse = PointToClient(Control.MousePosition);
9788
Point
ptMouse = PointToClient(Control.MousePosition);
10568
Point
firstDisplayedCellAddress = this.FirstDisplayedCellAddress;
12276
Point
ptGridCoord = ConvertCellToGridCoord(e.ColumnIndex, e.RowIndex, e.X, e.Y);
12443
Point
ptOriginalCurrentCell = this.ptCurrentCell;
13024
Point
ptGridCoord = ConvertCellToGridCoord(e.ColumnIndex, e.RowIndex, e.X, e.Y);
15767
internal void OnInsertedColumn_PostNotification(
Point
newCurrentCell)
15799
internal void OnInsertedRow_PostNotification(int rowIndex,
Point
newCurrentCell, bool lastInsertion)
15837
internal void OnInsertedRows_PostNotification(DataGridViewRow[] dataGridViewRows,
Point
newCurrentCell)
15854
internal void OnInsertingColumn(int columnIndexInserted, DataGridViewColumn dataGridViewColumn, out
Point
newCurrentCell)
15998
ref
Point
newCurrentCell,
16075
internal void OnInsertingRows(int rowIndexInserted, DataGridViewRow[] dataGridViewRows, ref
Point
newCurrentCell)
17346
internal void OnRemovedColumn_PostNotification(DataGridViewColumn dataGridViewColumn,
Point
newCurrentCell)
17396
internal void OnRemovedRow_PostNotification(DataGridViewRow dataGridViewRow,
Point
newCurrentCell)
17472
internal void OnRemovingColumn(DataGridViewColumn dataGridViewColumn, out
Point
newCurrentCell, bool force)
17686
internal void OnRemovingRow(int rowIndexDeleted, out
Point
newCurrentCell, bool force)
19347
Point
pt = PointToScreen(Location);
26115
Point
ptMouse = PointToClient(Control.MousePosition);
29192
Point
ptMouse = PointToClient(Control.MousePosition);
29755
Point
ptMouse = PointToClient(Control.MousePosition);
29853
Point
client;
winforms\Managed\System\WinForms\DataGridViewRowCollection.cs (8)
1633
Point
newCurrentCell = new Point(-1, -1);
1741
Point
newCurrentCell = new Point(-1, -1);
1834
private void InsertDuplicateRow(int indexDestination, DataGridViewRow rowTemplate, bool firstInsertion, ref
Point
newCurrentCell)
1915
Point
newCurrentCell = new Point(-1, -1);
2043
Point
newCurrentCell = new Point(-1, -1);
2066
Point
newCurrentCell)
2212
Point
newCurrentCell)
2333
Point
newCurrentCell = new Point(-1, -1);
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (2)
603
Point
ptCurrentCell = this.DataGridView.CurrentCellAddress;
703
Point
ptCurrentCell = this.DataGridView.CurrentCellAddress;
winforms\Managed\System\WinForms\DataGridViewUtilities.cs (2)
347
internal static
Point
GetTextLocation(Rectangle cellBounds,
352
Point
ptTextLocation = new Point(0, 0);
winforms\Managed\System\WinForms\ErrorProvider.cs (3)
886
Point
mirrordcOrigin =
Point
.Empty;
1055
mirrordcOrigin =
Point
.Empty;
winforms\Managed\System\WinForms\Form.cs (5)
1188
public
Point
DesktopLocation {
1191
Point
loc = Location;
1516
public new
Point
Location {
4448
Point
p = new Point();
4489
Point
p = new Point();
winforms\Managed\System\WinForms\GDI\TextRenderer.cs (4)
29
public static void DrawText(IDeviceContext dc, string text, Font font,
Point
pt, Color foreColor)
56
public static void DrawText(IDeviceContext dc, string text, Font font,
Point
pt, Color foreColor, Color backColor)
83
public static void DrawText(IDeviceContext dc, string text, Font font,
Point
pt, Color foreColor, TextFormatFlags flags)
101
public static void DrawText(IDeviceContext dc, string text, Font font,
Point
pt, Color foreColor, Color backColor, TextFormatFlags flags)
winforms\Managed\System\WinForms\Help.cs (1)
157
public static void ShowPopup(Control parent, string caption,
Point
location) {
winforms\Managed\System\WinForms\HelpEvent.cs (3)
27
private readonly
Point
mousePos;
36
public HelpEventArgs(
Point
mousePos) {
46
public
Point
MousePos {
winforms\Managed\System\WinForms\HtmlDocument.cs (1)
504
public HtmlElement GetElementFromPoint(
Point
point)
winforms\Managed\System\WinForms\HtmlElementEventArgs.cs (3)
65
public
Point
ClientMousePosition {
75
public
Point
OffsetMousePosition {
85
public
Point
MousePosition {
winforms\Managed\System\WinForms\HtmlWindow.cs (3)
188
public
Point
Position
324
public void MoveTo(
Point
point)
450
public void ScrollTo(
Point
point)
winforms\Managed\System\WinForms\ImageList.cs (1)
606
public void Draw(Graphics g,
Point
pt, int index) {
winforms\Managed\System\WinForms\Label.cs (2)
1624
ControlPaint.PrintBorder(g, new Rectangle(
Point
.Empty, Size), BorderStyle, Border3DStyle.SunkenOuter);
1740
Point
pt = new Point(unchecked((int)(long)m.LParam));
winforms\Managed\System\WinForms\Layout\DockAndAnchorLayout.cs (1)
76
Point
location = oldBounds.Location;
winforms\Managed\System\WinForms\Layout\FlowLayout.cs (7)
165
Point
location = rowBounds.Location;
350
Point
ptScroll = flp.AutoScrollPosition;
351
if (ptScroll !=
Point
.Empty) {
352
Point
pt = new Point(value.X, value.Y);
425
Point
ptScroll = flp.AutoScrollPosition;
426
if (ptScroll !=
Point
.Empty) {
427
Point
pt = new Point(newBounds.X, newBounds.Y);
winforms\Managed\System\WinForms\Layout\LayoutUtils.cs (2)
374
public static
Point
FlipPoint(
Point
point) {
winforms\Managed\System\WinForms\LinkLabel.cs (1)
2677
Point
p = Owner.PointToClient(new Point(x, y));
winforms\Managed\System\WinForms\ListBox.cs (3)
1552
public int IndexFromPoint(
Point
p) {
2414
Point
pt = new Point(x,y);
2461
Point
rpt = new Point(rx,ry);
winforms\Managed\System\WinForms\ListView.cs (11)
3099
public ListViewItem FindNearestItem(SearchDirectionHint dir,
Point
point) {
3153
private ListViewItem FindItem(bool isTextSearch, string text, bool isPrefixSearch,
Point
pt, SearchDirectionHint dir, int startIndex, bool includeSubItemsInSearch) {
3377
internal
Point
GetItemPosition(int index) {
3534
public ListViewHitTestInfo HitTest(
Point
point) {
4107
Point
pos = Cursor.Position;
5362
Point
pos = Cursor.Position;
5392
Point
pos = Cursor.Position;
5787
Point
pos = Cursor.Position;
5974
Point
pos = Cursor.Position;
6186
Point
startingPoint =
Point
.Empty;
winforms\Managed\System\WinForms\ListViewInsertionMark.cs (1)
120
public int NearestIndex(
Point
pt)
winforms\Managed\System\WinForms\ListViewItem.cs (2)
56
private
Point
position = new Point(-1,-1);
689
public
Point
Position {
winforms\Managed\System\WinForms\MaskedTextBox.cs (4)
1820
public override char GetCharFromPosition(
Point
pt)
1840
public override int GetCharIndexFromPosition(
Point
pt)
1940
public override
Point
GetPositionFromCharIndex(int index)
1942
Point
pos;
winforms\Managed\System\WinForms\MenuStrip.cs (1)
271
Point
pt = PointToClient(WindowsFormsUtils.LastCursorPoint);
winforms\Managed\System\WinForms\MonthCalendar.cs (5)
1602
public HitTestInfo HitTest(
Point
point) {
2472
readonly
Point
point;
2480
internal HitTestInfo(
Point
pt, HitArea area, DateTime time) {
2491
internal HitTestInfo(
Point
pt, HitArea area) {
2500
public
Point
Point {
winforms\Managed\System\WinForms\MouseEvent.cs (1)
141
public
Point
Location {
winforms\Managed\System\WinForms\Panel.cs (1)
296
ControlPaint.PrintBorder(g, new Rectangle(
Point
.Empty, Size), BorderStyle, Border3DStyle.Sunken);
winforms\Managed\System\WinForms\Printing\PrintPreviewControl.cs (23)
38
Point
position = new Point(0,0);
39
Point
lastOffset;
58
private
Point
screendpi =
Point
.Empty;
189
private
Point
Position {
576
Point
virtualPixels = new Point(VirtualSize);
579
Point
offset = new Point(Math.Max(0, (Size.Width - virtualPixels.X) / 2),
590
Point
lastImageSize =
Point
.Empty;
611
Point
imagePixels = PhysicalToPixels(new Point(imageSize), screendpi);
673
private static
Point
PhysicalToPixels(
Point
physical,
Point
dpi) {
678
private static Size PhysicalToPixels(Size physicalSize,
Point
dpi) {
687
private static
Point
PixelsToPhysical(
Point
pixels,
Point
dpi) {
692
private static Size PixelsToPhysical(Size pixels,
Point
dpi) {
731
Point
locPos = position;
739
private void SetPositionNoInvalidate(
Point
value) {
740
Point
current = position;
794
Point
locPos = Position;
812
Point
locPos = Position;
winforms\Managed\System\WinForms\Printing\PrintPreviewDialog.cs (1)
711
new public
Point
Location {
winforms\Managed\System\WinForms\PropertyGrid.cs (11)
678
public
Point
ContextMenuDefaultLocation {
2284
Point
locDoc = hotcommands.Location;
2293
Point
locDoc = doccomment.Location;
2612
internal Control GetElementFromPoint(
Point
point) {
2788
Point
newPt =
Point
.Empty;
2801
Point
newPt =
Point
.Empty;
3287
Point
psheetLoc = gridView.Location;
4655
private bool ShouldForwardChildMouseMessage(Control child, MouseEventArgs me, ref
Point
pt) {
5439
Point
clientPoint = _owningPropertyGrid.PointToClient(new Point((int)x, (int)y));
winforms\Managed\System\WinForms\PropertyGridInternal\DropDownButton.cs (1)
213
internal override void DrawImageCore(Graphics graphics, Image image, Rectangle imageBounds,
Point
imageStart, ButtonBaseAdapter.LayoutData layout) {
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (5)
38
protected static readonly
Point
InvalidPoint = new Point(int.MinValue, int.MinValue);
121
protected
Point
labelTipPoint = InvalidPoint;
122
protected
Point
valueTipPoint = InvalidPoint;
791
internal virtual
Point
GetLabelToolTipLocation(int mouseX, int mouseY) {
1021
internal
Point
ValueToolTipLocation {
winforms\Managed\System\WinForms\PropertyGridInternal\GridToolTip.cs (3)
32
Point
lastMouseMove =
Point
.Empty;
185
Point
locPoint = parent.PointToScreen(new Point(rect.left, rect.top));
winforms\Managed\System\WinForms\PropertyGridInternal\HotCommands.cs (2)
198
Point
[] links = new
Point
[verbs.Length];
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyDescriptorGridEntry.cs (1)
428
internal override
Point
GetLabelToolTipLocation(int mouseX, int mouseY){
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (35)
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);
154
private
Point
rowSelectPos =
Point
.Empty; // the position that we clicked on a row to test for double clicks
155
private
Point
lastMouseDown = InvalidPosition;
553
public
Point
ContextMenuDefaultLocation {
557
Point
pt = PointToScreen( new Point( rect.X, rect.Y ) );
843
protected virtual void AdjustOrigin(System.Drawing.Graphics g,
Point
newOrigin, ref Rectangle r) {
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));
1918
protected virtual
Point
FindPosition(int x, int y) {
1925
Point
pt = new Point(ROWLABEL,0);
2811
Point
screenPoint = Edit.PointToScreen(new Point(me.X, me.Y));
2819
rowSelectPos =
Point
.Empty;
3188
Point
pos = FindPosition(me.X,me.Y);
3228
Point
pt =
Point
.Empty;
3461
Point
posStart = FindPosition(clipRect.X, clipRect.Y);
3462
Point
posEnd = FindPosition(clipRect.X, clipRect.Y + clipRect.Height);
3491
Point
loc = this.ptOurLocation;
3641
Point
editPoint = PointToScreen(lastMouseDown);
3653
rowSelectPos =
Point
.Empty;
4925
Point
location = topControl.Location;
5276
Point
mouseLoc = Cursor.Position;
5296
Point
tipPt =
Point
.Empty;
5453
private
Point
dragStart =
Point
.Empty; // the point at which the drag started to compute the delta
5831
Point
dragPoint = PointToScreen(new Point(e.X, e.Y));
5901
this.dragStart =
Point
.Empty;
7744
Point
pos = ((PropertyGridView)Owner).FindPosition(pt.x, pt.y);
winforms\Managed\System\WinForms\RadioButton.cs (1)
573
Point
pt = PointToScreen(new Point(mevent.X, mevent.Y));
winforms\Managed\System\WinForms\RadioButtonRenderer.cs (8)
98
public static void DrawRadioButton(Graphics g,
Point
glyphLocation, RadioButtonState state) {
102
internal static void DrawRadioButton(Graphics g,
Point
glyphLocation, RadioButtonState state, IntPtr hWnd) {
121
public static void DrawRadioButton(Graphics g,
Point
glyphLocation, Rectangle textBounds, string radioButtonText, Font font, bool focused, RadioButtonState state) {
133
public static void DrawRadioButton(Graphics g,
Point
glyphLocation, Rectangle textBounds, string radioButtonText, Font font, TextFormatFlags flags, bool focused, RadioButtonState state) {
137
internal static void DrawRadioButton(Graphics g,
Point
glyphLocation, Rectangle textBounds, string radioButtonText, Font font, TextFormatFlags flags, bool focused, RadioButtonState state, IntPtr hWnd) {
165
public static void DrawRadioButton(Graphics g,
Point
glyphLocation, Rectangle textBounds, string radioButtonText, Font font, Image image, Rectangle imageBounds, bool focused, RadioButtonState state) {
179
public static void DrawRadioButton(Graphics g,
Point
glyphLocation, Rectangle textBounds, string radioButtonText, Font font, TextFormatFlags flags, Image image, Rectangle imageBounds, bool focused, RadioButtonState state) {
183
internal static void DrawRadioButton(Graphics g,
Point
glyphLocation, Rectangle textBounds, string radioButtonText, Font font, TextFormatFlags flags, Image image, Rectangle imageBounds, bool focused, RadioButtonState state, IntPtr hWnd) {
winforms\Managed\System\WinForms\RichTextBox.cs (3)
2322
public override int GetCharIndexFromPosition(
Point
pt) {
2368
public override
Point
GetPositionFromCharIndex(int index) {
2374
return
Point
.Empty;
winforms\Managed\System\WinForms\Screen.cs (3)
307
public static Screen FromPoint(
Point
point) {
379
public static Rectangle GetWorkingArea(
Point
pt) {
412
public static Rectangle GetBounds(
Point
pt) {
winforms\Managed\System\WinForms\ScrollableControl.cs (6)
89
internal
Point
scrollPosition =
Point
.Empty;
183
public
Point
AutoScrollPosition {
920
Point
scrollLocation = ScrollToControl(activeControl);
943
protected virtual
Point
ScrollToControl(Control activeControl) {
1190
Point
pt = AutoScrollPosition;
winforms\Managed\System\WinForms\SearchForVirtualItemEventArgs.cs (3)
11
private
Point
startingPoint;
17
public SearchForVirtualItemEventArgs(bool isTextSearch, bool isPrefixSearch, bool includeSubItemsInSearch, string text,
Point
startingPoint, SearchDirectionHint direction, int startIndex) {
67
public
Point
StartingPoint {
winforms\Managed\System\WinForms\SplitContainer.cs (6)
94
private
Point
anchor =
Point
.Empty;
202
DefaultValue(typeof(
Point
), "0, 0")
204
public override
Point
AutoScrollOffset {
257
public new
Point
AutoScrollPosition {
2242
anchor =
Point
.Empty;
winforms\Managed\System\WinForms\Splitter.cs (3)
48
private
Point
anchor =
Point
.Empty;
1019
anchor =
Point
.Empty;
winforms\Managed\System\WinForms\SplitterPanel.cs (1)
218
public new
Point
Location {
winforms\Managed\System\WinForms\StatusBar.cs (2)
50
private
Point
lastClick = new Point(0, 0);
1090
Point
pt = lastClick;
winforms\Managed\System\WinForms\StatusStrip.cs (1)
377
Point
noMansLand = displayRect.Location;
winforms\Managed\System\WinForms\TabControl.cs (4)
47
private static readonly
Point
DEFAULT_PADDING = new Point(6, 3);
55
private
Point
padding = DEFAULT_PADDING;
439
Point
p = this.Location;
637
public new
Point
Padding {
winforms\Managed\System\WinForms\TabPage.cs (1)
330
new public
Point
Location {
winforms\Managed\System\WinForms\TextBoxBase.cs (6)
1684
Point
pt = PointToScreen(mevent.Location);
1744
public virtual char GetCharFromPosition(
Point
pt) {
1754
public virtual int GetCharIndexFromPosition(
Point
pt) {
1791
public virtual
Point
GetPositionFromCharIndex(int index) {
1793
return
Point
.Empty;
2250
Point
client;
winforms\Managed\System\WinForms\ToolStrip.cs (30)
52
internal static
Point
InvalidMouseEnter = new Point(Int32.MaxValue, Int32.MaxValue);
106
private
Point
mouseEnterWhenShown = InvalidMouseEnter;
339
public new
Point
AutoScrollPosition {
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);
2789
Point
location = this.Location;
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
3947
new
Point
[] { new Point(start, lastInsertionMarkRect.Bottom-1), new Point(start + widthOfBeam-1, lastInsertionMarkRect.Bottom-1), //bottom line
3952
new
Point
[] { new Point(start, lastInsertionMarkRect.Y), new Point(start + widthOfBeam-1, lastInsertionMarkRect.Y), //top line
3964
new
Point
[] { new Point(lastInsertionMarkRect.X, horizontalBeamStart), new Point(lastInsertionMarkRect.Right-1, horizontalBeamStart), // first vertical line
3969
new
Point
[] { new Point(lastInsertionMarkRect.X, start), new Point(lastInsertionMarkRect.X, start + widthOfBeam-1), //left line
3974
new
Point
[] { new Point(lastInsertionMarkRect.Right-1, start), new Point(lastInsertionMarkRect.Right-1, start + widthOfBeam-1), //right line
3994
public new Control GetChildAtPoint(
Point
point) {
3999
public new Control GetChildAtPoint(
Point
pt, GetChildAtPointSkip skipValue) {
4024
public ToolStripItem GetItemAt(
Point
point) {
4156
Point
newLocation = item.Bounds.Location;
4172
protected internal void SetItemLocation(ToolStripItem item,
Point
location) {
4224
Point
mousePosition = WindowsFormsUtils.LastCursorPoint;
4618
Point
cursorLocation = Cursor.Position;
4719
Point
pt = PointToClient(WindowsFormsUtils.LastCursorPoint);
4838
Point
clientHit = owner.PointToClient(new Point(x,y));
5408
private void OnDropItem(ToolStripItem droppedItem,
Point
ownerClientAreaRelativeDropPoint) {
5409
Point
start =
Point
.Empty;
5469
private bool ShowItemDropPoint(
Point
ownerClientAreaRelativeDropPoint) {
5508
private int GetItemInsertionIndex(
Point
ownerClientAreaRelativeDropPoint) {
5541
private RelativeLocation ComparePositions(Rectangle orig,
Point
check) {
winforms\Managed\System\WinForms\ToolStripComboBox.cs (2)
736
Point
middle = new Point(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.Height / 2);
740
g.FillPolygon(brush, new
Point
[] {
winforms\Managed\System\WinForms\ToolStripContentPanel.cs (1)
197
public new
Point
Location {
winforms\Managed\System\WinForms\ToolStripDropDown.cs (16)
36
private
Point
dropDownLocation =
Point
.Empty;
42
private
Point
displayLocation = new Point(0,0);
689
public new
Point
Location {
1205
Point
screenPoint =
Point
.Empty;
1223
Point
parentClientPoint =
Point
.Empty;
1239
internal Rectangle CalculateDropDownLocation(
Point
start, ToolStripDropDownDirection dropDownDirection) {
1240
Point
offset =
Point
.Empty;
1247
Rectangle dropDownBounds = new Rectangle(
Point
.Empty, GetSuggestedSize());
2038
public void Show(Control control,
Point
position) {
2056
public void Show(Control control,
Point
position, ToolStripDropDownDirection direction) {
2079
public void Show(
Point
screenLocation) {
2084
public void Show(
Point
position, ToolStripDropDownDirection direction) {
winforms\Managed\System\WinForms\ToolStripDropDownItem.cs (9)
122
Rectangle ownerItemBounds = new Rectangle(TranslatePoint(
Point
.Empty, ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords), Size);
190
internal protected virtual
Point
DropDownLocation
195
return
Point
.Empty;
311
Point
offset =
Point
.Empty;
341
Point
itemScreenLocation = this.TranslatePoint(
Point
.Empty, ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords);
382
Rectangle dropDownBounds = new Rectangle(
Point
.Empty, DropDown.GetSuggestedSize());
387
Rectangle itemScreenBounds = new Rectangle(this.TranslatePoint(
Point
.Empty, ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords), this.Size);
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (5)
402
Point
nextPoint =
Point
.Empty;
510
textRectangle.Y = LayoutUtils.VAlign(textRectangle.Size, new Rectangle(
Point
.Empty, maxItemSize), ContentAlignment.MiddleCenter).Y;
781
Point
upLocation = new Point(1, 0);
788
Point
downLocation = new Point(1, height - downSize.Height);
winforms\Managed\System\WinForms\ToolStripGrip.cs (6)
22
Point
startLocation =
Point
.Empty;
24
private
Point
lastEndLocation = ToolStrip.InvalidMouseEnter;
155
Point
currentLocation = TranslatePoint(mea.Location, 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\ToolStripHighContrastRenderer.cs (7)
138
Rectangle bounds = new Rectangle(
Point
.Empty, e.Item.Size);
185
DrawArrow(new ToolStripArrowRenderEventArgs(g, item, new Rectangle(
Point
.Empty, item.Size), arrowColor, ArrowDirection.Down));
227
Rectangle bounds = new Rectangle(
Point
.Empty, e.ToolStrip.Size);
254
Rectangle bounds = new Rectangle(
Point
.Empty, e.ToolStrip.Size);
313
Rectangle bounds = new Rectangle(
Point
.Empty, e.Item.Size);
393
Rectangle bounds = new Rectangle(
Point
.Empty, e.Item.Size);
420
Rectangle bounds = new Rectangle(
Point
.Empty, e.Item.Size);
winforms\Managed\System\WinForms\ToolStripItem.cs (8)
595
client.Location =
Point
.Empty;
2750
Point
rectangleLocation = this.TranslatePoint(r.Location, ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ToolStripCoords);
3840
internal
Point
TranslatePoint(
Point
fromPoint, ToolStripPointType fromPointType, ToolStripPointType toPointType) {
3856
Point
toPoint =
Point
.Empty;
3857
Point
currentToolStripItemLocation = Bounds.Location;
4693
Rectangle bounds = new Rectangle(
Point
.Empty, ownerItem.Size);
winforms\Managed\System\WinForms\ToolStripLocationCancelEventArgs.cs (3)
22
private
Point
newLocation;
31
public ToolStripLocationCancelEventArgs(
Point
newLocation, bool value) : base(value) {
43
public
Point
NewLocation {
winforms\Managed\System\WinForms\ToolStripManager.cs (1)
619
internal static ToolStripPanel ToolStripPanelFromPoint(Control draggedControl,
Point
screenLocation) {
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (1)
820
ControlPaint.DrawCaptionButton(g, new Rectangle(
Point
.Empty, image.Size), (CaptionButton)buttonToUse, ButtonState.Flat);
winforms\Managed\System\WinForms\ToolStripPanel.cs (20)
486
private
Point
GetStartLocation(ToolStrip toolStripToDrag) {
585
Point
[] controlLocations = new
Point
[this.Controls.Count];
686
Point
controlLocation = controlArray[i].Location;
711
private void GiveToolStripPanelFeedback(ToolStrip toolStripToDrag,
Point
screenLocation) {
792
public void Show(
Point
newLocation) {
795
public void Move(
Point
newLocation) {
889
public void MoveTo(
Point
newLocation) {
911
Join(toolStripToDrag,
Point
.Empty);
919
Point
location =
Point
.Empty;
946
public void Join(ToolStrip toolStripToDrag,
Point
location) {
966
internal void MoveControl(ToolStrip toolStripToDrag,
Point
screenLocation) {
974
Point
clientLocation = PointToClient(screenLocation);
985
private void MoveInsideContainer(ToolStrip toolStripToDrag,
Point
clientLocation) {
1003
Point
currentCursorLoc = PointToClient(WindowsFormsUtils.LastCursorPoint);
1083
Point
endLocation = (Orientation == Orientation.Horizontal) ? new Point (clientLocation.X, row.Bounds.Y) : new Point (row.Bounds.X, clientLocation.Y);
1143
Point
cursorLoc = toolStripToDrag.PointToScreen(toolStripToDrag.GripRectangle.Location);
1173
private void MoveOutsideContainer(ToolStrip toolStripToDrag,
Point
screenLocation) {
1200
public ToolStripPanelRow PointToRow(
Point
clientLocation) {
winforms\Managed\System\WinForms\ToolStripPanelCell.cs (1)
333
Point
newloc = e.NewLocation;
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (12)
718
internal void MoveControl(ToolStrip movingControl,
Point
startClientLocation,
Point
endClientLocation) {
725
internal void JoinRow(ToolStrip toolStripToDrag,
Point
locationToDrag) {
905
public virtual void MoveControl(ToolStrip movingControl,
Point
startClientLocation,
Point
endClientLocation) {
911
public virtual void JoinRow(ToolStrip toolStripToDrag,
Point
locationToDrag) {
1040
public override void MoveControl(ToolStrip movingControl,
Point
clientStartLocation,
Point
clientEndLocation) {
1268
public override void JoinRow(ToolStrip toolStripToDrag,
Point
locationToDrag) {
1553
public override void MoveControl(ToolStrip movingControl,
Point
clientStartLocation,
Point
clientEndLocation) {
1799
public override void JoinRow(ToolStrip toolStripToDrag,
Point
locationToDrag) {
winforms\Managed\System\WinForms\ToolStripProfessionalLowResolutionRenderer.cs (1)
41
Rectangle bounds = new Rectangle(
Point
.Empty, e.ToolStrip.Size);
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (41)
175
Point
middle = RenderArrowInternal(g, overflowArrowRect, direction, SystemBrushes.ControlText);
216
Rectangle bounds = new Rectangle(
Point
.Empty, item.Size);
232
RenderSeparatorInternal(e.Graphics, e.Item, new Rectangle(
Point
.Empty, e.Item.Size), e.Vertical);
247
Rectangle bounds = new Rectangle(
Point
.Empty, item.Size);
314
Rectangle bounds = new Rectangle(
Point
.Empty, item.Size);
375
Rectangle bounds = new Rectangle(
Point
.Empty, toolStrip.Size);
492
Rectangle bounds = new Rectangle(
Point
.Empty, item.Size);
673
e.Graphics.DrawImage(image, imageRect, new Rectangle(
Point
.Empty, imageRect.Size), GraphicsUnit.Pixel);
732
Rectangle bounds = new Rectangle(
Point
.Empty, toolStrip.Size);
741
Point
topLeft =
Point
.Empty;
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);
958
Rectangle bounds = new Rectangle(
Point
.Empty, item.Size);
983
Rectangle gradientBounds = new Rectangle(
Point
.Empty, parent.Size);
987
g.FillRectangle(b, new Rectangle(
Point
.Empty, control.Size));
992
Rectangle gradientBounds = new Rectangle(
Point
.Empty, control.Size);
1003
g.FillRectangle(b, new Rectangle(
Point
.Empty, control.Size));
1014
Rectangle bounds = new Rectangle(
Point
.Empty, e.ToolStrip.Size);
1024
Rectangle bounds = new Rectangle(
Point
.Empty, e.ToolStrip.Size);
1036
Rectangle bounds = new Rectangle(
Point
.Empty, toolStripDropDown.Size);
1056
Rectangle overflowBoundsFill = new Rectangle(
Point
.Empty, e.Item.Size);
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);
1155
Rectangle bounds = new Rectangle(
Point
.Empty, e.ToolStrip.Size);
1161
Point
topLeft =
Point
.Empty;
1162
Point
topRight = new Point(bounds.Width - 1, 0);
1163
Point
bottomLeft = new Point(0, bounds.Height - 1);
1204
Point
gradientCopyPixel = bottomLeft;
1371
Rectangle bounds = new Rectangle(
Point
.Empty, item.Size);
1441
private
Point
RenderArrowInternal(Graphics g, Rectangle dropDownRect, ArrowDirection direction, Brush brush) {
1443
Point
middle = new Point(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.Height / 2);
1448
Point
[] arrow = null;
1452
arrow = new
Point
[] {
1460
arrow = new
Point
[] {
1468
arrow = new
Point
[] {
1477
arrow = new
Point
[] {
winforms\Managed\System\WinForms\ToolStripRenderer.cs (8)
711
Point
middle = new Point(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.Height / 2);
715
Point
[] arrow = null;
732
arrow = new
Point
[] {
739
arrow = new
Point
[] {
746
arrow = new
Point
[] {
754
arrow = new
Point
[] {
878
e.Graphics.DrawImage(image, imageRect, new Rectangle(
Point
.Empty,imageRect.Size), GraphicsUnit.Pixel);
942
TextRenderer.DrawText(textGraphics, text, textFont, new Rectangle(
Point
.Empty, textSize), textColor, textFormat);
winforms\Managed\System\WinForms\ToolStripRenderEventArgs.cs (2)
30
this.affectedBounds = new Rectangle(
Point
.Empty, toolStrip.Size);
113
Rectangle itemBounds = new Rectangle(toolStrip.PointToClient(ownerItem.TranslatePoint(
Point
.Empty, ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords)), ownerItem.Size);
winforms\Managed\System\WinForms\ToolStripSettings.cs (3)
59
public
Point
Location {
61
return (
Point
) this["Location"];
369
public
Point
Location;
winforms\Managed\System\WinForms\ToolStripSplitButton.cs (4)
368
Rectangle dropDownButtonBounds = new Rectangle(
Point
.Empty, this.Size);
372
dropDownButtonBounds = new Rectangle(
Point
.Empty, new Size(Math.Min(this.Width, DropDownButtonWidth), this.Height));
378
splitButtonButtonBounds = new Rectangle(
Point
.Empty, new Size(splitButtonButtonWidth, splitButtonButtonHeight));
556
Point
clickPoint = new Point(e.X, e.Y);
winforms\Managed\System\WinForms\ToolStripSplitStackLayout.cs (4)
19
private
Point
noMansLand;
352
Point
itemLocation = new Point(x,y);
475
Point
itemLocation = new Point(x,y);
511
private void SetItemLocation(ToolStripItem item,
Point
itemLocation, Size itemSize) {
winforms\Managed\System\WinForms\ToolStripSystemRenderer.cs (9)
258
Rectangle bounds = new Rectangle(
Point
.Empty, e.GripBounds.Size);
341
vsRenderer.DrawBackground(g, new Rectangle(
Point
.Empty, item.Size));
347
DrawArrow(new ToolStripArrowRenderEventArgs(g, item, new Rectangle(
Point
.Empty, item.Size), arrowColor, ArrowDirection.Down));
374
Rectangle bounds = new Rectangle(
Point
.Empty, item.Size);
392
Rectangle fillRect = new Rectangle(
Point
.Empty, item.Size);
437
RenderSeparatorInternal(e.Graphics, e.Item, new Rectangle(
Point
.Empty, e.Item.Size), e.Vertical);
466
Rectangle bounds = new Rectangle(
Point
.Empty, splitButton.Size);
576
vsRenderer.DrawBackground(g, new Rectangle(
Point
.Empty, item.Size));
579
RenderSmall3DBorderInternal(g, new Rectangle(
Point
.Empty, item.Size), state, (item.RightToLeft == RightToLeft.Yes));
winforms\Managed\System\WinForms\ToolStripTextBox.cs (3)
599
public char GetCharFromPosition(System.Drawing.
Point
pt) { return TextBox.GetCharFromPosition(pt); }
601
public int GetCharIndexFromPosition(System.Drawing.
Point
pt) { return TextBox.GetCharIndexFromPosition(pt); }
609
public System.Drawing.
Point
GetPositionFromCharIndex(int index) { return TextBox.GetPositionFromCharIndex(index); }
winforms\Managed\System\WinForms\ToolTip.cs (20)
1253
private IntPtr GetWindowFromPoint(
Point
screenCoords, ref bool success) {
1280
Point
pt = screenCoords;
1560
Point
cursorLocation = Cursor.Position;
1561
Point
p = cursorLocation;
1651
public void Show(string text, IWin32Window window,
Point
point) {
1675
public void Show(string text, IWin32Window window,
Point
point, int duration) {
1763
Point
optimalPoint = this.GetOptimalToolTipPosition(tool, toolRectangle, bubbleSize.Width, bubbleSize.Height);
1796
private
Point
GetOptimalToolTipPosition(IKeyboardToolTip tool, Rectangle toolRectangle, int width, int height) {
2008
private void SetTool(IWin32Window win, string text, TipInfo.Type type,
Point
position) {
2159
private void Reposition(
Point
tipPosition, Size tipSize) {
2160
Point
moveToLocation = tipPosition;
2216
if (tt.Position !=
Point
.Empty)
2248
Point
cursorLocation = Cursor.Position;
2268
Point
screenCoords = new Point(sc.x, sc.y);
2394
Point
cursorPos = Cursor.Position;
2440
if ( ((tt.TipType & TipInfo.Type.SemiAbsolute) != 0) && tt.Position ==
Point
.Empty ) {
2467
else if ((tt.TipType & TipInfo.Type.SemiAbsolute) != 0 && tt.Position !=
Point
.Empty) {
2540
tt.Position =
Point
.Empty;
2701
public
Point
Position =
Point
.Empty;
winforms\Managed\System\WinForms\TreeView.cs (8)
1775
public TreeViewHitTestInfo HitTest(
Point
pt) {
1823
public TreeNode GetNodeAt(
Point
pt) {
2163
Point
pos = Cursor.Position;
2827
Point
textLoc = new Point(bounds.X -1, bounds.Y); // required to center the text
2904
Point
pos = Cursor.Position;
2939
Point
pos = Cursor.Position;
3018
Point
pos = Cursor.Position;
3391
Point
client;
winforms\Managed\System\WinForms\Triangle.cs (5)
46
Point
[] points = BuildTrianglePoints(dir, bounds);
55
private static
Point
[] BuildTrianglePoints(TriangleDirection dir,
58
Point
[] points = new
Point
[3];
123
private static void OffsetPoints(
Point
[] points, int xOffset, int yOffset) {
winforms\Managed\System\WinForms\UpDownBase.cs (4)
965
Point
pt = PointToScreen(new Point(mevent.X, mevent.Y));
1093
Rectangle clientArea = new Rectangle(
Point
.Empty, ClientSize);
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 (4)
801
public
Point
GetPoint(PointProperty prop) {
938
public HitTestCode HitTestBackground(IDeviceContext dc, Rectangle backgroundRectangle,
Point
pt, HitTestOptions options) {
962
public HitTestCode HitTestBackground(Graphics g, Rectangle backgroundRectangle, Region region,
Point
pt, HitTestOptions options) {
981
public HitTestCode HitTestBackground(IDeviceContext dc, Rectangle backgroundRectangle, IntPtr hRgn,
Point
pt, HitTestOptions options) {
winforms\Managed\System\WinForms\WebBrowser.cs (1)
1618
Point
client;
winforms\Managed\System\WinForms\WebBrowserBase.cs (1)
851
Point
location = Location;
winforms\Managed\System\WinForms\WinFormsUtils.cs (4)
53
public static
Point
LastCursorPoint {
329
public static
Point
TranslatePoint(
Point
point, Control fromControl, Control toControl) {
738
this.graphics.SetClip(new Rectangle(
Point
.Empty, translatedBounds.Size));
System.Windows.Forms.DataVisualization (15)
Common\General\Axis.cs (2)
2471
PointF first =
Point
.Empty;
2472
PointF second =
Point
.Empty;
Common\General\ChartGraphics.cs (2)
2553
Point
center =
Point
.Round(new PointF(absPosition.X + absPosition.Width/2F, absPosition.Y + absPosition.Height/2F));
Common\General\ImageMap.cs (2)
392
PointF pConverted =
Point
.Empty;
393
PointF pOriginal =
Point
.Empty;
Common\General\LegendColumns.cs (3)
2367
Point
point1 = new Point();
2370
Point
point2 = new Point();
2422
Point
point = new Point();
Common\General\Selection.cs (3)
2542
Point
[] pointsAlligned = new
Point
[points.Length];
2545
pointsAlligned[i] =
Point
.Round(points[i]);
WinForm\Utilities\AccessibleObject.cs (3)
47
private
Point
_chartScreenPosition =
Point
.Empty;
72
public
Point
ChartScreenPosition
System.Workflow.Activities (84)
Designers\ConditionalDesigner.cs (1)
119
Point
[] diamondPoints =
Designers\SetStateDesigner.cs (1)
93
Point
location = new Point(
Designers\StateDesigner.cs (17)
54
private
Point
_stateLocation;
190
public override
Point
Location
797
private
Point
TopConnectionPoint
803
Point
point = new Point(midHorz, bounds.Top);
808
private
Point
BottomConnectionPoint
814
Point
point = new Point(midHorz, bounds.Bottom);
991
public override HitTestInfo HitTest(
Point
point)
1100
if ((edges & DesignerEdges.Left) > 0 && layout.LeftConnectionPoint !=
Point
.Empty)
1107
if ((edges & DesignerEdges.Right) > 0 && layout.RightConnectionPoint !=
Point
.Empty)
1118
protected override ReadOnlyCollection<
Point
> GetConnections(DesignerEdges edges)
1120
List<
Point
> connections = new List<
Point
>();
1131
if ((edges & DesignerEdges.Left) > 0 && layout.LeftConnectionPoint !=
Point
.Empty)
1134
if ((edges & DesignerEdges.Right) > 0 && layout.RightConnectionPoint !=
Point
.Empty)
1452
Point
location = stateDesigner.Location;
1645
private
Point
GetDragImageSnapPoint(ActivityDragEventArgs e)
1647
Point
snapPoint = new Point(e.Y, e.Y);
Designers\StateDesigner.Layouts.cs (24)
38
public override
Point
Location
45
return
Point
.Empty;
86
private
Point
_location;
136
public
Point
Location
216
public virtual void MoveLayout(
Point
newLocation)
221
Point
offset = new Point(_location.X - newLocation.X, _location.Y - newLocation.Y);
224
Point
currentLocation = layout.Location;
225
Point
newChildDesignerLocation = new Point(currentLocation.X - offset.X, currentLocation.Y - offset.Y);
346
public virtual HitTestInfo HitTest(
Point
point)
386
private
Point
_textLocation;
387
private
Point
_imageLocation;
433
public override void MoveLayout(
Point
newLocation)
435
Point
offset = new Point(this.Location.X - newLocation.X, this.Location.Y - newLocation.Y);
461
Point
origin = this.Location;
496
public override HitTestInfo HitTest(
Point
point)
507
public virtual
Point
LeftConnectionPoint
513
Point
point = new Point(layoutBounds.Left - 4, midVert);
518
public virtual
Point
RightConnectionPoint
524
Point
point = new Point(layoutBounds.Right + 4, midVert);
783
Point
location = this.Location;
982
Point
origin = this.Location;
1203
Point
location = new Point(this.Location.X, _titleBarLayout.Bounds.Bottom);
1363
Point
origin = bounds.Location;
1376
Point
designerLayoutLocation = new Point(
Designers\StateDesignerConnector.cs (9)
107
this.SetConnectorSegments(new Collection<
Point
>());
130
public override bool HitTest(
Point
point)
138
protected override void OnPaintEdited(ActivityDesignerPaintEventArgs e,
Point
[] segments,
Point
[] segmentEditPoints)
166
protected override void OnPaintSelected(ActivityDesignerPaintEventArgs e, bool primarySelection,
Point
[] segmentEditPoints)
181
new List<
Point
>(ConnectorSegments).ToArray(),
191
ReadOnlyCollection<
Point
> endSegmentEditPoints = ConnectorSegments;
216
new List<
Point
>(ConnectorSegments).ToArray(),
224
private void PaintEditPoints(ActivityDesignerPaintEventArgs e,
Point
point, bool drawMidSegmentEditPoint)
Designers\StateMachineDesignerPaint.cs (23)
77
private static
Point
[] OptimizeConnectorPoints(
Point
[] points)
80
List<
Point
> optimized = new List<
Point
>();
82
Point
p1;
83
Point
p2 = points[0];
84
Point
p3 = points[1];
108
internal static void DrawConnector(Graphics graphics, Pen pen,
Point
[] points, Size connectorCapSize, Size maxCapSize, LineAnchor startConnectorCap, LineAnchor endConnectorCap)
120
Point
[] startSegment = new
Point
[] { points[0], points[1] };
147
Point
[] endSegment = new
Point
[] { points[points.GetLength(0) - 2], points[points.GetLength(0) - 1] };
206
private static GraphicsPath GetRoundedPath(
Point
[] points, int radius)
218
Point
p1 = points[0];
219
Point
p2 = points[1];
220
Point
p3 = points[2];
267
private static int GetDistance(
Point
p1,
Point
p2)
275
private static void AddSegment(GraphicsPath path, int radius,
Point
p1,
Point
p2, bool roundP1, bool roundP2, ArrowDirection direction)
316
private static void AddRoundedCorner(GraphicsPath path, int diameter,
Point
midPoint, ArrowDirection direction1, ArrowDirection direction2)
347
private static ArrowDirection GetDirection(
Point
start,
Point
end)
Designers\WhileDesigner.cs (5)
45
Point
connectionPoint =
Point
.Empty;
53
Point
[] points = new
Point
[4];
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 (4)
425
Point
clientPoint = this.GetPositionFromCharIndex(charIndex - 1);
434
Point
parentScreenLocation = TopLevelControl.PointToScreen(new Point(0, 0));
435
Point
locationInDialog = PointToScreen(clientPoint);
498
Point
clientPoint = this.GetPositionFromCharIndex(charIndex - 1);
System.Workflow.ComponentModel (668)
AuthoringOM\Design\ActivityDesigner.cs (25)
71
private
Point
location =
Point
.Empty;
208
public virtual
Point
Location
924
public virtual HitTestInfo HitTest(
Point
point)
1174
protected internal virtual ReadOnlyCollection<
Point
> GetConnections(DesignerEdges edges)
1178
List<
Point
> connections = new List<
Point
>();
1329
protected virtual void OnMouseDragBegin(
Point
initialDragPoint, MouseEventArgs e)
1586
protected virtual void OnShowSmartTagVerbs(
Point
smartTagPoint)
1863
protected
Point
PointToScreen(
Point
point)
1877
protected
Point
PointToLogical(
Point
point)
1983
activityDesigner.Location =
Point
.Empty;
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));
2717
bool IWorkflowDesignerMessageSink.OnMouseDragBegin(
Point
initialPoint, MouseEventArgs e)
2724
Point
logicalPoint = parentView.ClientPointToLogical(new Point(e.X, e.Y));
2741
Point
logicalPoint = parentView.ClientPointToLogical(new Point(e.X, e.Y));
2872
bool IWorkflowDesignerMessageSink.OnShowContextMenu(
Point
screenMenuPoint)
2971
using (GraphicsPath graphicsPath = ActivityDesignerPaint.GetDesignerPath(this,
Point
.Empty, new Size(DesignerTheme.BorderWidth, DesignerTheme.BorderWidth), DesignerEdges.All, false))
AuthoringOM\Design\ActivityDesignerLayoutSerializers.cs (8)
29
XmlQualifiedName xmlQualifiedName = serializationManager.GetXmlQualifiedName(typeof(
Point
), out prefix);
298
else if (typeof(System.Drawing.
Point
) == objectType)
410
return (value is
Point
);
416
if (obj is
Point
)
418
properties.Add(typeof(
Point
).GetProperty("X"));
419
properties.Add(typeof(
Point
).GetProperty("Y"));
438
object point =
Point
.Empty;
443
TypeConverter converter = TypeDescriptor.GetConverter(typeof(
Point
));
AuthoringOM\Design\ActivityPreviewDesigner.cs (10)
47
private
Point
[] separatorLine = new
Point
[2];
143
public override
Point
Location
373
public override HitTestInfo HitTest(
Point
point)
513
protected override Rectangle[] GetDropTargets(
Point
dropPoint)
666
Point
point = new Point(e.X, e.Y);
680
Point
point = new Point(e.X, e.Y);
789
private
Point
SnapInToPreviewStripDropTarget(ActivityDragEventArgs e)
795
return
Point
.Empty;
991
Point
configErrorLocation = new Point(rectangle.Right - configErrorSize.Width / 2, rectangle.Top - configErrorSize.Height / 2);
AuthoringOM\Design\CompositeActivityDesigner.cs (2)
201
public override
Point
Location
1076
public override HitTestInfo HitTest(
Point
point)
AuthoringOM\Design\Connector.cs (224)
116
public virtual
Point
Location
120
IList<
Point
> connections = this.associatedDesigner.GetConnections(this.designerEdge);
124
return
Point
.Empty;
132
IList<
Point
> connections = this.associatedDesigner.GetConnections(DesignerEdges.All);
135
Point
location = Location;
206
private List<
Point
> segments = new List<
Point
>();
289
public virtual ReadOnlyCollection<
Point
> ConnectorSegments
293
List<
Point
> connectorSegments = new List<
Point
>();
314
Rectangle bounds = DesignerGeometryHelper.RectangleFromLineSegments(new List<
Point
>(ConnectorSegments).ToArray());
328
public virtual bool HitTest(
Point
point)
333
ReadOnlyCollection<
Point
> segments = ConnectorSegments;
336
if (DesignerGeometryHelper.PointOnLineSegment(point, new
Point
[] { segments[i - 1], segments[i] }, selectionSize))
406
protected internal void SetConnectorSegments(ICollection<
Point
> segments)
432
Point
[] newSegments = ActivityDesignerConnectorRouter.Route(Source.AssociatedDesigner.Activity.Site, Source, Target, ExcludedRoutingRectangles);
445
ActivityDesignerPaint.DrawConnectors(e.Graphics, e.DesignerTheme.ForegroundPen, new List<
Point
>(ConnectorSegments).ToArray(), arrowCapSize, maxCapSize, theme.ConnectorStartCap, theme.ConnectorEndCap);
449
protected internal virtual void OnPaintSelected(ActivityDesignerPaintEventArgs e, bool primarySelection,
Point
[] segmentEditPoints)
459
ActivityDesignerPaint.DrawConnectors(e.Graphics, lineSelectionPen, new List<
Point
>(ConnectorSegments).ToArray(), arrowCapSize, maxCapSize, theme.ConnectorStartCap, theme.ConnectorEndCap);
465
ReadOnlyCollection<
Point
> endSegmentEditPoints = ConnectorSegments;
476
protected internal virtual void OnPaintEdited(ActivityDesignerPaintEventArgs e,
Point
[] segments,
Point
[] segmentEditPoints)
513
private void PaintEditPoints(ActivityDesignerPaintEventArgs e,
Point
point, bool drawMidSegmentEditPoint)
722
internal List<
Point
> Segments
832
public Cursor GetCursor(
Point
cursorPoint)
854
public bool OnBeginEditing(
Point
point)
881
public void OnContinueEditing(
Point
point)
897
public void OnEndEditing(
Point
point, bool commitChanges)
979
public bool HitTest(
Point
point)
993
List<
Point
> segments = new List<
Point
>();
994
List<
Point
> segmentEditPoints = new List<
Point
>();
1104
private void UpdateEditPoints(
Point
newPoint)
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);
1181
Point
[] points = ActivityDesignerConnectorRouter.Route(this.serviceProvider, source, target, this.editedConnector.ExcludedRoutingRectangles);
1264
DesignerGeometryHelper.DistanceOfLineSegments(new
Point
[] { this.editPoints[i].Location, this.editPoints[i + 1].Location }) > minLengthForSegmentEditPoint)
1266
Point
midPoint = DesignerGeometryHelper.MidPointOfLineSegment(this.editPoints[i].Location, this.editPoints[i + 1].Location);
1275
List<
Point
> segments = new List<
Point
>(this.editedConnector.ConnectorSegments);
1348
double distance = DesignerGeometryHelper.DistanceOfLineSegments(new
Point
[] { previous.Location, current.Location });
1358
distance = DesignerGeometryHelper.DistanceOfLineSegments(new
Point
[] { current.Location, next.Location });
1398
Point
location = (slope < 1) ? new Point(next.Location.X, current.Location.Y) : new Point(current.Location.X, next.Location.Y);
1428
private List<
Point
> GetPointsFromEditPoints(List<EditPoint> editPoints)
1430
List<
Point
> segments = new List<
Point
>();
1452
private
Point
point;
1455
public EditPoint(ConnectorEditor owner, EditPointTypes editPointType,
Point
point)
1478
public
Point
Location
1515
public static
Point
[] Route(IServiceProvider serviceProvider, object source, object target, ICollection<Rectangle> userDefinedRoutingObstacles)
1519
List<
Point
> linesToExclude, pointsToExclude;
1527
Point
sourcePoint = (source is ConnectionPoint) ? ((ConnectionPoint)source).Location : (
Point
)source;
1528
Point
targetPoint = (target is ConnectionPoint) ? ((ConnectionPoint)target).Location : (
Point
)target;
1530
Point
[] routedPoints = ConnectorRouter.Route(sourcePoint, targetPoint, new Size(2 * ambientTheme.Margin.Width, 2 * ambientTheme.Margin.Height), rootDesigner.Bounds, rectanglesToExclude.ToArray(), linesToExclude.ToArray(), pointsToExclude.ToArray());
1537
routedPoints = ConnectorRouter.Route(sourcePoint, targetPoint, ambientTheme.Margin, rootDesigner.Bounds, new Rectangle[] { }, linesToExclude.ToArray(), new
Point
[] { });
1543
Point
intermediatePoint = (slope < 1) ? new Point(targetPoint.X, sourcePoint.Y) : new Point(sourcePoint.X, targetPoint.Y);
1544
routedPoints = new
Point
[] { sourcePoint, intermediatePoint, targetPoint };
1550
public static void GetRoutingObstacles(IServiceProvider serviceProvider, object source, object target, out List<Rectangle> rectanglesToExclude, out List<
Point
> linesToExclude, out List<
Point
> pointsToExclude)
1557
Point
sourcePoint = (sourceConnectionPoint != null) ? sourceConnectionPoint.Location : (
Point
)source;
1561
Point
targetPoint = (targetConnectionPoint != null) ? targetConnectionPoint.Location : (
Point
)target;
1596
pointsToExclude = new List<
Point
>();
1625
linesToExclude = new List<
Point
>();
1657
private static IList<
Point
> GetDesignerEscapeCover(ActivityDesigner designer, ICollection<object> escapeLocations)
1662
Dictionary<DesignerEdges, List<
Point
>> escapeEdges = new Dictionary<DesignerEdges, List<
Point
>>();
1666
Point
escapePoint =
Point
.Empty;
1672
else if (escapeLocation is
Point
)
1674
escapePoint = (
Point
)escapeLocation;
1675
escapeEdge = DesignerGeometryHelper.ClosestEdgeToPoint((
Point
)escapeLocation, bounds, DesignerEdges.All);
1680
List<
Point
> escapePoints = null;
1683
escapePoints = new List<
Point
>();
1698
Dictionary<DesignerEdges,
Point
[]> designerEdgeCover = new Dictionary<DesignerEdges,
Point
[]>();
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) });
1704
List<
Point
> linesToExclude = new List<
Point
>();
1709
Point
[] edge = designerEdgeCover[designerEdge];
1710
List<
Point
> escapePoints = escapeEdges[designerEdge];
1711
List<
Point
> escapeCover = new List<
Point
>();
1717
Point
escapePoint = escapePoints[k];
1733
Point
escapePoint = escapePoints[k];
1749
Point
escapePoint = escapePoints[k];
1766
Point
escapePoint = escapePoints[k];
1793
private static bool AreAllSegmentsVerticalOrHorizontal(
Point
[] segments)
1814
public static
Point
[] Route(
Point
begin,
Point
end, Size margin, Rectangle enclosingRectangle, Rectangle[] rectanglesToExclude,
Point
[] linesToExclude,
Point
[] pointsToExclude)
1825
List<
Point
> excludedLines = new List<
Point
>(linesToExclude);
1827
foreach (
Point
point in pointsToExclude)
1839
private static
Point
[] GetRoutedLineSegments(
Point
begin,
Point
end, Size margin, Rectangle[] rectanglesToExclude,
Point
[] linesToExclude)
1853
Point
A = begin;
1854
Point
B = end;
1857
List<
Point
> LeA = new List<
Point
>(); //escape points from begin to end
1858
List<
Point
> LeB = new List<
Point
>(); //escape points from end to begin
1878
Nullable<
Point
> intersection = null;
1898
List<
Point
> tempList = LeA;
1902
Point
tempPoint = A;
1927
Point
objectPoint = LeA[LeA.Count - 1];
1928
Point
targetPoint = B;
1940
List<
Point
> tempList = LeA;
1944
Point
tempPoint = A;
1982
List<
Point
> refinedPath = new List<
Point
>();
1986
LeA = FirstRefinementAlgorithm(LeA, (
Point
)intersection, intersectionSegmentA);
1987
LeB = FirstRefinementAlgorithm(LeB, (
Point
)intersection, intersectionSegmentB);
1992
refinedPath.Add((
Point
)intersection);
2014
private static Nullable<
Point
> EscapeAlgorithm(CoverSet coverSet,
Point
Z,
Point
targetPoint,
2015
ref List<
Point
> LeA, ref List<ConnectorSegment> LhA, ref List<ConnectorSegment> LvA, ref List<ConnectorSegment> LhB, ref List<ConnectorSegment> LvB,
2018
Nullable<
Point
> intersection = null;
2067
Nullable<
Point
> escapePoint = EscapeProcessI(coverSet, Z, v, Orientation.Horizontal, margin);
2071
LeA.Add((
Point
)escapePoint);
2080
LeA.Add((
Point
)escapePoint);
2089
Point
r1 =
Point
.Empty, r2 =
Point
.Empty, r3 =
Point
.Empty, r4 =
Point
.Empty;
2109
Nullable<
Point
> escape = EscapeProcessII(coverSet, Orientation.Vertical,
2119
coverSet.AddUsedEscapeLine(new ConnectorSegment(r1, (
Point
)escape));
2120
LeA.Add((
Point
)escape);
2132
Nullable<
Point
> escape = EscapeProcessII(coverSet, Orientation.Horizontal,
2142
coverSet.AddUsedEscapeLine(new ConnectorSegment(r2, (
Point
)escape));
2143
LeA.Add((
Point
)escape);
2155
Nullable<
Point
> escape = EscapeProcessII(coverSet, Orientation.Vertical,
2165
coverSet.AddUsedEscapeLine(new ConnectorSegment(r3, (
Point
)escape));
2166
LeA.Add((
Point
)escape);
2178
Nullable<
Point
> escape = EscapeProcessII(coverSet, Orientation.Horizontal,
2188
coverSet.AddUsedEscapeLine(new ConnectorSegment(r4, (
Point
)escape));
2189
LeA.Add((
Point
)escape);
2203
private static Nullable<
Point
> EscapeProcessI(CoverSet coverSet,
Point
Z,
2232
Point
p = extremitiesList[i].P;
2233
Point
direction = new Point(Math.Sign(p.X - Z.X), Math.Sign(p.Y - Z.Y));
2251
Point
escapePoint;
2273
private static void AddBoundPoint(ref List<DistanceFromPoint> extremitiesList,
Point
p, ConnectorSegment segment,
Point
Z)
2281
private static Nullable<
Point
> EscapeProcessII(CoverSet coverSet, Orientation orientation, ref List<
Point
> LeA,
2283
Point
Z,
Point
R, Size margin, out bool intersectionFlag, out ConnectorSegment intersectionSegmentA, out ConnectorSegment intersectionSegmentB)
2297
Nullable<
Point
> itersection = h.Intersect(segment);
2310
Nullable<
Point
> itersection = v.Intersect(segment);
2321
Nullable<
Point
> escapePointI = null;
2370
private static List<
Point
> FirstRefinementAlgorithm(List<
Point
> Le,
Point
intersection, ConnectorSegment intersectionSegment)
2372
List<
Point
> refinedSet = new List<
Point
>();
2377
Point
pi;
2405
private static void SecondRefinementAlgorithm(CoverSet coverSet, ref List<
Point
> refinedPath, Size margin)
2407
List<
Point
> newPath = new List<
Point
>();
2413
Point
a1 = refinedPath[currentSegment];
2414
Point
a2 = refinedPath[currentSegment + 1];
2424
Point
b1 = refinedPath[intersectingSegment];
2425
Point
b2 = refinedPath[intersectingSegment + 1];
2428
Nullable<
Point
> intersection = a.Intersect(b);
2435
newPath.Add((
Point
)intersection);
2439
List<
Point
> temp = refinedPath;
2463
Point
a1 = refinedPath[currentSegment];
2464
Point
a2 = refinedPath[currentSegment + 1];
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);
2489
Point
c1 = refinedPath[intersectingSegment];
2490
Point
c2 = refinedPath[intersectingSegment + 1];
2493
Nullable<
Point
> intersection = b.Intersect(c);
2494
if (intersection != null && c.IsPointOnSegment((
Point
)intersection))
2503
newPath.Add((
Point
)intersection);
2507
List<
Point
> temp = refinedPath;
2536
public
Point
P;
2539
public DistanceFromPoint(ConnectorSegment segment,
Point
z,
Point
p)
2575
private
Point
point1;
2576
private
Point
point2;
2579
public ConnectorSegment(
Point
point1,
Point
point2)
2589
public
Point
A
2597
public
Point
B
2616
public bool Covers(
Point
p)
2624
public Nullable<
Point
> Intersect(ConnectorSegment segment)
2642
public bool PointLiesOnThisLine(
Point
p)
2648
public bool IsPointOnSegment(
Point
p)
2690
public ConnectorSegment PeprendecularThroughPoint(
Point
p)
2693
Point
newPoint = new Point(p.X, p.Y);
2702
public
Point
ExtendPointOutwards(
Point
p)
2720
public static double DistanceBetweenPoints(
Point
p,
Point
q)
2726
public static ConnectorSegment ConstructBoundSegment(CoverSet coverSet,
Point
a,
Point
b)
2736
public static ConnectorSegment SegmentFromLeftToRightCover(CoverSet coverSet,
Point
p)
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);
2748
public static ConnectorSegment SegmentFromBottomToTopCover(CoverSet coverSet,
Point
p)
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);
2760
public static ConnectorSegment ConstructBoundSegment(CoverSet coverSet,
Point
a, Orientation orientation)
2787
public CoverSet(Rectangle[] rectanglesToExclude,
Point
[] linesToExclude)
2852
public bool EscapeLineHasBeenUsed(ConnectorSegment segment,
Point
escapePoint)
2888
public ConnectorSegment GetCover(
Point
p, DesignerEdges side)
2930
public List<ConnectorSegment> GetCovers(
Point
p, DesignerEdges side)
2958
public bool IsEscapePoint(
Point
origin,
Point
escape, DesignerEdges side)
AuthoringOM\Design\DesignerHelpers.cs (43)
135
DrawImage(graphics, image, destination, new Rectangle(
Point
.Empty, image.Size), alignment, 1.0f, false);
143
DrawImage(graphics, image, destination, new Rectangle(
Point
.Empty, image.Size), DesignerContentAlignment.Center, transparency, false);
321
DrawImage(graphics, image, bounds, new Rectangle(
Point
.Empty, image.Size), DesignerContentAlignment.Fill, transparency, (buttonState == ButtonState.Inactive));
331
Point
gridStart =
Point
.Empty;
497
Point
location = designerBounds.Location;
498
designerBounds.Location =
Point
.Empty;
516
DrawImage(graphics, compositeDesignerTheme.WatermarkImage, bounds, new Rectangle(
Point
.Empty, compositeDesignerTheme.WatermarkImage.Size), compositeDesignerTheme.WatermarkAlignment, AmbientTheme.WatermarkTransparency, false);
529
return GetDesignerPath(designer,
Point
.Empty, Size.Empty, DesignerEdges.None, enableRoundedCorners);
532
internal static GraphicsPath GetDesignerPath(ActivityDesigner designer,
Point
offset, Size inflate, DesignerEdges edgeToInflate)
537
internal static GraphicsPath GetDesignerPath(ActivityDesigner designer,
Point
offset, Size inflate, DesignerEdges edgeToInflate, bool enableRoundedCorners)
589
internal static void DrawConnectors(Graphics graphics, Pen pen,
Point
[] points, Size connectorCapSize, Size maxCapSize, LineAnchor startConnectorCap, LineAnchor endConnectorCap)
599
Point
[] startSegment = new
Point
[] { points[0], points[1] };
629
Point
[] endSegment = new
Point
[] { points[points.GetLength(0) - 2], points[points.GetLength(0) - 1] };
1027
Point
gridStart =
Point
.Empty;
1183
internal static
Point
SnapToGrid(
Point
location)
1533
internal static void ShowDesignerVerbs(ActivityDesigner designer,
Point
location, ICollection<DesignerVerb> designerVerbs)
1834
internal static DesignerEdges ClosestEdgeToPoint(
Point
point, Rectangle rect, DesignerEdges edgesToConsider)
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) }));
1877
internal static Rectangle RectangleFromLineSegments(
Point
[] segments)
1883
Point
leftTop = segments[0];
1884
Point
rightBottom = segments[0];
1886
foreach (
Point
point in segments)
1900
internal static bool PointOnLineSegment(
Point
point,
Point
[] line, Size hitAreaSize)
1916
internal static double DistanceFromPointToRectangle(
Point
point, Rectangle rect)
1936
internal static double DistanceFromPointToLineSegment(
Point
point,
Point
[] line)
1950
internal static float SlopeOfLineSegment(
Point
start,
Point
end)
1971
internal static double DistanceBetweenPoints(
Point
point1,
Point
point2)
1978
internal static double DistanceOfLineSegments(
Point
[] segments)
1987
internal static
Point
MidPointOfLineSegment(
Point
point1,
Point
point2)
AuthoringOM\Design\DesignerInterfaces.cs (12)
121
bool OnMouseDragBegin(
Point
initialPoint, MouseEventArgs e);
136
bool OnShowContextMenu(
Point
screenMenuPoint);
161
public
Point
Translation =
Point
.Empty;
176
private
Point
snapPoint =
Point
.Empty;
177
private
Point
dragInitiationPoint =
Point
.Empty;
180
internal ActivityDragEventArgs(DragEventArgs dragEventArgs,
Point
dragInitiationPoint,
Point
point, List<Activity> draggedActivities)
206
public
Point
DragImageSnapPoint
222
public
Point
DragInitiationPoint
AuthoringOM\Design\DesignerWidgets.cs (29)
319
public
Point
Location
406
public virtual void OnMouseDragBegin(
Point
initialDragPoint, MouseEventArgs e)
425
Point
mousePoint = new Point(e.X, e.Y);
455
Point
mousePoint = new Point(e.X, e.Y);
506
protected ScrollButton HitTest(
Point
mousePoint)
629
public
Point
Location
730
public ItemInfo HitTest(
Point
point)
777
public virtual void OnMouseDragBegin(
Point
initialDragPoint, MouseEventArgs e)
1000
public void Show(
Point
location)
1068
public Palette(ItemPalette parent,
Point
location)
1176
Point
mousePoint = new Point(e.X, e.Y);
1203
Point
mousePoint = new Point(e.X, e.Y);
1245
Point
imagePoint = new Point(itemBounds.Left + 3, itemBounds.Top + 3);
1257
graphics.DrawImage(this.enabledItems[i].Image, new Rectangle(imagePoint, imageSize), new Rectangle(
Point
.Empty, imageSize), GraphicsUnit.Pixel);
1286
private void PreparePalette(
Point
location)
1291
Point
point = location;
1904
Point
mousePosition = PointToClient(Control.MousePosition);
2261
Point
screenCoOrd = this.parentControl.PointToScreen(new Point(this.inplaceTipRectangle.Left, this.inplaceTipRectangle.Top));
2572
public
Point
Location
2603
public ItemInfo HitTest(
Point
point)
2617
Point
point = new Point(e.X, e.Y);
3229
public
Point
Location
3244
Point
descRectanglePos =
Point
.Empty;
3249
Point
previewModeBitmapPos =
Point
.Empty;
3259
Point
location =
Point
.Empty;
3470
graphics.DrawImage(previewedActivityImage, destnRectangle, new Rectangle(
Point
.Empty, previewedActivityImage.Size), GraphicsUnit.Pixel);
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\FreeFormDesigner.cs (15)
271
public override
Point
Location
286
List<
Point
> containedDesignerLocations = new List<
Point
>();
510
public void MoveContainedDesigner(ActivityDesigner containedDesigner,
Point
newLocation)
542
public override HitTestInfo HitTest(
Point
point)
784
Point
newLocation = Location;
885
Point
dropPoint = new Point(e.X, e.Y);
886
Point
[] movedLocations = FreeFormDragDropManager.GetDesignerLocations(e.DragInitiationPoint, dropPoint, e.Activities);
894
Point
location = (newActivities.Contains(designerToMove.Activity)) ? dropPoint : movedLocations[i];
914
Point
location = Location;
1111
Point
leftTop = new Point(int.MaxValue, int.MaxValue), rightBottom = new Point(int.MinValue, int.MinValue);
1308
public
Point
GetLocation(Activity activity)
1310
Point
location =
Point
.Empty;
1317
public void SetLocation(Activity activity,
Point
location)
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 (3)
14
private
Point
glyphPoint =
Point
.Empty;
16
public ConnectorDragDropGlyph(int connectorIndex,
Point
connectorCenter)
AuthoringOM\Design\MessageFilters\AutoScrollExpandMessageFilter.cs (6)
42
Point
clientPoint = ParentView.PointToClient(new Point(eventArgs.X, eventArgs.Y));
110
private ScrollDirection AutoScrollDirectionFromPoint(
Point
clientPoint)
112
Rectangle clientRectangle = new Rectangle(
Point
.Empty, ParentView.ViewPortSize);
153
Rectangle clientRectangle = new Rectangle(
Point
.Empty, ParentView.ViewPortSize);
186
Point
scrollPosition = parentView.ScrollPosition;
209
Point
scrollPosition = parentView.ScrollPosition;
AuthoringOM\Design\MessageFilters\ConnectionManager.cs (28)
31
private Nullable<
Point
> initialDragPoint = null;
80
Point
cursorPoint =
Point
.Empty;
86
Point
clientPoint = new Point(eventArgs.X, eventArgs.Y);
91
Point
logicalPoint = workflowView.ClientPointToLogical(clientPoint);
94
this.initialDragPoint = new
Point
?(logicalPoint);
113
Point
cursorPoint =
Point
.Empty;
115
Point
clientPoint = new Point(eventArgs.X, eventArgs.Y);
119
Point
logicalPoint = workflowView.ClientPointToLogical(clientPoint);
156
Point
cursorPoint =
Point
.Empty;
157
Point
clientPoint = new Point(eventArgs.X, eventArgs.Y);
166
Point
logicalPoint = workflowView.ClientPointToLogical(clientPoint);
195
Point
cursorPoint =
Point
.Empty;
201
Point
clientPoint = new Point(eventArgs.X, eventArgs.Y);
204
Point
logicalPoint = workflowView.ClientPointToLogical(clientPoint);
238
connector.OnPaintSelected(new ActivityDesignerPaintEventArgs(e.Graphics, connector.ParentDesigner.Bounds, viewPort, connector.ParentDesigner.DesignerTheme), (selectedComponents == selectionService.PrimarySelection), new
Point
[] { });
263
private ConnectorEditor GetConnectorEditor(
Point
editPoint, HitTestInfo messageContext)
291
private bool CanBeginEditing(
Point
editPoint, HitTestInfo messageContext)
312
private void BeginEditing(ConnectorEditor editableConnector,
Point
editPoint)
323
private void ContinueEditing(
Point
editPoint)
347
private void EndEditing(Nullable<
Point
> editPoint)
370
this.connectorEditor.OnEndEditing((editPoint != null) ? editPoint.Value :
Point
.Empty, (editPoint != null));
418
private bool UpdateCursor(Nullable<
Point
> cursorPoint)
501
private static ConnectionPoint[] GetSnappableConnectionPoints(
Point
currentPoint, ConnectionPoint sourceConnectionPoint, ConnectionPoint activeConnectionPoint, ActivityDesigner activityDesigner, out ConnectionPoint snappedConnectionPoint)
564
private static ConnectionPoint[] GetHighlightableConnectionPoints(
Point
currentPoint, ActivityDesigner activityDesigner)
AuthoringOM\Design\MessageFilters\DragDropManager.cs (20)
26
private
Point
dragImagePointInClientCoOrd =
Point
.Empty;
33
private
Point
dragInitiationPoint =
Point
.Empty;
81
Point
clientPoint = new Point(eventArgs.X, eventArgs.Y);
102
Point
clientPoint = new Point(eventArgs.X, eventArgs.Y);
110
Point
logicalPoint = parentView.ClientPointToLogical(clientPoint);
265
Point
clientPoint = parentView.PointToClient(new Point(eventArgs.X, eventArgs.Y));
266
Point
logicalPoint = parentView.ScreenPointToLogical(new Point(eventArgs.X, eventArgs.Y));
304
Point
midPointInClientCoOrd = parentView.LogicalPointToClient(dragdropEventArgs.DragImageSnapPoint);
327
Point
clientPoint = parentView.PointToClient(new Point(eventArgs.X, eventArgs.Y));
328
Point
logicalPoint = parentView.ScreenPointToLogical(new Point(eventArgs.X, eventArgs.Y));
331
Point
oldDragImagePoint = this.dragImagePointInClientCoOrd;
381
Point
midPointInClientCoOrd = parentView.LogicalPointToClient(dragdropEventArgs.DragImageSnapPoint);
418
Point
clientPoint = parentView.PointToClient(new Point(eventArgs.X, eventArgs.Y));
419
Point
logicalPoint = parentView.ScreenPointToLogical(new Point(eventArgs.X, eventArgs.Y));
640
public
Point
DragInitiationPoint
673
Rectangle imageRectangle = (image != null) ? new Rectangle(
Point
.Empty, image.Size) : Rectangle.Empty;
674
Rectangle descriptionRectangle = (description.Length > 0) ? new Rectangle(
Point
.Empty, new Size(AmbientTheme.DragImageTextSize.Width, parentView.Font.Height + 2)) : Rectangle.Empty;
687
draggedImageGraphics.DrawImage(image, new Rectangle(
Point
.Empty, image.Size));
AuthoringOM\Design\MessageFilters\DragSelectionMessageFilter.cs (5)
15
private
Point
startDrag =
Point
.Empty;
16
private
Point
endDrag =
Point
.Empty;
57
Point
logicalPoint = parentView.ClientPointToLogical(new Point(eventArgs.X, eventArgs.Y));
AuthoringOM\Design\MessageFilters\DynamicActionMessageFilter.cs (10)
114
Point
clientPoint = new Point(eventArgs.X, eventArgs.Y);
166
Point
clientPoint = new Point(eventArgs.X, eventArgs.Y);
242
Point
clientPoint = new Point(eventArgs.X, eventArgs.Y);
285
UpdateTransparency(
Point
.Empty);
302
Point
actionLocation = GetActionBounds(i).Location;
321
Rectangle bounds = new Rectangle(
Point
.Empty, ParentView.ViewPortSize);
336
private void UpdateTransparency(
Point
point)
547
ActivityDesignerPaint.DrawImage(graphics, buttonImage, buttonBounds, new Rectangle(
Point
.Empty, buttonImage.Size), DesignerContentAlignment.Fill, transparency, (button.State == ActionButton.States.Disabled));
559
ActivityDesignerPaint.DrawImage(graphics, buttonImage, buttonBounds, new Rectangle(
Point
.Empty, buttonImage.Size), DesignerContentAlignment.Fill, this.transparency, false);
572
return new Rectangle(
Point
.Empty, size);
AuthoringOM\Design\MessageFilters\FreeFormDragDropManager.cs (21)
24
private
Point
movedDesignerImagePoint =
Point
.Empty;
38
Point
clientPoint = parentView.PointToClient(new Point(eventArgs.X, eventArgs.Y));
39
Point
logicalPoint = parentView.ScreenPointToLogical(new Point(eventArgs.X, eventArgs.Y));
54
Point
[] previousLocations = GetDesignerLocations(DragInitiationPoint, this.movedDesignerImagePoint, DraggedActivities);
63
Point
clientPoint = parentView.PointToClient(new Point(eventArgs.X, eventArgs.Y));
64
Point
logicalPoint = parentView.ScreenPointToLogical(new Point(eventArgs.X, eventArgs.Y));
72
Point
[] newLocations = GetDesignerLocations(DragInitiationPoint, this.movedDesignerImagePoint, DraggedActivities);
120
Point
[] previousLocations = GetDesignerLocations(DragInitiationPoint, this.movedDesignerImagePoint, DraggedActivities);
129
Point
clientPoint = parentView.PointToClient(Control.MousePosition);
130
Point
logicalPoint = parentView.ScreenPointToLogical(Control.MousePosition);
138
Point
[] newLocations = GetDesignerLocations(DragInitiationPoint, this.movedDesignerImagePoint, DraggedActivities);
163
Point
[] locations = GetDesignerLocations(DragInitiationPoint, this.movedDesignerImagePoint, DraggedActivities);
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);
220
private void InvalidateDraggedImages(
Point
[] locations)
244
internal static
Point
[] GetDesignerLocations(
Point
startPoint,
Point
endPoint, ICollection<Activity> activitiesToMove)
246
List<
Point
> locations = new List<
Point
>();
251
Point
location = endPoint;
AuthoringOM\Design\MessageFilters\GlyphManager.cs (4)
277
private void RefreshActiveGlyph(
Point
point)
318
internal bool IsPointInsideAnyRectangle(
Point
p)
329
private DesignerGlyph GlyphFromPoint(
Point
point, out ActivityDesigner activityDesigner)
338
ActivityDesigner[] containedDesigners = GetActivityDesigners(parentView.ClientRectangleToLogical(new Rectangle(
Point
.Empty, parentView.ViewPortSize)));
AuthoringOM\Design\MessageFilters\PanningMessageFilter.cs (6)
16
private
Point
panPoint =
Point
.Empty;
48
protected override bool OnShowContextMenu(
Point
menuPoint)
85
SetPanPoint(
Point
.Empty);
104
private void SetPanPoint(
Point
value)
107
this.panningActive = (this.panPoint !=
Point
.Empty);
AuthoringOM\Design\MessageFilters\ReadonlyMessageFilter.cs (1)
105
protected override bool OnShowContextMenu(
Point
menuPoint)
AuthoringOM\Design\MessageFilters\ResizingMessageFilter.cs (11)
32
Point
clientPoint = new Point(eventArgs.X, eventArgs.Y);
33
Point
logicalPoint = workflowView.ClientPointToLogical(clientPoint);
51
Point
clientPoint = new Point(eventArgs.X, eventArgs.Y);
52
Point
logicalPoint = workflowView.ClientPointToLogical(clientPoint);
151
private ActivityDesigner GetDesignerToResize(
Point
point, out DesignerEdges sizingEdge)
189
private DesignerEdges GetSizingEdge(ActivityDesigner designer,
Point
point)
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)
268
private void UpdateDesignerSize(
Point
point, ActivityDesigner designerToSize, DesignerEdges sizingEdge)
AuthoringOM\Design\MessageFilters\WindowManager.cs (6)
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);
338
protected override bool OnShowContextMenu(
Point
screenMenuPoint)
414
Point
scrollPosition = parentView.ScrollPosition;
434
Point
scrollPosition = parentView.ScrollPosition;
AuthoringOM\Design\MessageFilters\WorkflowDesignerMessageFilter.cs (3)
134
protected virtual bool OnShowContextMenu(
Point
screenMenuPoint)
325
bool IWorkflowDesignerMessageSink.OnMouseDragBegin(
Point
initialPoint, MouseEventArgs eventArgs)
469
bool IWorkflowDesignerMessageSink.OnShowContextMenu(
Point
screenMenuPoint)
AuthoringOM\Design\MessageFilters\ZoomingMessageFilter.cs (7)
61
protected override bool OnShowContextMenu(
Point
menuPoint)
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));
176
private void UpdateZoom(int zoomLevel,
Point
center)
181
Point
layoutOrigin = parentView.LogicalPointToClient(
Point
.Empty);
187
Point
newCenter = new Point((int)((float)parentView.HScrollBar.Maximum * relativeCenterF.X), (int)((float)parentView.VScrollBar.Maximum * relativeCenterF.Y));
AuthoringOM\Design\ParallelActivityDesigner.cs (18)
220
ReadOnlyCollection<
Point
> connectionPoints = GetInnerConnections(DesignerEdges.Top | DesignerEdges.Bottom);
221
Point
location = (connectionPoints.Count > 0) ? new Point(Location.X, connectionPoints[0].Y) : Location;
275
protected override Rectangle[] GetDropTargets(
Point
dropPoint)
343
ReadOnlyCollection<
Point
> firstDesignerConnections = firstDesigner.GetConnections(DesignerEdges.Top | DesignerEdges.Bottom);
346
ReadOnlyCollection<
Point
> lastDesignerConnections = lastDesigner.GetConnections(DesignerEdges.Top | DesignerEdges.Bottom);
348
Point
[] parallelLinks = new
Point
[2];
380
ReadOnlyCollection<
Point
> designerConnections = activityDesigner.GetConnections(DesignerEdges.Top | DesignerEdges.Bottom);
382
Point
[] connectingLine = new
Point
[2];
402
Rectangle[] dropTargets = GetDropTargets(
Point
.Empty);
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);
431
ReadOnlyCollection<
Point
> firstDesignerConnections = firstDesigner.GetConnections(DesignerEdges.Top | DesignerEdges.Bottom);
433
Point
[] connectorPoints = new
Point
[2];
447
ReadOnlyCollection<
Point
> lastDesignerConnections = lastDesigner.GetConnections(DesignerEdges.Top | DesignerEdges.Bottom);
449
Point
[] connectorPoints = new
Point
[2];
AuthoringOM\Design\SequentialActivityDesigner.cs (21)
190
ReadOnlyCollection<
Point
> containerConnections = GetInnerConnections(DesignerEdges.Top | DesignerEdges.Bottom);
191
Point
containerStartConnection = new Point();
192
Point
containerEndConnection = new Point();
203
ReadOnlyCollection<
Point
> startDesignerConnections = startDesigner.GetConnections(DesignerEdges.Top | DesignerEdges.Bottom);
207
List<
Point
> connections = new List<
Point
>();
223
ReadOnlyCollection<
Point
> designerFromConnections = designerFrom.GetConnections(DesignerEdges.Top | DesignerEdges.Bottom);
225
ReadOnlyCollection<
Point
> designerToConnections = designerTo.GetConnections(DesignerEdges.Top | DesignerEdges.Bottom);
233
ReadOnlyCollection<
Point
> endDesignerConnections = endDesigner.GetConnections(DesignerEdges.Top | DesignerEdges.Bottom);
237
List<
Point
> connections = new List<
Point
>();
300
public override HitTestInfo HitTest(
Point
point)
389
protected override Rectangle[] GetDropTargets(
Point
dropPoint)
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);
445
ReadOnlyCollection<
Point
> connectionPoints = GetInnerConnections(DesignerEdges.Top | DesignerEdges.Bottom);
446
Point
location = (connectionPoints.Count > 0) ? connectionPoints[0] : Location;
518
Rectangle logicalViewPort = parentView.ClientRectangleToLogical(new Rectangle(
Point
.Empty, parentView.ViewPortSize));
526
Point
glyphLocation =
Point
.Empty;
AuthoringOM\Design\SequentialWorkflowRootDesigner.cs (3)
257
protected override ReadOnlyCollection<
Point
> GetInnerConnections(DesignerEdges edges)
259
List<
Point
> connectionPoints = new List<
Point
>(base.GetInnerConnections(edges));
AuthoringOM\Design\StructuredCompositeActivityDesigner.cs (11)
439
protected virtual ReadOnlyCollection<
Point
> GetInnerConnections(DesignerEdges edges)
441
List<
Point
> connectionPoints = new List<
Point
>(GetConnections(edges));
452
protected virtual Rectangle[] GetDropTargets(
Point
dropPoint)
470
protected void DrawConnectors(Graphics graphics, Pen pen,
Point
[] points, LineAnchor startCap, LineAnchor endCap)
543
Point
location = Location;
615
protected override void OnShowSmartTagVerbs(
Point
smartTagPoint)
637
Point
location = PointToScreen(smartTagPoint);
688
private
Point
SnapInToDropTarget(ActivityDragEventArgs e)
700
return
Point
.Empty;
708
Point
dropPoint = new Point(e.X, e.Y);
AuthoringOM\Design\WorkflowLayouts.cs (53)
45
public abstract
Point
RootDesignerAlignment { get; }
47
public abstract bool IsCoOrdInLayout(
Point
logicalCoOrd);
50
public abstract
Point
MapInCoOrdToLayout(
Point
logicalPoint);
51
public abstract
Point
MapOutCoOrdFromLayout(
Point
logicalPoint);
92
public override
Point
RootDesignerAlignment
100
public override bool IsCoOrdInLayout(
Point
logicalCoOrd)
115
public override
Point
MapInCoOrdToLayout(
Point
logicalPoint)
120
public override
Point
MapOutCoOrdFromLayout(
Point
logicalPoint)
142
Rectangle workspaceRectangle = new Rectangle(
Point
.Empty, memoryBitmap.Size);
157
Point
[] logicalViewPortOrigin = new
Point
[] { viewPortData.LogicalViewPort.Location };
178
ActivityDesignerPaint.DrawImage(graphics, ambientTheme.WorkflowWatermarkImage, this.parentView.RootDesigner.Bounds, new Rectangle(
Point
.Empty, ambientTheme.WorkflowWatermarkImage.Size), ambientTheme.WatermarkAlignment, AmbientTheme.WatermarkTransparency, false);
195
Rectangle bitmapArea = new Rectangle(
Point
.Empty, memoryBitmap.Size);
245
Point
[] logicalViewPortOrigin = new
Point
[] { viewPortData.LogicalViewPort.Location };
298
public override
Point
MapInCoOrdToLayout(
Point
logicalPoint)
305
public override
Point
MapOutCoOrdFromLayout(
Point
logicalPoint)
378
public override
Point
RootDesignerAlignment
382
Point
alignment =
Point
.Empty;
400
public override bool IsCoOrdInLayout(
Point
logicalCoOrd)
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);
481
public override
Point
MapInCoOrdToLayout(
Point
logicalPoint)
488
Point
delta = new Point(logicalPoint.X - pageLayoutData.ViewablePageBounds.Left, logicalPoint.Y - pageLayoutData.ViewablePageBounds.Top);
497
public override
Point
MapOutCoOrdFromLayout(
Point
logicalPoint)
503
Point
delta = new Point(logicalPoint.X - pageLayoutData.LogicalPageBounds.Left, logicalPoint.Y - pageLayoutData.LogicalPageBounds.Top);
523
graphics.FillRectangle(Brushes.White, new Rectangle(
Point
.Empty, memoryBitmap.Size));
538
Point
[] points = new
Point
[] { viewPortData.Translation, new Point(viewPortData.ViewPortSize) };
570
points = new
Point
[] { viewPortBitmapArea.Location, new Point(viewPortBitmapArea.Size) };
575
ActivityDesignerPaint.DrawImage(graphics, ambientTheme.WorkflowWatermarkImage, viewPortBitmapArea, new Rectangle(
Point
.Empty, ambientTheme.WorkflowWatermarkImage.Size), ambientTheme.WatermarkAlignment, AmbientTheme.WatermarkTransparency, false);
596
Rectangle workspaceRectangle = new Rectangle(
Point
.Empty, memoryBitmap.Size);
610
Point
[] points = new
Point
[] { viewPortData.Translation, new Point(viewPortData.ViewPortSize) };
661
Point
bitmapDrawingPoint =
Point
.Empty;
664
points = new
Point
[] { bitmapDrawingPoint };
676
points = new
Point
[] { viewPortBitmapArea.Location, new Point(viewPortBitmapArea.Size) };
804
Point
pageLocation =
Point
.Empty;
808
Point
viewablePageLocation =
Point
.Empty;
923
public
Point
Position;
925
public PageLayoutData(Rectangle logicalPageBounds, Rectangle pageBounds, Rectangle viewablePageBounds,
Point
rowColumnPos)
AuthoringOM\Design\WorkflowPrinting.cs (14)
36
private
Point
totalPrintablePages =
Point
.Empty; //number of pages in x and y
37
private
Point
currentPrintablePage =
Point
.Empty; //page number (in the grid x,y)) we are printing right now
38
private
Point
workflowAlignment =
Point
.Empty; //amount of alignment translation
94
this.currentPrintablePage =
Point
.Empty;
138
ActivityDesignerPaint.DrawImage(graphics, ambientTheme.WorkflowWatermarkImage, boundingRectangle, new Rectangle(
Point
.Empty, ambientTheme.WorkflowWatermarkImage.Size), ambientTheme.WatermarkAlignment, AmbientTheme.WatermarkTransparency, false);
148
Point
pageOffset = new Point(this.currentPrintablePage.X * printableArea.Width - this.workflowAlignment.X, this.currentPrintablePage.Y * printableArea.Height - this.workflowAlignment.Y);
157
Point
scaledAlignment =
Point
.Empty;
220
Point
dpi = new Point(Math.Max(NativeMethods.GetDeviceCaps(hDC, NativeMethods.LOGPIXELSX), 1), Math.Max(NativeMethods.GetDeviceCaps(hDC, NativeMethods.LOGPIXELSY), 1));
313
this.workflowView.RootDesigner.Location =
Point
.Empty;
352
this.workflowAlignment =
Point
.Empty;
AuthoringOM\Design\WorkflowView.cs (44)
115
private
Point
prePreviewScroll =
Point
.Empty;
349
PointF oldRelativeCenter =
Point
.Empty;
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));
454
public
Point
ScrollPosition
902
Point
scrollPosition = new Point(0, 0);
1039
viewPortData.LogicalViewPort = ClientRectangleToLogical(new Rectangle(
Point
.Empty, ViewPortSize));
1159
Point
clientPoint = PointToClient(Control.MousePosition);
1176
Point
clientPoint = PointToClient(Control.MousePosition);
1419
Point
location = (LParam != -1) ? new Point(LParam) : Control.MousePosition;
1535
viewPortData.LogicalViewPort = new Rectangle(
Point
.Empty, new Size(rootDesigner.Bounds.Width + 2 * DefaultWorkflowLayout.Separator.Width, rootDesigner.Bounds.Height + 2 * DefaultWorkflowLayout.Separator.Height));
1538
viewPortData.Translation =
Point
.Empty;
1579
Point
[] logicalViewPortOrigin = new
Point
[] { viewPortData.LogicalViewPort.Location };
1660
viewPortGraphics.FillRectangle(shadowDepthBrush, new Rectangle(
Point
.Empty, new Size(memoryBitmap.Size.Width - viewPortData.ShadowDepth.Width - 1, memoryBitmap.Size.Height - viewPortData.ShadowDepth.Height - 1)));
1737
Rectangle clientRectangle = ClientRectangleToLogical(new Rectangle(
Point
.Empty, ViewPortSize));
1761
Point
scrollPosition = ScrollPosition;
2030
public
Point
LogicalPointToScreen(
Point
logicalPoint)
2035
public
Point
ScreenPointToLogical(
Point
screenPoint)
2040
public
Point
LogicalPointToClient(
Point
logicalPoint)
2045
public
Point
ClientPointToLogical(
Point
clientPoint)
2052
Point
[] points = new
Point
[] { new Point(logicalSize) };
2064
Point
[] points = new
Point
[] { new Point(clientSize) };
2092
internal bool IsClientPointInActiveLayout(
Point
clientPoint)
2094
Point
logicalPoint = ClientPointToLogical(clientPoint, false);
2103
private
Point
LogicalPointToClient(
Point
point, bool mapToLayout)
2111
Point
[] points = new
Point
[] { point };
2121
private
Point
ClientPointToLogical(
Point
point, bool mapToLayout)
2123
Point
[] points = new
Point
[] { point };
2174
Point
clientPoint =
Point
.Empty;
2187
Point
logicalPoint = this.workflowView.ClientPointToLogical(clientPoint);
2263
return new Rectangle(this.workflowView.PointToScreen(
Point
.Empty), this.workflowView.ViewPortSize);
AuthoringOM\Serializer\WorkflowMarkupSerializationManager.cs (1)
500
else if (typeof(
Point
).IsAssignableFrom(objectType))
System.WorkflowServices (4)
System\Workflow\Activities\Design\RichListBox.cs (2)
24
Dictionary<object,
Point
> itemLocations;
34
itemLocations = new Dictionary<object,
Point
>();
System\Workflow\ComponentModel\Design\ActivityDesignerHighlighter.cs (2)
97
Point
scrollPosition = workflowView.ClientPointToLogical(owner.Location);
119
Point
scrollPosition = workflowView.ClientPointToLogical(e.Location);