450 references to Left
System.Drawing (1)
misc\GDI\NativeMethods.cs (1)
179this.left = r.Left;
System.Web.DataVisualization (12)
Common\General\ChartGraphics.cs (10)
2434 this.DrawLine(markPen, absPositionRounded.Left, absPositionRounded.Top, absPositionRounded.Left, absPositionRounded.Bottom); 2439 this.DrawLine(markPen, absPositionRounded.Left, absPositionRounded.Top, absPositionRounded.Right, absPositionRounded.Top); 2440 this.DrawLine(markPen, absPositionRounded.Left, absPositionRounded.Bottom, absPositionRounded.Right, absPositionRounded.Bottom); 2450 (axis.AxisPosition == AxisPosition.Left) ? absPositionRounded.Left : absPositionRounded.Right, 2459 absPositionRounded.Left, 2461 absPositionRounded.Left, 2473 (axis.AxisPosition == AxisPosition.Left) ? absPositionRounded.Left : absPositionRounded.Right, 2568 leftLine[0].X = absPositionRounded.Left; 2570 leftLine[1].X = absPositionRounded.Left;
Common\General\Legend.cs (2)
2459 separatorPosition.X = legendItem.Cells[0].cellPosition.Left; 4087 columnStart = rect.Left;
System.Windows.Forms (167)
misc\GDI\NativeMethods.cs (1)
179this.left = r.Left;
misc\GDI\WindowsGraphics2.cs (1)
127DrawEllipse(pen, brush, bounds.Left, bounds.Top, bounds.Right, bounds.Bottom);
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (2)
447Point p2 = new Point(r.Left , r.Top ); // upper left. 448Point p3 = new Point(r.Left , r.Bottom - 1); // bottom inner left.
winforms\Managed\System\WinForms\ButtonInternal\ButtonPopupAdapter.cs (8)
101g.DrawLine(windowFrame, r.Left + 1, r.Top + 1, r.Right - 2, r.Top + 1); 102g.DrawLine(windowFrame, r.Left + 1, r.Top + 1, r.Left + 1, r.Bottom - 2); 105g.DrawLine(windowFrame, r.Left, r.Bottom - 1, r.Right, r.Bottom - 1); 109g.DrawLine(highlight, r.Left, r.Top, r.Right, r.Top); 110g.DrawLine(highlight, r.Left, r.Top, r.Left, r.Bottom); 113g.DrawLine(buttonShadow, r.Left + 1, r.Bottom - 2, r.Right - 2, r.Bottom - 2);
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxBaseAdapter.cs (7)
181wg.DrawLine(high, r.Left, r.Bottom-1, r.Right, r.Bottom-1); 183wg.DrawLine(shadow, r.Left, r.Top, r.Left , r.Bottom); 184wg.DrawLine(shadow, r.Left, r.Top, r.Right- 1, r.Top); 187wg.DrawLine(face, r.Left + 1, r.Bottom - 2, r.Right - 1, r.Bottom - 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 (1)
188RadioButtonRenderer.DrawRadioButton(g, new Point(check.Left, check.Top), RadioButtonRenderer.ConvertFromButtonState(style, Control.MouseIsOver), Control.HandleInternal);
winforms\Managed\System\WinForms\ComboBox.cs (3)
4617int left = parentRect.Left; 6065Point middle = new Point(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.Height / 2); 6105Rectangle leftOwnerDrawArea = new Rectangle(0,0,innerBorder.Left, comboBox.Height);
winforms\Managed\System\WinForms\Control.cs (3)
9747e.Graphics.DrawLine(pen, clientRectangle.Left, clientRectangle.Top, 9749e.Graphics.DrawLine(pen, clientRectangle.Left, clientRectangle.Bottom, 9806Rectangle newClipRect = new Rectangle(rectangle.Left + this.Left, rectangle.Top + this.Top, rectangle.Width, rectangle.Height);
winforms\Managed\System\WinForms\ControlPaint.cs (1)
1194graphics.FillRectangle(brush, bounds.Left + 1, bounds.Top + 1, bounds.Width - 2, bounds.Height - 2);
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (1)
340int borderAndPaddingWidths = borderWidthsRect.Left + borderWidthsRect.Width + cellStyle.Padding.Horizontal;
winforms\Managed\System\WinForms\DataGridViewCell.cs (3)
1253cellValueBounds.Left + DATAGRIDVIEWCELL_iconMarginWidth : 4361rectPadding.X = bounds.Left + cellStyle.Padding.Right; 4370rectPadding.X = bounds.Left + cellStyle.Padding.Left;
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (6)
762int borderAndPaddingWidths = borderWidthsRect.Left + borderWidthsRect.Width + cellStyle.Padding.Horizontal; 1309checkBoxX = valBounds.Left + (valBounds.Width - checkBoxSize.Width) / 2; 1313checkBoxX = valBounds.Left; 1393g.DrawLine(pen, checkBounds.Left, checkBounds.Top, checkBounds.Right-1, checkBounds.Top); 1394g.DrawLine(pen, checkBounds.Left, checkBounds.Top, checkBounds.Left, checkBounds.Bottom-1);
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (4)
538int borderAndPaddingWidths = borderWidthsRect.Left + borderWidthsRect.Width + cellStyle.Padding.Horizontal; 962sortGlyphLocation = new Point(valBounds.Left - 1011sortGlyphLocation = new Point(valBounds.Left + (valBounds.Width-sortGlyphWidth)/2, 1252Rectangle cornerClip = new Rectangle(bounds.Left, bounds.Bottom-2, 2, 2);
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (9)
1372int borderAndPaddingWidths = borderWidthsRect.Left + borderWidthsRect.Width + cellStyle.Padding.Horizontal; 2194g.FillRectangle(br, valBounds.Left, valBounds.Top, valBounds.Width, valBounds.Height); 2210g.FillRectangle(br, valBounds.Left + 1, valBounds.Top + 1, valBounds.Width - 2, valBounds.Height - 2); 2221g.FillRectangle(br, valBounds.Left, valBounds.Top, valBounds.Width, valBounds.Height); 2247dropRect = new Rectangle(this.DataGridView.RightToLeftInternal ? valBounds.Left : valBounds.Right - dropWidth, 2254dropRect = new Rectangle(this.DataGridView.RightToLeftInternal ? valBounds.Left + 1 : valBounds.Right - dropWidth - 1, 2262dropRect = new Rectangle(this.DataGridView.RightToLeftInternal ? valBounds.Left + 2 : valBounds.Right - dropWidth - 2, 2441Point middle = new Point(dropRect.Left + dropRect.Width / 2, dropRect.Top + dropRect.Height / 2); 2462Point middle = new Point(dropRect.Left + (dropRect.Width - 1) / 2,
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (1)
476int borderAndPaddingWidths = borderWidthsRect.Left + borderWidthsRect.Width + cellStyle.Padding.Horizontal;
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (1)
663int borderAndPaddingWidths = borderWidthsRect.Left + borderWidthsRect.Width + cellStyle.Padding.Horizontal;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (32)
2569int overflowWidth = leftEdge - this.mouseBarOffset - clip.Left - DataGridViewBand.maxBandThickness + 1; 3026r.X = Math.Max(inside.Left, r.X); 3033r.X = Math.Max(r.X, inside.Left); 3044r.X = Math.Max(inside.Left, r.X); 4915columnX = this.layout.RowHeaders.Left - 1; 4919columnX = this.layout.RowHeaders.Left; 6324x = Math.Max(e.X + this.mouseBarOffset, this.layout.Data.Left - 1); 8671hti = HitTest(this.RightToLeftInternal ? rectScrollingArea.Right-1 : rectScrollingArea.Left, mouseY); 8698hti = HitTest(this.RightToLeftInternal ? rectScrollingArea.Right : rectScrollingArea.Left, mouseY); 8721mouseX = rectScrollingArea.Left+1; 8726hti = HitTest(this.RightToLeftInternal ? rectScrollingArea.Right : rectScrollingArea.Left, mouseY); 8745mouseX = rectScrollingArea.Left+1; 8765if (mouseX >= rectScrollingArea.Left && mouseX <= rectScrollingArea.Right) 8801if ((!this.RightToLeftInternal && mouseX < rectScrollingArea.Left) || 8820xOffset = mouseX - rectScrollingArea.Left; 8831Debug.Assert((!this.RightToLeftInternal && mouseX > rectScrollingArea.Right) || (this.RightToLeftInternal && mouseX < rectScrollingArea.Left)); 8861xOffset = rectScrollingArea.Left - mouseX; 8942if ((!this.RightToLeftInternal && mouseX < rectScrollingArea.Left) || 8967xOffset = mouseX - rectScrollingArea.Left; 8973if (!this.RightToLeftInternal && mouseX < this.layout.Data.Left) 8975mouseX = this.layout.Data.Left+1; 8986(this.RightToLeftInternal && mouseX < rectScrollingArea.Left)) 9012xOffset = rectScrollingArea.Left - mouseX; 9025mouseX = rectScrollingArea.Left+1; 9039mouseX = rectScrollingArea.Left+1; 9408hti.colStart = this.layout.TopLeftHeader.Left; 9412(this.RightToLeftInternal && x - this.layout.TopLeftHeader.Left < DATAGRIDVIEW_columnSizingHotZone)) 9420hti.mouseBarOffset = this.layout.TopLeftHeader.Left - x - 1; 9561hti.colStart = this.layout.RowHeaders.Left; 9601(this.RightToLeftInternal && x - this.layout.RowHeaders.Left < DATAGRIDVIEW_columnSizingHotZone)) 9609hti.mouseBarOffset = this.layout.RowHeaders.Left - x - 1; 19830Debug.Assert(bounds.Left == 0);
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (2)
665int borderAndPaddingWidths = borderWidthsRect.Left + borderWidthsRect.Width + cellStyle.Padding.Horizontal; 1134bounds.Left + DATAGRIDVIEWROWHEADERCELL_iconMarginWidth,
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (1)
438int borderAndPaddingWidths = borderWidthsRect.Left + borderWidthsRect.Width + cellStyle.Padding.Horizontal;
winforms\Managed\System\WinForms\DataGridViewTopLeftHeaderCell.cs (1)
184int borderAndPaddingWidths = borderWidthsRect.Left + borderWidthsRect.Width + cellStyle.Padding.Horizontal;
winforms\Managed\System\WinForms\GroupBoxRenderer.cs (17)
199clipMiddle.X = clipLeft.Left - clipMiddle.Width; 229g.DrawLine(light, bounds.Left + 1, bounds.Top + 1, bounds.Left + 1, bounds.Height - 1); 230g.DrawLine(dark, bounds.Left, bounds.Top + 1, bounds.Left, bounds.Height - 2); 233g.DrawLine(light, bounds.Left, bounds.Height - 1, bounds.Width - 1, bounds.Height - 1); 234g.DrawLine(dark, bounds.Left, bounds.Height - 2, bounds.Width - 1, bounds.Height - 2); 237g.DrawLine(light, bounds.Left + 1, bounds.Top + 1, bounds.Width - 1, bounds.Top + 1); 238g.DrawLine(dark, bounds.Left, bounds.Top, bounds.Width - 2, bounds.Top); 287g.DrawLine(light, bounds.Left + 1, boxTop, bounds.Left + 1, bounds.Height - 1); 288g.DrawLine(dark, bounds.Left, boxTop - 1, bounds.Left, bounds.Height - 2); 291g.DrawLine(light, bounds.Left, bounds.Height - 1, bounds.Width, bounds.Height - 1); 292g.DrawLine(dark, bounds.Left, bounds.Height - 2, bounds.Width - 1, bounds.Height - 2); 295g.DrawLine(light, bounds.Left + 1, boxTop, textBounds.X - 2, boxTop); 296g.DrawLine(dark, bounds.Left, boxTop - 1, textBounds.X - 3, boxTop - 1);
winforms\Managed\System\WinForms\Layout\DockAndAnchorLayout.cs (3)
195left = Math.Max(Math.Abs(left), Math.Abs(cachedBounds.Left)); 200left = left > 0 ? left : element.Bounds.Left; 563anchorInfo.Left = element.Bounds.Left;
winforms\Managed\System\WinForms\Layout\LayoutUtils.cs (4)
472Debug.Assert(region1.Right == region2.Left, "Adjacency error."); 477Debug.Assert(region2.Right == region1.Left, "Adjacency error."); 512int left = (specified & AnchorStyles.Left) != 0 ? substitutionBounds.Left : originalBounds.Left;
winforms\Managed\System\WinForms\ListView.cs (4)
3139x = Math.Max(itemBounds.Left, iconBounds.Left) - 1; 3142x = Math.Max(itemBounds.Left, iconBounds.Left) + 1;
winforms\Managed\System\WinForms\ListViewItem.cs (3)
1033return this.ListView.FindNearestItem(searchDirection, r.Left, r.Top); 1035return this.ListView.FindNearestItem(searchDirection, r.Left, r.Bottom); 1037return this.ListView.FindNearestItem(searchDirection, r.Left, r.Top);
winforms\Managed\System\WinForms\NativeMethods.cs (2)
3091this.left = r.Left; 6473this.left = r.Left;
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (1)
5862newBounds.X = dragBaseRect.Left + delta;
winforms\Managed\System\WinForms\StatusStrip.cs (1)
576gripLocation = new NativeMethods.POINT(SizeGripBounds.Left, SizeGripBounds.Bottom);
winforms\Managed\System\WinForms\ToolStrip.cs (3)
4305gripRectangle.X = displayRect.Left; 5491insertionRect = new Rectangle(item.Bounds.Left, owner.Margin.Top, ToolStrip.insertionBeamWidth, owner.Height - (owner.Margin.Vertical) -1); 5550if ((orig.Left + widthUnit) >= check.X) {
winforms\Managed\System\WinForms\ToolStripComboBox.cs (1)
736Point middle = new Point(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.Height / 2);
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (1)
482this.maxItemSize.Width = (arrowRectangle.Right + scaledArrowPadding.Right) - imageMarginBounds.Left;
winforms\Managed\System\WinForms\ToolStripHighContrastRenderer.cs (1)
336 g.DrawLine(foreColorPen, bounds.Left, startY, bounds.Right - 1, startY);
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (8)
381g.DrawLine(p, bounds.Left, bounds.Height - 1, bounds.Right, bounds.Height - 1); 909Rectangle bounds = DpiHelper.IsScalingRequired ? new Rectangle(e.ImageRectangle.Left-2, (e.Item.Height - e.ImageRectangle.Height )/2- 1, e.ImageRectangle.Width+4, e.ImageRectangle.Height +2) : 910new Rectangle(e.ImageRectangle.Left - 2, 1, e.ImageRectangle.Width + 4, e.Item.Height - 2); 1103Point start = new Point(overflowBoundsFill.Left - 1, overflowBoundsFill.Height - 2); 1104Point end = new Point(overflowBoundsFill.Left, overflowBoundsFill.Height - 2); 1329g.DrawLine(foreColorPen, bounds.Left, startY, bounds.Right - 1, startY); 1334g.DrawLine(highlightColorPen, bounds.Left + 1, startY, bounds.Right - 1, startY); 1443Point middle = new Point(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.Height / 2);
winforms\Managed\System\WinForms\ToolStripRenderer.cs (1)
711Point middle = new Point(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.Height / 2);
winforms\Managed\System\WinForms\ToolStripSplitStackLayout.cs (6)
251int lastLeft = displayRectangle.Left;// + toolStrip.Padding.Left; 270lastLeft = clientRectangle.Left; 318int x = displayRectangle.Left; 455int x = displayRectangle.Left + itemMargin.Left; 523|| (itemBounds.Left < displayRectangle.Left)) {
winforms\Managed\System\WinForms\ToolStripSystemRenderer.cs (6)
645g.DrawLine(foreColorPen, bounds.Left, startY, bounds.Right, startY); 649g.DrawLine(SystemPens.ButtonHighlight, bounds.Left, startY, bounds.Right, startY); 670g.DrawLine(topPen, bounds.Left, bounds.Top, bounds.Right -1, bounds.Top); 671g.DrawLine(leftPen, bounds.Left, bounds.Top, bounds.Left, bounds.Bottom-1); 673g.DrawLine(bottomPen, bounds.Left, bounds.Bottom-1, bounds.Right -1, bounds.Bottom -1);
winforms\Managed\System\WinForms\ToolStripTextBox.cs (1)
874g.FillRectangle(b, 0, 0, clientRect.Left, this.Height); // left border
winforms\Managed\System\WinForms\ToolTip.cs (6)
1572visibleRect.left = (r.left < screen.WorkingArea.Left) ? screen.WorkingArea.Left:r.left; 1756int pointX = (toolRectangle.Left + toolRectangle.Right) / 2; 1798int centeredX = toolRectangle.Left + toolRectangle.Width / 2 - width / 2; // tooltip will be aligned with tool vertically 1805possibleLocations[LEFT_LOCATION_INDEX] = new Rectangle(toolRectangle.Left - width, centeredY, width, height); 1866return new Point(optimalLocation.Left, optimalLocation.Top);
winforms\Managed\System\WinForms\TreeView.cs (1)
2922NativeMethods.HWND_TOPMOST, bounds.Left, bounds.Top, 0, 0, NativeMethods.SWP_NOACTIVATE | NativeMethods.SWP_NOSIZE | NativeMethods.SWP_NOZORDER);
winforms\Managed\System\WinForms\UpDownBase.cs (4)
811Rectangle clipLeft = new Rectangle(bounds.Left, bounds.Top, border, bounds.Height); 812Rectangle clipTop = new Rectangle(bounds.Left, bounds.Top, bounds.Width, border); 814Rectangle clipBottom = new Rectangle(bounds.Left, bounds.Bottom - border, bounds.Width, border); 1736e.Graphics.DrawLine(pen, clientRect.Left, clientRect.Bottom - 1, clientRect.Right - 1, clientRect.Bottom - 1);
winforms\Managed\System\WinForms\WinFormsUtils.cs (5)
114else if (bounds.Left < constrainingBounds.Left) { 116bounds.X = constrainingBounds.Left; 630HandleRef hClippingRegion = new HandleRef(null, SafeNativeMethods.CreateRectRgn(viewportOrg.x + bounds.Left, viewportOrg.y + bounds.Top, viewportOrg.x + bounds.Right, viewportOrg.y + bounds.Bottom)); 645success = SafeNativeMethods.SetViewportOrgEx(hDC, viewportOrg.x + bounds.Left, viewportOrg.y + bounds.Top, lastViewPort);
System.Windows.Forms.DataVisualization (12)
Common\General\ChartGraphics.cs (10)
2434 this.DrawLine(markPen, absPositionRounded.Left, absPositionRounded.Top, absPositionRounded.Left, absPositionRounded.Bottom); 2439 this.DrawLine(markPen, absPositionRounded.Left, absPositionRounded.Top, absPositionRounded.Right, absPositionRounded.Top); 2440 this.DrawLine(markPen, absPositionRounded.Left, absPositionRounded.Bottom, absPositionRounded.Right, absPositionRounded.Bottom); 2450 (axis.AxisPosition == AxisPosition.Left) ? absPositionRounded.Left : absPositionRounded.Right, 2459 absPositionRounded.Left, 2461 absPositionRounded.Left, 2473 (axis.AxisPosition == AxisPosition.Left) ? absPositionRounded.Left : absPositionRounded.Right, 2568 leftLine[0].X = absPositionRounded.Left; 2570 leftLine[1].X = absPositionRounded.Left;
Common\General\Legend.cs (2)
2459 separatorPosition.X = legendItem.Cells[0].cellPosition.Left; 4087 columnStart = rect.Left;
System.Workflow.Activities (24)
Designers\ConditionalDesigner.cs (5)
100diamondRectangle.X = bounds.Left + bounds.Width / 2 - diamondRectangle.Width / 2; 121new Point(rectangle.Left + rectangle.Width / 2, rectangle.Top), 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\ListenDesigner.cs (1)
80roundRectangle.X = bounds.Left + bounds.Width / 2 - roundRectangle.Width / 2;
Designers\SetStateDesigner.cs (1)
94bounds.Left + margin.Width,
Designers\StateDesigner.Layouts.cs (5)
513Point point = new Point(layoutBounds.Left - 4, midVert); 711graphics.DrawLine(designerTheme.BorderPen, bounds.Left, bounds.Bottom, bounds.Right, bounds.Bottom); 1025graphics.DrawLine(designerTheme.BorderPen, rectangle.Left, rectangle.Bottom, rectangle.Right, rectangle.Bottom); 1377bounds.Left + (bounds.Width - _designerLayout.Size.Width) / 2, 1385origin.X = bounds.Left + (bounds.Width - activeDesignerSize.Width) / 2;
Designers\StateDesignerConnector.cs (6)
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 (3)
57int left = rectangle.Left; 62if (left < bounds.Left) 63left = bounds.Left;
Designers\WhileDesigner.cs (3)
51connectionPoint = new Point(bounds.Left + bounds.Width / 2 + e.AmbientTheme.Margin.Width / 2, bounds.Top + e.AmbientTheme.Margin.Height / 2); 54points[0].X = bounds.Left + bounds.Width / 2; 64DrawConnectors(e.Graphics, compositeDesignerTheme.ForegroundPen, new Point[] { points[0], new Point(bounds.Left + bounds.Width / 2, bounds.Bottom) }, LineAnchor.None, LineAnchor.None);
System.Workflow.ComponentModel (222)
AuthoringOM\Design\ActivityDesigner.cs (13)
540textRectangle.X = bounds.Left + ambientTheme.Margin.Width; 564imageRectangle.X = bounds.Left + WorkflowTheme.CurrentTheme.AmbientTheme.Margin.Width; 947Rectangle hitRectangle = new Rectangle(bounds.Left, bounds.Top, bounds.Left - bounds.Left, bounds.Height); 950hitRectangle = new Rectangle(bounds.Left, bounds.Top, bounds.Width, bounds.Height - bounds.Height); 956hitRectangle = new Rectangle(bounds.Left, bounds.Bottom, bounds.Width, bounds.Bottom - bounds.Bottom); 1180connections.Add(new Point(bounds.Left, bounds.Top + bounds.Height / 2)); 1183connections.Add(new Point(bounds.Left + bounds.Width / 2, bounds.Top)); 1189connections.Add(new Point(bounds.Left + bounds.Width / 2, bounds.Bottom)); 3042smartTagRectangle.X = rectangle.Left - margin.Width / 2; 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 (4)
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); 583this.separatorLine[0].X = bounds.Left + e.AmbientTheme.Margin.Width; 800return new Point(dropConnector.Left + dropConnector.Width / 2, dropConnector.Top + dropConnector.Height / 2);
AuthoringOM\Design\Connector.cs (15)
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)); 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) }); 1702designerEdgeCover.Add(DesignerEdges.Bottom, new Point[] { new Point(bounds.Left, bounds.Bottom), new Point(bounds.Right, bounds.Bottom) }); 1819begin.X = Math.Min(Math.Max(begin.X, enclosingRectangle.Left + 1), enclosingRectangle.Right - 1); 2791AddCover(new ConnectorSegment(new Point(rectangle.Left, rectangle.Top), new Point(rectangle.Left, 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 (91)
213rectangle.X = destination.Left; 217rectangle.X = destination.Left + destination.Width / 2 - rectangle.Width / 2; 305graphics.DrawLine(lightPen, bounds.Left + 1, bounds.Bottom - 1, bounds.Left + 1, bounds.Top + 1); 306graphics.DrawLine(lightPen, bounds.Left + 1, bounds.Top + 1, bounds.Right - 1, bounds.Top + 1); 307graphics.DrawLine(darkPen, bounds.Left + 1, bounds.Bottom - 1, bounds.Right - 1, bounds.Bottom - 1); 309graphics.DrawLine(darkdarkPen, bounds.Left, bounds.Bottom, bounds.Right, bounds.Bottom); 341if (((gridCoOrdX + ambientTheme.GridSize.Width / 2) >= viewableRectangle.Left && (gridCoOrdX + ambientTheme.GridSize.Width / 2) <= viewableRectangle.Right) && 380graphics.DrawLine(CompositeDesignerTheme.ExpandButtonForegoundPen, boundingRect.Left + 2, boundingRect.Top + boundingRect.Height / 2, boundingRect.Right - 2, boundingRect.Top + boundingRect.Height / 2); 382graphics.DrawLine(CompositeDesignerTheme.ExpandButtonForegoundPen, boundingRect.Left + boundingRect.Width / 2, boundingRect.Top + 2, boundingRect.Left + boundingRect.Width / 2, boundingRect.Bottom - 2); 583graphics.DrawLine(Pens.Red, bounds.Left, bounds.Top, bounds.Right, bounds.Bottom); 584graphics.DrawLine(Pens.Red, bounds.Right, bounds.Top, bounds.Left, bounds.Bottom); 758roundedRectangle.AddLine(rectangle.Left, rectangle.Bottom - radius, rectangle.Left, rectangle.Top + radius); 759roundedRectangle.AddArc(rectangle.Left, rectangle.Top, diameter, diameter, 180.0f, 90.0f); 760roundedRectangle.AddLine(rectangle.Left + radius, rectangle.Top, rectangle.Right - radius, rectangle.Top); 764roundedRectangle.AddLine(rectangle.Right - radius, rectangle.Bottom, rectangle.Left + radius, rectangle.Bottom); 765roundedRectangle.AddArc(rectangle.Left, rectangle.Bottom - diameter, diameter, diameter, 90.0f, 90.0f); 784scrollIndicatorPath.AddLine(bounds.Left + (bounds.Width - arrowSize.Width) / 2, bounds.Top, bounds.Left + (bounds.Width - arrowSize.Width) / 2, bounds.Top + arrowSize.Height); 785scrollIndicatorPath.AddLine(bounds.Left + (bounds.Width - arrowSize.Width) / 2, bounds.Top + arrowSize.Height, bounds.Left + (bounds.Width - arrowSize.Width) / 2 + arrowSize.Width, bounds.Top + midPoint); 786scrollIndicatorPath.AddLine(bounds.Left + (bounds.Width - arrowSize.Width) / 2 + arrowSize.Width, bounds.Top + midPoint, bounds.Left + (bounds.Width - arrowSize.Width) / 2, bounds.Top); 790scrollIndicatorPath.AddLine(bounds.Left + (bounds.Width - arrowSize.Width) / 2, bounds.Top + midPoint, bounds.Left + (bounds.Width - arrowSize.Width) / 2 + arrowSize.Width, bounds.Top + arrowSize.Height); 791scrollIndicatorPath.AddLine(bounds.Left + (bounds.Width - arrowSize.Width) / 2 + arrowSize.Width, bounds.Top + arrowSize.Height, bounds.Left + (bounds.Width - arrowSize.Width) / 2 + arrowSize.Width, bounds.Top); 792scrollIndicatorPath.AddLine(bounds.Left + (bounds.Width - arrowSize.Width) / 2 + arrowSize.Width, bounds.Top, bounds.Left + (bounds.Width - arrowSize.Width) / 2, bounds.Top + midPoint); 803scrollIndicatorPath.AddLine(bounds.Left, bounds.Top + (bounds.Height - arrowSize.Height) / 2, bounds.Left + arrowSize.Width, bounds.Top + (bounds.Height - arrowSize.Height) / 2); 804scrollIndicatorPath.AddLine(bounds.Left + arrowSize.Width, bounds.Top + (bounds.Height - arrowSize.Height) / 2, bounds.Left + midPoint, bounds.Top + (bounds.Height - arrowSize.Height) / 2 + arrowSize.Height); 805scrollIndicatorPath.AddLine(bounds.Left + midPoint, bounds.Top + (bounds.Height - arrowSize.Height) / 2 + arrowSize.Height, bounds.Left, bounds.Top + (bounds.Height - arrowSize.Height) / 2); 809scrollIndicatorPath.AddLine(bounds.Left + midPoint, bounds.Top + (bounds.Height - arrowSize.Height) / 2, bounds.Left + arrowSize.Width, bounds.Top + (bounds.Height - arrowSize.Height) / 2 + arrowSize.Height); 810scrollIndicatorPath.AddLine(bounds.Left + arrowSize.Width, bounds.Top + (bounds.Height - arrowSize.Height) / 2 + arrowSize.Height, bounds.Left, bounds.Top + (bounds.Height - arrowSize.Height) / 2 + arrowSize.Height); 811scrollIndicatorPath.AddLine(bounds.Left, bounds.Top + (bounds.Height - arrowSize.Height) / 2 + arrowSize.Height, bounds.Left + midPoint, bounds.Top + (bounds.Height - arrowSize.Height) / 2); 828pagePaths[0].AddLine(pageBounds.Left, pageBounds.Top + pageFoldSize, pageBounds.Left + pageFoldSize, pageBounds.Top + pageFoldSize); 829pagePaths[0].AddLine(pageBounds.Left + pageFoldSize, pageBounds.Top + pageFoldSize, pageBounds.Left + pageFoldSize, pageBounds.Top); 830pagePaths[0].AddLine(pageBounds.Left + pageFoldSize, pageBounds.Top, pageBounds.Right, pageBounds.Top); 832pagePaths[0].AddLine(pageBounds.Right, pageBounds.Bottom, pageBounds.Left, pageBounds.Bottom); 833pagePaths[0].AddLine(pageBounds.Left, pageBounds.Bottom, pageBounds.Left, pageBounds.Top + pageFoldSize); 837pagePaths[1].AddLine(pageBounds.Left, pageBounds.Top + pageFoldSize, pageBounds.Left + pageFoldSize, pageBounds.Top + pageFoldSize); 838pagePaths[1].AddLine(pageBounds.Left + pageFoldSize, pageBounds.Top + pageFoldSize, pageBounds.Left + pageFoldSize, pageBounds.Top); 839pagePaths[1].AddLine(pageBounds.Left + pageFoldSize, pageBounds.Top, pageBounds.Left, pageBounds.Top + pageFoldSize); 845pagePaths[0].AddLine(pageBounds.Left, pageBounds.Top, pageBounds.Right, pageBounds.Top); 847pagePaths[0].AddLine(pageBounds.Right, pageBounds.Bottom, pageBounds.Left + pageFoldSize, pageBounds.Bottom); 848pagePaths[0].AddLine(pageBounds.Left + pageFoldSize, pageBounds.Bottom, pageBounds.Left + pageFoldSize, pageBounds.Bottom - pageFoldSize); 849pagePaths[0].AddLine(pageBounds.Left + pageFoldSize, pageBounds.Bottom - pageFoldSize, pageBounds.Left, pageBounds.Bottom - pageFoldSize); 850pagePaths[0].AddLine(pageBounds.Left, pageBounds.Bottom - pageFoldSize, pageBounds.Left, pageBounds.Top); 854pagePaths[1].AddLine(pageBounds.Left + pageFoldSize, pageBounds.Bottom, pageBounds.Left + pageFoldSize, pageBounds.Bottom - pageFoldSize); 855pagePaths[1].AddLine(pageBounds.Left + pageFoldSize, pageBounds.Bottom - pageFoldSize, pageBounds.Left, pageBounds.Bottom - pageFoldSize); 856pagePaths[1].AddLine(pageBounds.Left, pageBounds.Bottom - pageFoldSize, pageBounds.Left + pageFoldSize, pageBounds.Bottom); 863pagePaths[0].AddLine(pageBounds.Left, pageBounds.Top, pageBounds.Right - pageFoldSize, pageBounds.Top); 867pagePaths[0].AddLine(pageBounds.Right, pageBounds.Bottom, pageBounds.Left, pageBounds.Bottom); 868pagePaths[0].AddLine(pageBounds.Left, pageBounds.Bottom, pageBounds.Left, pageBounds.Top); 880pagePaths[0].AddLine(pageBounds.Left, pageBounds.Top, pageBounds.Right, pageBounds.Top); 884pagePaths[0].AddLine(pageBounds.Right - pageFoldSize, pageBounds.Bottom, pageBounds.Left, pageBounds.Bottom); 885pagePaths[0].AddLine(pageBounds.Left, pageBounds.Bottom, pageBounds.Left, pageBounds.Top); 1036if (gridCoOrd >= viewableRectangle.Left) 1045if (showMinorGrid && (gridCoOrd + gridUnit.Width / 2) >= viewableRectangle.Left && (gridCoOrd + gridUnit.Width / 2) <= viewableRectangle.Right) 1067if (!NativeMethods.MoveToEx(this.hdc, viewableRectangle.Left + 1, gridCoOrd, null)) 1080if (!NativeMethods.MoveToEx(this.hdc, viewableRectangle.Left + 1, gridCoOrd + gridUnit.Height / 2, null)) 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) })); 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))); 1925distances.Add(DistanceBetweenPoints(point, new Point(rect.Left, rect.Bottom))); 1926distances.Add(DistanceBetweenPoints(point, new Point(rect.Left, rect.Bottom - rect.Height / 2)));
AuthoringOM\Design\DesignerWidgets.cs (32)
338this.itemStrip.Location = new Point(leftScrollButtonBounds.Left, leftScrollButtonBounds.Bottom); 715itemRectangle.X = bounds.Left + (itemIndex * this.itemSize.Width) + ((itemIndex + 1) * this.margin.Width); 720itemRectangle.X = bounds.Left + this.margin.Width; 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); 1260Rectangle textRectangle = new Rectangle(itemBounds.Left + 20 + 5 + 2, itemBounds.Top + 1, this.itemWidth - (20 + 5 + 4), this.itemHeight - 3); 1312if (this.workingRectangle.Left > bounds.Left) 1313fittingOffset.Width += this.workingRectangle.Left - bounds.Left; 2261Point screenCoOrd = this.parentControl.PointToScreen(new Point(this.inplaceTipRectangle.Left, this.inplaceTipRectangle.Top)); 2371toolInfo.rect.left = rectangle.Left; 2537rectangles[j].X = stripRectangle.Left + (i * (itemSize.Width + itemMargin.Width)); 2543rectangles[j] = new Rectangle(rectangles[j].Left, rectangles[j].Top, stripRectangle.Right - rectangles[j].Left, rectangles[j].Height); 2564itemRectangle.X = stripRectangle.Left + (itemIndex * itemSize.Width) + ((itemIndex + 1) * itemMargin.Width); 2740imageRectangle.X = itemRectangle.Left + 2; 2759graphics.DrawLine(ambientTheme.DropIndicatorPen, dropTargets[activeDropTarget].Left + dropTargets[activeDropTarget].Width / 2, dropTargets[activeDropTarget].Top, dropTargets[activeDropTarget].Left + dropTargets[activeDropTarget].Width / 2, dropTargets[activeDropTarget].Bottom); 2833stripRectangle.Width = (scrollRightButton.Left - margin.Width) - (scrollLeftButton.Right + margin.Width); 3245descRectanglePos.X = this.bounds.Left + this.bounds.Width / 2 - this.previewModeDescRectangle.Width / 2 + this.previewModeButtonRectangle.Width + margin.Width; 3260location.X = this.canvasBounds.Left + this.canvasBounds.Width / 2 - PreviewDesigner.Size.Width / 2; 3413graphics.DrawRectangle(Pens.Black, this.previewModeButtonRectangle.Left - 1, this.previewModeButtonRectangle.Top - 1, this.previewModeButtonRectangle.Width + 1, this.previewModeButtonRectangle.Height + 1); 3417ActivityDesignerPaint.DrawImage(graphics, previewModeImage, new Rectangle(this.previewModeButtonRectangle.Left + 2, this.previewModeButtonRectangle.Top + 2, this.previewModeButtonRectangle.Width - 4, this.previewModeButtonRectangle.Height - 4), DesignerContentAlignment.Center); 3430graphics.DrawLine(SystemPens.ControlDarkDark, canvasRect.Left, canvasRect.Top, canvasRect.Left, canvasRect.Bottom); 3431graphics.DrawLine(SystemPens.ControlDarkDark, canvasRect.Left, canvasRect.Top, canvasRect.Right, canvasRect.Top); 3433graphics.DrawLine(SystemPens.ControlLight, canvasRect.Left, canvasRect.Bottom, canvasRect.Right, canvasRect.Bottom); 3435graphics.DrawLine(SystemPens.ControlLight, canvasRect.Left, canvasRect.Top, canvasRect.Left, canvasRect.Bottom); 3436graphics.DrawLine(SystemPens.ControlLight, canvasRect.Left, canvasRect.Top, canvasRect.Right, canvasRect.Top); 3466destnRectangle.X = this.canvasBounds.Left + this.canvasBounds.Width / 2 - destnRectangle.Width / 2;
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (6)
509Rectangle lineRectangle = new Rectangle(this.ClientRectangle.Left, this.artifactLabel.Bottom + ((this.typeNameTableLayoutPanel.Top + this.typeTextBox.Top - this.artifactLabel.Bottom) / 2), this.ClientRectangle.Width, 1); 510paintArgs.Graphics.DrawLine(SystemPens.ControlDark, lineRectangle.Left, lineRectangle.Bottom, lineRectangle.Right, lineRectangle.Bottom); 511paintArgs.Graphics.DrawLine(SystemPens.ControlLightLight, lineRectangle.Left, lineRectangle.Bottom + 1, lineRectangle.Right, lineRectangle.Bottom + 1); 514lineRectangle = new Rectangle(this.ClientRectangle.Left, this.helpTextHolder.Bottom + ((this.okCancelTableLayoutPanel.Top + this.buttonOK.Top - this.helpTextHolder.Bottom) / 2), this.ClientRectangle.Width, 1); 515paintArgs.Graphics.DrawLine(SystemPens.ControlDark, lineRectangle.Left, lineRectangle.Bottom, lineRectangle.Right, lineRectangle.Bottom); 516paintArgs.Graphics.DrawLine(SystemPens.ControlLightLight, lineRectangle.Left, lineRectangle.Bottom + 1, lineRectangle.Right, lineRectangle.Bottom + 1);
AuthoringOM\Design\FreeFormDesigner.cs (11)
791newLocation.X = Math.Min(newLocation.X, childRectangle.Left); 823size.Width += Math.Max(bounds.Left - childRectangle.Left, 0); 935bounds.X = Math.Min(minRectangle.Left, e.Bounds.Left); 937bounds.Width = Math.Max(minRectangle.Right - bounds.Left, e.Bounds.Right - bounds.Left); 1116leftTop.X = (activityDesigner.Bounds.Left < leftTop.X) ? activityDesigner.Bounds.Left : leftTop.X; 1129leftTop.X = (connector.Bounds.Left < leftTop.X) ? connector.Bounds.Left : leftTop.X;
AuthoringOM\Design\Glyphs\ConfigErrorGlyph.cs (2)
84graphics.DrawRectangle(SystemPens.ControlDarkDark, activatedBounds.Left, activatedBounds.Top, activatedBounds.Width - 1, activatedBounds.Height - 1); 115Point location = designer.ParentView.LogicalPointToScreen(new Point(bounds.Left, bounds.Bottom));
AuthoringOM\Design\Glyphs\SelectionGlyph.cs (4)
56grabHandles[1] = new Rectangle(new Point(selectionRect.Left + (selectionRect.Width - grabHandleSize.Width) / 2, selectionRect.Top), grabHandleSize); 60grabHandles[5] = new Rectangle(new Point(selectionRect.Left + (selectionRect.Width - grabHandleSize.Width) / 2, selectionRect.Bottom - grabHandleSize.Height), grabHandleSize); 61grabHandles[6] = new Rectangle(selectionRect.Left, selectionRect.Bottom - grabHandleSize.Height, grabHandleSize.Width, grabHandleSize.Height); 62grabHandles[7] = new Rectangle(new Point(selectionRect.Left, selectionRect.Top + (selectionRect.Height - grabHandleSize.Height) / 2), grabHandleSize);
AuthoringOM\Design\MessageFilters\ResizingMessageFilter.cs (5)
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) 201if (Math.Floor(DesignerGeometryHelper.DistanceFromPointToLineSegment(point, new Point[] { new Point(designerBounds.Left, designerBounds.Bottom), new Point(designerBounds.Right, designerBounds.Bottom) })) <= selectionSize.Height + 1) 290designerBounds.Width += (designerBounds.Left - x);
AuthoringOM\Design\ParallelActivityDesigner.cs (7)
300dropTargets[i + 1].Location = new Point(designerBounds1.Right + (designerBounds2.Left - designerBounds1.Right) / 2 - ((designerTheme != null) ? designerTheme.ConnectorSize.Width : 0) / 2, designerBounds1.Top); 351parallelLinks[0].X = bounds.Left + bounds.Width / 2; 353parallelLinks[1].X = bounds.Left + bounds.Width / 2; 372parallelLinks[0].X = bounds.Left + bounds.Width / 2; 374parallelLinks[1].X = bounds.Left + bounds.Width / 2; 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 (8)
163helpTextRectangle.X = connectors[0].Left + connectors[0].Width / 2 - this.helpTextSize.Width / 2; 208connections.Add(new Point(startDesignerBounds.Left + startDesignerBounds.Width / 2, startDesignerBounds.Top)); 209connections.Add(new Point(startDesignerBounds.Left + startDesignerBounds.Width / 2, startDesignerBounds.Bottom)); 238connections.Add(new Point(endDesignerBounds.Left + endDesignerBounds.Width / 2, endDesignerBounds.Top)); 239connections.Add(new Point(endDesignerBounds.Left + endDesignerBounds.Width / 2, endDesignerBounds.Bottom)); 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); 530glyphLocation = new Point(helpTextRectangle.Left + helpTextRectangle.Width / 2 + 1, helpTextRectangle.Top - ambientTheme.DropIndicatorSize.Height / 2);
AuthoringOM\Design\SequentialWorkflowHeaderFooter.cs (3)
119bounds.X = designerBounds.Left + designerBounds.Width / 2 - bounds.Width / 2; 140bounds.X = designerBounds.Left + designerBounds.Width / 2 - this.textSize.Width / 2; 164bounds.X = designerBounds.Left + designerBounds.Width / 2 - bounds.Width / 2;
AuthoringOM\Design\SequentialWorkflowRootDesigner.cs (2)
389e.Graphics.DrawLine(e.DesignerTheme.BorderPen, rectangle.Left, rectangle.Bottom, rectangle.Right, rectangle.Bottom); 476e.Graphics.DrawLine(e.DesignerTheme.BorderPen, rectangle.Left, rectangle.Top, rectangle.Right, rectangle.Top);
AuthoringOM\Design\StructuredCompositeActivityDesigner.cs (1)
696return new Point(dropConnector.Left + dropConnector.Width / 2, dropConnector.Top + dropConnector.Height / 2);
AuthoringOM\Design\WorkflowLayouts.cs (5)
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); 690graphics.DrawRectangle(ambientTheme.ForegroundPen, pageLayoutData.ViewablePageBounds.Left - 3, pageLayoutData.ViewablePageBounds.Top - 3, pageLayoutData.ViewablePageBounds.Width + 6, pageLayoutData.ViewablePageBounds.Height + 6);
AuthoringOM\Design\WorkflowPrinting.cs (4)
149graphics.TranslateTransform(boundingRectangle.Left - pageOffset.X, boundingRectangle.Top - pageOffset.Y); 275layoutRectangle.X = headerFooterPrintData.PageBoundsWithoutMargin.Left; 280layoutRectangle.X = headerFooterPrintData.PageBoundsWithoutMargin.Left + ((headerFooterPrintData.PageBoundsWithoutMargin.Width - layoutRectangle.Width) / 2); //align to the middle 285layoutRectangle.X = headerFooterPrintData.PageBoundsWithoutMargin.Left + (headerFooterPrintData.PageBoundsWithoutMargin.Width - layoutRectangle.Width); //align to the right corner
AuthoringOM\Design\WorkflowView.cs (9)
1742if (!clientRectangle.Contains(new Point(rect.Left, clientRectangle.Top)) || !clientRectangle.Contains(new Point(rect.Right, clientRectangle.Top))) 1745scrollDelta.Width = (rect.Left + rect.Width / 2) - (clientRectangle.Left + clientRectangle.Width / 2); 1746else if (rect.Left < clientRectangle.Left) 1747scrollDelta.Width = (rect.Left - clientRectangle.Left); 1752if (!clientRectangle.Contains(new Point(clientRectangle.Left, rect.Top)) || !clientRectangle.Contains(new Point(clientRectangle.Left, rect.Bottom)))
System.WorkflowServices (12)
System\Workflow\Activities\Design\GradientPanel.cs (8)
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); 132Rectangle arc = new Rectangle(frame.Left, frame.Top, diameter, diameter); 138arc.X = frame.Left; 148Rectangle arc = new Rectangle(frame.Left, frame.Top, diameter, diameter); 152path.AddLine(new Point(frame.Right, frame.Top + glossHeight), new Point(frame.Left, frame.Top + glossHeight));
System\Workflow\ComponentModel\Design\HighlightOverlayGlyph.cs (4)
50Brush frameBrush = new LinearGradientBrush(new Point(frameRect.Left, frameRect.Top), new Point(frameRect.Left, frameRect.Bottom), BaseColor, LightingColor); 88Rectangle arc = new Rectangle(frame.Left, frame.Top, diameter, diameter); 94arc.X = frame.Left;