542 references to Right
System.Drawing (1)
misc\GDI\NativeMethods.cs (1)
181this.right = r.Right;
System.Web.DataVisualization (27)
Common\General\ChartGraphics.cs (10)
2435 this.DrawLine(markPen, absPositionRounded.Right, absPositionRounded.Top, absPositionRounded.Right, 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, 2473 (axis.AxisPosition == AxisPosition.Left) ? absPositionRounded.Left : absPositionRounded.Right, 2482 absPositionRounded.Right, 2484 absPositionRounded.Right, 2575 rightLine[0].X = absPositionRounded.Right; 2577 rightLine[1].X = absPositionRounded.Right;
Common\General\Legend.cs (14)
747 if(cellPosition.Right < overlappedCellPosition.Right) 749 cellPosition.Width += overlappedCellPosition.Right - cellPosition.Right; 2465 right = legendItem.Cells[index].cellPosition.Right; 4082 prevRightLocation = rect.Right; 4126 columnWidth += legendPosition.Right - fillRect.Right + 1; 4127 fillRect.Width += legendPosition.Right - fillRect.Right + 1; 4159 if(fillRect.Right > legendPosition.Right) 4161 fillRect.Width -= (legendPosition.Right - fillRect.Right);
Common\General\LegendColumns.cs (3)
2159 imagePosition.X = this.cellPosition.Right - imagePosition.Width; 2264 seriesMarkerPosition.X = this.cellPosition.Right - seriesMarkerPosition.Width; 2372 point2.X = seriesMarkerPosition.Right;
System.Windows.Forms (331)
misc\GDI\NativeMethods.cs (1)
181this.right = r.Right;
misc\GDI\WindowsGraphics2.cs (1)
127DrawEllipse(pen, brush, bounds.Left, bounds.Top, bounds.Right, bounds.Bottom);
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (4)
446Point p1 = new Point(r.Right - 1, r.Top ); // upper inner right. 449Point p4 = new Point(r.Right - 1, r.Bottom - 1); // inner bottom right. 1380int textRight = Math.Min(layout.textBounds.Right, layout.field.Right);
winforms\Managed\System\WinForms\ButtonInternal\ButtonPopupAdapter.cs (8)
101g.DrawLine(windowFrame, r.Left + 1, r.Top + 1, r.Right - 2, r.Top + 1); 105g.DrawLine(windowFrame, r.Left, r.Bottom - 1, r.Right, r.Bottom - 1); 106g.DrawLine(windowFrame, r.Right - 1, r.Top, r.Right - 1, r.Bottom); 109g.DrawLine(highlight, r.Left, r.Top, r.Right, r.Top); 113g.DrawLine(buttonShadow, r.Left + 1, r.Bottom - 2, r.Right - 2, r.Bottom - 2); 114g.DrawLine(buttonShadow, r.Right - 2, r.Top + 1, r.Right - 2, r.Bottom - 2);
winforms\Managed\System\WinForms\ButtonInternal\ButtonStandardAdapter.cs (1)
98NativeMethods.RECT r = new NativeMethods.RECT(bounds.X, bounds.Y, bounds.Right, bounds.Bottom);
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxBaseAdapter.cs (7)
180wg.DrawLine(high, r.Right-1 , r.Top, r.Right-1, r.Bottom); 181wg.DrawLine(high, r.Left, r.Bottom-1, r.Right, r.Bottom-1); 184wg.DrawLine(shadow, r.Left, r.Top, r.Right- 1, r.Top); 186wg.DrawLine(face, r.Right - 2, r.Top + 1, r.Right - 2, r.Bottom - 1); 187wg.DrawLine(face, r.Left + 1, r.Bottom - 2, r.Right - 1, r.Bottom - 2);
winforms\Managed\System\WinForms\ComboBox.cs (10)
5937dropDownRect = new Rectangle(innerBorder.Right + 1, innerBorder.Y, dropDownButtonWidth, innerBorder.Height+1); 5952innerBorder.X = clientRect.Width - innerBorder.Right; 5953innerInnerBorder.X = clientRect.Width - innerInnerBorder.Right; 5954dropDownRect.X = clientRect.Width - dropDownRect.Right; 5955whiteFillRect.X = clientRect.Width - whiteFillRect.Right + 1; // since we're filling, we need to move over to the next px. 5999g.DrawRectangle(outerBorderPen, new Rectangle(dropDownRect.X, outerBorder.Y, outerBorder.Right - dropDownRect.X, outerBorder.Height)); 6009g.DrawRectangle(outerBorderPen, new Rectangle(dropDownRect.X, outerBorder.Y, outerBorder.Right - dropDownRect.X, outerBorder.Height)); 6043g.DrawRectangle(innerPen, new Rectangle(dropDownRect.X, outerBorder.Y, outerBorder.Right - dropDownRect.X, outerBorder.Height)); 6106Rectangle rightOwnerDrawArea = new Rectangle(innerBorder.Right,0,comboBox.Width - innerBorder.Right,comboBox.Height);
winforms\Managed\System\WinForms\Control.cs (2)
9748clientRectangle.Right, clientRectangle.Bottom); 9750clientRectangle.Right, clientRectangle.Top);
winforms\Managed\System\WinForms\ControlPaint.cs (11)
1197graphics.DrawLine(pen, bounds.X + 1, bounds.Y, bounds.Right -2, bounds.Y); 1198graphics.DrawLine(pen, bounds.X + 1, bounds.Bottom - 1, bounds.Right -2, bounds.Bottom - 1); 1200graphics.DrawLine(pen, bounds.Right - 1, bounds.Y + 1, bounds.Right - 1, bounds.Bottom -2); 1209graphics.DrawLine(pen, bounds.X, midy, bounds.Right - 2, midy); 1220graphics.DrawLine(pen, bounds.Right - 3, midy - 1, bounds.Right - 3, midy + 1); 1221graphics.DrawLine(pen, bounds.Right - 4, midy - 2, bounds.Right - 4, midy + 2); 1801SafeNativeMethods.Rectangle(new HandleRef(null, dc), rectangle.X, rectangle.Y, rectangle.Right, rectangle.Bottom); 2414int right = bound.Right;
winforms\Managed\System\WinForms\DataGrid.cs (16)
4712r.X = Math.Min(inside.Right - 3, r.X); 4932int x = rightToLeft ? Math.Max(e.X, layout.Data.X) : Math.Min(e.X, layout.Data.Right + 1); 4993rightArea.Width -= rightToLeft ? rightArea.Right - left : left - rightArea.X; 5413rowHeaders.X = insideLeft.Right - newRowHeaderWidth; 5432topLeft.X = colHeaders.Right - newRowHeaderWidth; 6196Debug.Assert(x >= inside.X && x < inside.Right, "x must be inside the horizontal bounds of layout.Data"); 6808layout.ResizeBoxRect = new Rectangle(alignToRight ? data.X : data.Right, 6844vertScrollBar.Bounds = new Rectangle(alignToRight ? layout.Data.X : layout.Data.Right, 7129boundingRect.X = boundingRect.Right - columnHeaderWidth; 7176textBounds.X = boundingRect.Right - cx - textBounds.Width; 7244Rectangle triBounds = new Rectangle(alignRight ? textBounds.X - textBounds.Height : textBounds.Right, 7304g.FillRectangle(br, bounds.Right - 2, bounds.Y, 2, bounds.Height + 2); 7437headerBounds.X = rowBounds.Right - headerBounds.Width; 9524return rect.Right + rect.X - R1.Right; 9537return rect.Right + rect.X - x;
winforms\Managed\System\WinForms\DataGridCaption.cs (4)
434return new Rectangle( bounds.Right - xOffset * 4 - downButtonWidth - backButtonSize.Width, 456return new Rectangle( bounds.Right - xOffset * 2 - downButtonWidth, 488textRect.X = bounds.Right - textRect.Width; 579border.X = textBounds.Right - textPadding;
winforms\Managed\System\WinForms\DataGridParentRows.cs (10)
149ret.X = layout.leftArrow.IsEmpty ? layout.data.X : layout.leftArrow.Right; 568border.X = bounds.Right - borderWidth; 665layout.data = new Rectangle(layout.leftArrow.Right, bounds.Y, bounds.Width - 30, bounds.Height); 666layout.rightArrow = new Rectangle(layout.data.Right, bounds.Y, 15, bounds.Height); 956alignToRight ? paintBounds.X : paintBounds.Right, 958alignToRight ? paintBounds.X : paintBounds.Right, 1018Debug.Assert(containedRect.X >= surroundingRect.X && containedRect.Right <= surroundingRect.Right, "containedRect is not contained in surroundingRect"); 1020return surroundingRect.Right - containedRect.Right + surroundingRect.X;
winforms\Managed\System\WinForms\DataGridRelationshipRow.cs (8)
293Rectangle outline = GetOutlineRect(insideRowHeaders.Right - expandoBoxWidth, 0); 621if (!alignToRight) Debug.Assert(rowHeaderBounds.Right == expandoBoxX, "what's up doc?"); 644relRect.X = alignToRight ? bounds.Right - relRect.Width : bounds.X; 653alignToRight ? bounds.Right - dataWidth : bounds.X, 696alignToRight ? bounds.Right - bWidth - paintedWidth : bounds.X + paintedWidth - bWidth, 766outline.Right - indent - 1, outline.Y + outline.Width/2); // -1 on the y coordinate 780points[2] = new Point(alignToRight ? bounds.X : bounds.Right, 816return rect.Right + rect.X - width - x;
winforms\Managed\System\WinForms\DataGridRow.cs (5)
444Rectangle bottomBorder = new Rectangle(alignToRight ? bounds.Right - dataWidth : bounds.X, 454alignToRight ? bounds.X: bottomBorder.Right, 499cellBounds.X = bounds.Right - cx - cellBounds.Width; 517alignToRight ? cellBounds.X - bWidth : cellBounds.Right, 561Rectangle bmpRect = new Rectangle(alignToRight ? visualBounds.Right - xOffset - bmpSize.Width : visualBounds.X + xOffset,
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (2)
450rectThemeMargins.Width = DATAGRIDVIEWBUTTONCELL_themeMargin - rectContent.Right; 731valBounds.Width -= borderWidths.Right;
winforms\Managed\System\WinForms\DataGridViewCell.cs (40)
1254cellValueBounds.Right - DATAGRIDVIEWCELL_iconMarginWidth - iconsWidth, 3593this.DataGridView.RightToLeftInternal ? bounds.X : bounds.Right - dividerThickness, 3709graphics.DrawLine(penGridColor, bounds.Right - 1, bounds.Y, bounds.Right - 1, bounds.Bottom - 1); 3713graphics.DrawLine(penControlLightLight, bounds.Right - 1, bounds.Y, bounds.Right - 1, bounds.Bottom - 1); 3717graphics.DrawLine(penControlDark, bounds.Right - 1, bounds.Y, bounds.Right - 1, bounds.Bottom - 1); 3732graphics.DrawLine(penBackColor, bounds.Right - 1, bounds.Y, bounds.Right - 1, bounds.Bottom - 1); 3733graphics.DrawLine(penControlDark, bounds.Right - 1, y1, bounds.Right - 1, y2); 3748graphics.DrawLine(penControlDark, bounds.Right - 2, bounds.Y, bounds.Right - 2, bounds.Bottom - 1); 3749graphics.DrawLine(penControlLightLight, bounds.Right - 1, y1, bounds.Right - 1, y2); 3765graphics.DrawLine(penControlLightLight, bounds.Right - 2, bounds.Y, bounds.Right - 2, bounds.Bottom - 1); 3766graphics.DrawLine(penControlDark, bounds.Right - 1, y1, bounds.Right - 1, y2); 3774graphics.DrawLine(penGridColor, bounds.X, bounds.Y, bounds.Right - 1, bounds.Y); 3779x2 = bounds.Right - 1; 3795x2 = bounds.Right - 1; 3811x2 = bounds.Right - 1; 3841x2 = bounds.Right - 2; 3847graphics.DrawLine(penControlDark, bounds.X, bounds.Y, bounds.Right - 1, bounds.Y); 3858x2 = bounds.Right - 2; 3864graphics.DrawLine(penControlLightLight, bounds.X, bounds.Y, bounds.Right - 1, bounds.Y); 3872graphics.DrawLine(penGridColor, bounds.X, bounds.Bottom - 1, bounds.Right - 1, bounds.Bottom - 1); 3876x2 = bounds.Right - 1; 3886x2 = bounds.Right - 1; 3897x2 = bounds.Right - 1; 4358rectPadding.X = bounds.Right - cellStyle.Padding.Left; 4367rectPadding.X = bounds.Right - cellStyle.Padding.Right; 4565if (cellClip.Right <= cellBounds.Right - borderAndPaddingWidths.Width) 4567wEditingPanel -= cellBounds.Right - cellClip.Right; 5115columnRect.X = columnRect.Right; 5144columnRect.X = columnRect.Right;
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (3)
1175valBounds.Width -= borderWidths.Right; 1305checkBoxX = valBounds.Right - checkBoxSize.Width; 1393g.DrawLine(pen, checkBounds.Left, checkBounds.Top, checkBounds.Right-1, checkBounds.Top);
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (3)
795valBounds.Width -= borderWidths.Right; 972sortGlyphLocation = new Point(valBounds.Right + 1255cornerClip = new Rectangle(bounds.Right-2, bounds.Bottom-2, 2, 2);
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (4)
2148valBounds.Width -= borderWidths.Right; 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,
winforms\Managed\System\WinForms\DataGridViewHeaderCell.cs (2)
489rectThemeMargins.Width = DATAGRIDVIEWHEADERCELL_themeMargin - rectContent.Right; 652valBounds.Width -= borderWidths.Right;
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (7)
671imgBounds.X = bounds.Right - imgBounds.Width; 677imgBounds.X = bounds.Right - imgBounds.Width; 683imgBounds.X = bounds.Right - imgBounds.Width; 695imgBounds.X = bounds.Right - imgBounds.Width; 701imgBounds.X = bounds.Right - imgBounds.Width; 707imgBounds.X = bounds.Right - imgBounds.Width; 820valBounds.Width -= borderWidths.Right;
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (1)
1013valBounds.Width -= borderWidths.Right;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (56)
2579clip.Width = this.layout.Data.Right - leftEdge - 1; 2580int overflowWidth = clip.Right + this.mouseBarOffset - leftEdge - DataGridViewBand.maxBandThickness; 3027r.X = Math.Min(r.X, inside.Right - r.Width); 3032r.X = Math.Min(inside.Right - r.Width, r.X); 3048r.X = Math.Min(inside.Right - 3, r.X); 5728this.layout.ColumnHeaders.Right - DATAGRIDVIEW_insertionBarWidth); 6155newX = Math.Min(x + this.mouseBarOffset, this.layout.Data.Right - 1); 6325delta = this.layout.RowHeaders.Right - this.RowHeadersWidth - x - 1; 6329x = Math.Min(e.X + this.mouseBarOffset, this.layout.Data.Right - 1); 7166width = columnRect.Right - rowRect.Right; 8268cx = data.Right; 8279(!this.RightToLeftInternal && cx > data.Right)) 8310(!this.RightToLeftInternal && cx > data.Right)) 8355((!this.RightToLeftInternal && cx + viewedColumnWidth > data.Right) || 8364displayWidth = data.Right - cx; 8397Debug.Assert(this.RightToLeftInternal || (x >= data.X - 1 && x < data.Right), "x must be inside the horizontal bounds of this.layout.Data"); 8398Debug.Assert(!this.RightToLeftInternal || (x >= data.X && x <= data.Right), "x must be inside the horizontal bounds of this.layout.Data"); 8404else if (this.RightToLeftInternal && x == data.Right) 8412cx = data.Right-1; 8422((!this.RightToLeftInternal && cx < data.Right) || (this.RightToLeftInternal && cx >= data.X))) 8461((!this.RightToLeftInternal && cx < data.Right) || (this.RightToLeftInternal && cx >= data.X))) 8531x = this.layout.Data.Right-1; 8671hti = HitTest(this.RightToLeftInternal ? rectScrollingArea.Right-1 : rectScrollingArea.Left, mouseY); 8698hti = HitTest(this.RightToLeftInternal ? rectScrollingArea.Right : rectScrollingArea.Left, mouseY); 8717mouseX = rectScrollingArea.Right-1; 8726hti = HitTest(this.RightToLeftInternal ? rectScrollingArea.Right : rectScrollingArea.Left, mouseY); 8741mouseX = rectScrollingArea.Right-1; 8765if (mouseX >= rectScrollingArea.Left && mouseX <= rectScrollingArea.Right) 8802(this.RightToLeftInternal && mouseX > rectScrollingArea.Right)) 8815xOffset = rectScrollingArea.Right - mouseX; 8831Debug.Assert((!this.RightToLeftInternal && mouseX > rectScrollingArea.Right) || (this.RightToLeftInternal && mouseX < rectScrollingArea.Left)); 8866xOffset = mouseX - rectScrollingArea.Right; 8943(this.RightToLeftInternal && mouseX > rectScrollingArea.Right)) 8962xOffset = rectScrollingArea.Right - mouseX; 8978else if (this.RightToLeftInternal && mouseX > this.layout.Data.Right) 8980mouseX = this.layout.Data.Right-1; 8985else if ((!this.RightToLeftInternal && mouseX > rectScrollingArea.Right) || 9017xOffset = mouseX - rectScrollingArea.Right; 9029mouseX = rectScrollingArea.Right-1; 9043mouseX = rectScrollingArea.Right-1; 9404hti.colStart = this.layout.TopLeftHeader.Right-1; 9411if ((!this.RightToLeftInternal && this.layout.TopLeftHeader.Right - x < DATAGRIDVIEW_columnSizingHotZone) || 9424hti.mouseBarOffset = this.layout.TopLeftHeader.Right - x - 1; 9557hti.colStart = this.layout.RowHeaders.Right-1; 9600else if ((!this.RightToLeftInternal && this.layout.RowHeaders.Right - x < DATAGRIDVIEW_columnSizingHotZone) || 9613hti.mouseBarOffset = this.layout.RowHeaders.Right - x - 1; 10479rightToLeftInternal ? this.layout.Data.X - this.vertScrollBar.Width : this.layout.Data.Right, 10537rightToLeftInternal ? this.layout.Data.X - this.vertScrollBar.Width : this.layout.Data.Right, 14965rightArea.Width -= rightArea.Right - leftEdge; 19362if (pt.X > rect.Right && step > 0) 19364Invalidate(new Rectangle(new Point(ClientSize.Width - (pt.X - rect.Right) - step, ColumnHeadersHeight), 19915cellBounds.X = bandBounds.Right - cx - cellBounds.Width; 19992cellBounds.X = scrollingBounds.Right - cx - cellBounds.Width; 26197while (xColumnRightEdge > this.layout.Data.Right && this.Columns.DisplayInOrder(firstDisplayedScrollingColumn, columnIndex)) 26205if (xColumnRightEdge > this.layout.Data.Right)
winforms\Managed\System\WinForms\DataGridViewRow.cs (3)
1627cellBounds.X = rowBounds.Right - cx - cellBounds.Width; 1714cellBounds.X = dataBounds.Right - cx - cellBounds.Width; 1802cellBounds.X = rowBounds.Right - cellBounds.Width;
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (2)
787valBounds.Width -= borderWidths.Right; 1133bounds.Right - DATAGRIDVIEWROWHEADERCELL_iconMarginWidth - iconsWidth :
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (1)
698valBounds.Width -= borderWidths.Right;
winforms\Managed\System\WinForms\DataGridViewTopLeftHeaderCell.cs (4)
277valBounds.Width -= borderWidths.Right; 411graphics.DrawLine(penControlDark, bounds.X, bounds.Y, bounds.Right - 1, bounds.Y); 418graphics.DrawLine(penControlLightLight, bounds.X, bounds.Y, bounds.Right - 1, bounds.Y); 425graphics.DrawLine(penControlDark, bounds.X + 1, bounds.Y + 1, bounds.Right - 1, bounds.Y + 1);
winforms\Managed\System\WinForms\DataGridViewUtilities.cs (3)
399ptTextLocation.X = cellBounds.Right - sizeText.Width; 414ptTextLocation.X = cellBounds.Right - sizeText.Width; 429ptTextLocation.X = cellBounds.Right - sizeText.Width;
winforms\Managed\System\WinForms\DrawListViewColumnHeaderEventArgs.cs (4)
178graphics.DrawLine(SystemPens.ControlLightLight, r.X, r.Y, r.Right, r.Y); 183graphics.DrawLine(SystemPens.ControlDark, r.X + 1, r.Bottom, r.Right, r.Bottom); 184graphics.DrawLine(SystemPens.ControlDark, r.Right, r.Y + 1, r.Right, r.Bottom);
winforms\Managed\System\WinForms\GroupBoxRenderer.cs (6)
176textBounds.X = bounds.Right - textBounds.Width - boxHeaderWidth + 1; // +1 to account for the margin built in the MeasureText result 198clipLeft.X = boxBounds.Right - boxHeaderWidth; 204clipMiddle.X = clipLeft.Right; 205clipRight.X = clipMiddle.Right; 206clipRight.Width = boxBounds.Right - clipRight.X; 269textBounds.X = bounds.Right - textBounds.Width - textOffset;
winforms\Managed\System\WinForms\Layout\DockAndAnchorLayout.cs (6)
201right = right > 0 ? right : element.Bounds.Right + Math.Abs(right); 311Rectangle newElementBounds = new Rectangle(remainingBounds.Right - elementSize.Width, remainingBounds.Y, elementSize.Width, elementSize.Height); 565anchorInfo.Right = element.Bounds.Right; 836prefSize.Width = Math.Max(prefSize.Width, elementSpace.Right); 851prefSize.Width = Math.Max(prefSize.Width, elementSpace.Right + anchorDest.Width); 854prefSize.Width = Math.Max(prefSize.Width, anchorDest.Right);
winforms\Managed\System\WinForms\Layout\FlowLayout.cs (4)
241if(location.X > rowBounds.Right) { 345value.X = DisplayRect.Right - value.Right; 420newBounds.X = DisplayRect.Right - bounds.X - bounds.Width + ElementProxy.Margin.Left - ElementProxy.Margin.Right;
winforms\Managed\System\WinForms\Layout\LayoutUtils.cs (5)
472Debug.Assert(region1.Right == region2.Left, "Adjacency error."); 477Debug.Assert(region2.Right == region1.Left, "Adjacency error."); 514int right = (specified & AnchorStyles.Right) != 0 ? substitutionBounds.Right : originalBounds.Right; 523bounds.X = withinBounds.Width - bounds.Right;
winforms\Managed\System\WinForms\Layout\TableLayout.cs (2)
1242elementBounds.X = cellBounds.X + (cellBounds.Right - elementBounds.Right);
winforms\Managed\System\WinForms\LinkLabel.cs (1)
508xLoc = clientRect.Right - textRect.Width;
winforms\Managed\System\WinForms\ListView.cs (2)
4726rectInvalid.Width += this.ClientRectangle.Right - rectInvalid.Right;
winforms\Managed\System\WinForms\ListViewItem.cs (1)
1039return this.ListView.FindNearestItem(searchDirection, r.Right, r.Top);
winforms\Managed\System\WinForms\NativeMethods.cs (2)
3093this.right = r.Right; 4038this.right = r.Right;
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyDescriptorGridEntry.cs (1)
623uiItemRects[i] = new Rectangle(rect.Right - ((scaledImageSizeX + 1) * (i + 1)), (rect.Height - scaledImageSizeY) / 2, scaledImageSizeX, scaledImageSizeY);
winforms\Managed\System\WinForms\StatusStrip.cs (1)
579gripLocation = new NativeMethods.POINT(SizeGripBounds.Right, SizeGripBounds.Bottom);
winforms\Managed\System\WinForms\TableLayoutPanel.cs (3)
423startx = displayRect.Right - (cellBorderWidth / 2); 468g.DrawLine(SystemPens.ControlDark, tableBounds.Right, tableBounds.Y, tableBounds.Right, tableBounds.Bottom);
winforms\Managed\System\WinForms\ToolBar.cs (1)
1748if (leftTop.x + tooltipWidth > SystemInformation.WorkingArea.Right) {
winforms\Managed\System\WinForms\ToolStrip.cs (9)
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 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 4296gripRectangle.X = ClientRectangle.Right - gripRectangle.Width - Grip.Margin.Horizontal; 5488insertionRect = new Rectangle(item.Bounds.Right, owner.Margin.Top, ToolStrip.insertionBeamWidth, owner.Height- (owner.Margin.Vertical)-1); 5554else if ((orig.Right - widthUnit) <= check.X) {
winforms\Managed\System\WinForms\ToolStripDropDownButton.cs (1)
289dropDownArrowRect = new Rectangle(options.client.Right,0, dropDownArrowSize.Width, ownerItem.Bounds.Height);
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (9)
420nextPoint.X = checkRectangle.Right + scaledCheckPadding.Right + scaledImagePadding.Left; 472nextPoint.X = imageMarginBounds.Right+ scaledTextPadding.Left; 477nextPoint.X = textRectangle.Right+ scaledTextPadding.Right + scaledArrowPadding.Left; 482this.maxItemSize.Width = (arrowRectangle.Right + scaledArrowPadding.Right) - imageMarginBounds.Left; 491checkRectangle.X = width - checkRectangle.Right; 492imageRectangle.X = width - imageRectangle.Right; 493textRectangle.X = width - textRectangle.Right; 494arrowRectangle.X = width - arrowRectangle.Right; 495imageMarginBounds.X = width - imageMarginBounds.Right;
winforms\Managed\System\WinForms\ToolStripHighContrastRenderer.cs (1)
336 g.DrawLine(foreColorPen, bounds.Left, startY, bounds.Right - 1, startY);
winforms\Managed\System\WinForms\ToolStripPanel.cs (1)
932location = new Point(dragRect.Right -1, 0);
winforms\Managed\System\WinForms\ToolStripPanelCell.cs (2)
270int spaceToFree = bounds.Right - displayRectangle.Right;
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (5)
405int spaceToFree = cell.CachedBounds.Right - RowManager.DisplayRectangle.Right; 1172freedSpace += DisplayRectangle.Right - lastCell.Bounds.Right; 1365lastCellMargin.Left = Math.Max(0,locationToDrag.X - nextCell.Bounds.Right);
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (9)
381g.DrawLine(p, bounds.Left, bounds.Height - 1, bounds.Right, bounds.Height - 1); 853endGradient.X = bounds.Right - endGradient.Width; 1106start.X = overflowBoundsFill.Right +1; 1107end.X = overflowBoundsFill.Right; 1126top1.X = overflowBoundsFill.Right + 1; 1127top2.X = overflowBoundsFill.Right; 1142fillRect.X = overflowBoundsFill.Right; 1329g.DrawLine(foreColorPen, bounds.Left, startY, bounds.Right - 1, startY); 1334g.DrawLine(highlightColorPen, bounds.Left + 1, startY, bounds.Right - 1, startY);
winforms\Managed\System\WinForms\ToolStripSplitButton.cs (3)
385dropDownButtonBounds.Offset(splitButtonButtonBounds.Right+splitterWidth, 0); 386splitterBounds = new Rectangle(splitButtonButtonBounds.Right, splitButtonButtonBounds.Top, splitterWidth, splitButtonButtonBounds.Height); 391splitterBounds = new Rectangle(dropDownButtonBounds.Right, dropDownButtonBounds.Top, splitterWidth, dropDownButtonBounds.Height);
winforms\Managed\System\WinForms\ToolStripSplitStackLayout.cs (4)
250int lastRight = displayRectangle.Right;// - toolStrip.Padding.Right; 267lastRight = clientRectangle.Right; 522if ((itemBounds.Right > displayRectangle.Right)
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); 672g.DrawLine(rightPen, bounds.Right-1, bounds.Top, bounds.Right -1, bounds.Bottom-1); 673g.DrawLine(bottomPen, bounds.Left, bounds.Bottom-1, bounds.Right -1, bounds.Bottom -1);
winforms\Managed\System\WinForms\ToolStripTextBox.cs (2)
876g.FillRectangle(b, clientRect.Right, 0, this.Width - clientRect.Right, this.Height); // right border
winforms\Managed\System\WinForms\ToolTip.cs (10)
1574visibleRect.right = (r.right > screen.WorkingArea.Right) ? screen.WorkingArea.Right:r.right; 1756int pointX = (toolRectangle.Left + toolRectangle.Right) / 2; 1803possibleLocations[RIGHT_LOCATION_INDEX] = new Rectangle(toolRectangle.Right, centeredY, width, height); 2164if (moveToLocation.X + tipSize.Width > screen.WorkingArea.Right) { 2165moveToLocation.X = screen.WorkingArea.Right - tipSize.Width; 2462if (wp->x + wp->cx >screen.WorkingArea.Right) { 2463wp->x = screen.WorkingArea.Right - wp->cx; 2471if (wp->x + wp->cx >screen.WorkingArea.Right) { 2472wp->x = screen.WorkingArea.Right - wp->cx;
winforms\Managed\System\WinForms\TreeView.cs (2)
2949else if (tn != null && tn.Bounds.Right > this.Bounds.Right) {
winforms\Managed\System\WinForms\UpDownBase.cs (5)
813Rectangle clipRight = new Rectangle(bounds.Right - border, bounds.Top, border, bounds.Height); 1117upDownButtonsBounds = new Rectangle(/*x*/clientArea.Right - defaultButtonsWidth+borderFixup, 1130upDownButtonsBounds.X = totalClientWidth - upDownButtonsBounds.Right; 1131upDownEditBounds.X = totalClientWidth - upDownEditBounds.Right; 1736e.Graphics.DrawLine(pen, clientRect.Left, clientRect.Bottom - 1, clientRect.Right - 1, clientRect.Bottom - 1);
winforms\Managed\System\WinForms\WinFormsUtils.cs (4)
110if (bounds.Right > constrainingBounds.Right) { 112bounds.X = constrainingBounds.Right - bounds.Width; 630HandleRef hClippingRegion = new HandleRef(null, SafeNativeMethods.CreateRectRgn(viewportOrg.x + bounds.Left, viewportOrg.y + bounds.Top, viewportOrg.x + bounds.Right, viewportOrg.y + bounds.Bottom));
System.Windows.Forms.DataVisualization (27)
Common\General\ChartGraphics.cs (10)
2435 this.DrawLine(markPen, absPositionRounded.Right, absPositionRounded.Top, absPositionRounded.Right, 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, 2473 (axis.AxisPosition == AxisPosition.Left) ? absPositionRounded.Left : absPositionRounded.Right, 2482 absPositionRounded.Right, 2484 absPositionRounded.Right, 2575 rightLine[0].X = absPositionRounded.Right; 2577 rightLine[1].X = absPositionRounded.Right;
Common\General\Legend.cs (14)
747 if(cellPosition.Right < overlappedCellPosition.Right) 749 cellPosition.Width += overlappedCellPosition.Right - cellPosition.Right; 2465 right = legendItem.Cells[index].cellPosition.Right; 4082 prevRightLocation = rect.Right; 4126 columnWidth += legendPosition.Right - fillRect.Right + 1; 4127 fillRect.Width += legendPosition.Right - fillRect.Right + 1; 4159 if(fillRect.Right > legendPosition.Right) 4161 fillRect.Width -= (legendPosition.Right - fillRect.Right);
Common\General\LegendColumns.cs (3)
2159 imagePosition.X = this.cellPosition.Right - imagePosition.Width; 2264 seriesMarkerPosition.X = this.cellPosition.Right - seriesMarkerPosition.Width; 2372 point2.X = seriesMarkerPosition.Right;
System.Workflow.Activities (19)
Designers\ConditionalDesigner.cs (1)
122new Point(rectangle.Right - 1, rectangle.Top + rectangle.Height / 2),
Designers\StateDesigner.cs (1)
1504newSize.Width = Math.Max(newSize.Width, bounds.Right);
Designers\StateDesigner.Layouts.cs (7)
524Point point = new Point(layoutBounds.Right + 4, midVert); 711graphics.DrawLine(designerTheme.BorderPen, bounds.Left, bounds.Bottom, bounds.Right, bounds.Bottom); 809layout.Bounds.Right, 1025graphics.DrawLine(designerTheme.BorderPen, rectangle.Left, rectangle.Bottom, rectangle.Right, rectangle.Bottom); 1042int minX = _imageLayout.Bounds.Right + Padding; 1049if ((xPos + maxStringWidth) > (this.Bounds.Right - margin.Width)) 1050maxStringWidth = (this.Bounds.Right - margin.Width) - xPos;
Designers\StateDesignerConnector.cs (2)
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));
Designers\StateMachineDesignerPaint.cs (3)
68if ((left + width) > bounds.Right) 69width -= rectangle.Right - bounds.Right;
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); 56points[1].X = bounds.Right - compositeDesignerTheme.ConnectorSize.Width / 3; 58points[2].X = bounds.Right - compositeDesignerTheme.ConnectorSize.Width / 3;
Rules\Design\Dialogs\IntellisenseTextBox.cs (1)
442if (listboxRectangle.Right > topLevelControlSize.Width)
System.Workflow.ComponentModel (133)
AuthoringOM\Design\ActivityDesigner.cs (2)
953hitRectangle = new Rectangle(bounds.Right, bounds.Top, bounds.Width - bounds.Width, bounds.Height); 1186connections.Add(new Point(bounds.Right, bounds.Top + bounds.Height / 2));
AuthoringOM\Design\ActivityPreviewDesigner.cs (2)
587this.separatorLine[1].X = bounds.Right - e.AmbientTheme.Margin.Width; 991Point configErrorLocation = new Point(rectangle.Right - configErrorSize.Width / 2, rectangle.Top - configErrorSize.Height / 2);
AuthoringOM\Design\Connector.cs (11)
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)); 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) }); 1819begin.X = Math.Min(Math.Max(begin.X, enclosingRectangle.Left + 1), enclosingRectangle.Right - 1); 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 (67)
215rectangle.X = destination.Right - rectangle.Width; 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); 308graphics.DrawLine(darkPen, bounds.Right - 1, bounds.Bottom - 1, bounds.Right - 1, bounds.Top + 1); 309graphics.DrawLine(darkdarkPen, bounds.Left, bounds.Bottom, bounds.Right, bounds.Bottom); 310graphics.DrawLine(darkdarkPen, bounds.Right, bounds.Bottom, bounds.Right, bounds.Top); 335for (int gridCoOrdX = gridStart.X; gridCoOrdX <= viewableRectangle.Right; gridCoOrdX += Math.Max(ambientTheme.GridSize.Width, 1)) 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); 583graphics.DrawLine(Pens.Red, bounds.Left, bounds.Top, bounds.Right, bounds.Bottom); 584graphics.DrawLine(Pens.Red, bounds.Right, bounds.Top, bounds.Left, bounds.Bottom); 760roundedRectangle.AddLine(rectangle.Left + radius, rectangle.Top, rectangle.Right - radius, rectangle.Top); 761roundedRectangle.AddArc(rectangle.Right - diameter, rectangle.Top, diameter, diameter, 270.0f, 90.0f); 762roundedRectangle.AddLine(rectangle.Right, rectangle.Top + radius, rectangle.Right, rectangle.Bottom - radius); 763roundedRectangle.AddArc(rectangle.Right - diameter, rectangle.Bottom - diameter, diameter, diameter, 0.0f, 90.0f); 764roundedRectangle.AddLine(rectangle.Right - radius, rectangle.Bottom, rectangle.Left + radius, rectangle.Bottom); 830pagePaths[0].AddLine(pageBounds.Left + pageFoldSize, pageBounds.Top, pageBounds.Right, pageBounds.Top); 831pagePaths[0].AddLine(pageBounds.Right, pageBounds.Top, pageBounds.Right, pageBounds.Bottom); 832pagePaths[0].AddLine(pageBounds.Right, pageBounds.Bottom, pageBounds.Left, pageBounds.Bottom); 845pagePaths[0].AddLine(pageBounds.Left, pageBounds.Top, pageBounds.Right, pageBounds.Top); 846pagePaths[0].AddLine(pageBounds.Right, pageBounds.Top, pageBounds.Right, pageBounds.Bottom); 847pagePaths[0].AddLine(pageBounds.Right, pageBounds.Bottom, pageBounds.Left + pageFoldSize, pageBounds.Bottom); 863pagePaths[0].AddLine(pageBounds.Left, pageBounds.Top, pageBounds.Right - pageFoldSize, pageBounds.Top); 864pagePaths[0].AddLine(pageBounds.Right - pageFoldSize, pageBounds.Top, pageBounds.Right - pageFoldSize, pageBounds.Top + pageFoldSize); 865pagePaths[0].AddLine(pageBounds.Right - pageFoldSize, pageBounds.Top + pageFoldSize, pageBounds.Right, pageBounds.Top + pageFoldSize); 866pagePaths[0].AddLine(pageBounds.Right, pageBounds.Top + pageFoldSize, pageBounds.Right, pageBounds.Bottom); 867pagePaths[0].AddLine(pageBounds.Right, pageBounds.Bottom, pageBounds.Left, pageBounds.Bottom); 872pagePaths[1].AddLine(pageBounds.Right - pageFoldSize, pageBounds.Top, pageBounds.Right - pageFoldSize, pageBounds.Top + pageFoldSize); 873pagePaths[1].AddLine(pageBounds.Right - pageFoldSize, pageBounds.Top + pageFoldSize, pageBounds.Right, pageBounds.Top + pageFoldSize); 874pagePaths[1].AddLine(pageBounds.Right, pageBounds.Top + pageFoldSize, pageBounds.Right - pageFoldSize, pageBounds.Top); 880pagePaths[0].AddLine(pageBounds.Left, pageBounds.Top, pageBounds.Right, pageBounds.Top); 881pagePaths[0].AddLine(pageBounds.Right, pageBounds.Top, pageBounds.Right, pageBounds.Bottom - pageFoldSize); 882pagePaths[0].AddLine(pageBounds.Right, pageBounds.Bottom - pageFoldSize, pageBounds.Right - pageFoldSize, pageBounds.Bottom - pageFoldSize); 883pagePaths[0].AddLine(pageBounds.Right - pageFoldSize, pageBounds.Bottom - pageFoldSize, pageBounds.Right - pageFoldSize, pageBounds.Bottom); 884pagePaths[0].AddLine(pageBounds.Right - pageFoldSize, pageBounds.Bottom, pageBounds.Left, pageBounds.Bottom); 889pagePaths[1].AddLine(pageBounds.Right, pageBounds.Bottom - pageFoldSize, pageBounds.Right - pageFoldSize, pageBounds.Bottom - pageFoldSize); 890pagePaths[1].AddLine(pageBounds.Right - pageFoldSize, pageBounds.Bottom - pageFoldSize, pageBounds.Right - pageFoldSize, pageBounds.Bottom); 891pagePaths[1].AddLine(pageBounds.Right - pageFoldSize, pageBounds.Bottom, pageBounds.Right, pageBounds.Bottom - pageFoldSize); 1034for (int gridCoOrd = gridStart.X; gridCoOrd <= viewableRectangle.Right; gridCoOrd += Math.Max(gridUnit.Width, 1)) 1045if (showMinorGrid && (gridCoOrd + gridUnit.Width / 2) >= viewableRectangle.Left && (gridCoOrd + gridUnit.Width / 2) <= viewableRectangle.Right) 1070if (!NativeMethods.LineTo(this.hdc, viewableRectangle.Right - 1, gridCoOrd)) 1083if (!NativeMethods.LineTo(this.hdc, viewableRectangle.Right - 1, gridCoOrd + gridUnit.Height / 2)) 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) })); 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)));
AuthoringOM\Design\DesignerWidgets.cs (18)
336this.itemStrip.Location = new Point(leftScrollButtonBounds.Right, leftScrollButtonBounds.Top); 488if (buttonRectangle.X >= this.bounds.Right) 489buttonRectangle.X = this.bounds.Right - buttonRectangle.Size.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)) 1314else if (this.workingRectangle.Right < bounds.Right) 1315fittingOffset.Width -= bounds.Right - this.workingRectangle.Right; 2373toolInfo.rect.right = rectangle.Right; 2543rectangles[j] = new Rectangle(rectangles[j].Left, rectangles[j].Top, stripRectangle.Right - rectangles[j].Left, rectangles[j].Height); 2831stripRectangle.X = scrollLeftButton.Right + margin.Width; 2833stripRectangle.Width = (scrollRightButton.Left - margin.Width) - (scrollLeftButton.Right + margin.Width); 2849int startLocation = (scrollButton == ScrollButton.Left) ? this.bounds.X : this.bounds.Right - scrollButtonSize.Width; 3431graphics.DrawLine(SystemPens.ControlDarkDark, canvasRect.Left, canvasRect.Top, canvasRect.Right, canvasRect.Top); 3432graphics.DrawLine(SystemPens.ControlLight, canvasRect.Right, canvasRect.Top, canvasRect.Right, canvasRect.Bottom); 3433graphics.DrawLine(SystemPens.ControlLight, canvasRect.Left, canvasRect.Bottom, canvasRect.Right, canvasRect.Bottom); 3436graphics.DrawLine(SystemPens.ControlLight, canvasRect.Left, canvasRect.Top, canvasRect.Right, canvasRect.Top);
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (4)
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); 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 (8)
824size.Width += Math.Max(childRectangle.Right - bounds.Right, 0); 937bounds.Width = Math.Max(minRectangle.Right - bounds.Left, e.Bounds.Right - bounds.Left); 1118rightBottom.X = (rightBottom.X < activityDesigner.Bounds.Right) ? activityDesigner.Bounds.Right : rightBottom.X; 1131rightBottom.X = (rightBottom.X < connector.Bounds.Right) ? connector.Bounds.Right : rightBottom.X;
AuthoringOM\Design\Glyphs\ConfigErrorGlyph.cs (1)
52Point configErrorLocation = new Point(designer.Bounds.Right - configErrorSize.Width - margin.Width / 2, designer.Bounds.Top - configErrorSize.Height + margin.Height);
AuthoringOM\Design\Glyphs\SelectionGlyph.cs (3)
57grabHandles[2] = new Rectangle(selectionRect.Right - grabHandleSize.Width, selectionRect.Top, grabHandleSize.Width, grabHandleSize.Height); 58grabHandles[3] = new Rectangle(new Point(selectionRect.Right - grabHandleSize.Width, selectionRect.Top + (selectionRect.Height - grabHandleSize.Height) / 2), grabHandleSize); 59grabHandles[4] = new Rectangle(selectionRect.Right - grabHandleSize.Width, selectionRect.Bottom - grabHandleSize.Height, grabHandleSize.Width, grabHandleSize.Height);
AuthoringOM\Design\MessageFilters\AutoScrollExpandMessageFilter.cs (2)
121else if (clientPoint.X >= clientRectangle.Right - clientRectangle.Width / 10 && hScrollBar.Value < hScrollBar.Maximum - hScrollBar.LargeChange) 165scrollIndicatorRectangles[1].X = clientRectangle.Right - indicatorMargins.Width - scrollIndicatorSize.Width;
AuthoringOM\Design\MessageFilters\ResizingMessageFilter.cs (5)
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) 308designerBounds.Width += (point.X - designerBounds.Right);
AuthoringOM\Design\ParallelActivityDesigner.cs (3)
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);
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\WorkflowView.cs (5)
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))) 1749scrollDelta.Width = (rect.Right - clientRectangle.Right); 1915menuCommandService.ShowContextMenu(menuID, buttonRect.Right, buttonRect.Top);
System.WorkflowServices (4)
System\Workflow\Activities\Design\GradientPanel.cs (3)
134arc.X = frame.Right - diameter; 150arc.X = frame.Right - diameter; 152path.AddLine(new Point(frame.Right, frame.Top + glossHeight), new Point(frame.Left, frame.Top + glossHeight));
System\Workflow\ComponentModel\Design\HighlightOverlayGlyph.cs (1)
90arc.X = frame.Right - diameter;