875 instantiations of Point
System.Drawing (22)
commonui\System\Drawing\Advanced\Gdiplus.cs (1)
3245points[index] = new Point( (int)pt.X, (int) pt.Y);
commonui\System\Drawing\Advanced\GraphicsPath.cs (4)
509return IsVisible(new Point(x,y), (Graphics)null); 530return IsVisible(new Point(x,y), graphics); 625return IsOutlineVisible(new Point(x,y), pen, (Graphics)null); 648return IsOutlineVisible(new Point(x,y), pen, graphics);
commonui\System\Drawing\BufferedGraphicsContext.cs (1)
164this.targetLoc = new Point(targetRectangle.X, targetRectangle.Y);
commonui\System\Drawing\Graphics.cs (2)
517return new Point(x, y); 4302return IsVisible(new Point(x,y));
commonui\System\Drawing\Point.cs (6)
38public static readonly Point Empty = new Point(); 191return new Point(pt.X + sz.Width, pt.Y + sz.Height); 200return new Point(pt.X - sz.Width, pt.Y - sz.Height); 209return new Point((int)Math.Ceiling(value.X), (int)Math.Ceiling(value.Y)); 218return new Point((int)value.X, (int)value.Y); 227return new Point((int)Math.Round(value.X), (int)Math.Round(value.Y));
commonui\System\Drawing\PointConverter.cs (2)
88return new Point(values[0], values[1]); 167return new Point((int)x,
commonui\System\Drawing\Printing\PrinterUnitConvert.cs (1)
56return new Point(
commonui\System\Drawing\Rectangle.cs (1)
100return new Point(X, Y);
commonui\System\Drawing\Region.cs (1)
889return IsVisible(new Point(x, y), g);
commonui\System\Drawing\Size.cs (1)
127return new Point(size.Width, size.Height);
misc\GDI\NativeMethods.cs (1)
237return new System.Drawing.Point(this.x, this.y);
misc\GDI\WindowsRegion.cs (1)
196return 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)
91this._taskPanel.Location = new System.Drawing.Point(0, 63); 101this._bottomDividerLabel.Location = new System.Drawing.Point(0, 382); 113this._headerPanel.Location = new System.Drawing.Point(0, 0); 120this._glyphPictureBox.Location = new System.Drawing.Point(0, 0); 130this._captionLabel.Location = new System.Drawing.Point(71, 17);
System\Data\WebControls\Design\Util\WizardForm.cs (8)
124this._wizardButtonsTableLayoutPanel.Location = new System.Drawing.Point(205, 394); 135this._previousButton.Location = new System.Drawing.Point(0, 0); 144this._dummyLabel1.Location = new System.Drawing.Point(75, 0); 154this._nextButton.Location = new System.Drawing.Point(78, 0); 163this._dummyLabel2.Location = new System.Drawing.Point(153, 0); 174this._finishButton.Location = new System.Drawing.Point(160, 0); 183this._dummyLabel3.Location = new System.Drawing.Point(235, 0); 194this._cancelButton.Location = new System.Drawing.Point(242, 0);
System.Web.Mobile (60)
UI\MobileControls\Design\AppliedDeviceFiltersDialog.cs (9)
159this._appliedFiltersList.Location = new System.Drawing.Point(0, 74); 165this._btnEditFilters.Location = new System.Drawing.Point(201, 15); 171this._cmdOK.Location = new System.Drawing.Point(120, 334); 187this._pnlMain.Location = new System.Drawing.Point(6, 8); 193this._tbArgument.Location = new System.Drawing.Point(0, 306); 200this._lblArgument.Location = new System.Drawing.Point(0, 290); 207this._cmdCancel.Location = new System.Drawing.Point(201, 334); 218this._cbAvailableFilters.Location = new System.Drawing.Point(0, 16); 225this._btnApplyFilter.Location = new System.Drawing.Point(0, 44);
UI\MobileControls\Design\DeviceFilterEditorDialog.cs (19)
235this._txtType.Location = new System.Drawing.Point(0, 20); 238this._lblHeader.Location = new System.Drawing.Point(0, 0); 245this._pnlHeader.Location = new System.Drawing.Point(6, 5); 252this._pnlMain.Location = new System.Drawing.Point(6, 27); 257this._filterList.Location = new System.Drawing.Point(0, 0); 258this._rbCompare.Location = new System.Drawing.Point(8, 21); 260this._lblCompare.Location = new System.Drawing.Point(0, 4); 262this._dialogButtons.Location = new System.Drawing.Point(197, 230); 264this._lblType.Location = new System.Drawing.Point(0, 4); 266this._txtMethod.Location = new System.Drawing.Point(0, 64); 268this._txtArgument.Location = new System.Drawing.Point(0, 64); 276this._pnlRight.Location = new System.Drawing.Point(215, 0); 278this._lblMethod.Location = new System.Drawing.Point(0, 48); 280this._glAttributes.Location = new System.Drawing.Point(0, 73); 282this._rbDelegate.Location = new System.Drawing.Point(8, 46); 289this._pnlCompare.Location = new System.Drawing.Point(8, 90); 292this._cbCompare.Location = new System.Drawing.Point(0, 20); 295this._lblArgument.Location = new System.Drawing.Point(0, 48); 301this._pnlDelegate.Location = new System.Drawing.Point(8, 90);
UI\MobileControls\Design\PropertyOverridesDialog.cs (7)
146this._cbChoices.Location = new System.Drawing.Point(0, 16); 148this._cmdOK.Location = new System.Drawing.Point(120, 290); 149this._cmdCancel.Location = new System.Drawing.Point(201, 290); 150this._btnEditFilters.Location = new System.Drawing.Point(201, 15); 162this._pnlMain.Location = new System.Drawing.Point(6, 5); 168this._pgProperties.Location = new System.Drawing.Point(0, 64); 176this._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); 1293this.LblStyles.Location = new System.Drawing.Point(0, 24); 1298this.CbStyles.Location = new System.Drawing.Point(0, 40); 1301this.BtnEdit.Location = new System.Drawing.Point(164, 39); 1303this.LblHeader.Location = new System.Drawing.Point(0, 0); 1310this.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); 163this._pnlMain.Location = new System.Drawing.Point(6, 5);
UI\MobileControls\Design\Util\DefaultDialogButtons.cs (2)
62CmdOK.Location = new System.Drawing.Point(81, 0); 65CmdCancel.Location = new System.Drawing.Point(162, 0);
UI\MobileControls\Design\Util\EditableTreeList.cs (6)
67TvList.Location = new System.Drawing.Point(0, 16); 85BtnUp.Location = new System.Drawing.Point(182, 16); 92BtnDown.Location = new System.Drawing.Point(182, 48); 99BtnRemove.Location = new System.Drawing.Point(182, 136); 106BtnAdd.Location = new System.Drawing.Point(0, 168); 113this.Location = new System.Drawing.Point(8, Y);
UI\MobileControls\Design\Util\GenericUI.cs (1)
87header.Location = new Point(6, 5);
System.Windows.Forms (396)
misc\GDI\NativeMethods.cs (1)
237return new System.Drawing.Point(this.x, this.y);
misc\GDI\WindowsGraphics2.cs (1)
92Point p = new Point(bounds.X+sideLength/2, bounds.Y+sideLength/2);
misc\GDI\WindowsRegion.cs (1)
196return new Rectangle(new Point(rect.left, rect.top), rect.Size);
winforms\Managed\System\Resources\ResXDataNode.cs (2)
585return new Point(); 809result.ReaderPosition = new Point(this.ReaderPosition.X, this.ReaderPosition.Y);
winforms\Managed\System\Resources\ResXResourceReader.cs (1)
368Point pt = new Point(0, 0);
winforms\Managed\System\WinForms\Button.cs (1)
305Point pt = PointToScreen(new Point(mevent.X, mevent.Y));
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (16)
179Point p1 = new Point(bounds.X + bounds.Width - 1, bounds.Y ); // upper inner right. 180Point p2 = new Point(bounds.X , bounds.Y ); // upper left. 181Point p3 = new Point(bounds.X , bounds.Y + bounds.Height - 1 ); // bottom inner left. 182Point p4 = new Point(bounds.X + bounds.Width - 1, bounds.Y + bounds.Height - 1 ); // inner bottom right. 273Point p1 = new Point(bounds.X + bounds.Width - 1, bounds.Y ); // upper inner right. 274Point p2 = new Point(bounds.X , bounds.Y ); // upper left. 275Point p3 = new Point(bounds.X , bounds.Y + bounds.Height - 1 ); // bottom inner left. 276Point p4 = new Point(bounds.X + bounds.Width - 1, bounds.Y + bounds.Height - 1 ); // inner bottom right. 343Point p1 = new Point(bounds.X + bounds.Width - 1, bounds.Y ); // upper inner right. 344Point p2 = new Point(bounds.X , bounds.Y ); // upper left. 345Point p3 = new Point(bounds.X , bounds.Y + bounds.Height - 1 ); // bottom inner left. 346Point p4 = new Point(bounds.X + bounds.Width - 1, bounds.Y + bounds.Height - 1 ); // inner bottom right. 446Point p1 = new Point(r.Right - 1, r.Top ); // upper inner right. 447Point p2 = new Point(r.Left , r.Top ); // upper left. 448Point p3 = new Point(r.Left , r.Bottom - 1); // bottom inner left. 449Point p4 = new Point(r.Right - 1, r.Bottom - 1); // inner bottom right.
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxBaseAdapter.cs (2)
222CheckBoxRenderer.DrawCheckBox(g, new Point(layout.checkBounds.Left, layout.checkBounds.Top), CheckBoxRenderer.ConvertFromButtonState(style, true, Control.MouseIsOver), Control.HandleInternal); 230CheckBoxRenderer.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)); 188RadioButtonRenderer.DrawRadioButton(g, new Point(check.Left, check.Top), RadioButtonRenderer.ConvertFromButtonState(style, Control.MouseIsOver), Control.HandleInternal);
winforms\Managed\System\WinForms\CheckBox.cs (1)
647Point pt = PointToScreen(new Point(mevent.X, mevent.Y));
winforms\Managed\System\WinForms\CheckedListBox.cs (1)
712CheckBoxRenderer.DrawCheckBox(e.Graphics, new Point(box.X, box.Y), cbState, HandleInternal);
winforms\Managed\System\WinForms\ComboBox.cs (8)
1603return new Point(0, 0); 1619return (new Point(comboXMid, comboYMid)); 1844Point pt = new Point(x, y); 3729Point pt = new Point(x, y); 6065Point middle = new Point(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.Height / 2); 6076new Point(middle.X - Offset2Pixels, middle.Y - 1), 6077new Point(middle.X + Offset2Pixels + 1, middle.Y - 1), 6078new Point(middle.X, middle.Y + Offset2Pixels)
winforms\Managed\System\WinForms\ContextMenuStrip.cs (3)
102Rectangle bounds = CalculateDropDownLocation(new Point(x,y), ToolStripDropDownDirection.AboveLeft); 105bounds = CalculateDropDownLocation(new Point(x,y), ToolStripDropDownDirection.BelowLeft); 108bounds = CalculateDropDownLocation(new Point(x,y), ToolStripDropDownDirection.AboveRight);
winforms\Managed\System\WinForms\Control.cs (17)
587this.Location = new Point( left, top ); 3233return new Point(x, y); 3384return new Point(pt.x, pt.y); 10091return new Point(point.x, point.y); 10108return new Point(point.x, point.y); 10382clientOffset = new Point(clientOffset.X - windowRect.left, clientOffset.Y - windowRect.top); 10907Location = new Point(0,0); 12867client = new Point(Width/2, Height/2); 12870client = PointToClientInternal(new Point(x, y)); 13152HelpEventArgs hevent = new HelpEventArgs(new Point(info.MousePos.x, info.MousePos.y)); 13489Point pt = new Point(x,y); 13551Point p = new Point(NativeMethods.Util.SignedLOWORD(m.LParam), NativeMethods.Util.SignedHIWORD(m.LParam)); 16508logPixels = new Point(); 16582Control realTarget = target.GetChildAtPoint(new Point(pt.x, pt.y)); 17020Point pt = new Point(); 17604Point pt = new Point(); 18262bounds.Location = new Point(bounds.X, bounds.Y);
winforms\Managed\System\WinForms\ControlPaint.cs (1)
509Rectangle partOfImageToDraw = new Rectangle(new Point(imageRect.X - imageRectangle.X, imageRect.Y - imageRectangle.Y)
winforms\Managed\System\WinForms\Cursor.cs (2)
279hotSpot = new Point(info.xHotspot, info.yHotspot); 313return new Point(p.x, p.y);
winforms\Managed\System\WinForms\DataGrid.cs (3)
7084Point origin = new Point(0, layout.Data.Y); 7093return new Point(x, y - origin.Y); 9184Point client = DataGrid.PointToClient(new Point(x, y));
winforms\Managed\System\WinForms\DataGridCaption.cs (1)
37private static readonly Point minimumBounds = new Point(50, 30);
winforms\Managed\System\WinForms\DataGridRelationshipRow.cs (3)
776points[0] = new Point(outline.X + outline.Height/2, outline.Bottom); 778points[1] = new Point(points[0].X, bounds.Y + 2*indent + base.Height); 780points[2] = new Point(alignToRight ? bounds.X : bounds.Right,
winforms\Managed\System\WinForms\DataGridView.cs (7)
517this.ptCurrentCell = new Point(-1, -1); 518this.ptAnchorCell = new Point(-1, -1); 519this.ptMouseDownCell = new Point(-2, -2); 520this.ptMouseEnteredCell = new Point(-2, -2); 521this.ptToolTipCell = new Point(-1, -1); 522this.ptMouseDownGridCoord = new Point(-1, -1); 2957Point ptFirstDisplayedCellAddress = new Point(-1, -1);
winforms\Managed\System\WinForms\DataGridViewAccessibleObject.cs (1)
196Point pt = this.owner.PointToClient(new Point(x, y));
winforms\Managed\System\WinForms\DataGridViewCell.cs (3)
1244cellBounds = new Rectangle(new Point(0, 0), GetSize(rowIndex)); 4508this.DataGridView.EditingControl.Location = new Point(editingControlBounds.X, editingControlBounds.Y); 4598this.DataGridView.EditingPanel.Location = new Point(xEditingPanel, yEditingPanel);
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (3)
972NotifyMASSClient(new Point(this.ColumnIndex, rowIndex)); 1078NotifyMASSClient(new Point(e.ColumnIndex, e.RowIndex)); 1908checkBoxCell.NotifyMASSClient(new Point(dataGridViewCell.ColumnIndex, dataGridViewCell.RowIndex));
winforms\Managed\System\WinForms\DataGridViewColumnCollection.cs (3)
299OnCollectionChanged(new CollectionChangeEventArgs(CollectionChangeAction.Add, dataGridViewColumn), false /*changeIsInsertion*/, new Point(-1, -1)); 391OnCollectionChanged(new CollectionChangeEventArgs(CollectionChangeAction.Refresh, null), false /*changeIsInsertion*/, new Point(-1, -1)); 437OnCollectionChanged(new CollectionChangeEventArgs(CollectionChangeAction.Refresh, null), false /*changeIsInsertion*/, new Point(-1, -1));
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (4)
916Point sortGlyphLocation = new Point(0, 0); 962sortGlyphLocation = new Point(valBounds.Left - 972sortGlyphLocation = new Point(valBounds.Right + 1011sortGlyphLocation = new Point(valBounds.Left + (valBounds.Width-sortGlyphWidth)/2,
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (7)
2441Point middle = new Point(dropRect.Left + dropRect.Width / 2, dropRect.Top + dropRect.Height / 2); 2449new Point(middle.X - offset2X, middle.Y - 1), 2450new Point(middle.X + offset2X + 1, middle.Y - 1), 2451new Point(middle.X, middle.Y + offset2Y) 2462Point middle = new Point(dropRect.Left + (dropRect.Width - 1) / 2, 2468Point pt1 = new Point(middle.X - (nonXPTriangleWidth - 1) / 2, middle.Y - nonXPTriangleHeight); 2469Point pt2 = new Point(middle.X + (nonXPTriangleWidth - 1) / 2, middle.Y - nonXPTriangleHeight);
winforms\Managed\System\WinForms\DataGridViewMethods.cs (24)
76this.ptToolTipCell = new Point(columnIndex, rowIndex); 4932return new Point(columnX + x, rowY + y); 14328Debug.Assert(this.CurrentCellAddress == new Point(-1, -1)); 15896newCurrentCell = new Point(columnIndexInserted <= this.ptCurrentCell.X ? this.ptCurrentCell.X + 1 : this.ptCurrentCell.X, 15902newCurrentCell = new Point(-1, -1); 16008newCurrentCell = new Point(this.ptCurrentCell.X, this.ptCurrentCell.Y + insertionCount); 16024newCurrentCell = new Point(-1, -1); 16082newCurrentCell = new Point(this.ptCurrentCell.X, this.ptCurrentCell.Y + dataGridViewRows.Length); 16087newCurrentCell = new Point(-1, -1); 16542this.ptMouseDownGridCoord = new Point(e.X, e.Y); 16780this.ptToolTipCell = new Point(-1, -1); 17528newCurrentCell = new Point(newX, (newX == -1) ? -1 : this.ptCurrentCell.Y); 17551newCurrentCell = new Point(-1, -1); 17693newCurrentCell = new Point(-1, -1); 17736newCurrentCell = new Point(this.ptCurrentCell.X, newY); 18614Debug.Assert(this.CurrentCellAddress == new Point(-1, -1)); 19353Invalidate(new Rectangle(new Point(-pt.X, ColumnHeadersHeight), 19364Invalidate(new Rectangle(new Point(ClientSize.Width - (pt.X - rect.Right) - step, ColumnHeadersHeight), 19371Invalidate(new Rectangle(new Point(0, -pt.Y), 19378Invalidate(new Rectangle(new Point(0, ColumnHeadersHeight), 20393this.editingPanel.Location = new Point(this.Width + 1, 0); 27056AccessibilityNotifyCurrentCellChanged(new Point(this.ptCurrentCell.X, this.ptCurrentCell.Y)); 29861client = new Point(this.Width/2, this.Height/2); 29866client = PointToClientInternal(new Point(x, y));
winforms\Managed\System\WinForms\DataGridViewRowCollection.cs (6)
974OnCollectionChanged(new CollectionChangeEventArgs(CollectionChangeAction.Refresh, null), 0, rowCount, true, false, recreateNewRow, new Point(-1, -1)); 1633Point newCurrentCell = new Point(-1, -1); 1741Point newCurrentCell = new Point(-1, -1); 1915Point newCurrentCell = new Point(-1, -1); 2043Point newCurrentCell = new Point(-1, -1); 2333Point newCurrentCell = new Point(-1, -1);
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (1)
824this.DataGridView.EditingControl.Location = new Point(editingControlBounds.X, editingControlBounds.Y);
winforms\Managed\System\WinForms\DataGridViewUtilities.cs (1)
352Point ptTextLocation = new Point(0, 0);
winforms\Managed\System\WinForms\ErrorProvider.cs (1)
1039mirrordc.ViewportOrigin = new Point(mirrordcOrigin.X + originOffset, mirrordcOrigin.Y);
winforms\Managed\System\WinForms\Form.cs (4)
4448Point p = new Point(); 4489Point p = new Point(); 5006Cursor.Position = new Point(ptToSnap.x, ptToSnap.y); 6063Location = new Point(workingArea.X + x, workingArea.Y + y);
winforms\Managed\System\WinForms\HtmlElementEventArgs.cs (3)
67return new Point(this.NativeHTMLEventObj.GetClientX(), this.NativeHTMLEventObj.GetClientY()); 77return new Point(this.NativeHTMLEventObj.GetOffsetX(), this.NativeHTMLEventObj.GetOffsetY()); 87return new Point(this.NativeHTMLEventObj.GetX(), this.NativeHTMLEventObj.GetY());
winforms\Managed\System\WinForms\HtmlWindow.cs (1)
192return new Point(((UnsafeNativeMethods.IHTMLWindow3)this.NativeHtmlWindow).GetScreenLeft(),
winforms\Managed\System\WinForms\Label.cs (1)
1740Point pt = new Point(unchecked((int)(long)m.LParam));
winforms\Managed\System\WinForms\Layout\FlowLayout.cs (3)
57Rectangle measureBounds = new Rectangle(new Point(0, 0), proposedConstraints); 352Point pt = new Point(value.X, value.Y); 427Point pt = new Point(newBounds.X, newBounds.Y);
winforms\Managed\System\WinForms\LinkLabel.cs (1)
2677Point p = Owner.PointToClient(new Point(x, y));
winforms\Managed\System\WinForms\ListBox.cs (2)
2414Point pt = new Point(x,y); 2461Point rpt = new Point(rx,ry);
winforms\Managed\System\WinForms\ListView.cs (4)
3093return FindItem(true, text, isPrefixSearch, new Point(0,0), SearchDirectionHint.Down, startIndex, includeSubItemsInSearch); 3150return FindItem(false, String.Empty, false, new Point(x, y), searchDirection, -1, false); 3381return new Point(pt.x, pt.y); 6188startingPoint = new Point(nmlvif.lvfi.ptX, nmlvif.lvfi.ptY);
winforms\Managed\System\WinForms\ListViewItem.cs (2)
56private Point position = new Point(-1,-1); 1358return !this.position.Equals(new Point(-1,-1));
winforms\Managed\System\WinForms\MonthCalendar.cs (2)
1590return new HitTestInfo(new Point(mchi.pt_x, mchi.pt_y), hitArea, DateTimePicker.SysTimeToDateTime(sys)); 1593return new HitTestInfo(new Point(mchi.pt_x, mchi.pt_y), hitArea);
winforms\Managed\System\WinForms\MouseEvent.cs (1)
143return new Point(x,y);
winforms\Managed\System\WinForms\Printing\PrintControllerWithStatusDialog.cs (3)
269label1.Location = new Point(8, 16); 279button1.Location = new Point(88, 88); 287tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
winforms\Managed\System\WinForms\Printing\PrintPreviewControl.cs (10)
38Point position = new Point(0,0); 427screendpi = new Point(UnsafeNativeMethods.GetDeviceCaps(new HandleRef(tempGraphics, dc), NativeMethods.LOGPIXELSX), 433Size controlPhysicalSize = new Size(PixelsToPhysical(new Point(Size), screendpi)); 444SetVirtualSizeNoInvalidate(new Size(PhysicalToPixels(new Point(virtualX, virtualY), screendpi))); 573Size controlPhysicalSize = new Size(PixelsToPhysical(new Point(Size), screendpi)); 576Point virtualPixels = new Point(VirtualSize); 579Point offset = new Point(Math.Max(0, (Size.Width - virtualPixels.X) / 2), 611Point imagePixels = PhysicalToPixels(new Point(imageSize), screendpi); 674return new Point(PhysicalToPixels(physical.X, dpi.X), 688return new Point(PixelsToPhysical(pixels.X, dpi.X),
winforms\Managed\System\WinForms\Printing\PrintPreviewDialog.cs (1)
1505previewControl.Location = new Point(0, 43);
winforms\Managed\System\WinForms\PropertyGrid.cs (8)
2348ControlPaint.DrawReversibleLine(new Point(rc.X+i, rc.Y), new Point(rc.X+i, rc.Y+rc.Height), ctlDrawTo.BackColor); 2353ControlPaint.DrawReversibleLine(new Point(rc.X, rc.Y+i), new Point(rc.X+rc.Width, rc.Y+i), ctlDrawTo.BackColor); 2986gridView.Location = new Point(0,0); 2999gridView.Location = new Point(0, toolStrip.Height + toolStrip.Top); 3012gridView.Location = new Point(0, 0); 5439Point clientPoint = _owningPropertyGrid.PointToClient(new Point((int)x, (int)y));
winforms\Managed\System\WinForms\PropertyGridInternal\DocComment.cs (4)
125m_labelTitle.Location = new Point(cBorder, cBorder); 126m_labelDesc.Location = new Point(cBorder, cBorder + lineHeight); 235m_labelTitle.Location = new Point(cBorder, cBorder); 236m_labelDesc.Location = new Point(cBorder, cBorder + lineHeight);
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (3)
38protected static readonly Point InvalidPoint = new Point(int.MinValue, int.MinValue); 1952this.labelTipPoint = new Point(stringX+2, rect.Y+1); 2248this.ValueToolTipLocation = new Point(rect.X+2, rect.Y-1);
winforms\Managed\System\WinForms\PropertyGridInternal\GridErrorDlg.cs (10)
172this.lblMessage.Location = new System.Drawing.Point(73, 30); 180this.pictureBox.Location = new System.Drawing.Point(3, 3); 191this.detailsBtn.Location = new System.Drawing.Point(3, 3); 206this.overarchingTableLayoutPanel.Location = new System.Drawing.Point(1, 0); 229this.buttonTableLayoutPanel.Location = new System.Drawing.Point(0, 79); 240this.okBtn.Location = new System.Drawing.Point(131, 3); 250this.cancelBtn.Location = new System.Drawing.Point(212, 3); 267this.pictureLabelTableLayoutPanel.Location = new System.Drawing.Point(3, 3); 276this.details.Location = new System.Drawing.Point(4, 114); 341details.Location = new System.Drawing.Point(x, y);
winforms\Managed\System\WinForms\PropertyGridInternal\GridToolTip.cs (1)
185Point locPoint = parent.PointToScreen(new Point(rect.left, rect.top));
winforms\Managed\System\WinForms\PropertyGridInternal\HotCommands.cs (1)
211links[i] = new Point(charLoc, name.Length);
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyDescriptorGridEntry.cs (1)
433return new Point(mouseX, mouseY);
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (15)
41protected static readonly Point InvalidPoint = new Point(int.MinValue, int.MinValue); 91protected static readonly Point InvalidPosition = new Point(int.MinValue, int.MinValue); 149private Point ptOurLocation = new Point(1,1); 557Point pt = PointToScreen( new Point( rect.X, rect.Y ) ); 558return new Point(pt.X + (rect.Width / 2), pt.Y + (rect.Height / 2)); 1275Point newOrigin = new Point(rect.X, rect.Y); 1318Point newOrigin = new Point(r.X, r.Y); 1480Point point = new Point(x, y); 1638Point loc = PointToScreen(new Point(0, 0)); 1713Point loc = PointToScreen(new Point(0, 0)); 1925Point pt = new Point(ROWLABEL,0); 2811Point screenPoint = Edit.PointToScreen(new Point(me.X, me.Y)); 3202lastMouseDown = new Point(me.X, me.Y); 5792dragStart = PointToScreen(new Point(e.X, e.Y)); 5831Point dragPoint = PointToScreen(new Point(e.X, e.Y));
winforms\Managed\System\WinForms\RadioButton.cs (1)
573Point pt = PointToScreen(new Point(mevent.X, mevent.Y));
winforms\Managed\System\WinForms\RichTextBox.cs (1)
2379return new Point(pt.x, pt.y);
winforms\Managed\System\WinForms\ScrollableControl.cs (2)
186return new Point(rect.X, rect.Y); 985return new Point(xCalc, yCalc);
winforms\Managed\System\WinForms\SplitContainer.cs (20)
1789panel2.Location = new Point(panel1.WidthInternal + SplitterWidthInternal, 0); 1792panel1.Location = new Point(Width - panel1.WidthInternal, 0); 1801panel2.Location = new Point(0,0); 1805panel1.Location = new Point(0,0); 1820panel2.Location = new Point(0,panel2Start); 1829panel2.Location = new Point(0, panel2Start); 1841panel2.Location = new Point(0,panel2Start); 1852panel2.Location = new Point(0,0); 1856panel1.Location = new Point(0,0); 2166anchor = new Point(x, y); 2269panel1.Location = new Point(0,0); 2270panel2.Location = new Point(splitterDistance + SplitterWidthInternal, 0); 2273panel1.Location = new Point(Width - splitterDistance, 0); 2274panel2.Location = new Point(0, 0); 2288panel2.Location = new Point(0,0); 2292panel1.Location = new Point(0,0); 2304panel1.Location = new Point(0,0); 2310panel2.Location = new Point(0,panel2Start); 2322panel2.Location = new Point(0,0); 2326panel1.Location = new Point(0,0);
winforms\Managed\System\WinForms\Splitter.cs (1)
974anchor = new Point(x, y);
winforms\Managed\System\WinForms\StatusBar.cs (1)
50private Point lastClick = new Point(0, 0);
winforms\Managed\System\WinForms\StatusStrip.cs (2)
562if (sizeGripBounds.Contains(PointToClient(new Point(x, y)))) { 621if (ClientRectangle.Contains(PointToClient(new Point(x, y)))) {
winforms\Managed\System\WinForms\TabControl.cs (1)
47private static readonly Point DEFAULT_PADDING = new Point(6, 3);
winforms\Managed\System\WinForms\TextBoxBase.cs (3)
1796return new Point(NativeMethods.Util.SignedLOWORD(i), NativeMethods.Util.SignedHIWORD(i)); 2257client = new Point(Width/2, Height/2); 2260client = PointToClientInternal(new Point(x, y));
winforms\Managed\System\WinForms\ThreadExceptionDialog.cs (1)
281pictureBox.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)
52internal static Point InvalidMouseEnter = new Point(Int32.MaxValue, Int32.MaxValue); 2344Point midPointOfCurrent = new Point(selectedItem.Bounds.X + selectedItem.Width / 2, 2365Point otherItemMidLocation = new Point(otherItem.Bounds.X + otherItem.Width/2, (down)? otherItem.Bounds.Top : otherItem.Bounds.Bottom); 2793ToolStripLocationCancelEventArgs cae = new ToolStripLocationCancelEventArgs(new Point(x, y), false); 3500Point itemRelativePoint = item.TranslatePoint(new Point(mea.X, mea.Y), ToolStripPointType.ToolStripCoords, ToolStripPointType.ToolStripItemCoords); 3563Point itemRelativePoint = item.TranslatePoint(new Point(mea.X, mea.Y), ToolStripPointType.ToolStripCoords, ToolStripPointType.ToolStripItemCoords); 3610Point itemRelativePoint = item.TranslatePoint(new Point(mea.X, mea.Y), ToolStripPointType.ToolStripCoords, ToolStripPointType.ToolStripItemCoords); 3942new 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 3947new 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 3952new 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 3964new 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 3969new 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 3974new 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 4015return GetItemAt(new Point(x,y)); 4838Point clientHit = owner.PointToClient(new Point(x,y)); 5364this.ShowItemDropPoint(owner.PointToClient(new Point(e.X, e.Y))); 5380OnDropItem(item, owner.PointToClient(new Point(e.X, e.Y))); 5388if (this.ShowItemDropPoint(owner.PointToClient(new Point(e.X, e.Y)))) {
winforms\Managed\System\WinForms\ToolStripComboBox.cs (4)
736Point middle = new Point(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.Height / 2); 741new Point(middle.X - FlatComboAdapter.Offset2Pixels, middle.Y - 1), 742new Point(middle.X + FlatComboAdapter.Offset2Pixels + 1, middle.Y - 1), 743new Point(middle.X, middle.Y + FlatComboAdapter.Offset2Pixels)
winforms\Managed\System\WinForms\ToolStripDropDown.cs (4)
42private Point displayLocation = new Point(0,0); 1265dropDownBounds.Location = new Point(start.X + offset.X, start.Y + offset.Y); 2073Show(control, new Point(x,y)); 2094this.displayLocation = new Point(x,y);
winforms\Managed\System\WinForms\ToolStripDropDownItem.cs (1)
342dropDownBounds.Location = new Point(itemScreenLocation.X + offset.X, itemScreenLocation.Y + offset.Y);
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (5)
416nextPoint = new Point(scaledCheckPadding.Left, scaledCheckPadding.Top); 431nextPoint = new Point(1,scaledCheckPadding.Top); 451nextPoint = new Point(1, scaledCheckPadding.Top); 781Point upLocation = new Point(1, 0); 788Point downLocation = new Point(1, height - downSize.Height);
winforms\Managed\System\WinForms\ToolStripDropTargetManager.cs (1)
88return owner.GetItemAt(owner.PointToClient(new Point(x,y)));
winforms\Managed\System\WinForms\ToolStripGrip.cs (3)
145startLocation = TranslatePoint(new Point(mea.X, mea.Y), ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords); 178Point endLocation = TranslatePoint(new Point(mea.X, mea.Y), ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords); 229Point endLocation = TranslatePoint(new Point(mea.X, mea.Y), ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords);
winforms\Managed\System\WinForms\ToolStripPanel.cs (8)
491return new Point(toolStripToDrag.Right,toolStripToDrag.Top); 590controlLocations[j] = new Point(row.Bounds.Width - control.Right, control.Top); 690controlLocation = new Point(this.Width - controlArray[i].Right, controlLocation.Y); 929location = new Point(0, dragRect.Bottom -1); 932location = new Point(dragRect.Right -1, 0); 940Join(toolStripToDrag, new Point(x, y)); 1083Point 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)
742Point topRight = new Point(bounds.Width - 1, 0); 743Point bottomLeft = new Point(0, bounds.Height - 1); 744Point bottomRight = new Point(bounds.Width - 1, bounds.Height - 1); 1103Point start = new Point(overflowBoundsFill.Left - 1, overflowBoundsFill.Height - 2); 1104Point end = new Point(overflowBoundsFill.Left, overflowBoundsFill.Height - 2); 1122Point top1 = new Point(overflowBoundsFill.X - 2, 0); 1123Point top2 = new Point(overflowBoundsFill.X - 1, 1); 1162Point topRight = new Point(bounds.Width - 1, 0); 1163Point bottomLeft = new Point(0, bounds.Height - 1); 1443Point middle = new Point(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.Height / 2); 1453new Point(middle.X - ToolStripRenderer.Offset2X, middle.Y + 1), 1454new Point(middle.X + ToolStripRenderer.Offset2X + 1, middle.Y + 1), 1455new Point(middle.X, middle.Y - ToolStripRenderer.Offset2Y) 1461new Point(middle.X + ToolStripRenderer.Offset2X, middle.Y - ToolStripRenderer.Offset2Y - 1), 1462new Point(middle.X + ToolStripRenderer.Offset2X, middle.Y + ToolStripRenderer.Offset2Y + 1), 1463new Point(middle.X - 1, middle.Y) 1469new Point(middle.X - ToolStripRenderer.Offset2X, middle.Y - ToolStripRenderer.Offset2Y - 1), 1470new Point(middle.X - ToolStripRenderer.Offset2X, middle.Y + ToolStripRenderer.Offset2Y + 1), 1471new Point(middle.X + 1, middle.Y) 1478new Point(middle.X - ToolStripRenderer.Offset2X, middle.Y - 1), 1479new Point(middle.X + ToolStripRenderer.Offset2X + 1, middle.Y - 1), 1480new Point(middle.X, middle.Y + ToolStripRenderer.Offset2Y)
winforms\Managed\System\WinForms\ToolStripRenderer.cs (13)
711Point middle = new Point(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.Height / 2); 733new Point(middle.X - Offset2X, middle.Y + 1), 734new Point(middle.X + Offset2X + 1, middle.Y + 1), 735new Point(middle.X, middle.Y - Offset2Y)}; 740new Point(middle.X + Offset2X, middle.Y - offset4Y), 741new Point(middle.X + Offset2X, middle.Y + offset4Y), 742new Point(middle.X - horizontalOffset, middle.Y)}; 747new Point(middle.X - Offset2X, middle.Y - offset4Y), 748new Point(middle.X - Offset2X, middle.Y + offset4Y), 749new Point(middle.X + horizontalOffset, middle.Y)}; 755new Point(middle.X - Offset2X, middle.Y - 1), 756new Point(middle.X + Offset2X + 1, middle.Y - 1), 757new Point(middle.X, middle.Y + Offset2Y) };
winforms\Managed\System\WinForms\ToolStripSplitButton.cs (1)
556Point clickPoint = new Point(e.X, e.Y);
winforms\Managed\System\WinForms\ToolStripSplitStackLayout.cs (2)
352Point itemLocation = new Point(x,y); 475Point itemLocation = new Point(x,y);
winforms\Managed\System\WinForms\ToolTip.cs (8)
1665SetTool(window, text, TipInfo.Type.Absolute, new Point(pointX, pointY)); 1691SetTool(window, text, TipInfo.Type.Absolute, new Point(pointX, pointY)); 1716SetTool(window, text, TipInfo.Type.Absolute, new Point(pointX, pointY)); 1741SetTool(window, text, TipInfo.Type.Absolute, new Point(pointX, pointY)); 1758this.SetTool(tool.GetOwnerWindow(), text, TipInfo.Type.Absolute, new Point(pointX, pointY)); 1771tipInfo.Position = new Point(pointX, pointY); 1866return new Point(optimalLocation.Left, optimalLocation.Top); 2268Point screenCoords = new Point(sc.x, sc.y);
winforms\Managed\System\WinForms\TreeView.cs (2)
2827Point textLoc = new Point(bounds.X -1, bounds.Y); // required to center the text 3392client = new Point(treeNode.Bounds.X , treeNode.Bounds.Y + treeNode.Bounds.Height / 2);
winforms\Managed\System\WinForms\Triangle.cs (12)
73points[0] = new Point(0, updnHeight); 74points[1] = new Point(updnWidth, updnHeight); 75points[2] = new Point(updnWidth / 2, 0); 80points[0] = new Point(0, 0); 81points[1] = new Point(updnWidth, 0); 82points[2] = new Point(updnWidth / 2, updnHeight); 87points[0] = new Point(lrWidth, 0); 88points[1] = new Point(lrWidth, lrHeight); 89points[2] = new Point(0, lrHeight / 2); 94points[0] = new Point(0, 0); 95points[1] = new Point(0, lrHeight); 96points[2] = new Point(lrWidth, lrHeight / 2);
winforms\Managed\System\WinForms\UpDownBase.cs (3)
965Point pt = PointToScreen(new Point(mevent.X, mevent.Y)); 1306Point pt = new Point(e.X,e.Y); 1652Point pt = new Point(e.X,e.Y);
winforms\Managed\System\WinForms\VisualStyles\VisualStyleRenderer.cs (1)
810return new Point(point.x, point.y);
winforms\Managed\System\WinForms\WebBrowser.cs (2)
1624client = new Point(Width / 2, Height / 2); 1626client = PointToClientInternal(new Point(x, y));
winforms\Managed\System\WinForms\WinFormsUtils.cs (2)
56return new Point(NativeMethods.Util.SignedLOWORD(lastXY),NativeMethods.Util.SignedHIWORD(lastXY)) ; 332return 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)
121new Point(rectangle.Left + rectangle.Width / 2, rectangle.Top), 122new Point(rectangle.Right - 1, rectangle.Top + rectangle.Height / 2), 123new Point(rectangle.Left + rectangle.Width / 2, rectangle.Bottom - 1), 124new Point(rectangle.Left, rectangle.Top + rectangle.Height / 2), 125new Point(rectangle.Left + rectangle.Width / 2, rectangle.Top)
Designers\SetStateDesigner.cs (1)
93Point location = new Point(
Designers\StateDesigner.cs (6)
803Point point = new Point(midHorz, bounds.Top); 814Point point = new Point(midHorz, bounds.Bottom); 1454stateDesigner.Location = new Point(location.X, location.Y + deltaY); 1456stateDesigner.Location = new Point(location.X, location.Y + moveBounds.Height + DefaultStateDesignerAutoLayoutDistance - freeSpaceHeight); 1484stateDesigner.Location = new Point(x, y); 1647Point snapPoint = new Point(e.Y, e.Y);
Designers\StateDesigner.Layouts.cs (12)
221Point offset = new Point(_location.X - newLocation.X, _location.Y - newLocation.Y); 225Point newChildDesignerLocation = new Point(currentLocation.X - offset.X, currentLocation.Y - offset.Y); 435Point 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); 513Point point = new Point(layoutBounds.Left - 4, midVert); 524Point point = new Point(layoutBounds.Right + 4, midVert); 690layout.Location = new Point(x, y); 1052_textLayout.Location = new Point(xPos, this.Location.Y + margin.Height); 1185_eventHandlersLayout.Location = new Point(x, y); 1203Point location = new Point(this.Location.X, _titleBarLayout.Bounds.Bottom); 1376Point designerLayoutLocation = new Point(
Designers\StateDesignerConnector.cs (8)
234path.AddLine(new Point(bounds.Left + bounds.Width / 2, bounds.Top), new Point(bounds.Right, bounds.Top + bounds.Height / 2)); 235path.AddLine(new Point(bounds.Right, bounds.Top + bounds.Height / 2), new Point(bounds.Left + bounds.Width / 2, bounds.Bottom)); 236path.AddLine(new Point(bounds.Left + bounds.Width / 2, bounds.Bottom), new Point(bounds.Left, bounds.Top + bounds.Height / 2)); 237path.AddLine(new Point(bounds.Left, bounds.Top + bounds.Height / 2), new Point(bounds.Left + bounds.Width / 2, bounds.Top));
Designers\StateMachineDesignerPaint.cs (2)
87optimized.Add(new Point(p3.X, p2.Y)); 100optimized.Add(new Point(p3.X, p2.Y));
Designers\WhileDesigner.cs (4)
47connectionPoint = new Point(imageRectangle.Right + e.AmbientTheme.Margin.Width / 2, imageRectangle.Top + imageRectangle.Height / 2); 49connectionPoint = new Point(textRectangle.Right + e.AmbientTheme.Margin.Width / 2, textRectangle.Top + textRectangle.Height / 2); 51connectionPoint = new Point(bounds.Left + bounds.Width / 2 + e.AmbientTheme.Margin.Width / 2, bounds.Top + e.AmbientTheme.Margin.Height / 2); 64DrawConnectors(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)
434Point parentScreenLocation = TopLevelControl.PointToScreen(new Point(0, 0)); 447locationInDialog = new Point(topLevelControlSize.Width - this.listBoxAutoComplete.Size.Width, locationInDialog.Y);
System.Workflow.ComponentModel (302)
AuthoringOM\Design\ActivityDesigner.cs (15)
1180connections.Add(new Point(bounds.Left, bounds.Top + bounds.Height / 2)); 1183connections.Add(new Point(bounds.Left + bounds.Width / 2, bounds.Top)); 1186connections.Add(new Point(bounds.Right, bounds.Top + bounds.Height / 2)); 1189connections.Add(new Point(bounds.Left + bounds.Width / 2, bounds.Bottom)); 1982activityDesigner.Location = new Point(-1, -1); 2590Point logicalPoint = parentView.ClientPointToLogical(new Point(e.X, e.Y)); 2607Point logicalPoint = parentView.ClientPointToLogical(new Point(e.X, e.Y)); 2624Point logicalPoint = parentView.ClientPointToLogical(new Point(e.X, e.Y)); 2641Point logicalPoint = parentView.ClientPointToLogical(new Point(e.X, e.Y)); 2658Point logicalPoint = parentView.ClientPointToLogical(new Point(e.X, e.Y)); 2675Point logicalPoint = parentView.ClientPointToLogical(new Point(e.X, e.Y)); 2724Point logicalPoint = parentView.ClientPointToLogical(new Point(e.X, e.Y)); 2741Point logicalPoint = parentView.ClientPointToLogical(new Point(e.X, e.Y)); 3065formShown = (Form.ActiveForm.Location == designer.PointToScreen(new Point(activatedBounds.Left, activatedBounds.Bottom))); 3119this.activeDesigner.OnShowSmartTagVerbs(new Point(bounds.Left, bounds.Bottom + 1));
AuthoringOM\Design\ActivityPreviewDesigner.cs (12)
160this.previewStrip.Location = new Point(this.previewStrip.Location.X + moveDelta.Width, this.previewStrip.Location.Y + moveDelta.Height); 164this.previewWindow.Location = new Point(this.previewWindow.Location.X + moveDelta.Width, this.previewWindow.Location.Y + moveDelta.Height); 165this.separatorLine[0] = new Point(this.separatorLine[0].X + moveDelta.Width, this.separatorLine[0].Y + moveDelta.Height); 166this.separatorLine[1] = new Point(this.separatorLine[1].X + moveDelta.Width, this.separatorLine[1].Y + moveDelta.Height); 172PreviewedDesigner.Location = new Point(Location.X + (Size.Width - PreviewedDesigner.Size.Width) / 2, Location.Y + headerHeight + 2 * WorkflowTheme.CurrentTheme.AmbientTheme.Margin.Height); 572this.previewStrip.Location = new Point(bounds.Left + bounds.Width / 2 - this.previewStrip.Size.Width / 2, Location.Y + TitleHeight + e.AmbientTheme.Margin.Height); 581this.previewWindow.Location = new Point(bounds.Left + bounds.Width / 2 - this.previewWindow.Size.Width / 2, previewStripRectangle.Bottom + 3 * e.AmbientTheme.Margin.Height); 595PreviewedDesigner.Location = new Point(Location.X + (Size.Width - PreviewedDesigner.Size.Width) / 2, Location.Y + headerHeight + 2 * e.AmbientTheme.Margin.Height); 666Point point = new Point(e.X, e.Y); 680Point point = new Point(e.X, e.Y); 800return new Point(dropConnector.Left + dropConnector.Width / 2, dropConnector.Top + dropConnector.Height / 2); 991Point configErrorLocation = new Point(rectangle.Right - configErrorSize.Width / 2, rectangle.Top - configErrorSize.Height / 2);
AuthoringOM\Design\CompositeActivityDesigner.cs (2)
216activityDesigner.Location = new Point(activityDesigner.Location.X + moveDelta.Width, activityDesigner.Location.Y + moveDelta.Height); 1213if (ExpandButtonRectangle.Contains(new Point(e.X, e.Y)))
AuthoringOM\Design\Connector.cs (94)
137Rectangle enclosingBounds = new Rectangle(new Point(location.X - size.Width / 2, location.Y - size.Height / 2), size); 346this.segments[i] = new Point(this.segments[i].X + size.Width, this.segments[i].Y + size.Height); 523path.AddLine(new Point(bounds.Left + bounds.Width / 2, bounds.Top), new Point(bounds.Right, bounds.Top + bounds.Height / 2)); 524path.AddLine(new Point(bounds.Right, bounds.Top + bounds.Height / 2), new Point(bounds.Left + bounds.Width / 2, bounds.Bottom)); 525path.AddLine(new Point(bounds.Left + bounds.Width / 2, bounds.Bottom), new Point(bounds.Left, bounds.Top + bounds.Height / 2)); 526path.AddLine(new Point(bounds.Left, bounds.Top + bounds.Height / 2), new Point(bounds.Left + bounds.Width / 2, bounds.Top)); 762if (this.connector.HitTest(parentView.ScreenPointToLogical(new Point(x, y)))) 1137Point editPointLocation = (orientation == Orientation.Horizontal) ? new Point(previous.Location.X + editPointOffset, previous.Location.Y) : new Point(previous.Location.X, previous.Location.Y + editPointOffset); 1154Point editPointLocation = (orientation == Orientation.Horizontal) ? new Point(next.Location.X + editPointOffset, next.Location.Y) : new Point(next.Location.X, next.Location.Y + editPointOffset); 1193previous.Location = (orientation == Orientation.Horizontal) ? new Point(previous.Location.X, newPoint.Y) : new Point(newPoint.X, previous.Location.Y); 1198next.Location = (orientation == Orientation.Horizontal) ? new Point(next.Location.X, newPoint.Y) : new Point(newPoint.X, next.Location.Y); 1218previous.Location = new Point(previous.Location.X, newPoint.Y); 1219next.Location = new Point(next.Location.X, newPoint.Y); 1220this.activeEditPoint.Location = new Point(this.activeEditPoint.Location.X, newPoint.Y); 1224previous.Location = new Point(newPoint.X, previous.Location.Y); 1225next.Location = new Point(newPoint.X, next.Location.Y); 1226this.activeEditPoint.Location = new Point(newPoint.X, this.activeEditPoint.Location.Y); 1352next.Location = (slope < 1) ? new Point(next.Location.X, previous.Location.Y) : new Point(previous.Location.X, next.Location.Y); 1362previous.Location = (slope < 1) ? new Point(previous.Location.X, next.Location.Y) : new Point(next.Location.X, previous.Location.Y); 1398Point location = (slope < 1) ? new Point(next.Location.X, current.Location.Y) : new Point(current.Location.X, next.Location.Y); 1543Point intermediatePoint = (slope < 1) ? new Point(targetPoint.X, sourcePoint.Y) : new Point(sourcePoint.X, targetPoint.Y); 1699designerEdgeCover.Add(DesignerEdges.Left, new Point[] { new Point(bounds.Left, bounds.Top), new Point(bounds.Left, bounds.Bottom) }); 1700designerEdgeCover.Add(DesignerEdges.Top, new Point[] { new Point(bounds.Left, bounds.Top), new Point(bounds.Right, bounds.Top) }); 1701designerEdgeCover.Add(DesignerEdges.Right, new Point[] { new Point(bounds.Right, bounds.Top), new Point(bounds.Right, bounds.Bottom) }); 1702designerEdgeCover.Add(DesignerEdges.Bottom, new Point[] { new Point(bounds.Left, bounds.Bottom), new Point(bounds.Right, bounds.Bottom) }); 1714escapeCover.Add(new Point(edge[0].X, edge[0].Y)); 1720escapeCover.Add(new Point(edge[0].X, escapePoint.Y - 1)); 1721escapeCover.Add(new Point(escapePoint.X + 1, escapePoint.Y - 1)); 1722escapeCover.Add(new Point(escapePoint.X + 1, escapePoint.Y + 1)); 1723escapeCover.Add(new Point(edge[0].X, escapePoint.Y + 1)); 1726escapeCover.Add(new Point(edge[0].X, edge[1].Y)); 1730escapeCover.Add(new Point(edge[0].X, edge[0].Y)); 1736escapeCover.Add(new Point(edge[0].X, escapePoint.Y - 1)); 1737escapeCover.Add(new Point(escapePoint.X - 1, escapePoint.Y - 1)); 1738escapeCover.Add(new Point(escapePoint.X - 1, escapePoint.Y + 1)); 1739escapeCover.Add(new Point(edge[0].X, escapePoint.Y + 1)); 1742escapeCover.Add(new Point(edge[0].X, edge[1].Y)); 1746escapeCover.Add(new Point(edge[0].X, edge[0].Y)); 1752escapeCover.Add(new Point(escapePoint.X - 1, edge[0].Y)); 1753escapeCover.Add(new Point(escapePoint.X - 1, escapePoint.Y + 1)); 1754escapeCover.Add(new Point(escapePoint.X + 1, escapePoint.Y + 1)); 1755escapeCover.Add(new Point(escapePoint.X + 1, edge[0].Y)); 1758escapeCover.Add(new Point(edge[1].X, edge[0].Y)); 1763escapeCover.Add(new Point(edge[0].X, edge[0].Y)); 1769escapeCover.Add(new Point(escapePoint.X - 1, edge[0].Y)); 1770escapeCover.Add(new Point(escapePoint.X - 1, escapePoint.Y - 1)); 1771escapeCover.Add(new Point(escapePoint.X + 1, escapePoint.Y - 1)); 1772escapeCover.Add(new Point(escapePoint.X + 1, edge[0].Y)); 1775escapeCover.Add(new Point(edge[1].X, edge[0].Y)); 1829excludedLines.Add(new Point(point.X - width, point.Y)); 1830excludedLines.Add(new Point(point.X + width, point.Y)); 1832excludedLines.Add(new Point(point.X, point.Y - height)); 1833excludedLines.Add(new Point(point.X, point.Y + height)); 2092r1 = new Point(Z.X, topCover.A.Y); 2094r2 = new Point(rightCover.A.X, Z.Y); 2096r3 = new Point(Z.X, bottomCover.A.Y); 2098r4 = new Point(leftCover.A.X, Z.Y); 2233Point direction = new Point(Math.Sign(p.X - Z.X), Math.Sign(p.Y - Z.Y)); 2239direction = new Point(Math.Sign(p.X - Z.X), Math.Sign(p.Y - Z.Y)); 2253escapePoint = new Point(p.X + direction.X * margin.Width, Z.Y); 2255escapePoint = new Point(Z.X, p.Y + direction.Y * margin.Height); 2471Point direction = new Point(a2.X - a1.X, a2.Y - a1.Y); 2480Point k = new Point(a1.X + i * margin.Width * direction.X, a1.Y + i * margin.Height * direction.Y); 2638return new Point(vertical.A.X, horizontal.A.Y); 2693Point newPoint = new Point(p.X, p.Y); 2717return new Point((this.orientation == Orientation.Horizontal) ? k : p.X, (this.orientation == Orientation.Horizontal) ? p.Y : k); 2742Point left = new Point((leftCover != null) ? leftCover.A.X : int.MinValue, p.Y); 2743Point right = new Point((rightCover != null) ? rightCover.A.X : int.MaxValue, p.Y); 2754Point bottom = new Point(p.X, (bottomCover != null) ? bottomCover.A.Y : int.MinValue); 2755Point top = new Point(p.X, (topCover != null) ? topCover.A.Y : int.MaxValue); 2791AddCover(new ConnectorSegment(new Point(rectangle.Left, rectangle.Top), new Point(rectangle.Left, rectangle.Bottom))); 2792AddCover(new ConnectorSegment(new Point(rectangle.Right, rectangle.Top), new Point(rectangle.Right, rectangle.Bottom))); 2793AddCover(new ConnectorSegment(new Point(rectangle.Left, rectangle.Top), new Point(rectangle.Right, rectangle.Top))); 2794AddCover(new ConnectorSegment(new Point(rectangle.Left, rectangle.Bottom), new Point(rectangle.Right, rectangle.Bottom)));
AuthoringOM\Design\DesignerHelpers.cs (20)
339graphics.FillRectangle(ambientTheme.MajorGridBrush, new Rectangle(new Point(gridCoOrdX, gridCoOrdY), new Size(1, 1))); 343graphics.FillRectangle(ambientTheme.MinorGridBrush, new Rectangle(new Point(gridCoOrdX + ambientTheme.GridSize.Width / 2, gridCoOrdY + ambientTheme.GridSize.Height / 2), new Size(1, 1))); 503GraphicsPath designerPath = GetDesignerPath(designer, new Point(-location.X, -location.Y), Size.Empty, DesignerEdges.None); 1841distances.Add(DistanceFromPointToLineSegment(point, new Point[] { new Point(rect.Left, rect.Top), new Point(rect.Left, rect.Bottom) })); 1847distances.Add(DistanceFromPointToLineSegment(point, new Point[] { new Point(rect.Left, rect.Top), new Point(rect.Right, rect.Top) })); 1853distances.Add(DistanceFromPointToLineSegment(point, new Point[] { new Point(rect.Right, rect.Top), new Point(rect.Right, rect.Bottom) })); 1859distances.Add(DistanceFromPointToLineSegment(point, new Point[] { new Point(rect.Left, rect.Bottom), new Point(rect.Right, rect.Bottom) })); 1919distances.Add(DistanceBetweenPoints(point, new Point(rect.Left, rect.Top))); 1920distances.Add(DistanceBetweenPoints(point, new Point(rect.Left + rect.Width / 2, rect.Top))); 1921distances.Add(DistanceBetweenPoints(point, new Point(rect.Right, rect.Top))); 1922distances.Add(DistanceBetweenPoints(point, new Point(rect.Right, rect.Top + rect.Height / 2))); 1923distances.Add(DistanceBetweenPoints(point, new Point(rect.Right, rect.Bottom))); 1924distances.Add(DistanceBetweenPoints(point, new Point(rect.Right + rect.Width / 2, rect.Bottom))); 1925distances.Add(DistanceBetweenPoints(point, new Point(rect.Left, rect.Bottom))); 1926distances.Add(DistanceBetweenPoints(point, new Point(rect.Left, rect.Bottom - rect.Height / 2))); 1989return new Point((point1.X + point2.X) / 2, (point1.Y + point2.Y) / 2);
AuthoringOM\Design\DesignerWidgets.cs (20)
336this.itemStrip.Location = new Point(leftScrollButtonBounds.Right, leftScrollButtonBounds.Top); 338this.itemStrip.Location = new Point(leftScrollButtonBounds.Left, leftScrollButtonBounds.Bottom); 425Point mousePoint = new Point(e.X, e.Y); 450ActiveButton = HitTest(new Point(e.X, e.Y)); 455Point mousePoint = new Point(e.X, e.Y); 791ItemInfo itemHit = HitTest(new Point(e.X, e.Y)); 800ItemInfo itemHit = HitTest(new Point(e.X, e.Y)); 814ItemInfo itemHit = HitTest(new Point(e.X, e.Y)); 1176Point mousePoint = new Point(e.X, e.Y); 1203Point mousePoint = new Point(e.X, e.Y); 1228using (Brush gradientBrush = new LinearGradientBrush(new Point(this.leftGradientRectangle.Left, this.leftGradientRectangle.Top), new Point(this.leftGradientRectangle.Right, this.leftGradientRectangle.Top), SystemColors.Window, SystemColors.ScrollBar)) 1245Point imagePoint = new Point(itemBounds.Left + 3, itemBounds.Top + 3); 1414Location = new Point(this.parent.Location.X + Palette.DropShadowWidth, this.parent.Location.Y + Palette.DropShadowWidth); 1833if (buttonRectangle.Contains(new Point(e.X, e.Y))) 1850if (buttonRectangle.Contains(new Point(e.X, e.Y)) && tabItemInfo.Text != this.buttonTips.GetToolTip(this)) 2261Point screenCoOrd = this.parentControl.PointToScreen(new Point(this.inplaceTipRectangle.Left, this.inplaceTipRectangle.Top)); 2617Point point = new Point(e.X, e.Y); 3254this.canvasBounds.Location = new Point(value.X + this.bounds.Width / 2 - this.canvasBounds.Width / 2, this.previewModeDescRectangle.Bottom + margin.Height); 3361if (PreviewModeButtonRectangle.Contains(new Point(e.X, e.Y)))
AuthoringOM\Design\Dialogs\ActivityBindForm.cs (1)
166this.workflowOutline.Location = new Point(3, 3);
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (2)
549Point top = new Point(this.propertiesGrid.Right + (this.dummyPreviewPanel.Left - this.propertiesGrid.Right) / 2, this.themePanel.Margin.Top); 550Point bottom = new Point(top.X, this.themePanel.Height - this.themePanel.Margin.Bottom);
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (1)
808this.helpTextWindow.Location = new Point(this.helpTextHolder.Location.X + 3, this.helpTextHolder.Location.Y + 3);
AuthoringOM\Design\FreeFormDesigner.cs (4)
885Point dropPoint = new Point(e.X, e.Y); 919designer.Location = new Point(location.X + autoSizeMargin.Width, location.Y + autoSizeMargin.Height); 1111Point leftTop = new Point(int.MaxValue, int.MaxValue), rightBottom = new Point(int.MinValue, int.MinValue);
AuthoringOM\Design\Glyphs\ConfigErrorGlyph.cs (2)
52Point configErrorLocation = new Point(designer.Bounds.Right - configErrorSize.Width - margin.Width / 2, designer.Bounds.Top - configErrorSize.Height + margin.Height); 115Point location = designer.ParentView.LogicalPointToScreen(new Point(bounds.Left, bounds.Bottom));
AuthoringOM\Design\Glyphs\ConnectorDragDropGlyph.cs (1)
21this.glyphPoint = new Point(connectorCenter.X - ambientTheme.DropIndicatorSize.Width / 2, connectorCenter.Y - ambientTheme.DropIndicatorSize.Height / 2);
AuthoringOM\Design\Glyphs\SelectionGlyph.cs (4)
56grabHandles[1] = new Rectangle(new Point(selectionRect.Left + (selectionRect.Width - grabHandleSize.Width) / 2, selectionRect.Top), grabHandleSize); 58grabHandles[3] = new Rectangle(new Point(selectionRect.Right - grabHandleSize.Width, selectionRect.Top + (selectionRect.Height - grabHandleSize.Height) / 2), grabHandleSize); 60grabHandles[5] = new Rectangle(new Point(selectionRect.Left + (selectionRect.Width - grabHandleSize.Width) / 2, selectionRect.Bottom - grabHandleSize.Height), grabHandleSize); 62grabHandles[7] = new Rectangle(new Point(selectionRect.Left, selectionRect.Top + (selectionRect.Height - grabHandleSize.Height) / 2), grabHandleSize);
AuthoringOM\Design\MessageFilters\AutoScrollExpandMessageFilter.cs (3)
42Point clientPoint = ParentView.PointToClient(new Point(eventArgs.X, eventArgs.Y)); 259if (parentView.IsClientPointInActiveLayout(parentView.PointToClient(new Point(eventArgs.X, eventArgs.Y)))) 270if (parentView.IsClientPointInActiveLayout(parentView.PointToClient(new Point(eventArgs.X, eventArgs.Y))))
AuthoringOM\Design\MessageFilters\ConnectionManager.cs (4)
86Point clientPoint = new Point(eventArgs.X, eventArgs.Y); 115Point clientPoint = new Point(eventArgs.X, eventArgs.Y); 157Point clientPoint = new Point(eventArgs.X, eventArgs.Y); 201Point clientPoint = new Point(eventArgs.X, eventArgs.Y);
AuthoringOM\Design\MessageFilters\DragDropManager.cs (12)
81Point clientPoint = new Point(eventArgs.X, eventArgs.Y); 102Point clientPoint = new Point(eventArgs.X, eventArgs.Y); 265Point clientPoint = parentView.PointToClient(new Point(eventArgs.X, eventArgs.Y)); 266Point logicalPoint = parentView.ScreenPointToLogical(new Point(eventArgs.X, eventArgs.Y)); 272this.dragImagePointInClientCoOrd = new Point(clientPoint.X + SystemInformation.CursorSize.Width / 4, clientPoint.Y + SystemInformation.CursorSize.Height / 4); 306this.dragImagePointInClientCoOrd = new Point(midPointInClientCoOrd.X - dragImageIconSize.Width / 2, midPointInClientCoOrd.Y - dragImageIconSize.Height / 2); 327Point clientPoint = parentView.PointToClient(new Point(eventArgs.X, eventArgs.Y)); 328Point logicalPoint = parentView.ScreenPointToLogical(new Point(eventArgs.X, eventArgs.Y)); 332this.dragImagePointInClientCoOrd = new Point(clientPoint.X + SystemInformation.CursorSize.Width / 4, clientPoint.Y + SystemInformation.CursorSize.Height / 4); 383this.dragImagePointInClientCoOrd = new Point(midPointInClientCoOrd.X - dragImageIconSize.Width / 2, midPointInClientCoOrd.Y - dragImageIconSize.Height / 2); 418Point clientPoint = parentView.PointToClient(new Point(eventArgs.X, eventArgs.Y)); 419Point logicalPoint = parentView.ScreenPointToLogical(new Point(eventArgs.X, eventArgs.Y));
AuthoringOM\Design\MessageFilters\DragSelectionMessageFilter.cs (3)
49this.startDrag = this.endDrag = ParentView.ClientPointToLogical(new Point(eventArgs.X, eventArgs.Y)); 57Point logicalPoint = parentView.ClientPointToLogical(new Point(eventArgs.X, eventArgs.Y)); 94this.endDrag = parentView.ClientPointToLogical(new Point(eventArgs.X, eventArgs.Y));
AuthoringOM\Design\MessageFilters\DynamicActionMessageFilter.cs (5)
107UpdateTransparency(new Point(eventArgs.X, eventArgs.Y)); 114Point clientPoint = new Point(eventArgs.X, eventArgs.Y); 166Point clientPoint = new Point(eventArgs.X, eventArgs.Y); 233if (actionBounds.Contains(new Point(eventArgs.X, eventArgs.Y))) 242Point clientPoint = new Point(eventArgs.X, eventArgs.Y);
AuthoringOM\Design\MessageFilters\FreeFormDragDropManager.cs (6)
38Point clientPoint = parentView.PointToClient(new Point(eventArgs.X, eventArgs.Y)); 39Point logicalPoint = parentView.ScreenPointToLogical(new Point(eventArgs.X, eventArgs.Y)); 63Point clientPoint = parentView.PointToClient(new Point(eventArgs.X, eventArgs.Y)); 64Point logicalPoint = parentView.ScreenPointToLogical(new Point(eventArgs.X, eventArgs.Y)); 170ActivityDesignerPaint.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); 256location = new Point(designerToMove.Location.X + delta.Width, designerToMove.Location.Y + delta.Height);
AuthoringOM\Design\MessageFilters\GlyphManager.cs (3)
206RefreshActiveGlyph(ParentView.ClientPointToLogical(new Point(eventArgs.X, eventArgs.Y))); 212RefreshActiveGlyph(ParentView.ClientPointToLogical(new Point(eventArgs.X, eventArgs.Y))); 218RefreshActiveGlyph(ParentView.ClientPointToLogical(new Point(eventArgs.X, eventArgs.Y)));
AuthoringOM\Design\MessageFilters\PanningMessageFilter.cs (3)
66SetPanPoint(new Point(eventArgs.X, eventArgs.Y)); 76parentView.ScrollPosition = new Point(parentView.ScrollPosition.X - panSize.Width, parentView.ScrollPosition.Y - panSize.Height); 77SetPanPoint(new Point(eventArgs.X, eventArgs.Y));
AuthoringOM\Design\MessageFilters\ResizingMessageFilter.cs (13)
32Point clientPoint = new Point(eventArgs.X, eventArgs.Y); 51Point clientPoint = new Point(eventArgs.X, eventArgs.Y); 80UpdateDesignerSize(workflowView.ClientPointToLogical(new Point(eventArgs.X, eventArgs.Y)), this.designerToResize, this.designerSizingEdge); 195if (Math.Floor(DesignerGeometryHelper.DistanceFromPointToLineSegment(point, new Point[] { new Point(designerBounds.Left, designerBounds.Top), new Point(designerBounds.Left, designerBounds.Bottom) })) <= selectionSize.Width + 1) 197if (Math.Floor(DesignerGeometryHelper.DistanceFromPointToLineSegment(point, new Point[] { new Point(designerBounds.Left, designerBounds.Top), new Point(designerBounds.Right, designerBounds.Top) })) <= selectionSize.Height + 1) 199if (Math.Floor(DesignerGeometryHelper.DistanceFromPointToLineSegment(point, new Point[] { new Point(designerBounds.Right, designerBounds.Top), new Point(designerBounds.Right, designerBounds.Bottom) })) <= selectionSize.Width + 1) 201if (Math.Floor(DesignerGeometryHelper.DistanceFromPointToLineSegment(point, new Point[] { new Point(designerBounds.Left, designerBounds.Bottom), new Point(designerBounds.Right, designerBounds.Bottom) })) <= selectionSize.Height + 1) 288x = DesignerHelpers.SnapToGrid(new Point(x, 0)).X; 300y = DesignerHelpers.SnapToGrid(new Point(0, y)).Y;
AuthoringOM\Design\MessageFilters\WindowManager.cs (3)
28Point clientPoint = new Point(eventArgs.X, eventArgs.Y); 74Point clientPoint = new Point(eventArgs.X, eventArgs.Y); 108Point clientPoint = new Point(eventArgs.X, eventArgs.Y);
AuthoringOM\Design\MessageFilters\ZoomingMessageFilter.cs (4)
119Point center = new Point((this.currentState == ZoomState.In) ? eventArgs.X : parentView.ViewPortSize.Width / 2, (this.currentState == ZoomState.In) ? eventArgs.Y : parentView.ViewPortSize.Height / 2); 170Point center = parentView.LogicalPointToClient(new Point(dragRectangle.Location.X + dragRectangle.Width / 2, dragRectangle.Location.Y + dragRectangle.Height / 2)); 187Point newCenter = new Point((int)((float)parentView.HScrollBar.Maximum * relativeCenterF.X), (int)((float)parentView.VScrollBar.Maximum * relativeCenterF.Y)); 188parentView.ScrollPosition = new Point(newCenter.X - parentView.HScrollBar.LargeChange / 2, newCenter.Y - parentView.VScrollBar.LargeChange / 2);
AuthoringOM\Design\ParallelActivityDesigner.cs (8)
221Point location = (connectionPoints.Count > 0) ? new Point(Location.X, connectionPoints[0].Y) : Location; 230activityDesigner.Location = new Point(location.X + width, location.Y + height); 289dropTargets[0].Location = new Point(bounds.X, firstDesigner.Location.Y); 300dropTargets[i + 1].Location = new Point(designerBounds1.Right + (designerBounds2.Left - designerBounds1.Right) / 2 - ((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0) / 2, designerBounds1.Top); 306dropTargets[containedDesigners.Count].Location = new Point(bounds.Right - ((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0), lastDesigner.Location.Y); 311dropTargets[0].Location = new Point(Location.X + (Size.Width - ((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0)) / 2, TextRectangle.Bottom); 424DrawConnectors(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)
191Point containerStartConnection = new Point(); 192Point containerEndConnection = new Point(); 208connections.Add(new Point(startDesignerBounds.Left + startDesignerBounds.Width / 2, startDesignerBounds.Top)); 209connections.Add(new Point(startDesignerBounds.Left + startDesignerBounds.Width / 2, startDesignerBounds.Bottom)); 213connectorBounds[0].Location = new Point(containerStartConnection.X - ((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0) / 2, containerStartConnection.Y); 226connectorBounds[i + 1].Location = new Point(designerFromConnections[designerFromPointCount - 1].X - ((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0) / 2, designerFromConnections[designerFromPointCount - 1].Y); 238connections.Add(new Point(endDesignerBounds.Left + endDesignerBounds.Width / 2, endDesignerBounds.Top)); 239connections.Add(new Point(endDesignerBounds.Left + endDesignerBounds.Width / 2, endDesignerBounds.Bottom)); 243connectorBounds[connectorCount - 1].Location = new Point(endDesignerConnections[endDesignerConnections.Count - 1].X - ((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0) / 2, endDesignerConnections[endDesignerConnections.Count - 1].Y); 249connectorBounds[0].Location = new Point(containerStartConnection.X - ((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0) / 2, containerStartConnection.Y); 411DrawConnectors(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); 412DrawConnectors(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); 425DrawConnectors(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); 463activityDesigner.Location = new Point(location.X - (designerSize.Width / 2), location.Y + height); 528glyphLocation = new Point(connectors[i].Location.X + connectors[i].Size.Width / 2 + 1, connectors[i].Location.Y + connectors[i].Size.Height / 2); 530glyphLocation = new Point(helpTextRectangle.Left + helpTextRectangle.Width / 2 + 1, helpTextRectangle.Top - ambientTheme.DropIndicatorSize.Height / 2);
AuthoringOM\Design\SequentialWorkflowRootDesigner.cs (1)
261connectionPoints[connectionPoints.Count - 1] = new Point(connectionPoints[connectionPoints.Count - 1].X, connectionPoints[connectionPoints.Count - 1].Y - Footer.Bounds.Height);
AuthoringOM\Design\StructuredCompositeActivityDesigner.cs (5)
443connectionPoints[0] = new Point(connectionPoints[0].X, connectionPoints[0].Y + TitleHeight); 551activityDesigner.Location = new Point(activityDesigner.Location.X, activityDesigner.Location.Y + titleHeight); 692Rectangle[] dropTargets = GetDropTargets(new Point(e.X, e.Y)); 696return new Point(dropConnector.Left + dropConnector.Width / 2, dropConnector.Top + dropConnector.Height / 2); 708Point dropPoint = new Point(e.X, e.Y);
AuthoringOM\Design\WorkflowLayouts.cs (13)
96return new Point(DefaultWorkflowLayout.Separator); 422Point deltaLocation = new Point(intersectedPhysicalViewPort.X - pageLayoutData.ViewablePageBounds.X, intersectedPhysicalViewPort.Y - pageLayoutData.ViewablePageBounds.Y); 457Point deltaLocation = new Point(intersectedLogicalViewPort.X - pageLayoutData.LogicalPageBounds.X, intersectedLogicalViewPort.Y - pageLayoutData.LogicalPageBounds.Y); 488Point delta = new Point(logicalPoint.X - pageLayoutData.ViewablePageBounds.Left, logicalPoint.Y - pageLayoutData.ViewablePageBounds.Top); 489logicalPoint = new Point(pageLayoutData.LogicalPageBounds.Left + delta.X, pageLayoutData.LogicalPageBounds.Top + delta.Y); 503Point delta = new Point(logicalPoint.X - pageLayoutData.LogicalPageBounds.Left, logicalPoint.Y - pageLayoutData.LogicalPageBounds.Top); 504logicalPoint = new Point(pageLayoutData.ViewablePageBounds.Left + delta.X, pageLayoutData.ViewablePageBounds.Top + delta.Y); 538Point[] points = new Point[] { viewPortData.Translation, new Point(viewPortData.ViewPortSize) }; 570points = new Point[] { viewPortBitmapArea.Location, new Point(viewPortBitmapArea.Size) }; 610Point[] points = new Point[] { viewPortData.Translation, new Point(viewPortData.ViewPortSize) }; 666bitmapDrawingPoint = new Point(points[0].X - viewPortData.Translation.X, points[0].Y - viewPortData.Translation.Y); 676points = new Point[] { viewPortBitmapArea.Location, new Point(viewPortBitmapArea.Size) }; 815this.pageLayoutInfo.Add(new PageLayoutData(logicalBounds, pageBounds, viewablePageBounds, new Point(column, row)));
AuthoringOM\Design\WorkflowPrinting.cs (2)
148Point pageOffset = new Point(this.currentPrintablePage.X * printableArea.Width - this.workflowAlignment.X, this.currentPrintablePage.Y * printableArea.Height - this.workflowAlignment.Y); 220Point dpi = new Point(Math.Max(NativeMethods.GetDeviceCaps(hDC, NativeMethods.LOGPIXELSX), 1), Math.Max(NativeMethods.GetDeviceCaps(hDC, NativeMethods.LOGPIXELSY), 1));
AuthoringOM\Design\WorkflowView.cs (17)
350Point oldCenter = new Point(ScrollPosition.X, ScrollPosition.Y); 358Point newCenter = new Point((int)((float)hScrollBar.Maximum * oldRelativeCenter.X), (int)((float)vScrollBar.Maximum * oldRelativeCenter.Y)); 359ScrollPosition = new Point(newCenter.X, newCenter.Y); 458return new Point(HScrollBar.Value, VScrollBar.Value); 902Point scrollPosition = new Point(0, 0); 1280this.toolContainer.Location = new Point(Width - this.toolContainer.Width, 0); 1419Point location = (LParam != -1) ? new Point(LParam) : Control.MousePosition; 1739if (!clientRectangle.Contains(rect.Location) || !clientRectangle.Contains(new Point(rect.Right, rect.Bottom))) 1742if (!clientRectangle.Contains(new Point(rect.Left, clientRectangle.Top)) || !clientRectangle.Contains(new Point(rect.Right, clientRectangle.Top))) 1752if (!clientRectangle.Contains(new Point(clientRectangle.Left, rect.Top)) || !clientRectangle.Contains(new Point(clientRectangle.Left, rect.Bottom))) 1762ScrollPosition = new Point(scrollPosition.X + scrollDelta.Width, scrollPosition.Y + scrollDelta.Height); 2052Point[] points = new Point[] { new Point(logicalSize) }; 2064Point[] points = new Point[] { new Point(clientSize) }; 2179clientPoint = new Point(((MouseEventArgs)e).X, ((MouseEventArgs)e).Y); 2183clientPoint = this.workflowView.PointToClient(new Point(((DragEventArgs)e).X, ((DragEventArgs)e).Y));
System.WorkflowServices (9)
System\Workflow\Activities\Design\GradientPanel.cs (6)
90Brush 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)); 91Brush frameBrush = new LinearGradientBrush(new Point(frameRect.Left, frameRect.Top), new Point(frameRect.Left, frameRect.Bottom), BaseColor, LightingColor); 152path.AddLine(new Point(frame.Right, frame.Top + glossHeight), new Point(frame.Left, frame.Top + glossHeight));
System\Workflow\Activities\Design\RichListBox.cs (1)
141listItemRenderer.DrawToBitmap(rendererBitmap, new Rectangle(new Point(0, 0), listItemRenderer.Size));
System\Workflow\ComponentModel\Design\HighlightOverlayGlyph.cs (2)
50Brush 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)
3232internal static Point[] ConvertGPPOINTArray(IntPtr memory, int count) { 3236Point[] points = new Point[count]; 3275internal static IntPtr ConvertPointToMemory(Point[] points) {
commonui\System\Drawing\Advanced\GPPOINT.cs (1)
31 internal GPPOINT(Point pt)
commonui\System\Drawing\Advanced\GPPOINTF.cs (1)
28internal GPPOINTF(Point pt) {
commonui\System\Drawing\Advanced\GraphicsPath.cs (21)
134public GraphicsPath(Point[] pts, byte[] types) : 147public GraphicsPath(Point[] pts, byte[] types, FillMode fillMode) { 518public bool IsVisible(Point point) { 539public bool IsVisible(Point pt, Graphics graphics) { 635public bool IsOutlineVisible(Point point, Pen pen) { 660public bool IsOutlineVisible(Point pt, Pen pen, Graphics graphics) { 729public void AddLine(Point pt1, Point pt2) { 752public void AddLines(Point[] points) { 879public void AddBezier(Point pt1, Point pt2, Point pt3, Point pt4) { 906public void AddBeziers(params Point[] points) { 992public void AddCurve(Point[] points) { 1011public void AddCurve(Point[] points, float tension) { 1031public void AddCurve(Point[] points, int offset, int numberOfSegments, 1096public void AddClosedCurve(Point[] points) { 1116public void AddClosedCurve(Point[] points, float tension) { 1319public void AddPolygon(Point[] points) { 1385Point origin, StringFormat format) {
commonui\System\Drawing\Advanced\LinearGradientBrush.cs (2)
67public LinearGradientBrush(Point point1, Point point2,
commonui\System\Drawing\Advanced\Matrix.cs (6)
115public Matrix(Rectangle rect, Point[] plgpts) { 467public void TransformPoints(Point[] pts) { 482Point[] newPts = SafeNativeMethods.Gdip.ConvertGPPOINTArray(buf, pts.Length); 530public void VectorTransformPoints(Point[] pts) { 538public void TransformVectors(Point[] pts) { 555Point[] newPts = SafeNativeMethods.Gdip.ConvertGPPOINTArray(buf, pts.Length);
commonui\System\Drawing\Advanced\PathGradientBrush.cs (2)
98public PathGradientBrush(Point[] points) 112public PathGradientBrush(Point[] points, WrapMode wrapMode)
commonui\System\Drawing\BufferedGraphics.cs (2)
37private Point targetLoc; 47IntPtr targetDC, Point targetLoc, Size virtualSize) {
commonui\System\Drawing\BufferedGraphicsContext.cs (1)
31private Point targetLoc;
commonui\System\Drawing\Graphics.cs (46)
507public Point RenderingOrigin { 861public void CopyFromScreen(Point upperLeftSource, Point upperLeftDestination, Size blockRegionSize) { 879public void CopyFromScreen(Point upperLeftSource, Point upperLeftDestination, Size blockRegionSize, CopyPixelOperation copyPixelOperation) { 1093Point[] pts) { 1107Point[] newPts = SafeNativeMethods.Gdip.ConvertGPPOINTArray(buf, pts.Length); 1221public void DrawLine(Pen pen, Point pt1, Point pt2) { 1232public void DrawLines(Pen pen, Point[] points) { 1374public void DrawBezier(Pen pen, Point pt1, Point pt2, Point pt3, Point pt4) { 1385public void DrawBeziers(Pen pen, Point[] points) { 1661public void DrawPolygon(Pen pen, Point[] points) { 1796public void DrawCurve(Pen pen, Point[] points) { 1821public void DrawCurve(Pen pen, Point[] points, float tension) { 1846public void DrawCurve(Pen pen, Point[] points, int offset, int numberOfSegments, 1927public void DrawClosedCurve(Pen pen, Point[] points) { 1952public void DrawClosedCurve(Pen pen, Point[] points, float tension, FillMode fillmode) { 2141public void FillPolygon(Brush brush, Point[] points) { 2151public void FillPolygon(Brush brush, Point[] points, FillMode fillMode) { 2371public void FillClosedCurve(Brush brush, Point[] points) { 2394public void FillClosedCurve(Brush brush, Point[] points, FillMode fillmode) { 2402public void FillClosedCurve(Brush brush, Point[] points, FillMode fillmode, float tension) { 2807public void DrawImage(Image image, Point point) { 2864public void DrawImageUnscaled(Image image, Point point) { 2952public void DrawImage(Image image, Point[] destPoints) { 3211public void DrawImage(Image image, Point[] destPoints, Rectangle srcRect, GraphicsUnit srcUnit) { 3218public void DrawImage(Image image, Point[] destPoints, Rectangle srcRect, 3225public void DrawImage(Image image, Point[] destPoints, Rectangle srcRect, 3233public void DrawImage(Image image, Point[] destPoints, Rectangle srcRect, 3422public void EnumerateMetafile(Metafile metafile, Point destPoint, 3429public void EnumerateMetafile(Metafile metafile, Point destPoint, 3437public void EnumerateMetafile(Metafile metafile, Point destPoint, 3577public void EnumerateMetafile(Metafile metafile, Point[] destPoints, 3584public void EnumerateMetafile(Metafile metafile, Point[] destPoints, 3592public void EnumerateMetafile(Metafile metafile, Point[] destPoints, 3664public void EnumerateMetafile(Metafile metafile, Point destPoint, 3672public void EnumerateMetafile(Metafile metafile, Point destPoint, 3681public void EnumerateMetafile(Metafile metafile, Point destPoint, 3862public void EnumerateMetafile(Metafile metafile, Point[] destPoints, 3873public void EnumerateMetafile(Metafile metafile, Point[] destPoints, 3885public void EnumerateMetafile(Metafile metafile, Point[] destPoints, 4308public bool IsVisible(Point point) {
commonui\System\Drawing\Point.cs (46)
35/// Creates a new instance of the <see cref='System.Drawing.Point'/> class 38public 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'/> 126public 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'/> . 136public static explicit operator Size(Point p) { 143/// Translates a <see cref='System.Drawing.Point'/> by a given <see cref='System.Drawing.Size'/> . 146public 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'/> . 156public 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'/> 168public 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'/> 181public static bool operator !=(Point left, Point right) { 187/// Translates a <see cref='System.Drawing.Point'/> by a given <see cref='System.Drawing.Size'/> . 190public 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'/> . 199public static Point Subtract(Point pt, Size sz) { 208public static Point Ceiling(PointF value) { 217public static Point Truncate(PointF value) { 226public static Point Round(PointF value) { 234/// Specifies whether this <see cref='System.Drawing.Point'/> contains 239if (!(obj is Point)) return false; 240Point 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. 272public void Offset(Point p) { 279/// Converts this <see cref='System.Drawing.Point'/>
commonui\System\Drawing\PointConverter.cs (7)
114if(value is Point){ 116Point pt = (Point)value; 133Point pt = (Point)value; 135ConstructorInfo ctor = typeof(Point).GetConstructor(new Type[] {typeof(int), typeof(int)}); 188PropertyDescriptorCollection props = TypeDescriptor.GetProperties(typeof(Point), attributes);
commonui\System\Drawing\Printing\PrinterUnitConvert.cs (2)
55public static Point Convert(Point value, PrinterUnit fromUnit, PrinterUnit toUnit) {
commonui\System\Drawing\Rectangle.cs (4)
70public Rectangle(Point location, Size size) { 98public Point Location { 353public bool Contains(Point pt) { 487public 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'/>. 898public bool IsVisible(Point point) { 905/// Tests whether the specified <see cref='System.Drawing.Point'/> is contained within this 910public bool IsVisible(Point point, Graphics g) {
commonui\System\Drawing\Size.cs (4)
51/// the specified <see cref='System.Drawing.Point'/>. 54public Size(Point pt) { 124/// <see cref='System.Drawing.Point'/>. 126public static explicit operator Point(Size size) {
misc\GDI\NativeMethods.cs (1)
235public System.Drawing.Point ToPoint()
System.Messaging (7)
System\Messaging\Design\QueuePathDialog.cs (7)
223this.okButton.Location = ((System.Drawing.Point)(resources.GetObject("okButton.Location"))); 234this.pathType.Location = ((System.Drawing.Point)(resources.GetObject("pathType.Location"))); 240this.enterprise.Location = ((System.Drawing.Point)(resources.GetObject("enterprise.Location"))); 250this.helpButton.Location = ((System.Drawing.Point)(resources.GetObject("helpButton.Location"))); 257this.selectLabel.Location = ((System.Drawing.Point)(resources.GetObject("selectLabel.Location"))); 261this.referenceLabel.Location = ((System.Drawing.Point)(resources.GetObject("referenceLabel.Location"))); 266this.cancelButton.Location = ((System.Drawing.Point)(resources.GetObject("cancelButton.Location")));
System.Web.DataVisualization (12)
Common\General\Axis.cs (2)
2471PointF first = Point.Empty; 2472PointF 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)
392PointF pConverted = Point.Empty; 393PointF 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)
2542Point[] pointsAlligned = new Point[points.Length]; 2545pointsAlligned[i] = Point.Round(points[i]);
System.Web.Entity.Design (1)
System\Data\WebControls\Design\EntityDataSourceStatementEditorForm.cs (1)
116Point loc = _statementPanel.Location;
System.Windows.Forms (635)
misc\GDI\DeviceContext2.cs (3)
470public Point ViewportOrigin 488public Point SetViewportOrigin( Point newOrigin )
misc\GDI\NativeMethods.cs (1)
235public System.Drawing.Point ToPoint()
misc\GDI\WindowsGraphics2.cs (7)
92Point p = new Point(bounds.X+sideLength/2, bounds.Y+sideLength/2); 138public void DrawText(string text, WindowsFont font, Point pt, Color foreColor) 147public void DrawText(string text, WindowsFont font, Point pt, Color foreColor, Color backColor) 156public void DrawText(string text, WindowsFont font, Point pt, Color foreColor, IntTextFormatFlags flags) 165public void DrawText(string text, WindowsFont font, Point pt, Color foreColor, Color backColor, IntTextFormatFlags flags) 650public void DrawLine(WindowsPen pen, Point p1, Point p2)
winforms\Managed\System\Resources\ResXDataNode.cs (2)
583public Point GetNodePosition() { 800internal Point ReaderPosition; //only used to track position in the reader
winforms\Managed\System\Resources\ResXResourceReader.cs (5)
367private Point GetPosition(XmlReader reader) { 368Point pt = new Point(0, 0); 406Point pt = GetPosition(reader); 414Point pt = GetPosition(reader); 428Point pt = GetPosition(reader);
winforms\Managed\System\WinForms\AxHost.cs (1)
3613Point location = Location;
winforms\Managed\System\WinForms\Button.cs (1)
305Point pt = PointToScreen(new Point(mevent.X, mevent.Y));
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (18)
179Point p1 = new Point(bounds.X + bounds.Width - 1, bounds.Y ); // upper inner right. 180Point p2 = new Point(bounds.X , bounds.Y ); // upper left. 181Point p3 = new Point(bounds.X , bounds.Y + bounds.Height - 1 ); // bottom inner left. 182Point p4 = new Point(bounds.X + bounds.Width - 1, bounds.Y + bounds.Height - 1 ); // inner bottom right. 273Point p1 = new Point(bounds.X + bounds.Width - 1, bounds.Y ); // upper inner right. 274Point p2 = new Point(bounds.X , bounds.Y ); // upper left. 275Point p3 = new Point(bounds.X , bounds.Y + bounds.Height - 1 ); // bottom inner left. 276Point p4 = new Point(bounds.X + bounds.Width - 1, bounds.Y + bounds.Height - 1 ); // inner bottom right. 343Point p1 = new Point(bounds.X + bounds.Width - 1, bounds.Y ); // upper inner right. 344Point p2 = new Point(bounds.X , bounds.Y ); // upper left. 345Point p3 = new Point(bounds.X , bounds.Y + bounds.Height - 1 ); // bottom inner left. 346Point p4 = new Point(bounds.X + bounds.Width - 1, bounds.Y + bounds.Height - 1 ); // inner bottom right. 446Point p1 = new Point(r.Right - 1, r.Top ); // upper inner right. 447Point p2 = new Point(r.Left , r.Top ); // upper left. 448Point p3 = new Point(r.Left , r.Bottom - 1); // bottom inner left. 449Point p4 = new Point(r.Right - 1, r.Bottom - 1); // inner bottom right. 558internal virtual void DrawImageCore(Graphics graphics, Image image, Rectangle imageBounds, Point imageStart, LayoutData layout) { 1493internal Point imageStart; // FOR EVERETT COMPATIBILITY - DO NOT CHANGE
winforms\Managed\System\WinForms\CheckBox.cs (1)
647Point pt = PointToScreen(new Point(mevent.X, mevent.Y));
winforms\Managed\System\WinForms\CheckBoxRenderer.cs (7)
99public static void DrawCheckBox(Graphics g, Point glyphLocation, CheckBoxState state) { 103internal static void DrawCheckBox(Graphics g, Point glyphLocation, CheckBoxState state, IntPtr hWnd) { 128public static void DrawCheckBox(Graphics g, Point glyphLocation, Rectangle textBounds, string checkBoxText, Font font, bool focused, CheckBoxState state) { 140public static void DrawCheckBox(Graphics g, Point glyphLocation, Rectangle textBounds, string checkBoxText, Font font, TextFormatFlags flags, bool focused, CheckBoxState state) { 144internal static void DrawCheckBox(Graphics g, Point glyphLocation, Rectangle textBounds, string checkBoxText, Font font, TextFormatFlags flags, bool focused, CheckBoxState state, IntPtr hWnd) { 178public static void DrawCheckBox(Graphics g, Point glyphLocation, Rectangle textBounds, string checkBoxText, Font font, Image image, Rectangle imageBounds, bool focused, CheckBoxState state) { 190public 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)
1601internal Point EditToComboboxMapping(Message m) { 1785Point Ptlc = EditToComboboxMapping(m); 1801Point Ptmc = EditToComboboxMapping(m); 1817Point Ptrc = EditToComboboxMapping(m); 1830Point Ptl = EditToComboboxMapping(m); 1844Point pt = new Point(x, y); 1881Point P = EditToComboboxMapping(m); 1899Point Pt = EditToComboboxMapping(m); 1922Point ptRBtnUp = EditToComboboxMapping(m); 1938Point point = EditToComboboxMapping(m); 1985Point p = MousePosition; 3729Point pt = new Point(x, y); 6065Point middle = new Point(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.Height / 2); 6075g.FillPolygon(brush, new Point[] {
winforms\Managed\System\WinForms\ContextMenu.cs (3)
197public void Show(Control control, Point pos) { 206public void Show(Control control, Point pos, LeftRightAlignment alignment) { 220private void Show(Control control, Point pos, int flags) {
winforms\Managed\System\WinForms\ContextMenuStrip.cs (1)
90internal void ShowInternal(Control source, Point location, bool isKeyboardActivated) {
winforms\Managed\System\WinForms\Control.cs (34)
990DefaultValue(typeof(Point), "0, 0") 992public virtual Point AutoScrollOffset { 995return (Point)Properties.GetObject(PropAutoScrollOffset); 997return Point.Empty; 3231public Point Location { 3373public static Point MousePosition { 6477public Control GetChildAtPoint(Point pt, GetChildAtPointSkip skipValue) { 6512public Control GetChildAtPoint(Point pt) { 9417Point offs = this.Location; 9588PaintBackground(e, rectangle, this.BackColor, Point.Empty); 9592PaintBackground(e, rectangle, backColor, Point.Empty); 9595internal void PaintBackground(PaintEventArgs e, Rectangle rectangle, Color backColor, Point scrollOffset) { 9618Point scrollLocation = scrollOffset; 9620if (scrollControl != null && scrollLocation != Point.Empty) { 10074public Point PointToClient(Point p) { 10083internal Point PointToClientInternal(Point p) { 10098public Point PointToScreen(Point p) { 10362PrintToMetaFileRecursive(hDC, lParam, new Rectangle(Point.Empty, this.Size)); 10381Point clientOffset = PointToScreen(Point.Empty); 12860Point client; 13489Point pt = new Point(x,y); 13551Point p = new Point(NativeMethods.Util.SignedLOWORD(m.LParam), NativeMethods.Util.SignedHIWORD(m.LParam)); 16266private static Point logPixels = Point.Empty; 16505private Point LogPixels { 16959Point pt = PixelToHiMetric(size.Width, size.Height); 17019private Point HiMetricToPixel(int x, int y) { 17020Point pt = new Point(); 17603private Point PixelToHiMetric(int x, int y) { 17604Point pt = new Point();
winforms\Managed\System\WinForms\ControlPaint.cs (9)
353internal static void CopyPixels(IntPtr sourceHwnd, IDeviceContext targetDC, Point sourceLocation, Point destinationLocation, Size blockRegionSize, CopyPixelOperation copyPixelOperation) { 447DrawBackgroundImage(g, backgroundImage, backColor, backgroundImageLayout, bounds, clipRect, Point.Empty, RightToLeft.No); 449internal static void DrawBackgroundImage(Graphics g, Image backgroundImage, Color backColor, ImageLayout backgroundImageLayout, Rectangle bounds, Rectangle clipRect, Point scrollOffset) { 453internal static void DrawBackgroundImage(Graphics g, Image backgroundImage, Color backColor, ImageLayout backgroundImageLayout, Rectangle bounds, Rectangle clipRect, Point scrollOffset, RightToLeft rightToLeft) { 464if (scrollOffset != Point.Empty) { 502Rectangle partOfImageToDraw = new Rectangle(Point.Empty, imageRect.Size); 1821public static void DrawReversibleLine(Point start, Point end, Color backColor) {
winforms\Managed\System\WinForms\Cursor.cs (5)
258public Point HotSpot 261Point hotSpot = Point.Empty; 305/// Gets or sets a <see cref='System.Drawing.Point'/> that specifies the current cursor 309public static Point Position {
winforms\Managed\System\WinForms\DataGrid.cs (7)
4069Point p = NormalizeToRow(e.X, e.Y, row); 4258Point p = NormalizeToRow(e.X, e.Y, rowOver); 6529/// <see cref='System.Drawing.Point'/>.</para> 6531public HitTestInfo HitTest(Point position) { 7079private Point NormalizeToRow(int x, int y, int row) { 7084Point origin = new Point(0, layout.Data.Y); 9184Point client = DataGrid.PointToClient(new Point(x, y));
winforms\Managed\System\WinForms\DataGridCaption.cs (2)
37private static readonly Point minimumBounds = new Point(50, 30); 255internal Point MinimumBounds {
winforms\Managed\System\WinForms\DataGridRelationshipRow.cs (2)
775Point[] points = new Point[3];
winforms\Managed\System\WinForms\DataGridView.cs (12)
305private Point ptCurrentCell, ptCurrentCellCache = Point.Empty, ptAnchorCell, ptMouseDownCell, ptMouseEnteredCell, ptToolTipCell, ptMouseDownGridCoord; 2237public Point CurrentCellAddress 2753internal Point MouseEnteredCellAddress 2767Point ptMouse = PointToClient(Control.MousePosition); 2780Point ptMouse = PointToClient(Control.MousePosition); 2791Point ptMouse = PointToClient(Control.MousePosition); 2906Point firstDisplayedCellAddress = this.FirstDisplayedCellAddress; 2953private Point FirstDisplayedCellAddress 2957Point ptFirstDisplayedCellAddress = new Point(-1, -1); 3769internal Point MouseDownCellAddress 4859Point mouseCoord = System.Windows.Forms.Control.MousePosition;
winforms\Managed\System\WinForms\DataGridViewAccessibleObject.cs (1)
196Point pt = this.owner.PointToClient(new Point(x, y));
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (1)
712Point ptCurrentCell = this.DataGridView.CurrentCellAddress;
winforms\Managed\System\WinForms\DataGridViewCell.cs (3)
501Point ptCurrentCell = this.DataGridView.CurrentCellAddress; 1798Point ptCurrentCell = this.DataGridView.CurrentCellAddress; 3102Point ptCurrentCell = this.DataGridView.CurrentCellAddress;
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (5)
508Point ptCurrentCell = this.DataGridView.CurrentCellAddress; 603Point ptCurrentCell = this.DataGridView.CurrentCellAddress; 913Point ptCurrentCell = this.DataGridView.CurrentCellAddress; 1082private void NotifyMASSClient(Point position) 1181Point ptCurrentCell = this.DataGridView.CurrentCellAddress;
winforms\Managed\System\WinForms\DataGridViewColumnCollection.cs (4)
984Point newCurrentCell; 1067private void OnCollectionChanged(CollectionChangeEventArgs ccea, bool changeIsInsertion, Point newCurrentCell) 1083private void OnCollectionChanged_PostNotification(CollectionChangeEventArgs ccea, bool changeIsInsertion, Point newCurrentCell) 1189Point newCurrentCell;
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (1)
916Point sortGlyphLocation = new Point(0, 0);
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (8)
1911Point ptCurrentCell = this.DataGridView.CurrentCellAddress; 2152Point ptCurrentCell = this.DataGridView.CurrentCellAddress; 2441Point middle = new Point(dropRect.Left + dropRect.Width / 2, dropRect.Top + dropRect.Height / 2); 2447g.FillPolygon(SystemBrushes.ControlText, new Point[] 2462Point middle = new Point(dropRect.Left + (dropRect.Width - 1) / 2, 2468Point pt1 = new Point(middle.X - (nonXPTriangleWidth - 1) / 2, middle.Y - nonXPTriangleHeight); 2469Point pt2 = new Point(middle.X + (nonXPTriangleWidth - 1) / 2, middle.Y - nonXPTriangleHeight); 2470g.FillPolygon(SystemBrushes.ControlText, new Point[] { pt1, pt2, middle });
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (1)
943Point ptCurrentCell = this.DataGridView.CurrentCellAddress;
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (1)
1016Point ptCurrentCell = this.DataGridView.CurrentCellAddress;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (23)
36protected virtual void AccessibilityNotifyCurrentCellChanged(Point cellAddress) 4900private Point ConvertCellToGridCoord(int columnIndex, int rowIndex, int x, int y) 6056Point ptMouse = PointToClient(Control.MousePosition); 9788Point ptMouse = PointToClient(Control.MousePosition); 10568Point firstDisplayedCellAddress = this.FirstDisplayedCellAddress; 12276Point ptGridCoord = ConvertCellToGridCoord(e.ColumnIndex, e.RowIndex, e.X, e.Y); 12443Point ptOriginalCurrentCell = this.ptCurrentCell; 13024Point ptGridCoord = ConvertCellToGridCoord(e.ColumnIndex, e.RowIndex, e.X, e.Y); 15767internal void OnInsertedColumn_PostNotification(Point newCurrentCell) 15799internal void OnInsertedRow_PostNotification(int rowIndex, Point newCurrentCell, bool lastInsertion) 15837internal void OnInsertedRows_PostNotification(DataGridViewRow[] dataGridViewRows, Point newCurrentCell) 15854internal void OnInsertingColumn(int columnIndexInserted, DataGridViewColumn dataGridViewColumn, out Point newCurrentCell) 15998ref Point newCurrentCell, 16075internal void OnInsertingRows(int rowIndexInserted, DataGridViewRow[] dataGridViewRows, ref Point newCurrentCell) 17346internal void OnRemovedColumn_PostNotification(DataGridViewColumn dataGridViewColumn, Point newCurrentCell) 17396internal void OnRemovedRow_PostNotification(DataGridViewRow dataGridViewRow, Point newCurrentCell) 17472internal void OnRemovingColumn(DataGridViewColumn dataGridViewColumn, out Point newCurrentCell, bool force) 17686internal void OnRemovingRow(int rowIndexDeleted, out Point newCurrentCell, bool force) 19347Point pt = PointToScreen(Location); 26115Point ptMouse = PointToClient(Control.MousePosition); 29192Point ptMouse = PointToClient(Control.MousePosition); 29755Point ptMouse = PointToClient(Control.MousePosition); 29853Point client;
winforms\Managed\System\WinForms\DataGridViewRowCollection.cs (8)
1633Point newCurrentCell = new Point(-1, -1); 1741Point newCurrentCell = new Point(-1, -1); 1834private void InsertDuplicateRow(int indexDestination, DataGridViewRow rowTemplate, bool firstInsertion, ref Point newCurrentCell) 1915Point newCurrentCell = new Point(-1, -1); 2043Point newCurrentCell = new Point(-1, -1); 2066Point newCurrentCell) 2212Point newCurrentCell) 2333Point newCurrentCell = new Point(-1, -1);
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (2)
603Point ptCurrentCell = this.DataGridView.CurrentCellAddress; 703Point ptCurrentCell = this.DataGridView.CurrentCellAddress;
winforms\Managed\System\WinForms\DataGridViewUtilities.cs (2)
347internal static Point GetTextLocation(Rectangle cellBounds, 352Point ptTextLocation = new Point(0, 0);
winforms\Managed\System\WinForms\ErrorProvider.cs (3)
886Point mirrordcOrigin = Point.Empty; 1055mirrordcOrigin = Point.Empty;
winforms\Managed\System\WinForms\Form.cs (5)
1188public Point DesktopLocation { 1191Point loc = Location; 1516public new Point Location { 4448Point p = new Point(); 4489Point p = new Point();
winforms\Managed\System\WinForms\GDI\TextRenderer.cs (4)
29public static void DrawText(IDeviceContext dc, string text, Font font, Point pt, Color foreColor) 56public static void DrawText(IDeviceContext dc, string text, Font font, Point pt, Color foreColor, Color backColor) 83public static void DrawText(IDeviceContext dc, string text, Font font, Point pt, Color foreColor, TextFormatFlags flags) 101public static void DrawText(IDeviceContext dc, string text, Font font, Point pt, Color foreColor, Color backColor, TextFormatFlags flags)
winforms\Managed\System\WinForms\Help.cs (1)
157public static void ShowPopup(Control parent, string caption, Point location) {
winforms\Managed\System\WinForms\HelpEvent.cs (3)
27private readonly Point mousePos; 36public HelpEventArgs(Point mousePos) { 46public Point MousePos {
winforms\Managed\System\WinForms\HtmlDocument.cs (1)
504public HtmlElement GetElementFromPoint(Point point)
winforms\Managed\System\WinForms\HtmlElementEventArgs.cs (3)
65public Point ClientMousePosition { 75public Point OffsetMousePosition { 85public Point MousePosition {
winforms\Managed\System\WinForms\HtmlWindow.cs (3)
188public Point Position 324public void MoveTo(Point point) 450public void ScrollTo(Point point)
winforms\Managed\System\WinForms\ImageList.cs (1)
606public void Draw(Graphics g, Point pt, int index) {
winforms\Managed\System\WinForms\Label.cs (2)
1624ControlPaint.PrintBorder(g, new Rectangle(Point.Empty, Size), BorderStyle, Border3DStyle.SunkenOuter); 1740Point pt = new Point(unchecked((int)(long)m.LParam));
winforms\Managed\System\WinForms\Layout\DockAndAnchorLayout.cs (1)
76Point location = oldBounds.Location;
winforms\Managed\System\WinForms\Layout\FlowLayout.cs (7)
165Point location = rowBounds.Location; 350Point ptScroll = flp.AutoScrollPosition; 351if (ptScroll != Point.Empty) { 352Point pt = new Point(value.X, value.Y); 425Point ptScroll = flp.AutoScrollPosition; 426if (ptScroll != Point.Empty) { 427Point pt = new Point(newBounds.X, newBounds.Y);
winforms\Managed\System\WinForms\Layout\LayoutUtils.cs (2)
374public static Point FlipPoint(Point point) {
winforms\Managed\System\WinForms\LinkLabel.cs (1)
2677Point p = Owner.PointToClient(new Point(x, y));
winforms\Managed\System\WinForms\ListBox.cs (3)
1552public int IndexFromPoint(Point p) { 2414Point pt = new Point(x,y); 2461Point rpt = new Point(rx,ry);
winforms\Managed\System\WinForms\ListView.cs (11)
3099public ListViewItem FindNearestItem(SearchDirectionHint dir, Point point) { 3153private ListViewItem FindItem(bool isTextSearch, string text, bool isPrefixSearch, Point pt, SearchDirectionHint dir, int startIndex, bool includeSubItemsInSearch) { 3377internal Point GetItemPosition(int index) { 3534public ListViewHitTestInfo HitTest(Point point) { 4107Point pos = Cursor.Position; 5362Point pos = Cursor.Position; 5392Point pos = Cursor.Position; 5787Point pos = Cursor.Position; 5974Point pos = Cursor.Position; 6186Point startingPoint = Point.Empty;
winforms\Managed\System\WinForms\ListViewInsertionMark.cs (1)
120 public int NearestIndex(Point pt)
winforms\Managed\System\WinForms\ListViewItem.cs (2)
56private Point position = new Point(-1,-1); 689public Point Position {
winforms\Managed\System\WinForms\MaskedTextBox.cs (4)
1820public override char GetCharFromPosition(Point pt) 1840public override int GetCharIndexFromPosition(Point pt) 1940public override Point GetPositionFromCharIndex(int index) 1942Point pos;
winforms\Managed\System\WinForms\MenuStrip.cs (1)
271Point pt = PointToClient(WindowsFormsUtils.LastCursorPoint);
winforms\Managed\System\WinForms\MonthCalendar.cs (5)
1602public HitTestInfo HitTest(Point point) { 2472readonly Point point; 2480internal HitTestInfo(Point pt, HitArea area, DateTime time) { 2491internal HitTestInfo(Point pt, HitArea area) { 2500public Point Point {
winforms\Managed\System\WinForms\MouseEvent.cs (1)
141public Point Location {
winforms\Managed\System\WinForms\Panel.cs (1)
296ControlPaint.PrintBorder(g, new Rectangle(Point.Empty, Size), BorderStyle, Border3DStyle.Sunken);
winforms\Managed\System\WinForms\Printing\PrintPreviewControl.cs (23)
38Point position = new Point(0,0); 39Point lastOffset; 58private Point screendpi = Point.Empty; 189private Point Position { 576Point virtualPixels = new Point(VirtualSize); 579Point offset = new Point(Math.Max(0, (Size.Width - virtualPixels.X) / 2), 590Point lastImageSize = Point.Empty; 611Point imagePixels = PhysicalToPixels(new Point(imageSize), screendpi); 673private static Point PhysicalToPixels(Point physical, Point dpi) { 678private static Size PhysicalToPixels(Size physicalSize, Point dpi) { 687private static Point PixelsToPhysical(Point pixels, Point dpi) { 692private static Size PixelsToPhysical(Size pixels, Point dpi) { 731Point locPos = position; 739private void SetPositionNoInvalidate(Point value) { 740Point current = position; 794Point locPos = Position; 812Point locPos = Position;
winforms\Managed\System\WinForms\Printing\PrintPreviewDialog.cs (1)
711new public Point Location {
winforms\Managed\System\WinForms\PropertyGrid.cs (11)
678public Point ContextMenuDefaultLocation { 2284Point locDoc = hotcommands.Location; 2293Point locDoc = doccomment.Location; 2612internal Control GetElementFromPoint(Point point) { 2788Point newPt = Point.Empty; 2801Point newPt = Point.Empty; 3287Point psheetLoc = gridView.Location; 4655private bool ShouldForwardChildMouseMessage(Control child, MouseEventArgs me, ref Point pt) { 5439Point clientPoint = _owningPropertyGrid.PointToClient(new Point((int)x, (int)y));
winforms\Managed\System\WinForms\PropertyGridInternal\DropDownButton.cs (1)
213internal override void DrawImageCore(Graphics graphics, Image image, Rectangle imageBounds, Point imageStart, ButtonBaseAdapter.LayoutData layout) {
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (5)
38protected static readonly Point InvalidPoint = new Point(int.MinValue, int.MinValue); 121protected Point labelTipPoint = InvalidPoint; 122protected Point valueTipPoint = InvalidPoint; 791internal virtual Point GetLabelToolTipLocation(int mouseX, int mouseY) { 1021internal Point ValueToolTipLocation {
winforms\Managed\System\WinForms\PropertyGridInternal\GridToolTip.cs (3)
32Point lastMouseMove = Point.Empty; 185Point locPoint = parent.PointToScreen(new Point(rect.left, rect.top));
winforms\Managed\System\WinForms\PropertyGridInternal\HotCommands.cs (2)
198Point[] links = new Point[verbs.Length];
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyDescriptorGridEntry.cs (1)
428internal override Point GetLabelToolTipLocation(int mouseX, int mouseY){
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (35)
41protected static readonly Point InvalidPoint = new Point(int.MinValue, int.MinValue); 91protected static readonly Point InvalidPosition = new Point(int.MinValue, int.MinValue); 149private Point ptOurLocation = new Point(1,1); 154private Point rowSelectPos = Point.Empty; // the position that we clicked on a row to test for double clicks 155private Point lastMouseDown = InvalidPosition; 553public Point ContextMenuDefaultLocation { 557Point pt = PointToScreen( new Point( rect.X, rect.Y ) ); 843protected virtual void AdjustOrigin(System.Drawing.Graphics g, Point newOrigin, ref Rectangle r) { 1275Point newOrigin = new Point(rect.X, rect.Y); 1318Point newOrigin = new Point(r.X, r.Y); 1480Point point = new Point(x, y); 1638Point loc = PointToScreen(new Point(0, 0)); 1713Point loc = PointToScreen(new Point(0, 0)); 1918protected virtual Point FindPosition(int x, int y) { 1925Point pt = new Point(ROWLABEL,0); 2811Point screenPoint = Edit.PointToScreen(new Point(me.X, me.Y)); 2819rowSelectPos = Point.Empty; 3188Point pos = FindPosition(me.X,me.Y); 3228Point pt = Point.Empty; 3461Point posStart = FindPosition(clipRect.X, clipRect.Y); 3462Point posEnd = FindPosition(clipRect.X, clipRect.Y + clipRect.Height); 3491Point loc = this.ptOurLocation; 3641Point editPoint = PointToScreen(lastMouseDown); 3653rowSelectPos = Point.Empty; 4925Point location = topControl.Location; 5276Point mouseLoc = Cursor.Position; 5296Point tipPt = Point.Empty; 5453private Point dragStart = Point.Empty; // the point at which the drag started to compute the delta 5831Point dragPoint = PointToScreen(new Point(e.X, e.Y)); 5901this.dragStart = Point.Empty; 7744Point pos = ((PropertyGridView)Owner).FindPosition(pt.x, pt.y);
winforms\Managed\System\WinForms\RadioButton.cs (1)
573Point pt = PointToScreen(new Point(mevent.X, mevent.Y));
winforms\Managed\System\WinForms\RadioButtonRenderer.cs (8)
98public static void DrawRadioButton(Graphics g, Point glyphLocation, RadioButtonState state) { 102internal static void DrawRadioButton(Graphics g, Point glyphLocation, RadioButtonState state, IntPtr hWnd) { 121public static void DrawRadioButton(Graphics g, Point glyphLocation, Rectangle textBounds, string radioButtonText, Font font, bool focused, RadioButtonState state) { 133public static void DrawRadioButton(Graphics g, Point glyphLocation, Rectangle textBounds, string radioButtonText, Font font, TextFormatFlags flags, bool focused, RadioButtonState state) { 137internal static void DrawRadioButton(Graphics g, Point glyphLocation, Rectangle textBounds, string radioButtonText, Font font, TextFormatFlags flags, bool focused, RadioButtonState state, IntPtr hWnd) { 165public static void DrawRadioButton(Graphics g, Point glyphLocation, Rectangle textBounds, string radioButtonText, Font font, Image image, Rectangle imageBounds, bool focused, RadioButtonState state) { 179public static void DrawRadioButton(Graphics g, Point glyphLocation, Rectangle textBounds, string radioButtonText, Font font, TextFormatFlags flags, Image image, Rectangle imageBounds, bool focused, RadioButtonState state) { 183internal 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)
2322public override int GetCharIndexFromPosition(Point pt) { 2368public override Point GetPositionFromCharIndex(int index) { 2374return Point.Empty;
winforms\Managed\System\WinForms\Screen.cs (3)
307public static Screen FromPoint(Point point) { 379public static Rectangle GetWorkingArea(Point pt) { 412public static Rectangle GetBounds(Point pt) {
winforms\Managed\System\WinForms\ScrollableControl.cs (6)
89internal Point scrollPosition = Point.Empty; 183public Point AutoScrollPosition { 920Point scrollLocation = ScrollToControl(activeControl); 943protected virtual Point ScrollToControl(Control activeControl) { 1190Point pt = AutoScrollPosition;
winforms\Managed\System\WinForms\SearchForVirtualItemEventArgs.cs (3)
11private Point startingPoint; 17public SearchForVirtualItemEventArgs(bool isTextSearch, bool isPrefixSearch, bool includeSubItemsInSearch, string text, Point startingPoint, SearchDirectionHint direction, int startIndex) { 67public Point StartingPoint {
winforms\Managed\System\WinForms\SplitContainer.cs (6)
94private Point anchor = Point.Empty; 202DefaultValue(typeof(Point), "0, 0") 204public override Point AutoScrollOffset { 257public new Point AutoScrollPosition { 2242anchor = Point.Empty;
winforms\Managed\System\WinForms\Splitter.cs (3)
48private Point anchor = Point.Empty; 1019anchor = Point.Empty;
winforms\Managed\System\WinForms\SplitterPanel.cs (1)
218public new Point Location {
winforms\Managed\System\WinForms\StatusBar.cs (2)
50private Point lastClick = new Point(0, 0); 1090Point pt = lastClick;
winforms\Managed\System\WinForms\StatusStrip.cs (1)
377Point noMansLand = displayRect.Location;
winforms\Managed\System\WinForms\TabControl.cs (4)
47private static readonly Point DEFAULT_PADDING = new Point(6, 3); 55private Point padding = DEFAULT_PADDING; 439Point p = this.Location; 637public new Point Padding {
winforms\Managed\System\WinForms\TabPage.cs (1)
330new public Point Location {
winforms\Managed\System\WinForms\TextBoxBase.cs (6)
1684Point pt = PointToScreen(mevent.Location); 1744public virtual char GetCharFromPosition(Point pt) { 1754public virtual int GetCharIndexFromPosition(Point pt) { 1791public virtual Point GetPositionFromCharIndex(int index) { 1793return Point.Empty; 2250Point client;
winforms\Managed\System\WinForms\ToolStrip.cs (30)
52internal static Point InvalidMouseEnter = new Point(Int32.MaxValue, Int32.MaxValue); 106private Point mouseEnterWhenShown = InvalidMouseEnter; 339public new Point AutoScrollPosition { 2344Point midPointOfCurrent = new Point(selectedItem.Bounds.X + selectedItem.Width / 2, 2365Point otherItemMidLocation = new Point(otherItem.Bounds.X + otherItem.Width/2, (down)? otherItem.Bounds.Top : otherItem.Bounds.Bottom); 2789Point location = this.Location; 3500Point itemRelativePoint = item.TranslatePoint(new Point(mea.X, mea.Y), ToolStripPointType.ToolStripCoords, ToolStripPointType.ToolStripItemCoords); 3563Point itemRelativePoint = item.TranslatePoint(new Point(mea.X, mea.Y), ToolStripPointType.ToolStripCoords, ToolStripPointType.ToolStripItemCoords); 3610Point itemRelativePoint = item.TranslatePoint(new Point(mea.X, mea.Y), ToolStripPointType.ToolStripCoords, ToolStripPointType.ToolStripItemCoords); 3942new Point[] { new Point(verticalBeamStart, lastInsertionMarkRect.Y), new Point(verticalBeamStart, lastInsertionMarkRect.Bottom-1), // first vertical line 3947new Point[] { new Point(start, lastInsertionMarkRect.Bottom-1), new Point(start + widthOfBeam-1, lastInsertionMarkRect.Bottom-1), //bottom line 3952new Point[] { new Point(start, lastInsertionMarkRect.Y), new Point(start + widthOfBeam-1, lastInsertionMarkRect.Y), //top line 3964new Point[] { new Point(lastInsertionMarkRect.X, horizontalBeamStart), new Point(lastInsertionMarkRect.Right-1, horizontalBeamStart), // first vertical line 3969new Point[] { new Point(lastInsertionMarkRect.X, start), new Point(lastInsertionMarkRect.X, start + widthOfBeam-1), //left line 3974new Point[] { new Point(lastInsertionMarkRect.Right-1, start), new Point(lastInsertionMarkRect.Right-1, start + widthOfBeam-1), //right line 3994public new Control GetChildAtPoint(Point point) { 3999public new Control GetChildAtPoint(Point pt, GetChildAtPointSkip skipValue) { 4024public ToolStripItem GetItemAt(Point point) { 4156Point newLocation = item.Bounds.Location; 4172protected internal void SetItemLocation(ToolStripItem item, Point location) { 4224Point mousePosition = WindowsFormsUtils.LastCursorPoint; 4618Point cursorLocation = Cursor.Position; 4719Point pt = PointToClient(WindowsFormsUtils.LastCursorPoint); 4838Point clientHit = owner.PointToClient(new Point(x,y)); 5408private void OnDropItem(ToolStripItem droppedItem, Point ownerClientAreaRelativeDropPoint) { 5409Point start = Point.Empty; 5469private bool ShowItemDropPoint(Point ownerClientAreaRelativeDropPoint) { 5508private int GetItemInsertionIndex(Point ownerClientAreaRelativeDropPoint) { 5541private RelativeLocation ComparePositions(Rectangle orig, Point check) {
winforms\Managed\System\WinForms\ToolStripComboBox.cs (2)
736Point middle = new Point(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.Height / 2); 740g.FillPolygon(brush, new Point[] {
winforms\Managed\System\WinForms\ToolStripContentPanel.cs (1)
197public new Point Location {
winforms\Managed\System\WinForms\ToolStripDropDown.cs (16)
36private Point dropDownLocation = Point.Empty; 42private Point displayLocation = new Point(0,0); 689public new Point Location { 1205Point screenPoint = Point.Empty; 1223Point parentClientPoint = Point.Empty; 1239internal Rectangle CalculateDropDownLocation(Point start, ToolStripDropDownDirection dropDownDirection) { 1240Point offset = Point.Empty; 1247Rectangle dropDownBounds = new Rectangle(Point.Empty, GetSuggestedSize()); 2038public void Show(Control control, Point position) { 2056public void Show(Control control, Point position, ToolStripDropDownDirection direction) { 2079public void Show(Point screenLocation) { 2084public void Show(Point position, ToolStripDropDownDirection direction) {
winforms\Managed\System\WinForms\ToolStripDropDownItem.cs (9)
122Rectangle ownerItemBounds = new Rectangle(TranslatePoint(Point.Empty, ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords), Size); 190internal protected virtual Point DropDownLocation 195return Point.Empty; 311Point offset = Point.Empty; 341Point itemScreenLocation = this.TranslatePoint(Point.Empty, ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords); 382Rectangle dropDownBounds = new Rectangle(Point.Empty, DropDown.GetSuggestedSize()); 387Rectangle itemScreenBounds = new Rectangle(this.TranslatePoint(Point.Empty, ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords), this.Size);
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (5)
402Point nextPoint = Point.Empty; 510textRectangle.Y = LayoutUtils.VAlign(textRectangle.Size, new Rectangle(Point.Empty, maxItemSize), ContentAlignment.MiddleCenter).Y; 781Point upLocation = new Point(1, 0); 788Point downLocation = new Point(1, height - downSize.Height);
winforms\Managed\System\WinForms\ToolStripGrip.cs (6)
22Point startLocation = Point.Empty; 24private Point lastEndLocation = ToolStrip.InvalidMouseEnter; 155Point currentLocation = TranslatePoint(mea.Location, ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords); 178Point endLocation = TranslatePoint(new Point(mea.X, mea.Y), ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords); 229Point 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); 393Rectangle 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)
595client.Location = Point.Empty; 2750Point rectangleLocation = this.TranslatePoint(r.Location, ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ToolStripCoords); 3840internal Point TranslatePoint(Point fromPoint, ToolStripPointType fromPointType, ToolStripPointType toPointType) { 3856Point toPoint = Point.Empty; 3857Point currentToolStripItemLocation = Bounds.Location; 4693Rectangle bounds = new Rectangle(Point.Empty, ownerItem.Size);
winforms\Managed\System\WinForms\ToolStripLocationCancelEventArgs.cs (3)
22private Point newLocation; 31public ToolStripLocationCancelEventArgs(Point newLocation, bool value) : base(value) { 43public Point NewLocation {
winforms\Managed\System\WinForms\ToolStripManager.cs (1)
619internal static ToolStripPanel ToolStripPanelFromPoint(Control draggedControl, Point screenLocation) {
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (1)
820ControlPaint.DrawCaptionButton(g, new Rectangle(Point.Empty, image.Size), (CaptionButton)buttonToUse, ButtonState.Flat);
winforms\Managed\System\WinForms\ToolStripPanel.cs (20)
486private Point GetStartLocation(ToolStrip toolStripToDrag) { 585Point[] controlLocations = new Point[this.Controls.Count]; 686Point controlLocation = controlArray[i].Location; 711private void GiveToolStripPanelFeedback(ToolStrip toolStripToDrag, Point screenLocation) { 792public void Show(Point newLocation) { 795public void Move(Point newLocation) { 889public void MoveTo(Point newLocation) { 911Join(toolStripToDrag, Point.Empty); 919Point location = Point.Empty; 946public void Join(ToolStrip toolStripToDrag, Point location) { 966internal void MoveControl(ToolStrip toolStripToDrag, Point screenLocation) { 974Point clientLocation = PointToClient(screenLocation); 985private void MoveInsideContainer(ToolStrip toolStripToDrag, Point clientLocation) { 1003Point currentCursorLoc = PointToClient(WindowsFormsUtils.LastCursorPoint); 1083Point endLocation = (Orientation == Orientation.Horizontal) ? new Point (clientLocation.X, row.Bounds.Y) : new Point (row.Bounds.X, clientLocation.Y); 1143Point cursorLoc = toolStripToDrag.PointToScreen(toolStripToDrag.GripRectangle.Location); 1173private void MoveOutsideContainer(ToolStrip toolStripToDrag, Point screenLocation) { 1200public ToolStripPanelRow PointToRow(Point clientLocation) {
winforms\Managed\System\WinForms\ToolStripPanelCell.cs (1)
333Point newloc = e.NewLocation;
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (12)
718internal void MoveControl(ToolStrip movingControl, Point startClientLocation, Point endClientLocation) { 725internal void JoinRow(ToolStrip toolStripToDrag, Point locationToDrag) { 905public virtual void MoveControl(ToolStrip movingControl, Point startClientLocation, Point endClientLocation) { 911public virtual void JoinRow(ToolStrip toolStripToDrag, Point locationToDrag) { 1040public override void MoveControl(ToolStrip movingControl, Point clientStartLocation, Point clientEndLocation) { 1268public override void JoinRow(ToolStrip toolStripToDrag, Point locationToDrag) { 1553public override void MoveControl(ToolStrip movingControl, Point clientStartLocation, Point clientEndLocation) { 1799public override void JoinRow(ToolStrip toolStripToDrag, Point locationToDrag) {
winforms\Managed\System\WinForms\ToolStripProfessionalLowResolutionRenderer.cs (1)
41Rectangle bounds = new Rectangle(Point.Empty, e.ToolStrip.Size);
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (41)
175Point middle = RenderArrowInternal(g, overflowArrowRect, direction, SystemBrushes.ControlText); 216Rectangle bounds = new Rectangle(Point.Empty, item.Size); 232RenderSeparatorInternal(e.Graphics, e.Item, new Rectangle(Point.Empty, e.Item.Size), e.Vertical); 247Rectangle bounds = new Rectangle(Point.Empty, item.Size); 314Rectangle bounds = new Rectangle(Point.Empty, item.Size); 375Rectangle bounds = new Rectangle(Point.Empty, toolStrip.Size); 492Rectangle bounds = new Rectangle(Point.Empty, item.Size); 673e.Graphics.DrawImage(image, imageRect, new Rectangle(Point.Empty, imageRect.Size), GraphicsUnit.Pixel); 732Rectangle bounds = new Rectangle(Point.Empty, toolStrip.Size); 741Point topLeft = Point.Empty; 742Point topRight = new Point(bounds.Width - 1, 0); 743Point bottomLeft = new Point(0, bounds.Height - 1); 744Point bottomRight = new Point(bounds.Width - 1, bounds.Height - 1); 958Rectangle bounds = new Rectangle(Point.Empty, item.Size); 983Rectangle gradientBounds = new Rectangle(Point.Empty, parent.Size); 987g.FillRectangle(b, new Rectangle(Point.Empty, control.Size)); 992Rectangle gradientBounds = new Rectangle(Point.Empty, control.Size); 1003g.FillRectangle(b, new Rectangle(Point.Empty, control.Size)); 1014Rectangle bounds = new Rectangle(Point.Empty, e.ToolStrip.Size); 1024Rectangle bounds = new Rectangle(Point.Empty, e.ToolStrip.Size); 1036Rectangle bounds = new Rectangle(Point.Empty, toolStripDropDown.Size); 1056Rectangle overflowBoundsFill = new Rectangle(Point.Empty, e.Item.Size); 1103Point start = new Point(overflowBoundsFill.Left - 1, overflowBoundsFill.Height - 2); 1104Point end = new Point(overflowBoundsFill.Left, overflowBoundsFill.Height - 2); 1122Point top1 = new Point(overflowBoundsFill.X - 2, 0); 1123Point top2 = new Point(overflowBoundsFill.X - 1, 1); 1155Rectangle bounds = new Rectangle(Point.Empty, e.ToolStrip.Size); 1161Point topLeft = Point.Empty; 1162Point topRight = new Point(bounds.Width - 1, 0); 1163Point bottomLeft = new Point(0, bounds.Height - 1); 1204Point gradientCopyPixel = bottomLeft; 1371Rectangle bounds = new Rectangle(Point.Empty, item.Size); 1441private Point RenderArrowInternal(Graphics g, Rectangle dropDownRect, ArrowDirection direction, Brush brush) { 1443Point middle = new Point(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.Height / 2); 1448Point[] arrow = null; 1452arrow = new Point[] { 1460arrow = new Point[] { 1468arrow = new Point[] { 1477arrow = new Point[] {
winforms\Managed\System\WinForms\ToolStripRenderer.cs (8)
711Point middle = new Point(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.Height / 2); 715Point[] arrow = null; 732arrow = new Point[] { 739arrow = new Point[] { 746arrow = new Point[] { 754arrow = new Point[] { 878e.Graphics.DrawImage(image, imageRect, new Rectangle(Point.Empty,imageRect.Size), GraphicsUnit.Pixel); 942TextRenderer.DrawText(textGraphics, text, textFont, new Rectangle(Point.Empty, textSize), textColor, textFormat);
winforms\Managed\System\WinForms\ToolStripRenderEventArgs.cs (2)
30this.affectedBounds = new Rectangle(Point.Empty, toolStrip.Size); 113Rectangle itemBounds = new Rectangle(toolStrip.PointToClient(ownerItem.TranslatePoint(Point.Empty, ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords)), ownerItem.Size);
winforms\Managed\System\WinForms\ToolStripSettings.cs (3)
59public Point Location { 61return (Point) this["Location"]; 369public Point Location;
winforms\Managed\System\WinForms\ToolStripSplitButton.cs (4)
368Rectangle dropDownButtonBounds = new Rectangle(Point.Empty, this.Size); 372dropDownButtonBounds = new Rectangle(Point.Empty, new Size(Math.Min(this.Width, DropDownButtonWidth), this.Height)); 378splitButtonButtonBounds = new Rectangle(Point.Empty, new Size(splitButtonButtonWidth, splitButtonButtonHeight)); 556Point clickPoint = new Point(e.X, e.Y);
winforms\Managed\System\WinForms\ToolStripSplitStackLayout.cs (4)
19private Point noMansLand; 352Point itemLocation = new Point(x,y); 475Point itemLocation = new Point(x,y); 511private void SetItemLocation(ToolStripItem item, Point itemLocation, Size itemSize) {
winforms\Managed\System\WinForms\ToolStripSystemRenderer.cs (9)
258Rectangle bounds = new Rectangle(Point.Empty, e.GripBounds.Size); 341vsRenderer.DrawBackground(g, new Rectangle(Point.Empty, item.Size)); 347DrawArrow(new ToolStripArrowRenderEventArgs(g, item, new Rectangle(Point.Empty, item.Size), arrowColor, ArrowDirection.Down)); 374Rectangle bounds = new Rectangle(Point.Empty, item.Size); 392Rectangle fillRect = new Rectangle(Point.Empty, item.Size); 437RenderSeparatorInternal(e.Graphics, e.Item, new Rectangle(Point.Empty, e.Item.Size), e.Vertical); 466Rectangle bounds = new Rectangle(Point.Empty, splitButton.Size); 576vsRenderer.DrawBackground(g, new Rectangle(Point.Empty, item.Size)); 579RenderSmall3DBorderInternal(g, new Rectangle(Point.Empty, item.Size), state, (item.RightToLeft == RightToLeft.Yes));
winforms\Managed\System\WinForms\ToolStripTextBox.cs (3)
599public char GetCharFromPosition(System.Drawing.Point pt) { return TextBox.GetCharFromPosition(pt); } 601public int GetCharIndexFromPosition(System.Drawing.Point pt) { return TextBox.GetCharIndexFromPosition(pt); } 609public System.Drawing.Point GetPositionFromCharIndex(int index) { return TextBox.GetPositionFromCharIndex(index); }
winforms\Managed\System\WinForms\ToolTip.cs (20)
1253private IntPtr GetWindowFromPoint(Point screenCoords, ref bool success) { 1280Point pt = screenCoords; 1560Point cursorLocation = Cursor.Position; 1561Point p = cursorLocation; 1651public void Show(string text, IWin32Window window, Point point) { 1675public void Show(string text, IWin32Window window, Point point, int duration) { 1763Point optimalPoint = this.GetOptimalToolTipPosition(tool, toolRectangle, bubbleSize.Width, bubbleSize.Height); 1796private Point GetOptimalToolTipPosition(IKeyboardToolTip tool, Rectangle toolRectangle, int width, int height) { 2008private void SetTool(IWin32Window win, string text, TipInfo.Type type, Point position) { 2159private void Reposition(Point tipPosition, Size tipSize) { 2160Point moveToLocation = tipPosition; 2216if (tt.Position != Point.Empty) 2248Point cursorLocation = Cursor.Position; 2268Point screenCoords = new Point(sc.x, sc.y); 2394Point cursorPos = Cursor.Position; 2440if ( ((tt.TipType & TipInfo.Type.SemiAbsolute) != 0) && tt.Position == Point.Empty ) { 2467else if ((tt.TipType & TipInfo.Type.SemiAbsolute) != 0 && tt.Position != Point.Empty) { 2540tt.Position = Point.Empty; 2701public Point Position = Point.Empty;
winforms\Managed\System\WinForms\TreeView.cs (8)
1775public TreeViewHitTestInfo HitTest(Point pt) { 1823public TreeNode GetNodeAt(Point pt) { 2163Point pos = Cursor.Position; 2827Point textLoc = new Point(bounds.X -1, bounds.Y); // required to center the text 2904Point pos = Cursor.Position; 2939Point pos = Cursor.Position; 3018Point pos = Cursor.Position; 3391Point client;
winforms\Managed\System\WinForms\Triangle.cs (5)
46Point[] points = BuildTrianglePoints(dir, bounds); 55private static Point[] BuildTrianglePoints(TriangleDirection dir, 58Point[] points = new Point[3]; 123private static void OffsetPoints(Point[] points, int xOffset, int yOffset) {
winforms\Managed\System\WinForms\UpDownBase.cs (4)
965Point pt = PointToScreen(new Point(mevent.X, mevent.Y)); 1093Rectangle clientArea = new Rectangle(Point.Empty, ClientSize); 1306Point pt = new Point(e.X,e.Y); 1652Point pt = new Point(e.X,e.Y);
winforms\Managed\System\WinForms\VisualStyles\VisualStyleRenderer.cs (4)
801public Point GetPoint(PointProperty prop) { 938public HitTestCode HitTestBackground(IDeviceContext dc, Rectangle backgroundRectangle, Point pt, HitTestOptions options) { 962public HitTestCode HitTestBackground(Graphics g, Rectangle backgroundRectangle, Region region, Point pt, HitTestOptions options) { 981public HitTestCode HitTestBackground(IDeviceContext dc, Rectangle backgroundRectangle, IntPtr hRgn, Point pt, HitTestOptions options) {
winforms\Managed\System\WinForms\WebBrowser.cs (1)
1618Point client;
winforms\Managed\System\WinForms\WebBrowserBase.cs (1)
851Point location = Location;
winforms\Managed\System\WinForms\WinFormsUtils.cs (4)
53public static Point LastCursorPoint { 329public static Point TranslatePoint(Point point, Control fromControl, Control toControl) { 738this.graphics.SetClip(new Rectangle(Point.Empty, translatedBounds.Size));
System.Windows.Forms.DataVisualization (15)
Common\General\Axis.cs (2)
2471PointF first = Point.Empty; 2472PointF 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)
392PointF pConverted = Point.Empty; 393PointF 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)
2542Point[] pointsAlligned = new Point[points.Length]; 2545pointsAlligned[i] = Point.Round(points[i]);
WinForm\Utilities\AccessibleObject.cs (3)
47private Point _chartScreenPosition = Point.Empty; 72public Point ChartScreenPosition
System.Workflow.Activities (84)
Designers\ConditionalDesigner.cs (1)
119Point[] diamondPoints =
Designers\SetStateDesigner.cs (1)
93Point location = new Point(
Designers\StateDesigner.cs (17)
54private Point _stateLocation; 190public override Point Location 797private Point TopConnectionPoint 803Point point = new Point(midHorz, bounds.Top); 808private Point BottomConnectionPoint 814Point point = new Point(midHorz, bounds.Bottom); 991public override HitTestInfo HitTest(Point point) 1100if ((edges & DesignerEdges.Left) > 0 && layout.LeftConnectionPoint != Point.Empty) 1107if ((edges & DesignerEdges.Right) > 0 && layout.RightConnectionPoint != Point.Empty) 1118protected override ReadOnlyCollection<Point> GetConnections(DesignerEdges edges) 1120List<Point> connections = new List<Point>(); 1131if ((edges & DesignerEdges.Left) > 0 && layout.LeftConnectionPoint != Point.Empty) 1134if ((edges & DesignerEdges.Right) > 0 && layout.RightConnectionPoint != Point.Empty) 1452Point location = stateDesigner.Location; 1645private Point GetDragImageSnapPoint(ActivityDragEventArgs e) 1647Point snapPoint = new Point(e.Y, e.Y);
Designers\StateDesigner.Layouts.cs (24)
38public override Point Location 45return Point.Empty; 86private Point _location; 136public Point Location 216public virtual void MoveLayout(Point newLocation) 221Point offset = new Point(_location.X - newLocation.X, _location.Y - newLocation.Y); 224Point currentLocation = layout.Location; 225Point newChildDesignerLocation = new Point(currentLocation.X - offset.X, currentLocation.Y - offset.Y); 346public virtual HitTestInfo HitTest(Point point) 386private Point _textLocation; 387private Point _imageLocation; 433public override void MoveLayout(Point newLocation) 435Point offset = new Point(this.Location.X - newLocation.X, this.Location.Y - newLocation.Y); 461Point origin = this.Location; 496public override HitTestInfo HitTest(Point point) 507public virtual Point LeftConnectionPoint 513Point point = new Point(layoutBounds.Left - 4, midVert); 518public virtual Point RightConnectionPoint 524Point point = new Point(layoutBounds.Right + 4, midVert); 783Point location = this.Location; 982Point origin = this.Location; 1203Point location = new Point(this.Location.X, _titleBarLayout.Bounds.Bottom); 1363Point origin = bounds.Location; 1376Point designerLayoutLocation = new Point(
Designers\StateDesignerConnector.cs (9)
107this.SetConnectorSegments(new Collection<Point>()); 130public override bool HitTest(Point point) 138protected override void OnPaintEdited(ActivityDesignerPaintEventArgs e, Point[] segments, Point[] segmentEditPoints) 166protected override void OnPaintSelected(ActivityDesignerPaintEventArgs e, bool primarySelection, Point[] segmentEditPoints) 181new List<Point>(ConnectorSegments).ToArray(), 191ReadOnlyCollection<Point> endSegmentEditPoints = ConnectorSegments; 216new List<Point>(ConnectorSegments).ToArray(), 224private void PaintEditPoints(ActivityDesignerPaintEventArgs e, Point point, bool drawMidSegmentEditPoint)
Designers\StateMachineDesignerPaint.cs (23)
77private static Point[] OptimizeConnectorPoints(Point[] points) 80List<Point> optimized = new List<Point>(); 82Point p1; 83Point p2 = points[0]; 84Point p3 = points[1]; 108internal static void DrawConnector(Graphics graphics, Pen pen, Point[] points, Size connectorCapSize, Size maxCapSize, LineAnchor startConnectorCap, LineAnchor endConnectorCap) 120Point[] startSegment = new Point[] { points[0], points[1] }; 147Point[] endSegment = new Point[] { points[points.GetLength(0) - 2], points[points.GetLength(0) - 1] }; 206private static GraphicsPath GetRoundedPath(Point[] points, int radius) 218Point p1 = points[0]; 219Point p2 = points[1]; 220Point p3 = points[2]; 267private static int GetDistance(Point p1, Point p2) 275private static void AddSegment(GraphicsPath path, int radius, Point p1, Point p2, bool roundP1, bool roundP2, ArrowDirection direction) 316private static void AddRoundedCorner(GraphicsPath path, int diameter, Point midPoint, ArrowDirection direction1, ArrowDirection direction2) 347private static ArrowDirection GetDirection(Point start, Point end)
Designers\WhileDesigner.cs (5)
45Point connectionPoint = Point.Empty; 53Point[] points = new Point[4]; 64DrawConnectors(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)
425Point clientPoint = this.GetPositionFromCharIndex(charIndex - 1); 434Point parentScreenLocation = TopLevelControl.PointToScreen(new Point(0, 0)); 435Point locationInDialog = PointToScreen(clientPoint); 498Point clientPoint = this.GetPositionFromCharIndex(charIndex - 1);
System.Workflow.ComponentModel (668)
AuthoringOM\Design\ActivityDesigner.cs (25)
71private Point location = Point.Empty; 208public virtual Point Location 924public virtual HitTestInfo HitTest(Point point) 1174protected internal virtual ReadOnlyCollection<Point> GetConnections(DesignerEdges edges) 1178List<Point> connections = new List<Point>(); 1329protected virtual void OnMouseDragBegin(Point initialDragPoint, MouseEventArgs e) 1586protected virtual void OnShowSmartTagVerbs(Point smartTagPoint) 1863protected Point PointToScreen(Point point) 1877protected Point PointToLogical(Point point) 1983activityDesigner.Location = Point.Empty; 2590Point logicalPoint = parentView.ClientPointToLogical(new Point(e.X, e.Y)); 2607Point logicalPoint = parentView.ClientPointToLogical(new Point(e.X, e.Y)); 2624Point logicalPoint = parentView.ClientPointToLogical(new Point(e.X, e.Y)); 2641Point logicalPoint = parentView.ClientPointToLogical(new Point(e.X, e.Y)); 2658Point logicalPoint = parentView.ClientPointToLogical(new Point(e.X, e.Y)); 2675Point logicalPoint = parentView.ClientPointToLogical(new Point(e.X, e.Y)); 2717bool IWorkflowDesignerMessageSink.OnMouseDragBegin(Point initialPoint, MouseEventArgs e) 2724Point logicalPoint = parentView.ClientPointToLogical(new Point(e.X, e.Y)); 2741Point logicalPoint = parentView.ClientPointToLogical(new Point(e.X, e.Y)); 2872bool IWorkflowDesignerMessageSink.OnShowContextMenu(Point screenMenuPoint) 2971using (GraphicsPath graphicsPath = ActivityDesignerPaint.GetDesignerPath(this, Point.Empty, new Size(DesignerTheme.BorderWidth, DesignerTheme.BorderWidth), DesignerEdges.All, false))
AuthoringOM\Design\ActivityDesignerLayoutSerializers.cs (8)
29XmlQualifiedName xmlQualifiedName = serializationManager.GetXmlQualifiedName(typeof(Point), out prefix); 298else if (typeof(System.Drawing.Point) == objectType) 410return (value is Point); 416if (obj is Point) 418properties.Add(typeof(Point).GetProperty("X")); 419properties.Add(typeof(Point).GetProperty("Y")); 438object point = Point.Empty; 443TypeConverter converter = TypeDescriptor.GetConverter(typeof(Point));
AuthoringOM\Design\ActivityPreviewDesigner.cs (10)
47private Point[] separatorLine = new Point[2]; 143public override Point Location 373public override HitTestInfo HitTest(Point point) 513protected override Rectangle[] GetDropTargets(Point dropPoint) 666Point point = new Point(e.X, e.Y); 680Point point = new Point(e.X, e.Y); 789private Point SnapInToPreviewStripDropTarget(ActivityDragEventArgs e) 795return Point.Empty; 991Point configErrorLocation = new Point(rectangle.Right - configErrorSize.Width / 2, rectangle.Top - configErrorSize.Height / 2);
AuthoringOM\Design\CompositeActivityDesigner.cs (2)
201public override Point Location 1076public override HitTestInfo HitTest(Point point)
AuthoringOM\Design\Connector.cs (224)
116public virtual Point Location 120IList<Point> connections = this.associatedDesigner.GetConnections(this.designerEdge); 124return Point.Empty; 132IList<Point> connections = this.associatedDesigner.GetConnections(DesignerEdges.All); 135Point location = Location; 206private List<Point> segments = new List<Point>(); 289public virtual ReadOnlyCollection<Point> ConnectorSegments 293List<Point> connectorSegments = new List<Point>(); 314Rectangle bounds = DesignerGeometryHelper.RectangleFromLineSegments(new List<Point>(ConnectorSegments).ToArray()); 328public virtual bool HitTest(Point point) 333ReadOnlyCollection<Point> segments = ConnectorSegments; 336if (DesignerGeometryHelper.PointOnLineSegment(point, new Point[] { segments[i - 1], segments[i] }, selectionSize)) 406protected internal void SetConnectorSegments(ICollection<Point> segments) 432Point[] newSegments = ActivityDesignerConnectorRouter.Route(Source.AssociatedDesigner.Activity.Site, Source, Target, ExcludedRoutingRectangles); 445ActivityDesignerPaint.DrawConnectors(e.Graphics, e.DesignerTheme.ForegroundPen, new List<Point>(ConnectorSegments).ToArray(), arrowCapSize, maxCapSize, theme.ConnectorStartCap, theme.ConnectorEndCap); 449protected internal virtual void OnPaintSelected(ActivityDesignerPaintEventArgs e, bool primarySelection, Point[] segmentEditPoints) 459ActivityDesignerPaint.DrawConnectors(e.Graphics, lineSelectionPen, new List<Point>(ConnectorSegments).ToArray(), arrowCapSize, maxCapSize, theme.ConnectorStartCap, theme.ConnectorEndCap); 465ReadOnlyCollection<Point> endSegmentEditPoints = ConnectorSegments; 476protected internal virtual void OnPaintEdited(ActivityDesignerPaintEventArgs e, Point[] segments, Point[] segmentEditPoints) 513private void PaintEditPoints(ActivityDesignerPaintEventArgs e, Point point, bool drawMidSegmentEditPoint) 722internal List<Point> Segments 832public Cursor GetCursor(Point cursorPoint) 854public bool OnBeginEditing(Point point) 881public void OnContinueEditing(Point point) 897public void OnEndEditing(Point point, bool commitChanges) 979public bool HitTest(Point point) 993List<Point> segments = new List<Point>(); 994List<Point> segmentEditPoints = new List<Point>(); 1104private void UpdateEditPoints(Point newPoint) 1137Point editPointLocation = (orientation == Orientation.Horizontal) ? new Point(previous.Location.X + editPointOffset, previous.Location.Y) : new Point(previous.Location.X, previous.Location.Y + editPointOffset); 1154Point editPointLocation = (orientation == Orientation.Horizontal) ? new Point(next.Location.X + editPointOffset, next.Location.Y) : new Point(next.Location.X, next.Location.Y + editPointOffset); 1181Point[] points = ActivityDesignerConnectorRouter.Route(this.serviceProvider, source, target, this.editedConnector.ExcludedRoutingRectangles); 1264DesignerGeometryHelper.DistanceOfLineSegments(new Point[] { this.editPoints[i].Location, this.editPoints[i + 1].Location }) > minLengthForSegmentEditPoint) 1266Point midPoint = DesignerGeometryHelper.MidPointOfLineSegment(this.editPoints[i].Location, this.editPoints[i + 1].Location); 1275List<Point> segments = new List<Point>(this.editedConnector.ConnectorSegments); 1348double distance = DesignerGeometryHelper.DistanceOfLineSegments(new Point[] { previous.Location, current.Location }); 1358distance = DesignerGeometryHelper.DistanceOfLineSegments(new Point[] { current.Location, next.Location }); 1398Point location = (slope < 1) ? new Point(next.Location.X, current.Location.Y) : new Point(current.Location.X, next.Location.Y); 1428private List<Point> GetPointsFromEditPoints(List<EditPoint> editPoints) 1430List<Point> segments = new List<Point>(); 1452private Point point; 1455public EditPoint(ConnectorEditor owner, EditPointTypes editPointType, Point point) 1478public Point Location 1515public static Point[] Route(IServiceProvider serviceProvider, object source, object target, ICollection<Rectangle> userDefinedRoutingObstacles) 1519List<Point> linesToExclude, pointsToExclude; 1527Point sourcePoint = (source is ConnectionPoint) ? ((ConnectionPoint)source).Location : (Point)source; 1528Point targetPoint = (target is ConnectionPoint) ? ((ConnectionPoint)target).Location : (Point)target; 1530Point[] routedPoints = ConnectorRouter.Route(sourcePoint, targetPoint, new Size(2 * ambientTheme.Margin.Width, 2 * ambientTheme.Margin.Height), rootDesigner.Bounds, rectanglesToExclude.ToArray(), linesToExclude.ToArray(), pointsToExclude.ToArray()); 1537routedPoints = ConnectorRouter.Route(sourcePoint, targetPoint, ambientTheme.Margin, rootDesigner.Bounds, new Rectangle[] { }, linesToExclude.ToArray(), new Point[] { }); 1543Point intermediatePoint = (slope < 1) ? new Point(targetPoint.X, sourcePoint.Y) : new Point(sourcePoint.X, targetPoint.Y); 1544routedPoints = new Point[] { sourcePoint, intermediatePoint, targetPoint }; 1550public static void GetRoutingObstacles(IServiceProvider serviceProvider, object source, object target, out List<Rectangle> rectanglesToExclude, out List<Point> linesToExclude, out List<Point> pointsToExclude) 1557Point sourcePoint = (sourceConnectionPoint != null) ? sourceConnectionPoint.Location : (Point)source; 1561Point targetPoint = (targetConnectionPoint != null) ? targetConnectionPoint.Location : (Point)target; 1596pointsToExclude = new List<Point>(); 1625linesToExclude = new List<Point>(); 1657private static IList<Point> GetDesignerEscapeCover(ActivityDesigner designer, ICollection<object> escapeLocations) 1662Dictionary<DesignerEdges, List<Point>> escapeEdges = new Dictionary<DesignerEdges, List<Point>>(); 1666Point escapePoint = Point.Empty; 1672else if (escapeLocation is Point) 1674escapePoint = (Point)escapeLocation; 1675escapeEdge = DesignerGeometryHelper.ClosestEdgeToPoint((Point)escapeLocation, bounds, DesignerEdges.All); 1680List<Point> escapePoints = null; 1683escapePoints = new List<Point>(); 1698Dictionary<DesignerEdges, Point[]> designerEdgeCover = new Dictionary<DesignerEdges, Point[]>(); 1699designerEdgeCover.Add(DesignerEdges.Left, new Point[] { new Point(bounds.Left, bounds.Top), new Point(bounds.Left, bounds.Bottom) }); 1700designerEdgeCover.Add(DesignerEdges.Top, new Point[] { new Point(bounds.Left, bounds.Top), new Point(bounds.Right, bounds.Top) }); 1701designerEdgeCover.Add(DesignerEdges.Right, new Point[] { new Point(bounds.Right, bounds.Top), new Point(bounds.Right, bounds.Bottom) }); 1702designerEdgeCover.Add(DesignerEdges.Bottom, new Point[] { new Point(bounds.Left, bounds.Bottom), new Point(bounds.Right, bounds.Bottom) }); 1704List<Point> linesToExclude = new List<Point>(); 1709Point[] edge = designerEdgeCover[designerEdge]; 1710List<Point> escapePoints = escapeEdges[designerEdge]; 1711List<Point> escapeCover = new List<Point>(); 1717Point escapePoint = escapePoints[k]; 1733Point escapePoint = escapePoints[k]; 1749Point escapePoint = escapePoints[k]; 1766Point escapePoint = escapePoints[k]; 1793private static bool AreAllSegmentsVerticalOrHorizontal(Point[] segments) 1814public static Point[] Route(Point begin, Point end, Size margin, Rectangle enclosingRectangle, Rectangle[] rectanglesToExclude, Point[] linesToExclude, Point[] pointsToExclude) 1825List<Point> excludedLines = new List<Point>(linesToExclude); 1827foreach (Point point in pointsToExclude) 1839private static Point[] GetRoutedLineSegments(Point begin, Point end, Size margin, Rectangle[] rectanglesToExclude, Point[] linesToExclude) 1853Point A = begin; 1854Point B = end; 1857List<Point> LeA = new List<Point>(); //escape points from begin to end 1858List<Point> LeB = new List<Point>(); //escape points from end to begin 1878Nullable<Point> intersection = null; 1898List<Point> tempList = LeA; 1902Point tempPoint = A; 1927Point objectPoint = LeA[LeA.Count - 1]; 1928Point targetPoint = B; 1940List<Point> tempList = LeA; 1944Point tempPoint = A; 1982List<Point> refinedPath = new List<Point>(); 1986LeA = FirstRefinementAlgorithm(LeA, (Point)intersection, intersectionSegmentA); 1987LeB = FirstRefinementAlgorithm(LeB, (Point)intersection, intersectionSegmentB); 1992refinedPath.Add((Point)intersection); 2014private static Nullable<Point> EscapeAlgorithm(CoverSet coverSet, Point Z, Point targetPoint, 2015ref List<Point> LeA, ref List<ConnectorSegment> LhA, ref List<ConnectorSegment> LvA, ref List<ConnectorSegment> LhB, ref List<ConnectorSegment> LvB, 2018Nullable<Point> intersection = null; 2067Nullable<Point> escapePoint = EscapeProcessI(coverSet, Z, v, Orientation.Horizontal, margin); 2071LeA.Add((Point)escapePoint); 2080LeA.Add((Point)escapePoint); 2089Point r1 = Point.Empty, r2 = Point.Empty, r3 = Point.Empty, r4 = Point.Empty; 2109Nullable<Point> escape = EscapeProcessII(coverSet, Orientation.Vertical, 2119coverSet.AddUsedEscapeLine(new ConnectorSegment(r1, (Point)escape)); 2120LeA.Add((Point)escape); 2132Nullable<Point> escape = EscapeProcessII(coverSet, Orientation.Horizontal, 2142coverSet.AddUsedEscapeLine(new ConnectorSegment(r2, (Point)escape)); 2143LeA.Add((Point)escape); 2155Nullable<Point> escape = EscapeProcessII(coverSet, Orientation.Vertical, 2165coverSet.AddUsedEscapeLine(new ConnectorSegment(r3, (Point)escape)); 2166LeA.Add((Point)escape); 2178Nullable<Point> escape = EscapeProcessII(coverSet, Orientation.Horizontal, 2188coverSet.AddUsedEscapeLine(new ConnectorSegment(r4, (Point)escape)); 2189LeA.Add((Point)escape); 2203private static Nullable<Point> EscapeProcessI(CoverSet coverSet, Point Z, 2232Point p = extremitiesList[i].P; 2233Point direction = new Point(Math.Sign(p.X - Z.X), Math.Sign(p.Y - Z.Y)); 2251Point escapePoint; 2273private static void AddBoundPoint(ref List<DistanceFromPoint> extremitiesList, Point p, ConnectorSegment segment, Point Z) 2281private static Nullable<Point> EscapeProcessII(CoverSet coverSet, Orientation orientation, ref List<Point> LeA, 2283Point Z, Point R, Size margin, out bool intersectionFlag, out ConnectorSegment intersectionSegmentA, out ConnectorSegment intersectionSegmentB) 2297Nullable<Point> itersection = h.Intersect(segment); 2310Nullable<Point> itersection = v.Intersect(segment); 2321Nullable<Point> escapePointI = null; 2370private static List<Point> FirstRefinementAlgorithm(List<Point> Le, Point intersection, ConnectorSegment intersectionSegment) 2372List<Point> refinedSet = new List<Point>(); 2377Point pi; 2405private static void SecondRefinementAlgorithm(CoverSet coverSet, ref List<Point> refinedPath, Size margin) 2407List<Point> newPath = new List<Point>(); 2413Point a1 = refinedPath[currentSegment]; 2414Point a2 = refinedPath[currentSegment + 1]; 2424Point b1 = refinedPath[intersectingSegment]; 2425Point b2 = refinedPath[intersectingSegment + 1]; 2428Nullable<Point> intersection = a.Intersect(b); 2435newPath.Add((Point)intersection); 2439List<Point> temp = refinedPath; 2463Point a1 = refinedPath[currentSegment]; 2464Point a2 = refinedPath[currentSegment + 1]; 2471Point direction = new Point(a2.X - a1.X, a2.Y - a1.Y); 2480Point k = new Point(a1.X + i * margin.Width * direction.X, a1.Y + i * margin.Height * direction.Y); 2489Point c1 = refinedPath[intersectingSegment]; 2490Point c2 = refinedPath[intersectingSegment + 1]; 2493Nullable<Point> intersection = b.Intersect(c); 2494if (intersection != null && c.IsPointOnSegment((Point)intersection)) 2503newPath.Add((Point)intersection); 2507List<Point> temp = refinedPath; 2536public Point P; 2539public DistanceFromPoint(ConnectorSegment segment, Point z, Point p) 2575private Point point1; 2576private Point point2; 2579public ConnectorSegment(Point point1, Point point2) 2589public Point A 2597public Point B 2616public bool Covers(Point p) 2624public Nullable<Point> Intersect(ConnectorSegment segment) 2642public bool PointLiesOnThisLine(Point p) 2648public bool IsPointOnSegment(Point p) 2690public ConnectorSegment PeprendecularThroughPoint(Point p) 2693Point newPoint = new Point(p.X, p.Y); 2702public Point ExtendPointOutwards(Point p) 2720public static double DistanceBetweenPoints(Point p, Point q) 2726public static ConnectorSegment ConstructBoundSegment(CoverSet coverSet, Point a, Point b) 2736public static ConnectorSegment SegmentFromLeftToRightCover(CoverSet coverSet, Point p) 2742Point left = new Point((leftCover != null) ? leftCover.A.X : int.MinValue, p.Y); 2743Point right = new Point((rightCover != null) ? rightCover.A.X : int.MaxValue, p.Y); 2748public static ConnectorSegment SegmentFromBottomToTopCover(CoverSet coverSet, Point p) 2754Point bottom = new Point(p.X, (bottomCover != null) ? bottomCover.A.Y : int.MinValue); 2755Point top = new Point(p.X, (topCover != null) ? topCover.A.Y : int.MaxValue); 2760public static ConnectorSegment ConstructBoundSegment(CoverSet coverSet, Point a, Orientation orientation) 2787public CoverSet(Rectangle[] rectanglesToExclude, Point[] linesToExclude) 2852public bool EscapeLineHasBeenUsed(ConnectorSegment segment, Point escapePoint) 2888public ConnectorSegment GetCover(Point p, DesignerEdges side) 2930public List<ConnectorSegment> GetCovers(Point p, DesignerEdges side) 2958public bool IsEscapePoint(Point origin, Point escape, DesignerEdges side)
AuthoringOM\Design\DesignerHelpers.cs (43)
135DrawImage(graphics, image, destination, new Rectangle(Point.Empty, image.Size), alignment, 1.0f, false); 143DrawImage(graphics, image, destination, new Rectangle(Point.Empty, image.Size), DesignerContentAlignment.Center, transparency, false); 321DrawImage(graphics, image, bounds, new Rectangle(Point.Empty, image.Size), DesignerContentAlignment.Fill, transparency, (buttonState == ButtonState.Inactive)); 331Point gridStart = Point.Empty; 497Point location = designerBounds.Location; 498designerBounds.Location = Point.Empty; 516DrawImage(graphics, compositeDesignerTheme.WatermarkImage, bounds, new Rectangle(Point.Empty, compositeDesignerTheme.WatermarkImage.Size), compositeDesignerTheme.WatermarkAlignment, AmbientTheme.WatermarkTransparency, false); 529return GetDesignerPath(designer, Point.Empty, Size.Empty, DesignerEdges.None, enableRoundedCorners); 532internal static GraphicsPath GetDesignerPath(ActivityDesigner designer, Point offset, Size inflate, DesignerEdges edgeToInflate) 537internal static GraphicsPath GetDesignerPath(ActivityDesigner designer, Point offset, Size inflate, DesignerEdges edgeToInflate, bool enableRoundedCorners) 589internal static void DrawConnectors(Graphics graphics, Pen pen, Point[] points, Size connectorCapSize, Size maxCapSize, LineAnchor startConnectorCap, LineAnchor endConnectorCap) 599Point[] startSegment = new Point[] { points[0], points[1] }; 629Point[] endSegment = new Point[] { points[points.GetLength(0) - 2], points[points.GetLength(0) - 1] }; 1027Point gridStart = Point.Empty; 1183internal static Point SnapToGrid(Point location) 1533internal static void ShowDesignerVerbs(ActivityDesigner designer, Point location, ICollection<DesignerVerb> designerVerbs) 1834internal static DesignerEdges ClosestEdgeToPoint(Point point, Rectangle rect, DesignerEdges edgesToConsider) 1841distances.Add(DistanceFromPointToLineSegment(point, new Point[] { new Point(rect.Left, rect.Top), new Point(rect.Left, rect.Bottom) })); 1847distances.Add(DistanceFromPointToLineSegment(point, new Point[] { new Point(rect.Left, rect.Top), new Point(rect.Right, rect.Top) })); 1853distances.Add(DistanceFromPointToLineSegment(point, new Point[] { new Point(rect.Right, rect.Top), new Point(rect.Right, rect.Bottom) })); 1859distances.Add(DistanceFromPointToLineSegment(point, new Point[] { new Point(rect.Left, rect.Bottom), new Point(rect.Right, rect.Bottom) })); 1877internal static Rectangle RectangleFromLineSegments(Point[] segments) 1883Point leftTop = segments[0]; 1884Point rightBottom = segments[0]; 1886foreach (Point point in segments) 1900internal static bool PointOnLineSegment(Point point, Point[] line, Size hitAreaSize) 1916internal static double DistanceFromPointToRectangle(Point point, Rectangle rect) 1936internal static double DistanceFromPointToLineSegment(Point point, Point[] line) 1950internal static float SlopeOfLineSegment(Point start, Point end) 1971internal static double DistanceBetweenPoints(Point point1, Point point2) 1978internal static double DistanceOfLineSegments(Point[] segments) 1987internal static Point MidPointOfLineSegment(Point point1, Point point2)
AuthoringOM\Design\DesignerInterfaces.cs (12)
121bool OnMouseDragBegin(Point initialPoint, MouseEventArgs e); 136bool OnShowContextMenu(Point screenMenuPoint); 161public Point Translation = Point.Empty; 176private Point snapPoint = Point.Empty; 177private Point dragInitiationPoint = Point.Empty; 180internal ActivityDragEventArgs(DragEventArgs dragEventArgs, Point dragInitiationPoint, Point point, List<Activity> draggedActivities) 206public Point DragImageSnapPoint 222public Point DragInitiationPoint
AuthoringOM\Design\DesignerWidgets.cs (29)
319public Point Location 406public virtual void OnMouseDragBegin(Point initialDragPoint, MouseEventArgs e) 425Point mousePoint = new Point(e.X, e.Y); 455Point mousePoint = new Point(e.X, e.Y); 506protected ScrollButton HitTest(Point mousePoint) 629public Point Location 730public ItemInfo HitTest(Point point) 777public virtual void OnMouseDragBegin(Point initialDragPoint, MouseEventArgs e) 1000public void Show(Point location) 1068public Palette(ItemPalette parent, Point location) 1176Point mousePoint = new Point(e.X, e.Y); 1203Point mousePoint = new Point(e.X, e.Y); 1245Point imagePoint = new Point(itemBounds.Left + 3, itemBounds.Top + 3); 1257graphics.DrawImage(this.enabledItems[i].Image, new Rectangle(imagePoint, imageSize), new Rectangle(Point.Empty, imageSize), GraphicsUnit.Pixel); 1286private void PreparePalette(Point location) 1291Point point = location; 1904Point mousePosition = PointToClient(Control.MousePosition); 2261Point screenCoOrd = this.parentControl.PointToScreen(new Point(this.inplaceTipRectangle.Left, this.inplaceTipRectangle.Top)); 2572public Point Location 2603public ItemInfo HitTest(Point point) 2617Point point = new Point(e.X, e.Y); 3229public Point Location 3244Point descRectanglePos = Point.Empty; 3249Point previewModeBitmapPos = Point.Empty; 3259Point location = Point.Empty; 3470graphics.DrawImage(previewedActivityImage, destnRectangle, new Rectangle(Point.Empty, previewedActivityImage.Size), GraphicsUnit.Pixel);
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (2)
549Point top = new Point(this.propertiesGrid.Right + (this.dummyPreviewPanel.Left - this.propertiesGrid.Right) / 2, this.themePanel.Margin.Top); 550Point bottom = new Point(top.X, this.themePanel.Height - this.themePanel.Margin.Bottom);
AuthoringOM\Design\FreeFormDesigner.cs (15)
271public override Point Location 286List<Point> containedDesignerLocations = new List<Point>(); 510public void MoveContainedDesigner(ActivityDesigner containedDesigner, Point newLocation) 542public override HitTestInfo HitTest(Point point) 784Point newLocation = Location; 885Point dropPoint = new Point(e.X, e.Y); 886Point[] movedLocations = FreeFormDragDropManager.GetDesignerLocations(e.DragInitiationPoint, dropPoint, e.Activities); 894Point location = (newActivities.Contains(designerToMove.Activity)) ? dropPoint : movedLocations[i]; 914Point location = Location; 1111Point leftTop = new Point(int.MaxValue, int.MaxValue), rightBottom = new Point(int.MinValue, int.MinValue); 1308public Point GetLocation(Activity activity) 1310Point location = Point.Empty; 1317public void SetLocation(Activity activity, Point location)
AuthoringOM\Design\Glyphs\ConfigErrorGlyph.cs (2)
52Point configErrorLocation = new Point(designer.Bounds.Right - configErrorSize.Width - margin.Width / 2, designer.Bounds.Top - configErrorSize.Height + margin.Height); 115Point location = designer.ParentView.LogicalPointToScreen(new Point(bounds.Left, bounds.Bottom));
AuthoringOM\Design\Glyphs\ConnectorDragDropGlyph.cs (3)
14private Point glyphPoint = Point.Empty; 16public ConnectorDragDropGlyph(int connectorIndex, Point connectorCenter)
AuthoringOM\Design\MessageFilters\AutoScrollExpandMessageFilter.cs (6)
42Point clientPoint = ParentView.PointToClient(new Point(eventArgs.X, eventArgs.Y)); 110private ScrollDirection AutoScrollDirectionFromPoint(Point clientPoint) 112Rectangle clientRectangle = new Rectangle(Point.Empty, ParentView.ViewPortSize); 153Rectangle clientRectangle = new Rectangle(Point.Empty, ParentView.ViewPortSize); 186Point scrollPosition = parentView.ScrollPosition; 209Point scrollPosition = parentView.ScrollPosition;
AuthoringOM\Design\MessageFilters\ConnectionManager.cs (28)
31private Nullable<Point> initialDragPoint = null; 80Point cursorPoint = Point.Empty; 86Point clientPoint = new Point(eventArgs.X, eventArgs.Y); 91Point logicalPoint = workflowView.ClientPointToLogical(clientPoint); 94this.initialDragPoint = new Point?(logicalPoint); 113Point cursorPoint = Point.Empty; 115Point clientPoint = new Point(eventArgs.X, eventArgs.Y); 119Point logicalPoint = workflowView.ClientPointToLogical(clientPoint); 156Point cursorPoint = Point.Empty; 157Point clientPoint = new Point(eventArgs.X, eventArgs.Y); 166Point logicalPoint = workflowView.ClientPointToLogical(clientPoint); 195Point cursorPoint = Point.Empty; 201Point clientPoint = new Point(eventArgs.X, eventArgs.Y); 204Point logicalPoint = workflowView.ClientPointToLogical(clientPoint); 238connector.OnPaintSelected(new ActivityDesignerPaintEventArgs(e.Graphics, connector.ParentDesigner.Bounds, viewPort, connector.ParentDesigner.DesignerTheme), (selectedComponents == selectionService.PrimarySelection), new Point[] { }); 263private ConnectorEditor GetConnectorEditor(Point editPoint, HitTestInfo messageContext) 291private bool CanBeginEditing(Point editPoint, HitTestInfo messageContext) 312private void BeginEditing(ConnectorEditor editableConnector, Point editPoint) 323private void ContinueEditing(Point editPoint) 347private void EndEditing(Nullable<Point> editPoint) 370this.connectorEditor.OnEndEditing((editPoint != null) ? editPoint.Value : Point.Empty, (editPoint != null)); 418private bool UpdateCursor(Nullable<Point> cursorPoint) 501private static ConnectionPoint[] GetSnappableConnectionPoints(Point currentPoint, ConnectionPoint sourceConnectionPoint, ConnectionPoint activeConnectionPoint, ActivityDesigner activityDesigner, out ConnectionPoint snappedConnectionPoint) 564private static ConnectionPoint[] GetHighlightableConnectionPoints(Point currentPoint, ActivityDesigner activityDesigner)
AuthoringOM\Design\MessageFilters\DragDropManager.cs (20)
26private Point dragImagePointInClientCoOrd = Point.Empty; 33private Point dragInitiationPoint = Point.Empty; 81Point clientPoint = new Point(eventArgs.X, eventArgs.Y); 102Point clientPoint = new Point(eventArgs.X, eventArgs.Y); 110Point logicalPoint = parentView.ClientPointToLogical(clientPoint); 265Point clientPoint = parentView.PointToClient(new Point(eventArgs.X, eventArgs.Y)); 266Point logicalPoint = parentView.ScreenPointToLogical(new Point(eventArgs.X, eventArgs.Y)); 304Point midPointInClientCoOrd = parentView.LogicalPointToClient(dragdropEventArgs.DragImageSnapPoint); 327Point clientPoint = parentView.PointToClient(new Point(eventArgs.X, eventArgs.Y)); 328Point logicalPoint = parentView.ScreenPointToLogical(new Point(eventArgs.X, eventArgs.Y)); 331Point oldDragImagePoint = this.dragImagePointInClientCoOrd; 381Point midPointInClientCoOrd = parentView.LogicalPointToClient(dragdropEventArgs.DragImageSnapPoint); 418Point clientPoint = parentView.PointToClient(new Point(eventArgs.X, eventArgs.Y)); 419Point logicalPoint = parentView.ScreenPointToLogical(new Point(eventArgs.X, eventArgs.Y)); 640public Point DragInitiationPoint 673Rectangle imageRectangle = (image != null) ? new Rectangle(Point.Empty, image.Size) : Rectangle.Empty; 674Rectangle descriptionRectangle = (description.Length > 0) ? new Rectangle(Point.Empty, new Size(AmbientTheme.DragImageTextSize.Width, parentView.Font.Height + 2)) : Rectangle.Empty; 687draggedImageGraphics.DrawImage(image, new Rectangle(Point.Empty, image.Size));
AuthoringOM\Design\MessageFilters\DragSelectionMessageFilter.cs (5)
15private Point startDrag = Point.Empty; 16private Point endDrag = Point.Empty; 57Point logicalPoint = parentView.ClientPointToLogical(new Point(eventArgs.X, eventArgs.Y));
AuthoringOM\Design\MessageFilters\DynamicActionMessageFilter.cs (10)
114Point clientPoint = new Point(eventArgs.X, eventArgs.Y); 166Point clientPoint = new Point(eventArgs.X, eventArgs.Y); 242Point clientPoint = new Point(eventArgs.X, eventArgs.Y); 285UpdateTransparency(Point.Empty); 302Point actionLocation = GetActionBounds(i).Location; 321Rectangle bounds = new Rectangle(Point.Empty, ParentView.ViewPortSize); 336private void UpdateTransparency(Point point) 547ActivityDesignerPaint.DrawImage(graphics, buttonImage, buttonBounds, new Rectangle(Point.Empty, buttonImage.Size), DesignerContentAlignment.Fill, transparency, (button.State == ActionButton.States.Disabled)); 559ActivityDesignerPaint.DrawImage(graphics, buttonImage, buttonBounds, new Rectangle(Point.Empty, buttonImage.Size), DesignerContentAlignment.Fill, this.transparency, false); 572return new Rectangle(Point.Empty, size);
AuthoringOM\Design\MessageFilters\FreeFormDragDropManager.cs (21)
24private Point movedDesignerImagePoint = Point.Empty; 38Point clientPoint = parentView.PointToClient(new Point(eventArgs.X, eventArgs.Y)); 39Point logicalPoint = parentView.ScreenPointToLogical(new Point(eventArgs.X, eventArgs.Y)); 54Point[] previousLocations = GetDesignerLocations(DragInitiationPoint, this.movedDesignerImagePoint, DraggedActivities); 63Point clientPoint = parentView.PointToClient(new Point(eventArgs.X, eventArgs.Y)); 64Point logicalPoint = parentView.ScreenPointToLogical(new Point(eventArgs.X, eventArgs.Y)); 72Point[] newLocations = GetDesignerLocations(DragInitiationPoint, this.movedDesignerImagePoint, DraggedActivities); 120Point[] previousLocations = GetDesignerLocations(DragInitiationPoint, this.movedDesignerImagePoint, DraggedActivities); 129Point clientPoint = parentView.PointToClient(Control.MousePosition); 130Point logicalPoint = parentView.ScreenPointToLogical(Control.MousePosition); 138Point[] newLocations = GetDesignerLocations(DragInitiationPoint, this.movedDesignerImagePoint, DraggedActivities); 163Point[] locations = GetDesignerLocations(DragInitiationPoint, this.movedDesignerImagePoint, DraggedActivities); 170ActivityDesignerPaint.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); 220private void InvalidateDraggedImages(Point[] locations) 244internal static Point[] GetDesignerLocations(Point startPoint, Point endPoint, ICollection<Activity> activitiesToMove) 246List<Point> locations = new List<Point>(); 251Point location = endPoint;
AuthoringOM\Design\MessageFilters\GlyphManager.cs (4)
277private void RefreshActiveGlyph(Point point) 318internal bool IsPointInsideAnyRectangle(Point p) 329private DesignerGlyph GlyphFromPoint(Point point, out ActivityDesigner activityDesigner) 338ActivityDesigner[] containedDesigners = GetActivityDesigners(parentView.ClientRectangleToLogical(new Rectangle(Point.Empty, parentView.ViewPortSize)));
AuthoringOM\Design\MessageFilters\PanningMessageFilter.cs (6)
16private Point panPoint = Point.Empty; 48protected override bool OnShowContextMenu(Point menuPoint) 85SetPanPoint(Point.Empty); 104private void SetPanPoint(Point value) 107this.panningActive = (this.panPoint != Point.Empty);
AuthoringOM\Design\MessageFilters\ReadonlyMessageFilter.cs (1)
105protected override bool OnShowContextMenu(Point menuPoint)
AuthoringOM\Design\MessageFilters\ResizingMessageFilter.cs (11)
32Point clientPoint = new Point(eventArgs.X, eventArgs.Y); 33Point logicalPoint = workflowView.ClientPointToLogical(clientPoint); 51Point clientPoint = new Point(eventArgs.X, eventArgs.Y); 52Point logicalPoint = workflowView.ClientPointToLogical(clientPoint); 151private ActivityDesigner GetDesignerToResize(Point point, out DesignerEdges sizingEdge) 189private DesignerEdges GetSizingEdge(ActivityDesigner designer, Point point) 195if (Math.Floor(DesignerGeometryHelper.DistanceFromPointToLineSegment(point, new Point[] { new Point(designerBounds.Left, designerBounds.Top), new Point(designerBounds.Left, designerBounds.Bottom) })) <= selectionSize.Width + 1) 197if (Math.Floor(DesignerGeometryHelper.DistanceFromPointToLineSegment(point, new Point[] { new Point(designerBounds.Left, designerBounds.Top), new Point(designerBounds.Right, designerBounds.Top) })) <= selectionSize.Height + 1) 199if (Math.Floor(DesignerGeometryHelper.DistanceFromPointToLineSegment(point, new Point[] { new Point(designerBounds.Right, designerBounds.Top), new Point(designerBounds.Right, designerBounds.Bottom) })) <= selectionSize.Width + 1) 201if (Math.Floor(DesignerGeometryHelper.DistanceFromPointToLineSegment(point, new Point[] { new Point(designerBounds.Left, designerBounds.Bottom), new Point(designerBounds.Right, designerBounds.Bottom) })) <= selectionSize.Height + 1) 268private void UpdateDesignerSize(Point point, ActivityDesigner designerToSize, DesignerEdges sizingEdge)
AuthoringOM\Design\MessageFilters\WindowManager.cs (6)
28Point clientPoint = new Point(eventArgs.X, eventArgs.Y); 74Point clientPoint = new Point(eventArgs.X, eventArgs.Y); 108Point clientPoint = new Point(eventArgs.X, eventArgs.Y); 338protected override bool OnShowContextMenu(Point screenMenuPoint) 414Point scrollPosition = parentView.ScrollPosition; 434Point scrollPosition = parentView.ScrollPosition;
AuthoringOM\Design\MessageFilters\WorkflowDesignerMessageFilter.cs (3)
134protected virtual bool OnShowContextMenu(Point screenMenuPoint) 325bool IWorkflowDesignerMessageSink.OnMouseDragBegin(Point initialPoint, MouseEventArgs eventArgs) 469bool IWorkflowDesignerMessageSink.OnShowContextMenu(Point screenMenuPoint)
AuthoringOM\Design\MessageFilters\ZoomingMessageFilter.cs (7)
61protected override bool OnShowContextMenu(Point menuPoint) 119Point center = new Point((this.currentState == ZoomState.In) ? eventArgs.X : parentView.ViewPortSize.Width / 2, (this.currentState == ZoomState.In) ? eventArgs.Y : parentView.ViewPortSize.Height / 2); 170Point center = parentView.LogicalPointToClient(new Point(dragRectangle.Location.X + dragRectangle.Width / 2, dragRectangle.Location.Y + dragRectangle.Height / 2)); 176private void UpdateZoom(int zoomLevel, Point center) 181Point layoutOrigin = parentView.LogicalPointToClient(Point.Empty); 187Point newCenter = new Point((int)((float)parentView.HScrollBar.Maximum * relativeCenterF.X), (int)((float)parentView.VScrollBar.Maximum * relativeCenterF.Y));
AuthoringOM\Design\ParallelActivityDesigner.cs (18)
220ReadOnlyCollection<Point> connectionPoints = GetInnerConnections(DesignerEdges.Top | DesignerEdges.Bottom); 221Point location = (connectionPoints.Count > 0) ? new Point(Location.X, connectionPoints[0].Y) : Location; 275protected override Rectangle[] GetDropTargets(Point dropPoint) 343ReadOnlyCollection<Point> firstDesignerConnections = firstDesigner.GetConnections(DesignerEdges.Top | DesignerEdges.Bottom); 346ReadOnlyCollection<Point> lastDesignerConnections = lastDesigner.GetConnections(DesignerEdges.Top | DesignerEdges.Bottom); 348Point[] parallelLinks = new Point[2]; 380ReadOnlyCollection<Point> designerConnections = activityDesigner.GetConnections(DesignerEdges.Top | DesignerEdges.Bottom); 382Point[] connectingLine = new Point[2]; 402Rectangle[] dropTargets = GetDropTargets(Point.Empty); 424DrawConnectors(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); 431ReadOnlyCollection<Point> firstDesignerConnections = firstDesigner.GetConnections(DesignerEdges.Top | DesignerEdges.Bottom); 433Point[] connectorPoints = new Point[2]; 447ReadOnlyCollection<Point> lastDesignerConnections = lastDesigner.GetConnections(DesignerEdges.Top | DesignerEdges.Bottom); 449Point[] connectorPoints = new Point[2];
AuthoringOM\Design\SequentialActivityDesigner.cs (21)
190ReadOnlyCollection<Point> containerConnections = GetInnerConnections(DesignerEdges.Top | DesignerEdges.Bottom); 191Point containerStartConnection = new Point(); 192Point containerEndConnection = new Point(); 203ReadOnlyCollection<Point> startDesignerConnections = startDesigner.GetConnections(DesignerEdges.Top | DesignerEdges.Bottom); 207List<Point> connections = new List<Point>(); 223ReadOnlyCollection<Point> designerFromConnections = designerFrom.GetConnections(DesignerEdges.Top | DesignerEdges.Bottom); 225ReadOnlyCollection<Point> designerToConnections = designerTo.GetConnections(DesignerEdges.Top | DesignerEdges.Bottom); 233ReadOnlyCollection<Point> endDesignerConnections = endDesigner.GetConnections(DesignerEdges.Top | DesignerEdges.Bottom); 237List<Point> connections = new List<Point>(); 300public override HitTestInfo HitTest(Point point) 389protected override Rectangle[] GetDropTargets(Point dropPoint) 411DrawConnectors(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); 412DrawConnectors(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); 425DrawConnectors(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); 445ReadOnlyCollection<Point> connectionPoints = GetInnerConnections(DesignerEdges.Top | DesignerEdges.Bottom); 446Point location = (connectionPoints.Count > 0) ? connectionPoints[0] : Location; 518Rectangle logicalViewPort = parentView.ClientRectangleToLogical(new Rectangle(Point.Empty, parentView.ViewPortSize)); 526Point glyphLocation = Point.Empty;
AuthoringOM\Design\SequentialWorkflowRootDesigner.cs (3)
257protected override ReadOnlyCollection<Point> GetInnerConnections(DesignerEdges edges) 259List<Point> connectionPoints = new List<Point>(base.GetInnerConnections(edges));
AuthoringOM\Design\StructuredCompositeActivityDesigner.cs (11)
439protected virtual ReadOnlyCollection<Point> GetInnerConnections(DesignerEdges edges) 441List<Point> connectionPoints = new List<Point>(GetConnections(edges)); 452protected virtual Rectangle[] GetDropTargets(Point dropPoint) 470protected void DrawConnectors(Graphics graphics, Pen pen, Point[] points, LineAnchor startCap, LineAnchor endCap) 543Point location = Location; 615protected override void OnShowSmartTagVerbs(Point smartTagPoint) 637Point location = PointToScreen(smartTagPoint); 688private Point SnapInToDropTarget(ActivityDragEventArgs e) 700return Point.Empty; 708Point dropPoint = new Point(e.X, e.Y);
AuthoringOM\Design\WorkflowLayouts.cs (53)
45public abstract Point RootDesignerAlignment { get; } 47public abstract bool IsCoOrdInLayout(Point logicalCoOrd); 50public abstract Point MapInCoOrdToLayout(Point logicalPoint); 51public abstract Point MapOutCoOrdFromLayout(Point logicalPoint); 92public override Point RootDesignerAlignment 100public override bool IsCoOrdInLayout(Point logicalCoOrd) 115public override Point MapInCoOrdToLayout(Point logicalPoint) 120public override Point MapOutCoOrdFromLayout(Point logicalPoint) 142Rectangle workspaceRectangle = new Rectangle(Point.Empty, memoryBitmap.Size); 157Point[] logicalViewPortOrigin = new Point[] { viewPortData.LogicalViewPort.Location }; 178ActivityDesignerPaint.DrawImage(graphics, ambientTheme.WorkflowWatermarkImage, this.parentView.RootDesigner.Bounds, new Rectangle(Point.Empty, ambientTheme.WorkflowWatermarkImage.Size), ambientTheme.WatermarkAlignment, AmbientTheme.WatermarkTransparency, false); 195Rectangle bitmapArea = new Rectangle(Point.Empty, memoryBitmap.Size); 245Point[] logicalViewPortOrigin = new Point[] { viewPortData.LogicalViewPort.Location }; 298public override Point MapInCoOrdToLayout(Point logicalPoint) 305public override Point MapOutCoOrdFromLayout(Point logicalPoint) 378public override Point RootDesignerAlignment 382Point alignment = Point.Empty; 400public override bool IsCoOrdInLayout(Point logicalCoOrd) 422Point deltaLocation = new Point(intersectedPhysicalViewPort.X - pageLayoutData.ViewablePageBounds.X, intersectedPhysicalViewPort.Y - pageLayoutData.ViewablePageBounds.Y); 457Point deltaLocation = new Point(intersectedLogicalViewPort.X - pageLayoutData.LogicalPageBounds.X, intersectedLogicalViewPort.Y - pageLayoutData.LogicalPageBounds.Y); 481public override Point MapInCoOrdToLayout(Point logicalPoint) 488Point delta = new Point(logicalPoint.X - pageLayoutData.ViewablePageBounds.Left, logicalPoint.Y - pageLayoutData.ViewablePageBounds.Top); 497public override Point MapOutCoOrdFromLayout(Point logicalPoint) 503Point delta = new Point(logicalPoint.X - pageLayoutData.LogicalPageBounds.Left, logicalPoint.Y - pageLayoutData.LogicalPageBounds.Top); 523graphics.FillRectangle(Brushes.White, new Rectangle(Point.Empty, memoryBitmap.Size)); 538Point[] points = new Point[] { viewPortData.Translation, new Point(viewPortData.ViewPortSize) }; 570points = new Point[] { viewPortBitmapArea.Location, new Point(viewPortBitmapArea.Size) }; 575ActivityDesignerPaint.DrawImage(graphics, ambientTheme.WorkflowWatermarkImage, viewPortBitmapArea, new Rectangle(Point.Empty, ambientTheme.WorkflowWatermarkImage.Size), ambientTheme.WatermarkAlignment, AmbientTheme.WatermarkTransparency, false); 596Rectangle workspaceRectangle = new Rectangle(Point.Empty, memoryBitmap.Size); 610Point[] points = new Point[] { viewPortData.Translation, new Point(viewPortData.ViewPortSize) }; 661Point bitmapDrawingPoint = Point.Empty; 664points = new Point[] { bitmapDrawingPoint }; 676points = new Point[] { viewPortBitmapArea.Location, new Point(viewPortBitmapArea.Size) }; 804Point pageLocation = Point.Empty; 808Point viewablePageLocation = Point.Empty; 923public Point Position; 925public PageLayoutData(Rectangle logicalPageBounds, Rectangle pageBounds, Rectangle viewablePageBounds, Point rowColumnPos)
AuthoringOM\Design\WorkflowPrinting.cs (14)
36private Point totalPrintablePages = Point.Empty; //number of pages in x and y 37private Point currentPrintablePage = Point.Empty; //page number (in the grid x,y)) we are printing right now 38private Point workflowAlignment = Point.Empty; //amount of alignment translation 94this.currentPrintablePage = Point.Empty; 138ActivityDesignerPaint.DrawImage(graphics, ambientTheme.WorkflowWatermarkImage, boundingRectangle, new Rectangle(Point.Empty, ambientTheme.WorkflowWatermarkImage.Size), ambientTheme.WatermarkAlignment, AmbientTheme.WatermarkTransparency, false); 148Point pageOffset = new Point(this.currentPrintablePage.X * printableArea.Width - this.workflowAlignment.X, this.currentPrintablePage.Y * printableArea.Height - this.workflowAlignment.Y); 157Point scaledAlignment = Point.Empty; 220Point dpi = new Point(Math.Max(NativeMethods.GetDeviceCaps(hDC, NativeMethods.LOGPIXELSX), 1), Math.Max(NativeMethods.GetDeviceCaps(hDC, NativeMethods.LOGPIXELSY), 1)); 313this.workflowView.RootDesigner.Location = Point.Empty; 352this.workflowAlignment = Point.Empty;
AuthoringOM\Design\WorkflowView.cs (44)
115private Point prePreviewScroll = Point.Empty; 349PointF oldRelativeCenter = Point.Empty; 350Point oldCenter = new Point(ScrollPosition.X, ScrollPosition.Y); 358Point newCenter = new Point((int)((float)hScrollBar.Maximum * oldRelativeCenter.X), (int)((float)vScrollBar.Maximum * oldRelativeCenter.Y)); 454public Point ScrollPosition 902Point scrollPosition = new Point(0, 0); 1039viewPortData.LogicalViewPort = ClientRectangleToLogical(new Rectangle(Point.Empty, ViewPortSize)); 1159Point clientPoint = PointToClient(Control.MousePosition); 1176Point clientPoint = PointToClient(Control.MousePosition); 1419Point location = (LParam != -1) ? new Point(LParam) : Control.MousePosition; 1535viewPortData.LogicalViewPort = new Rectangle(Point.Empty, new Size(rootDesigner.Bounds.Width + 2 * DefaultWorkflowLayout.Separator.Width, rootDesigner.Bounds.Height + 2 * DefaultWorkflowLayout.Separator.Height)); 1538viewPortData.Translation = Point.Empty; 1579Point[] logicalViewPortOrigin = new Point[] { viewPortData.LogicalViewPort.Location }; 1660viewPortGraphics.FillRectangle(shadowDepthBrush, new Rectangle(Point.Empty, new Size(memoryBitmap.Size.Width - viewPortData.ShadowDepth.Width - 1, memoryBitmap.Size.Height - viewPortData.ShadowDepth.Height - 1))); 1737Rectangle clientRectangle = ClientRectangleToLogical(new Rectangle(Point.Empty, ViewPortSize)); 1761Point scrollPosition = ScrollPosition; 2030public Point LogicalPointToScreen(Point logicalPoint) 2035public Point ScreenPointToLogical(Point screenPoint) 2040public Point LogicalPointToClient(Point logicalPoint) 2045public Point ClientPointToLogical(Point clientPoint) 2052Point[] points = new Point[] { new Point(logicalSize) }; 2064Point[] points = new Point[] { new Point(clientSize) }; 2092internal bool IsClientPointInActiveLayout(Point clientPoint) 2094Point logicalPoint = ClientPointToLogical(clientPoint, false); 2103private Point LogicalPointToClient(Point point, bool mapToLayout) 2111Point[] points = new Point[] { point }; 2121private Point ClientPointToLogical(Point point, bool mapToLayout) 2123Point[] points = new Point[] { point }; 2174Point clientPoint = Point.Empty; 2187Point logicalPoint = this.workflowView.ClientPointToLogical(clientPoint); 2263return new Rectangle(this.workflowView.PointToScreen(Point.Empty), this.workflowView.ViewPortSize);
AuthoringOM\Serializer\WorkflowMarkupSerializationManager.cs (1)
500else if (typeof(Point).IsAssignableFrom(objectType))
System.WorkflowServices (4)
System\Workflow\Activities\Design\RichListBox.cs (2)
24Dictionary<object, Point> itemLocations; 34itemLocations = new Dictionary<object, Point>();
System\Workflow\ComponentModel\Design\ActivityDesignerHighlighter.cs (2)
97Point scrollPosition = workflowView.ClientPointToLogical(owner.Location); 119Point scrollPosition = workflowView.ClientPointToLogical(e.Location);