343 references to Left
PresentationCore (20)
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 (2)
1388_inkSpaceRectangle.Width = data - _inkSpaceRectangle.Left; 1771int i = (int)inkSpaceRectangle.Left;
Core\CSharp\MS\Internal\Ink\StrokeRenderer.cs (2)
848double intersectLeft = Math.Max(rect1.Left, rect2.Left);
Core\CSharp\MS\Internal\Media3D\GeneralTransform2Dto3Dto2D.cs (3)
240visCorners[0] = _transform2D.Transform(new Point(_visualBounds.Left, _visualBounds.Top)); 243visCorners[3] = _transform2D.Transform(new Point(_visualBounds.Left, _visualBounds.Bottom)); 1124if (ptRelToCapture.X <= _visualBounds.Left + 1) ptRelToCapture.X -= BUFFER_SIZE;
Core\CSharp\MS\Internal\TextFormatting\FullTextLine.cs (2)
2707_overhang.Trailing = boundingBox.Left - (paragraphWidth - Start - Width); 2711_overhang.Leading = boundingBox.Left - Start;
Core\CSharp\MS\Internal\TextFormatting\SimpleTextLine.cs (1)
1164return _boundingBox.Left - Start;
Core\CSharp\System\Windows\Automation\Peers\UIElement3DAutomationPeer.cs (1)
406pt = new Point(rectScreen.Left + rectScreen.Width * 0.5, rectScreen.Top + rectScreen.Height * 0.5);
Core\CSharp\System\Windows\Automation\Peers\UIElementAutomationPeer.cs (1)
535pt = new Point(rectScreen.Left + rectScreen.Width * 0.5, rectScreen.Top + rectScreen.Height * 0.5);
Core\CSharp\System\Windows\Media\Effects\Effect.cs (2)
140worldBounds.Left + unitPoint.X * worldBounds.Width, 157(worldPoint.X - worldBounds.Left) / worldBounds.Width,
Core\CSharp\System\Windows\Media3D\Viewport2DVisual3D.cs (3)
176return new Point(uv.X * descBounds.Width + descBounds.Left, 259return new Point((pt.X - descBounds.Left) / (descBounds.Right - descBounds.Left),
Core\CSharp\System\Windows\UIElement.cs (2)
795EventTrace.EventProvider.TraceEvent(EventTrace.Event.WClientArrangeElementBegin, EventTrace.Keyword.KeywordLayout, EventTrace.Level.Verbose, perfElementID, finalRect.Top, finalRect.Left, finalRect.Width, finalRect.Height); 975EventTrace.EventProvider.TraceEvent(EventTrace.Event.WClientArrangeElementEnd, EventTrace.Keyword.KeywordLayout, EventTrace.Level.Verbose, perfElementID, finalRect.Top, finalRect.Left, finalRect.Width, finalRect.Height);
PresentationFramework (199)
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (2)
267return new Point(rect.Left, rect.Top + rect.Height); 292return new Point(rect.Left, rect.Top + rect.Height / 2);
src\Framework\MS\Internal\Annotations\Anchoring\TreeNodeSelectionProcessor.cs (1)
139return new Point(rect.Left, rect.Top);
src\Framework\MS\Internal\Annotations\Component\MArkedHighlightComponent.cs (2)
876sign = Math.Sign(next.Left - current.Left);
src\Framework\MS\Internal\Controls\InkCanvasFeedbackAdorner.cs (1)
102offsetX = adornerRect.Left;
src\Framework\MS\Internal\Controls\InkCanvasSelectionAdorner.cs (8)
271path.StartPoint = new Point(hatchRect.Left, hatchRect.Top); 283line = new LineSegment(new Point(hatchRect.Left, hatchRect.Bottom), true); 287line = new LineSegment(new Point(hatchRect.Left, hatchRect.Top), true); 368center = new Point(rectWireFrame.Left, rectWireFrame.Top); 374center = new Point(rectWireFrame.Left + rectWireFrame.Width / 2, rectWireFrame.Top); 387center = new Point(rectWireFrame.Left, rectWireFrame.Top + rectWireFrame.Height / 2); 401center = new Point(rectWireFrame.Left, rectWireFrame.Bottom); 407center = new Point(rectWireFrame.Left + rectWireFrame.Width / 2, rectWireFrame.Bottom);
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (8)
1079offset = Math.Max(offset, -(rectStickyNote.Left - rectPage.Left)); 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."); 1558if (DoubleUtil.LessThan(rectStickyNote.Left, rectPage.Left)) 1561offsetX = rectStickyNote.Left - rectPage.Left;
src\Framework\MS\Internal\Documents\DocumentGrid.cs (1)
2659return new Point(selectionRect.Left, selectionRect.Top);
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\TextDocumentView.cs (10)
1886if (point.X < columnBox.Left) 1903if (point.X < nextColumnBox.Left) 1906double gap = nextColumnBox.Left - columnBox.Right; 1933if (point.X < nextColumnBox.Left) 2085foundHit = snapToText || (point.X >= paragraphBox.Left && point.X <= paragraphBox.Right); 2760suggestedX = (suggestedX - columns[oldColumnIndex].LayoutBox.Left) + columns[columnIndex].LayoutBox.Left; 3082double currentSuggestedX = columnSuggestedX + columns[columnIndex].LayoutBox.Left; 3494return new Rect(paragraphResult.LayoutBox.Left, paragraphResult.LayoutBox.Top, 0.0, paragraphResult.LayoutBox.Height); 3528return new Rect(paragraphResult.LayoutBox.Left, 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\ClipboardProcessor.cs (1)
165transform.OffsetX = -bounds.Left;
src\Framework\MS\Internal\Ink\InkCanvasSelection.cs (4)
323|| !DoubleUtil.AreClose(finalRectangle.Left, selectionBounds.Left) ) 958double dx = target.Left - m11 * source.Left;
src\Framework\MS\Internal\Ink\PenCursorManager.cs (1)
237int xHotspot = (int)Math.Round(hotspot.X - drawingBounds.Left);
src\Framework\MS\Internal\Ink\SelectionEditingBehavior.cs (2)
220if ( newPoint.X < _selectionRect.Left + MinimumHeightWidthSize ) 222newPoint.X = _selectionRect.Left + MinimumHeightWidthSize;
src\Framework\MS\Internal\LayoutDump.cs (1)
408writer.WriteAttributeString("Left", rect.Left.ToString ("F", CultureInfo.InvariantCulture));
src\Framework\MS\Internal\PtsHost\Line.cs (2)
436if (!line.HasCollapsed || ((rect.Left + inlineObject.UIElementIsland.Root.DesiredSize.Width) < line.Width)) 447inlineObject.UIElementIsland.Offset = new Vector(rect.Left, rect.Top);
src\Framework\MS\Internal\PtsHost\ParagraphVisual.cs (6)
103new Point(_renderBounds.Left + pen.Thickness * 0.5, _renderBounds.Bottom - pen.Thickness * 0.5), 111new Point(_renderBounds.Left + pen.Thickness / 2, _renderBounds.Top), 112new Point(_renderBounds.Left + pen.Thickness / 2, _renderBounds.Bottom)); 133new Point(_renderBounds.Left, _renderBounds.Top + pen.Thickness / 2), 144new Point(_renderBounds.Left, _renderBounds.Bottom - pen.Thickness / 2), 156new Point(_renderBounds.Left + _borderThickness.Left, _renderBounds.Top + _borderThickness.Top),
src\Framework\MS\Internal\PtsHost\Pts.cs (1)
911u = TextDpi.ToTextDpi(rect.Left);
src\Framework\MS\Internal\Text\ComplexLine.cs (2)
208proxyVisual.Offset = new Vector(UIElement.RoundLayoutValue(lineOffset.X + rect.Left, dpi.DpiScaleX), 213proxyVisual.Offset = new Vector(lineOffset.X + rect.Left, lineOffset.Y + rect.Top);
src\Framework\System\Windows\Automation\Peers\DocumentAutomationPeer.cs (1)
185point = new Point(boundingRect.Left + boundingRect.Width * 0.1, boundingRect.Top + boundingRect.Height * 0.1);
src\Framework\System\Windows\Automation\Peers\TextElementAutomationPeer.cs (1)
144pt = new Point(rectScreen.Left + rectScreen.Width * 0.5, rectScreen.Top + rectScreen.Height * 0.5);
src\Framework\System\Windows\Controls\Border.cs (1)
646return new Rect(rt.Left + thick.Left,
src\Framework\System\Windows\Controls\DataGrid.cs (3)
6581if ((pt.X >= cellBounds.Left) && (pt.X <= cellBounds.Right)) 6600distance = Math.Abs(pt.X - cellBounds.Left); 6672if (pt.X < bounds.Left)
src\Framework\System\Windows\Controls\InkCanvas.cs (1)
2231InkCanvasSelection.CommitChanges(Rect.Offset(bounds, -bounds.Left + point.X, -bounds.Top + point.Y), false);
src\Framework\System\Windows\Controls\ItemsControl.cs (13)
2661scrollHost.ScrollToHorizontalOffset(scrollHost.HorizontalOffset + elementBounds.Left); 3032viewPortBounds = new Rect(viewPortBounds.Left, Double.NegativeInfinity, 3058if (DoubleUtil.LessThanOrClose(viewPortBounds.Left, elementBounds.Left) 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) || 3110return DoubleUtil.GreaterThanOrClose(toRect.Left, fromRect.Left); 3323if (mousePosition.X < bounds.Left)
src\Framework\System\Windows\Controls\Primitives\Popup.cs (11)
2163else if (childBounds.Left < screenBounds.Left) 2165bestTranslation.X = screenBounds.Left; 2208else if (childBounds.Left < screenBounds.Left) 2210bestTranslation.X = screenBounds.Left; 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)); 2430points[(int)InterestPoint.Center] = new Point(rect.Left + rect.Width / 2.0,
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)
869if (DoubleUtil.LessThan(point.X, pageRect.Left))
src\Framework\System\Windows\Controls\TextAdaptor.cs (1)
265isi.SetHorizontalOffset(alignToTop ? rangeBounds.Left : (rangeBounds.Right - isi.ViewportWidth));
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (4)
2953DoubleUtil.GreaterThan((isHorizontal ? viewport.Left : viewport.Top), firstItemInViewportOffset)) 6340double left = DoubleUtil.AreClose(0, itemsRect.Left) ? 0 : -itemsRect.Left; 12784writer.Write(rect.Left);
src\Framework\System\windows\Documents\CaretElement.cs (1)
397Point targetPoint = new Point(targetRect.Left, targetRect.Top);
src\Framework\System\Windows\Documents\FixedPageStructure.cs (2)
194if (closestManhattan != null && (closestManhattan.LayoutBox.Left > closestLine.LayoutBox.Right || closestLine.LayoutBox.Left > closestManhattan.LayoutBox.Right))
src\Framework\System\Windows\Documents\FixedSOMFixedBlock.cs (2)
53run.BoundingRect.Left != lastRun.BoundingRect.Left &&
src\Framework\System\Windows\Documents\FixedSOMPageConstructor.cs (15)
440double lastX = alignmentBox.Left; 568if (Math.Abs(textRunRect.Left - fixedBlockRect.Left) <= textRun.DefaultCharWidth || 718double left = (fixedBlockRect.Left > textRunRect.Left) ? fixedBlockRect.Left : textRunRect.Left; 726double right =(fixedBlockRect.Left > textRunRect.Left) ? fixedBlockRect.Left: textRunRect.Left; 933double center = bounds.Left + .5 * bounds.Width; 941_AddLine(new Point(bounds.Left, center), new Point(bounds.Right, center), transform); 1040if (Math.Abs(t.BoundingRect.Left - row.BoundingRect.Left) < fudge &&
src\Framework\System\Windows\Documents\FixedSOMSemanticBox.cs (6)
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) 233else if (thisRect.Left < otherRect.Left)
src\Framework\System\Windows\Documents\FixedSOMTable.cs (2)
234double cellStart = cell.BoundingRect.Left; 279if (idx + 1 < row.SemanticBoxes.Count && row.SemanticBoxes[idx + 1].BoundingRect.Left == nextCol)
src\Framework\System\Windows\Documents\FixedSOMTextRun.cs (2)
73result = (thisRect.Left < otherRect.Left) ? 1 : -1;
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 (17)
770milPointTopLeft = new Point(Math.Min(rectStart.Left, rectEnd.Left), Math.Min(rectStart.Top, rectEnd.Top)); 771milPointBottomRight = new Point(Math.Max(rectStart.Left, rectEnd.Left), Math.Max(rectStart.Bottom, rectEnd.Bottom)); 772milPointCaret = new Point(rectCaret.Left, rectCaret.Bottom); 892milPointTopLeft = new Point(rectUi.Left, rectUi.Top); 897milPointCaret = new Point(rectCaret.Left, rectCaret.Bottom); 1845if (point.X - rectCurrent.Left >= 0) 1876if (rectNext.Left == rectCurrent.Left) 1884if (point.X - rectCurrent.Left >= 0) 1886if ((((point.X - rectCurrent.Left) * 4) / (rectNext.Left - rectCurrent.Left)) <= 1) 1893if (((point.X - rectNext.Left) * 4) / (rectCurrent.Left - rectNext.Left) <= 3)
src\Framework\System\Windows\Documents\RubberbandSelector.cs (5)
296Visual v = GetVisual(-_selectionRect.Left, -_selectionRect.Top); 363double left = _selectionRect.Left; 462t.TryTransform(new Point(boundingRect.Left, centerLine), out pt1); 561dStart = boundingRect.Left + boundingRect.Width * dStart; 562dEnd = boundingRect.Left + boundingRect.Width * dEnd;
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (4)
1627if (cell.ColumnIndex != 0 && point.X < cellInfo.CellArea.Left + sensitivity) 1630columnRect = new Rect(cellInfo.CellArea.Left, cellInfo.TableArea.Top, 1, cellInfo.TableArea.Height); 1724_columnRect.Left + _columnRect.Width / 2, 1736xPosAdorner = Math.Max(xPosAdorner, _columnRect.Left - this.LeftDragMax);
src\Framework\System\windows\Documents\TextSelection.cs (4)
2313if (!caretRectangle.IsEmpty && !nextCharacterRectangle.IsEmpty && nextCharacterRectangle.Left > caretRectangle.Left) 2316caretRectangle.Width = nextCharacterRectangle.Left - caretRectangle.Left;
src\Framework\System\Windows\Documents\TextStore.cs (13)
869milPointTopLeft = new Point(Math.Min(rectPrev.Left, rectCur.Left), Math.Min(rectPrev.Top, rectCur.Top)); 870milPointBottomRight = new Point(Math.Max(rectPrev.Left, rectCur.Left), Math.Max(rectPrev.Bottom, rectCur.Bottom)); 1027milPointTopLeft = new Point(rectUi.Left, rectUi.Top); 2947if (point.X - rectCurrent.Left >= 0) 2962if (point.X - rectCurrent.Left >= 0) 2964if ((((point.X - rectCurrent.Left) * 4) / (rectNext.Left - rectCurrent.Left)) <= 1) 2971if (((point.X - rectNext.Left) * 4) / (rectCurrent.Left - rectNext.Left) <= 3)
src\Framework\System\Windows\Input\KeyboardNavigation.cs (14)
2633return targetRect.Left - sourceRect.Left; 2699return DoubleUtil.LessThanOrClose(fromRect.Right, toRect.Left); 2701return DoubleUtil.GreaterThanOrClose(fromRect.Left, toRect.Right); 2767return DoubleUtil.GreaterThan(targetRect.Left, sourceRect.Left) || (DoubleUtil.AreClose(targetRect.Left, sourceRect.Left) && IsAncestorOfEx(sourceElement, targetElement)); 2782if (DoubleUtil.GreaterThan(targetRect.Right, startRange) && DoubleUtil.LessThan(targetRect.Left, endRange)) 3017ResetBaseLines(horizontalDirection ? sourceRect.Top : sourceRect.Left, horizontalDirection); 3022startRange = horizontalDirection ? sourceRect.Top : sourceRect.Left; 3146directionScore = -currentRect.Left; 3162rangeScore = ComputeRangeScore(sourceRect.Left, sourceRect.Right, currentRect.Left, currentRect.Right);
src\Framework\System\Windows\Shapes\Shape.cs (1)
594dX = margin - geometryBounds.Left;
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (7)
499rcLogicalWindow.Left - rcLogicalClient.Left, 1177left = (int)r.Left; 1292(int)Math.Floor(region.Left), 1300(int)Math.Floor(region.Left), 1463if (mousePosition.X >= windowPosition.Left && mousePosition.X < windowPosition.Left + (int)_chromeInfo.ResizeBorderThickness.Left)
src\Framework\System\Windows\Standard\DpiHelper.cs (2)
46Point topLeft = LogicalPixelsToDevice(new Point(logicalRectangle.Left, logicalRectangle.Top), dpiScaleX, dpiScaleY); 54Point topLeft = DevicePixelsToLogical(new Point(deviceRectangle.Left, deviceRectangle.Top), dpiScaleX, dpiScaleY);
src\Framework\System\Windows\Window.cs (2)
4793SetValue(LeftProperty, restoreRect.Left); 6998interopRc = new NativeMethods.RefRECT((int)physicalClip.Left, (int)physicalClip.Top, (int)physicalClip.Right, (int)physicalClip.Bottom);
PresentationFramework.Aero (19)
Microsoft\Windows\Themes\BulletChrome.cs (4)
639Rect backgroundRect = new Rect(bounds.Left + 1.0, 681dc.DrawRectangle(innerFill, null, new Rect(bounds.Left + 3.0, bounds.Top + 3.0, bounds.Width - 6.0, bounds.Height - 6.0)); 688dc.DrawRectangle(null, innerBorder, new Rect(bounds.Left + 2.5, bounds.Top + 2.5, bounds.Width - 5.0, bounds.Height - 5.0)); 754Rect rect = new Rect(bounds.Left + 0.5,
Microsoft\Windows\Themes\ButtonChrome.cs (3)
502Rect backgroundRect = new Rect(bounds.Left + 1.0, 611Rect rect = new Rect(bounds.Left + 0.5, 662dc.DrawRoundedRectangle(null, innerBorder, new Rect(bounds.Left + 1.5, bounds.Top + 1.5, bounds.Width - 3.0, bounds.Height - 3.0), 1.75, 1.75);
Microsoft\Windows\Themes\ListBoxChrome.cs (7)
335Rect backgroundRect = new Rect(bounds.Left + border.Left, 350backgroundRect = new Rect(bounds.Left + border.Left + innerBorderThickness, 372Rect rect = new Rect(bounds.Left + 0.5, 488borderFigure.StartPoint = new Point(bounds.Left, bounds.Top); 489borderFigure.Segments.Add(new LineSegment(new Point(bounds.Left, bounds.Bottom), false)); 499borderFigure.StartPoint = new Point(bounds.Left + thickness.Left, bounds.Top + thickness.Top); 500borderFigure.Segments.Add(new LineSegment(new Point(bounds.Left + thickness.Left, bounds.Bottom - thickness.Bottom), false));
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (5)
117double centerWidth = shadowBounds.Right - shadowBounds.Left - 2 * ShadowDepth; 132double centerLeft = shadowBounds.Left + ShadowDepth; 162Rect topLeft = new Rect(shadowBounds.Left, shadowBounds.Top, cornerRadius.TopLeft, cornerRadius.TopLeft); 179Rect left = new Rect(shadowBounds.Left, guidelineSetY[1], ShadowDepth, leftHeight); 191Rect bottomLeft = new Rect(shadowBounds.Left, guidelineSetY[3], cornerRadius.BottomLeft, cornerRadius.BottomLeft);
PresentationFramework.Classic (14)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (9)
606return new Rect(rt.Left + thick.Left, 958dc.DrawRectangle(borderBrush, null, new Rect(bounds.Left, bounds.Top, bounds.Width, borderThickness.Top)); 964dc.DrawRectangle(borderBrush, null, new Rect(bounds.Left, bounds.Top, borderThickness.Left, bounds.Height)); 976dc.DrawRectangle(borderBrush, null, new Rect(bounds.Left, bounds.Bottom - borderThickness.Bottom, bounds.Width, borderThickness.Bottom)); 1042dc.DrawRectangle(DarkBrush, null, new Rect(bounds.Left, bounds.Top, bounds.Width, singleThickness.Top)); 1043dc.DrawRectangle(LightLightBrush, null, new Rect(bounds.Left, bounds.Bottom - singleThickness.Bottom, bounds.Width, singleThickness.Bottom)); 1055dc.DrawRectangle(DarkBrush, null, new Rect(bounds.Left, bounds.Top, singleThickness.Left, bounds.Height)); 1081double left = bounds.Left, right = bounds.Right, top = bounds.Top, bottom = bounds.Bottom - 1.0; 1227dc.PushTransform(GetTabTransform(ClassicBorderStyle.TabLeft, bounds.Left, bounds.Top));
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (5)
117double centerWidth = shadowBounds.Right - shadowBounds.Left - 2 * ShadowDepth; 132double centerLeft = shadowBounds.Left + ShadowDepth; 162Rect topLeft = new Rect(shadowBounds.Left, shadowBounds.Top, cornerRadius.TopLeft, cornerRadius.TopLeft); 179Rect left = new Rect(shadowBounds.Left, guidelineSetY[1], ShadowDepth, leftHeight); 191Rect bottomLeft = new Rect(shadowBounds.Left, guidelineSetY[3], cornerRadius.BottomLeft, cornerRadius.BottomLeft);
PresentationFramework.Luna (15)
Microsoft\Windows\Themes\ButtonChrome.cs (5)
453dc.DrawRoundedRectangle(brush, null, new Rect(bounds.Left, bounds.Top, bounds.Width, 6.0), 4.0, 4.0); 460dc.DrawRoundedRectangle(brush, null, new Rect(bounds.Left, bounds.Bottom - 6.0, bounds.Width, 6.0), 4.0, 4.0); 467dc.DrawRoundedRectangle(brush, null, new Rect(bounds.Left, bounds.Top, 6.0, bounds.Height), 4.0, 4.0); 491bounds.Left + 4.0 / 3.0, 510bounds.Left + 0.5,
parent\Shared\Microsoft\Windows\Themes\BulletChrome.cs (5)
270dc.DrawRectangle(null, highlightPen, new Rect(bounds.Left + 1.0, bounds.Top + 1.0, bounds.Width - 2.0, bounds.Height - 2.0)); 295dc.PushTransform(new TranslateTransform(bounds.Left - 1.0, bounds.Top - 1.0)); 318dc.DrawRectangle(glyphFill, null, new Rect(bounds.Left + 2, bounds.Top + 2, bounds.Width - 4.0, bounds.Height - 4.0)); 346Rect rect = new Rect(bounds.Left + 0.5, 462return new Rect(rt.Left + thick.Left,
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (5)
117double centerWidth = shadowBounds.Right - shadowBounds.Left - 2 * ShadowDepth; 132double centerLeft = shadowBounds.Left + ShadowDepth; 162Rect topLeft = new Rect(shadowBounds.Left, shadowBounds.Top, cornerRadius.TopLeft, cornerRadius.TopLeft); 179Rect left = new Rect(shadowBounds.Left, guidelineSetY[1], ShadowDepth, leftHeight); 191Rect bottomLeft = new Rect(shadowBounds.Left, guidelineSetY[3], cornerRadius.BottomLeft, cornerRadius.BottomLeft);
PresentationFramework.Royale (15)
Microsoft\Windows\Themes\ButtonChrome.cs (5)
374dc.DrawRoundedRectangle(brush, null, new Rect(bounds.Left, bounds.Top, bounds.Width, 6.0), 3.0, 3.0); 381dc.DrawRoundedRectangle(brush, null, new Rect(bounds.Left, bounds.Bottom - 6.0, bounds.Width, 6.0), 3.0, 3.0); 388dc.DrawRoundedRectangle(brush, null, new Rect(bounds.Left, bounds.Top, 6.0, bounds.Height), 3.0, 3.0); 412bounds.Left + 4.0 / 3.0, 431bounds.Left + 0.5,
parent\Shared\Microsoft\Windows\Themes\BulletChrome.cs (5)
270dc.DrawRectangle(null, highlightPen, new Rect(bounds.Left + 1.0, bounds.Top + 1.0, bounds.Width - 2.0, bounds.Height - 2.0)); 295dc.PushTransform(new TranslateTransform(bounds.Left - 1.0, bounds.Top - 1.0)); 318dc.DrawRectangle(glyphFill, null, new Rect(bounds.Left + 2, bounds.Top + 2, bounds.Width - 4.0, bounds.Height - 4.0)); 346Rect rect = new Rect(bounds.Left + 0.5, 462return new Rect(rt.Left + thick.Left,
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (5)
117double centerWidth = shadowBounds.Right - shadowBounds.Left - 2 * ShadowDepth; 132double centerLeft = shadowBounds.Left + ShadowDepth; 162Rect topLeft = new Rect(shadowBounds.Left, shadowBounds.Top, cornerRadius.TopLeft, cornerRadius.TopLeft); 179Rect left = new Rect(shadowBounds.Left, guidelineSetY[1], ShadowDepth, leftHeight); 191Rect bottomLeft = new Rect(shadowBounds.Left, guidelineSetY[3], cornerRadius.BottomLeft, cornerRadius.BottomLeft);
System.Activities.Presentation (20)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\ChoiceEditor.cs (1)
914double textAreaLeft = innerRect.Left + textAreaInset.Left;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\RenderUtils.cs (2)
19Point spineLeftTop = new Point(outerBounds.Left, outerBounds.Top); 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)
1307AddCover(new ConnectorSegment(new Point(rectangle.Left, rectangle.Top), new Point(rectangle.Left, 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\QuadTree.cs (12)
333Rect topLeft = new Rect(toInsert.bounds.Left, toInsert.bounds.Top, w, h); 334Rect topRight = new Rect(toInsert.bounds.Left + w, toInsert.bounds.Top, w, h); 335Rect bottomLeft = new Rect(toInsert.bounds.Left, toInsert.bounds.Top + h, w, h); 336Rect bottomRight = new Rect(toInsert.bounds.Left + w, toInsert.bounds.Top + h, w, h); 413Rect topLeft = new Rect(this.bounds.Left, this.bounds.Top, w, h); 414Rect topRight = new Rect(this.bounds.Left + w, this.bounds.Top, w, h); 415Rect bottomLeft = new Rect(this.bounds.Left, this.bounds.Top + h, w, h); 416Rect bottomRight = new Rect(this.bounds.Left + w, this.bounds.Top + h, w, h); 479Rect topLeft = new Rect(this.bounds.Left, this.bounds.Top, w, h); 480Rect topRight = new Rect(this.bounds.Left + w, this.bounds.Top, w, h); 481Rect bottomLeft = new Rect(this.bounds.Left, this.bounds.Top + h, w, h); 482Rect bottomRight = new Rect(this.bounds.Left + w, this.bounds.Top + h, w, h);
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (1)
701if (position.X > charRect.Left + charRect.Width / 2)
UIAutomationClient (11)
MS\Internal\Automation\ClickablePoint.cs (8)
39if (rect.Left >= rect.Right || rect.Top >= rect.Bottom) 44NativeMethods.RECT winRect = new NativeMethods.RECT((int)rect.Left, (int)rect.Top, (int)rect.Height, (int)rect.Bottom); 50pt = new Point((rect.Left + rect.Right) / 2, (rect.Top + rect.Bottom) / 2); 65pt = new Point(rect.Left + (rect.Width /2), rect.Top + 1); 69pt = new Point(rect.Left + (rect.Width /2), rect.Bottom - 1); 73pt = new Point( rect.Left + 1, rect.Top + (rect.Height /2) ); 104double x = rect.Left + 1; 163for ( double across = rect.Left + x; across < rect.Right; across += x )
System\Windows\Automation\ItemContainerPattern.cs (1)
171value = new double[] { rc.Left, rc.Top, rc.Width, rc.Height };
System\Windows\Automation\PropertyCondition.cs (1)
176val = new double[] { rc.Left, rc.Top, rc.Width, rc.Height };
System\Windows\Automation\TextPattern.cs (1)
233if (screenLocation.X < rect.Left || screenLocation.X >= rect.Right || screenLocation.Y < rect.Top || screenLocation.Y >= rect.Bottom)
UIAutomationClientsideProviders (22)
MS\Internal\AutomationProxies\Misc.cs (2)
1386return x >= rc.Left && x < rc.Right && y >= rc.Top && y < rc.Bottom; 2039leftEdge = (int)(Misc.GetTitleBarRect(hwnd).Left);
MS\Internal\AutomationProxies\NonClientArea.cs (1)
597if (x > rect.Left && y < rect.Bottom)
MS\Internal\AutomationProxies\WindowsEditBox.cs (1)
718if (pt.X >= r.Left && pt.X < r.Right)
MS\Internal\AutomationProxies\WindowsListView.cs (2)
452if (x - boundingRectangle.Left < xAdjustment) 456else if (boundingRectangle.Left + boundingRectangle.Width - x < xAdjustment)
MS\Internal\AutomationProxies\WindowsRichEdit.cs (1)
387int x = ((int)rect.Left + (int)rect.Right) / 2;
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (1)
1453double left = rect.Left;
MS\Internal\AutomationProxies\WindowsScrollBar.cs (2)
186sbi.rcScrollBar.left = (int)rcParent.Left + offset; 191int offset = sbi.rcScrollBar.left - (int)rcParent.Left;
MS\Internal\AutomationProxies\WindowsScrollBarBits.cs (2)
254sbi.rcScrollBar.left = (int)rcParent.Left + offset; 259int offset = sbi.rcScrollBar.left - (int)rcParent.Left;
MS\Internal\AutomationProxies\WindowsStatusBar.cs (1)
365info.rc.left = (int)rc.Left;
MS\Internal\AutomationProxies\WindowsSysHeader.cs (4)
276pixels = (int)(headerItem.BoundingRectangle.Left - firstVisibleHeaderItem.BoundingRectangle.Left); 282pixels = (int)(headerItem.BoundingRectangle.Left - lastVisibleHeaderItem.BoundingRectangle.Left);
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\Internal\AutomationProxies\WindowsUpDown.cs (1)
558int x = (int) rc.Left - updownRect.left + (int) rc.Width / 2;
MS\Win32\NativeMethods.cs (1)
1204this.left = (int)rc.Left;
WindowsBase (8)
Base\System\Windows\Rect.cs (8)
367return new Point(Left, Top); 391return new Point(Left, Bottom); 480return (rect.Left <= Right) && 481(rect.Right >= Left) && 499double left = Math.Max(Left, rect.Left); 532double left = Math.Min(Left, rect.Left);