src\Framework\MS\Internal\Controls\InkCanvasSelectionAdorner.cs (8)
271path.StartPoint = new Point(hatchRect.Left, hatchRect.Top);
275PathSegment line = new LineSegment(new Point(hatchRect.Right, hatchRect.Top), 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);
381center = new Point(rectWireFrame.Right, rectWireFrame.Top);
387center = new Point(rectWireFrame.Left, rectWireFrame.Top + rectWireFrame.Height / 2);
394center = new Point(rectWireFrame.Right, rectWireFrame.Top + rectWireFrame.Height / 2);
src\Framework\MS\Internal\Documents\TextDocumentView.cs (9)
1954foundHit = snapToText || (point.Y >= columnBox.Top && point.Y <= columnBox.Bottom);
2017if (point.Y < paragraphBox.Top)
2034if (point.Y < nextParagraphBox.Top)
2037double gap = nextParagraphBox.Top - paragraphBox.Bottom;
2064if (point.Y < nextParagraphBox.Top)
3494return new Rect(paragraphResult.LayoutBox.Left, paragraphResult.LayoutBox.Top, 0.0, paragraphResult.LayoutBox.Height);
3499return new Rect(paragraphResult.LayoutBox.Right, paragraphResult.LayoutBox.Top, 0.0, paragraphResult.LayoutBox.Height);
3528return new Rect(paragraphResult.LayoutBox.Left, 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\PtsHost\ParagraphVisual.cs (6)
104new Point(_renderBounds.Right - pen.Thickness * 0.5, _renderBounds.Top + pen.Thickness * 0.5)));
111new Point(_renderBounds.Left + pen.Thickness / 2, _renderBounds.Top),
122new Point(_renderBounds.Right - pen.Thickness / 2, _renderBounds.Top),
133new Point(_renderBounds.Left, _renderBounds.Top + pen.Thickness / 2),
134new Point(_renderBounds.Right, _renderBounds.Top + pen.Thickness / 2));
156new Point(_renderBounds.Left + _borderThickness.Left, _renderBounds.Top + _borderThickness.Top),
src\Framework\System\Windows\Controls\ItemsControl.cs (13)
2665scrollHost.ScrollToVerticalOffset(scrollHost.VerticalOffset + elementBounds.Top);
3027viewPortBounds = new Rect(Double.NegativeInfinity, viewPortBounds.Top,
3050if (DoubleUtil.LessThanOrClose(viewPortBounds.Top, elementBounds.Top)
3070else if ((northSouth && DoubleUtil.LessThanOrClose(elementBounds.Bottom, viewPortBounds.Top)) ||
3075else if ((northSouth && DoubleUtil.LessThanOrClose(viewPortBounds.Bottom, elementBounds.Top)) ||
3092DoubleUtil.LessThan(elementRect.Bottom, viewportRect.Top) || LayoutDoubleUtil.AreClose(elementRect.Bottom, viewportRect.Top) ||
3093DoubleUtil.GreaterThan(elementRect.Top, viewportRect.Bottom) || LayoutDoubleUtil.AreClose(elementRect.Top, viewportRect.Bottom))
3115return DoubleUtil.GreaterThanOrClose(toRect.Top, fromRect.Top);
3309if (mousePosition.Y < bounds.Top)
src\Framework\System\Windows\Documents\FixedSOMPageConstructor.cs (16)
472alignmentBox.Top,
477Rect boundingRect = new Rect(lastX, alignmentBox.Top, advWidth + advFont, alignmentBox.Height);
506Rect boundingRect = new Rect(lastX, alignmentBox.Top, alignmentBox.Right-lastX, alignmentBox.Height);
605if (lastLine != null && textRunRect.Bottom <= lastLine.BoundingRect.Top)
615if (textRunRect.Bottom - verticalOverlap < fixedBlockRect.Top)
620else if (textRunRect.Top + verticalOverlap > fixedBlockRect.Bottom)
655!(FixedTextBuilder.IsSameLine(compareLine.BoundingRect.Top - textRunRect.Top, textRunRect.Height, compareLine.BoundingRect.Height)))
711bottom = textRunRect.Top + margin;
716bottom = fixedBlockRect.Top + margin;
733return (!_lines.IsVerticallySeparated(left, textRunRect.Top, right, textRunRect.Bottom));
934_AddLine(new Point(center, bounds.Top), new Point(center, bounds.Bottom), transform);
940double center = bounds.Top + .5 * bounds.Height;
1042Math.Abs(t.BoundingRect.Bottom - row.BoundingRect.Top) < fudge)
1159nextPageElement.BoundingRect.Top >= currentPageElement.BoundingRect.Top))
src\Framework\System\Windows\Input\KeyboardNavigation.cs (18)
2574if (DoubleUtil.LessThan(headerRect.Top, itemsHostRect.Top))
2588double before = itemsHostRect.Top - rect.Top;
2642return targetRect.Top - sourceRect.Top;
2703return DoubleUtil.GreaterThanOrClose(fromRect.Top, toRect.Bottom);
2705return DoubleUtil.LessThanOrClose(fromRect.Bottom, toRect.Top);
2760if (DoubleUtil.GreaterThan(targetRect.Bottom, startRange) && DoubleUtil.LessThan(targetRect.Top, endRange))
2789return DoubleUtil.GreaterThan(targetRect.Top, sourceRect.Top) || (DoubleUtil.AreClose (targetRect.Top, sourceRect.Top) && IsAncestorOfEx(sourceElement, targetElement));
3017ResetBaseLines(horizontalDirection ? sourceRect.Top : sourceRect.Left, horizontalDirection);
3022startRange = horizontalDirection ? sourceRect.Top : sourceRect.Left;
3140directionScore = -currentRect.Top;
3166rangeScore = ComputeRangeScore(sourceRect.Top, sourceRect.Bottom, currentRect.Top, currentRect.Bottom);