847 references to Point
System.Drawing (21)
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 (5)
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.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 (385)
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 (1)
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 (14)
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)); 16582Control realTarget = target.GetChildAtPoint(new Point(pt.x, pt.y)); 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 (2)
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\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 (6)
38Point position = new Point(0,0); 427screendpi = new Point(UnsafeNativeMethods.GetDeviceCaps(new HandleRef(tempGraphics, dc), NativeMethods.LOGPIXELSX), 444SetVirtualSizeNoInvalidate(new Size(PhysicalToPixels(new Point(virtualX, virtualY), screendpi))); 579Point offset = new Point(Math.Max(0, (Size.Width - virtualPixels.X) / 2), 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.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 (292)
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 (17)
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 (8)
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); 666bitmapDrawingPoint = new Point(points[0].X - viewPortData.Translation.X, points[0].Y - viewPortData.Translation.Y); 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 (14)
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); 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); 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);