215 references to Right
PresentationCore (18)
Core\CSharp\MS\Internal\Automation\ElementUtil.cs (1)
152NativeMethods.RECT rcWin32 = new NativeMethods.RECT( (int) rc.Left, (int) rc.Top, (int) rc.Right, (int) rc.Bottom );
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (1)
1776i = (int)inkSpaceRectangle.Right;
Core\CSharp\MS\Internal\Ink\StrokeRenderer.cs (2)
850double intersectWidth = Math.Max((double)(Math.Min(rect1.Right, rect2.Right) - intersectLeft), (double)0);
Core\CSharp\MS\Internal\Media3D\GeneralTransform2Dto3Dto2D.cs (3)
241visCorners[1] = _transform2D.Transform(new Point(_visualBounds.Right, _visualBounds.Top)); 242visCorners[2] = _transform2D.Transform(new Point(_visualBounds.Right, _visualBounds.Bottom)); 1126if (ptRelToCapture.X >= _visualBounds.Right - 1) ptRelToCapture.X += BUFFER_SIZE;
Core\CSharp\MS\Internal\TextFormatting\FullTextLine.cs (2)
2706_overhang.Leading = paragraphWidth - Start - boundingBox.Right; 2712_overhang.Trailing = Start + Width - boundingBox.Right;
Core\CSharp\MS\Internal\TextFormatting\SimpleTextLine.cs (1)
1177return Start + Width - _boundingBox.Right;
Core\CSharp\System\Windows\Media\EllipseGeometry.cs (1)
54RadiusX = (rect.Right - rect.X) * (1.0 / 2.0);
Core\CSharp\System\Windows\Media\FormattedText.cs (1)
1694rect.X = enumerator.CurrentParagraphWidth - rect.Right;
Core\CSharp\System\Windows\Media\RectangleGeometry.cs (4)
511points[4].X = points[11].X = rect.Right - radiusX; 512points[5].X = points[10].X = rect.Right - bezierX; 513points[6].X = points[7].X = points[8].X = points[9].X = rect.Right; 530points[1].X = points[2].X = rect.Right;
Core\CSharp\System\Windows\Media3D\Viewport2DVisual3D.cs (1)
259return new Point((pt.X - descBounds.Left) / (descBounds.Right - descBounds.Left),
Shared\MS\Internal\PointUtil.cs (1)
446rc.right = DoubleUtil.DoubleToInt(rect.Right);
PresentationFramework (133)
src\Framework\MS\Internal\Controls\InkCanvasSelectionAdorner.cs (5)
275PathSegment line = new LineSegment(new Point(hatchRect.Right, hatchRect.Top), true); 279line = new LineSegment(new Point(hatchRect.Right, hatchRect.Bottom), true); 381center = new Point(rectWireFrame.Right, rectWireFrame.Top); 394center = new Point(rectWireFrame.Right, rectWireFrame.Top + rectWireFrame.Height / 2); 414center = new Point(rectWireFrame.Right, rectWireFrame.Bottom);
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (6)
1515Invariant.Assert(DoubleUtil.GreaterThan(rectStickyNote.Right, rectPage.Left), "Note's right is off left of page."); 1516Invariant.Assert(DoubleUtil.LessThan(rectStickyNote.Left, rectPage.Right), "Note's left is off right of page."); 1563else if (DoubleUtil.GreaterThan(rectStickyNote.Right, rectPage.Right)) 1566offsetX = rectStickyNote.Right - rectPage.Right;
src\Framework\MS\Internal\Documents\MultiPageTextView.cs (2)
1099if (point.X >= textViewBounds.Left && point.X <= textViewBounds.Right) 1105horz = Math.Min(Math.Abs(point.X - textViewBounds.Left), Math.Abs(point.X - textViewBounds.Right));
src\Framework\MS\Internal\Documents\ScrollData.cs (2)
196double minX = ComputeScrollOffset(viewport.Left, viewport.Right, rectangle.Left, rectangle.Right);
src\Framework\MS\Internal\Documents\TextBoxView.cs (2)
663rect.X = rect.Right; 670rect.X = rect.Right;
src\Framework\MS\Internal\Documents\TextDocumentView.cs (7)
807if (point.X > rowResult.LayoutBox.Right) 1895else if (point.X > columnBox.Right) 1906double gap = nextColumnBox.Left - columnBox.Right; 1907if (point.X > columnBox.Right + gap / 2 && columns[columnIndex + 1].HasTextContent) 2085foundHit = snapToText || (point.X >= paragraphBox.Left && point.X <= paragraphBox.Right); 3499return new Rect(paragraphResult.LayoutBox.Right, paragraphResult.LayoutBox.Top, 0.0, paragraphResult.LayoutBox.Height); 3533return new Rect(paragraphResult.LayoutBox.Right, paragraphResult.LayoutBox.Top, 0.0, paragraphResult.LayoutBox.Height);
src\Framework\MS\Internal\Documents\TextViewBase.cs (2)
149double minX = System.Windows.Controls.ScrollContentPresenter.ComputeScrollOffsetWithMinimalScroll(viewport.Left, viewport.Right, rect.Left, rect.Right);
src\Framework\MS\Internal\Ink\SelectionEditingBehavior.cs (2)
209if ( newPoint.X > _selectionRect.Right - MinimumHeightWidthSize ) 211newPoint.X = _selectionRect.Right - MinimumHeightWidthSize;
src\Framework\MS\Internal\PtsHost\ParagraphVisual.cs (6)
104new Point(_renderBounds.Right - pen.Thickness * 0.5, _renderBounds.Top + pen.Thickness * 0.5))); 122new Point(_renderBounds.Right - pen.Thickness / 2, _renderBounds.Top), 123new Point(_renderBounds.Right - pen.Thickness / 2, _renderBounds.Bottom)); 134new Point(_renderBounds.Right, _renderBounds.Top + pen.Thickness / 2)); 145new Point(_renderBounds.Right, _renderBounds.Bottom - pen.Thickness / 2)); 157new Point(_renderBounds.Right - _borderThickness.Right, _renderBounds.Bottom - _borderThickness.Bottom)));
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (4)
1892rect.X = rect.Right; 1905rect.X = rect.Right; 1994rect.X = rect.Right; 2004rect.X = rect.Right;
src\Framework\System\Windows\Controls\DataGrid.cs (2)
6581if ((pt.X >= cellBounds.Left) && (pt.X <= cellBounds.Right)) 6676else if (pt.X > bounds.Right)
src\Framework\System\Windows\Controls\InkPresenter.cs (2)
180if ( !boundingRect.IsEmpty && boundingRect.Right > 0.0 && boundingRect.Bottom > 0.0 ) 183Size sizeStrokes = new Size(boundingRect.Right, boundingRect.Bottom);
src\Framework\System\Windows\Controls\ItemsControl.cs (12)
2649scrollHost.ScrollToHorizontalOffset(scrollHost.HorizontalOffset - scrollHost.ViewportWidth + elementBounds.Right); 3059&& DoubleUtil.LessThanOrClose(elementBounds.Right, viewPortBounds.Right)) 3071(eastWest && DoubleUtil.LessThanOrClose(elementBounds.Right, viewPortBounds.Left))) 3076(eastWest && DoubleUtil.LessThanOrClose(viewPortBounds.Right, elementBounds.Left))) 3090if (DoubleUtil.LessThan(elementRect.Right, viewportRect.Left) || LayoutDoubleUtil.AreClose(elementRect.Right, viewportRect.Left) || 3091DoubleUtil.GreaterThan(elementRect.Left, viewportRect.Right) || LayoutDoubleUtil.AreClose(elementRect.Left, viewportRect.Right) || 3123return DoubleUtil.LessThanOrClose(toRect.Right, fromRect.Right); 3333else if (mousePosition.X >= bounds.Right)
src\Framework\System\Windows\Controls\Primitives\Popup.cs (10)
2159if (childBounds.Right > screenBounds.Right) 2161bestTranslation.X = screenBounds.Right - childBounds.Width; 2204if (childBounds.Right > screenBounds.Right) 2206bestTranslation.X = screenBounds.Right - childBounds.Width; 2263limitSize.Width = Math.Max(0.0, Math.Max(screenBounds.Right - targetBounds.Right, targetBounds.Left - screenBounds.Left)); 2281limitSize.Width = Math.Max(0.0, Math.Max(screenBounds.Right - targetBounds.Right, targetBounds.Left - screenBounds.Left));
src\Framework\System\Windows\Controls\Primitives\ScrollContentPresenter.cs (2)
608double minX = ComputeScrollOffsetWithMinimalScroll(viewport.Left, viewport.Right, rectangle.Left, rectangle.Right);
src\Framework\System\Windows\Controls\SinglePageViewer.cs (1)
877else if (DoubleUtil.GreaterThan(point.X, pageRect.Right))
src\Framework\System\Windows\Controls\TextAdaptor.cs (1)
265isi.SetHorizontalOffset(alignToTop ? rangeBounds.Left : (rangeBounds.Right - isi.ViewportWidth));
src\Framework\System\Windows\Controls\TextBlock.cs (2)
2336rect.X = rect.Right; 2346rect.X = rect.Right;
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (2)
6342double right = DoubleUtil.AreClose(itemsSize.Width, itemsRect.Right) ? 0 : itemsRect.Right-itemsSize.Width;
src\Framework\System\Windows\Documents\FixedPageStructure.cs (3)
168double absHorDistance = Math.Max(0, (pt.X > lineResult.LayoutBox.X) ? (pt.X - lineResult.LayoutBox.Right) : (lineResult.LayoutBox.X - pt.X)); 194if (closestManhattan != null && (closestManhattan.LayoutBox.Left > closestLine.LayoutBox.Right || closestLine.LayoutBox.Left > closestManhattan.LayoutBox.Right))
src\Framework\System\Windows\Documents\FixedSOMFixedBlock.cs (2)
54run.BoundingRect.Right != lastRun.BoundingRect.Right &&
src\Framework\System\Windows\Documents\FixedSOMPageConstructor.cs (14)
506Rect boundingRect = new Rect(lastX, alignmentBox.Top, alignmentBox.Right-lastX, alignmentBox.Height); 569Math.Abs(textRunRect.Right - fixedBlockRect.Right) <= textRun.DefaultCharWidth) 719double right = (fixedBlockRect.Right < textRunRect.Right) ? fixedBlockRect.Right: textRunRect.Right; 725double left = (fixedBlockRect.Right < textRunRect.Right) ? fixedBlockRect.Right: textRunRect.Right; 941_AddLine(new Point(bounds.Left, center), new Point(bounds.Right, center), transform); 1041Math.Abs(t.BoundingRect.Right - row.BoundingRect.Right) < fudge &&
src\Framework\System\Windows\Documents\FixedSOMSemanticBox.cs (4)
203double thisRectRefX = RTL ? thisRect.Right : thisRect.Left; 204double otherRectRefX = RTL ? otherRect.Right : otherRect.Left; 211else if (thisRect.Right < otherRect.Left) 216else if (otherRect.Right < thisRect.Left)
src\Framework\System\Windows\Documents\FixedTextView.cs (2)
860double horizontalDistance = Math.Max(0, (transformedPt.X > alignmentRect.X) ? (transformedPt.X - alignmentRect.Right) : (alignmentRect.X - transformedPt.X)); 959distance = (xoff > box.X) ? (xoff - box.Right) : (box.X - xoff);
src\Framework\System\Windows\Documents\Glyphs.cs (1)
171Math.Max(0, designRect.Right),
src\Framework\System\Windows\Documents\HighlightVisual.cs (2)
250|| backgroundRect.Left > combinedRect.Right + .1 || backgroundRect.Right + .1 < combinedRect.Left)
src\Framework\System\Windows\Documents\ImmComposition.cs (1)
893milPointBottomRight = new Point(rectUi.Right, rectUi.Bottom);
src\Framework\System\Windows\Documents\RubberbandSelector.cs (2)
364double right = _selectionRect.Right; 464t.TryTransform(new Point(boundingRect.Right, centerLine), out pt2);
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (4)
1635point.X > cellInfo.CellArea.Right - sensitivity) 1637if(!IsLastCellInRow(cell) || point.X < cellInfo.CellArea.Right + sensitivity) 1640columnRect = new Rect(cellInfo.CellArea.Right, cellInfo.TableArea.Top, 1, cellInfo.TableArea.Height); 1737xPosAdorner = Math.Min(xPosAdorner, _columnRect.Right + this.RightDragMax);
src\Framework\System\Windows\Documents\TextStore.cs (1)
1028milPointBottomRight = new Point(rectUi.Right, rectUi.Bottom);
src\Framework\System\Windows\Input\KeyboardNavigation.cs (13)
2636return sourceRect.Right - targetRect.Right; 2699return DoubleUtil.LessThanOrClose(fromRect.Right, toRect.Left); 2701return DoubleUtil.GreaterThanOrClose(fromRect.Left, toRect.Right); 2769return DoubleUtil.LessThan(targetRect.Right, sourceRect.Right) || (DoubleUtil.AreClose(targetRect.Right, sourceRect.Right) && IsAncestorOfEx(sourceElement, targetElement)); 2782if (DoubleUtil.GreaterThan(targetRect.Right, startRange) && DoubleUtil.LessThan(targetRect.Left, endRange)) 3023endRange = horizontalDirection ? sourceRect.Bottom : sourceRect.Right; 3149directionScore = currentRect.Right; 3162rangeScore = ComputeRangeScore(sourceRect.Left, sourceRect.Right, currentRect.Left, currentRect.Right);
src\Framework\System\Windows\Shapes\Shape.cs (1)
720return new Size(Math.Max(bounds.Right, 0),
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (8)
501rcLogicalClient.Right - rcLogicalWindow.Right, 1248Assert.AreEqual(topRightRegionRect.Right, windowSize.Width); 1264Assert.AreEqual(bottomRightRegionRect.Right, windowSize.Width); 1294(int)Math.Ceiling(region.Right), 1302(int)Math.Ceiling(region.Right) + 1, 1467else if (mousePosition.X < windowPosition.Right && mousePosition.X >= windowPosition.Right - _chromeInfo.ResizeBorderThickness.Right)
src\Framework\System\Windows\Standard\DpiHelper.cs (2)
47Point bottomRight = LogicalPixelsToDevice(new Point(logicalRectangle.Right, logicalRectangle.Bottom), dpiScaleX, dpiScaleY); 55Point bottomRight = DevicePixelsToLogical(new Point(deviceRectangle.Right, deviceRectangle.Bottom), dpiScaleX, dpiScaleY);
src\Framework\System\Windows\Window.cs (1)
6998interopRc = new NativeMethods.RefRECT((int)physicalClip.Left, (int)physicalClip.Top, (int)physicalClip.Right, (int)physicalClip.Bottom);
PresentationFramework.Aero (11)
Microsoft\Windows\Themes\ButtonChrome.cs (5)
534dc.DrawRectangle(topShadow, null, new Rect(1.0, 1.0, bounds.Right - 2.0, 2.0)); 630borderFigure.Segments.Add(new LineSegment(new Point(bounds.Right - 2.5, bounds.Bottom - 0.5), true)); 631borderFigure.Segments.Add(new ArcSegment(new Point(bounds.Right - 0.5, bounds.Bottom - 2.5), new Size(2.0, 2.0), 0.0, false, SweepDirection.Counterclockwise, true)); 632borderFigure.Segments.Add(new LineSegment(new Point(bounds.Right - 0.5, bounds.Top + 2.5), true)); 633borderFigure.Segments.Add(new ArcSegment(new Point(bounds.Right - 2.5, bounds.Top + 0.5), new Size(2.0, 2.0), 0.0, false, SweepDirection.Counterclockwise, true));
Microsoft\Windows\Themes\ListBoxChrome.cs (4)
490borderFigure.Segments.Add(new LineSegment(new Point(bounds.Right, bounds.Bottom), false)); 491borderFigure.Segments.Add(new LineSegment(new Point(bounds.Right, bounds.Top), false)); 501borderFigure.Segments.Add(new LineSegment(new Point(bounds.Right - thickness.Right, bounds.Bottom - thickness.Bottom), false)); 502borderFigure.Segments.Add(new LineSegment(new Point(bounds.Right - thickness.Right, bounds.Top + thickness.Top), false));
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (2)
117double centerWidth = shadowBounds.Right - shadowBounds.Left - 2 * ShadowDepth; 133double centerRight = shadowBounds.Right - ShadowDepth;
PresentationFramework.Classic (8)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (6)
970dc.DrawRectangle(borderBrush, null, new Rect(bounds.Right - borderThickness.Right, bounds.Top, borderThickness.Right, bounds.Height)); 1056dc.DrawRectangle(LightLightBrush, null, new Rect(bounds.Right - singleThickness.Right, bounds.Top, singleThickness.Right, bounds.Height)); 1081double left = bounds.Left, right = bounds.Right, top = bounds.Top, bottom = bounds.Bottom - 1.0; 1113double right = bounds.Right, top = bounds.Top, bottom = bounds.Bottom - 1.0; 1263dc.PushTransform(GetTabTransform(ClassicBorderStyle.TabRight, bounds.Right, bounds.Bottom)); 1284dc.PushTransform(GetTabTransform(ClassicBorderStyle.TabBottom, bounds.Right, bounds.Bottom));
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (2)
117double centerWidth = shadowBounds.Right - shadowBounds.Left - 2 * ShadowDepth; 133double centerRight = shadowBounds.Right - ShadowDepth;
PresentationFramework.Luna (3)
Microsoft\Windows\Themes\ButtonChrome.cs (1)
474dc.DrawRoundedRectangle(brush, null, new Rect(bounds.Right - 6.0, bounds.Top, 6.0, bounds.Height), 4.0, 4.0);
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (2)
117double centerWidth = shadowBounds.Right - shadowBounds.Left - 2 * ShadowDepth; 133double centerRight = shadowBounds.Right - ShadowDepth;
PresentationFramework.Royale (3)
Microsoft\Windows\Themes\ButtonChrome.cs (1)
395dc.DrawRoundedRectangle(brush, null, new Rect(bounds.Right - 6.0, bounds.Top, 6.0, bounds.Height), 3.0, 3.0);
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (2)
117double centerWidth = shadowBounds.Right - shadowBounds.Left - 2 * ShadowDepth; 133double centerRight = shadowBounds.Right - ShadowDepth;
System.Activities.Presentation (12)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\ChoiceEditor.cs (5)
901double dropButtonLeft = (innerRect.Right > textAreaInset.Right ? innerRect.Right - textAreaInset.Right : 0d) + dropButtonInset.Left; 903double dropButtonRight = innerRect.Right - dropButtonInset.Right; 916double textAreaRight = innerRect.Right > textAreaInset.Right ? innerRect.Right - textAreaInset.Right : textAreaLeft;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\RenderUtils.cs (2)
20Point spineRightBottom = new Point(outerBounds.Right, outerBounds.Bottom); 46return new Rect(new Point(outerBounds.Left + strokeThickness, outerBounds.Top + strokeThickness), new Point(outerBounds.Right - strokeThickness, outerBounds.Bottom - strokeThickness));
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorRouter.cs (4)
1308AddCover(new ConnectorSegment(new Point(rectangle.Right, rectangle.Top), new Point(rectangle.Right, rectangle.Bottom))); 1309AddCover(new ConnectorSegment(new Point(rectangle.Left, rectangle.Top), new Point(rectangle.Right, rectangle.Top))); 1310AddCover(new ConnectorSegment(new Point(rectangle.Left, rectangle.Bottom), new Point(rectangle.Right, rectangle.Bottom)));
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (1)
1166int imageWidth = (int)Math.Ceiling(bounds.Right);
UIAutomationClient (5)
MS\Internal\Automation\ClickablePoint.cs (4)
39if (rect.Left >= rect.Right || rect.Top >= rect.Bottom) 50pt = new Point((rect.Left + rect.Right) / 2, (rect.Top + rect.Bottom) / 2); 77pt = new Point( rect.Right - 1, rect.Top + (rect.Height /2) ); 163for ( double across = rect.Left + x; across < rect.Right; across += x )
System\Windows\Automation\TextPattern.cs (1)
233if (screenLocation.X < rect.Left || screenLocation.X >= rect.Right || screenLocation.Y < rect.Top || screenLocation.Y >= rect.Bottom)
UIAutomationClientsideProviders (14)
MS\Internal\AutomationProxies\Misc.cs (1)
1386return x >= rc.Left && x < rc.Right && y >= rc.Top && y < rc.Bottom;
MS\Internal\AutomationProxies\NonClientArea.cs (1)
575if (x < rect.Right && y < rect.Bottom)
MS\Internal\AutomationProxies\WindowsEditBox.cs (1)
718if (pt.X >= r.Left && pt.X < r.Right)
MS\Internal\AutomationProxies\WindowsRichEdit.cs (1)
387int x = ((int)rect.Left + (int)rect.Right) / 2;
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (1)
1455double right = rect.Right;
MS\Internal\AutomationProxies\WindowsScrollBar.cs (2)
185int offset = (int)rcParent.Right - sbi.rcScrollBar.right; 192sbi.rcScrollBar.right = (int)rcParent.Right - offset;
MS\Internal\AutomationProxies\WindowsScrollBarBits.cs (2)
253int offset = (int)rcParent.Right - sbi.rcScrollBar.right; 260sbi.rcScrollBar.right = (int)rcParent.Right - offset;
MS\Internal\AutomationProxies\WindowsStatusBar.cs (1)
367info.rc.right = (int)rc.Right;
MS\Internal\AutomationProxies\WindowsTab.cs (1)
585double totalRange = (double)lastRect.Right - (double)firstRect.Left;
MS\Internal\AutomationProxies\WindowsToolbar.cs (1)
683Misc.MouseClick(((int)boundingRectangle.Left + (int)boundingRectangle.Right) / 2, ((int)boundingRectangle.Top + (int)boundingRectangle.Bottom) / 2);
MS\Internal\AutomationProxies\WindowsTooltip.cs (1)
276if (pt.x >= rects[scan].Left && pt.x <= rects[scan].Right && pt.y >= rects[scan].Top && pt.y <= rects[scan].Bottom)
MS\Win32\NativeMethods.cs (1)
1206this.right = (int)rc.Right;
WindowsBase (8)
Base\System\Windows\Rect.cs (8)
379return new Point(Right, Top); 403return new Point(Right, Bottom); 480return (rect.Left <= Right) && 481(rect.Right >= Left) && 503_width = Math.Max(Math.Min(Right, rect.Right) - left, 0); 544double maxRight = Math.Max(Right, rect.Right);