207 references to Bottom
PresentationCore (17)
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)
1778i = (int)inkSpaceRectangle.Bottom;
Core\CSharp\MS\Internal\Ink\StrokeRenderer.cs (2)
851double intersectHeight = Math.Max((double)(Math.Min(rect1.Bottom, rect2.Bottom) - intersectTop), (double)0);
Core\CSharp\MS\Internal\Media3D\GeneralTransform2Dto3Dto2D.cs (3)
242visCorners[2] = _transform2D.Transform(new Point(_visualBounds.Right, _visualBounds.Bottom)); 243visCorners[3] = _transform2D.Transform(new Point(_visualBounds.Left, _visualBounds.Bottom)); 1127if (ptRelToCapture.Y >= _visualBounds.Bottom - 1) ptRelToCapture.Y += BUFFER_SIZE;
Core\CSharp\MS\Internal\TextFormatting\FullTextLine.cs (1)
2715_overhang.Extent = boundingBox.Bottom - boundingBox.Top;
Core\CSharp\MS\Internal\TextFormatting\SimpleTextLine.cs (2)
1112return _boundingBox.Bottom - _boundingBox.Top; 1190return _boundingBox.Bottom - Height;
Core\CSharp\System\Windows\Media\EllipseGeometry.cs (1)
55RadiusY = (rect.Bottom - rect.Y) * (1.0 / 2.0);
Core\CSharp\System\Windows\Media\RectangleGeometry.cs (4)
518points[15].Y = points[8].Y = rect.Bottom - radiusY; 519points[14].Y = points[9].Y = rect.Bottom - bezierY; 520points[13].Y = points[12].Y = points[11].Y = points[10].Y = rect.Bottom; 533points[2].Y = points[3].Y = rect.Bottom;
Core\CSharp\System\Windows\Media3D\Viewport2DVisual3D.cs (1)
260(pt.Y - descBounds.Top) / (descBounds.Bottom - descBounds.Top));
Shared\MS\Internal\PointUtil.cs (1)
445rc.bottom = DoubleUtil.DoubleToInt(rect.Bottom);
PresentationFramework (134)
src\Framework\MS\Internal\Annotations\Component\MArkedHighlightComponent.cs (1)
418TranslateTransform bottomOffset = new TranslateTransform(markerRect.X, markerRect.Bottom - _bottomTailHeight);
src\Framework\MS\Internal\Controls\InkCanvasSelectionAdorner.cs (5)
279line = new LineSegment(new Point(hatchRect.Right, hatchRect.Bottom), true); 283line = new LineSegment(new Point(hatchRect.Left, hatchRect.Bottom), true); 401center = new Point(rectWireFrame.Left, rectWireFrame.Bottom); 407center = new Point(rectWireFrame.Left + rectWireFrame.Width / 2, rectWireFrame.Bottom); 414center = new Point(rectWireFrame.Right, rectWireFrame.Bottom);
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (6)
1517Invariant.Assert(DoubleUtil.GreaterThan(rectStickyNote.Bottom, rectPage.Top), "Note's bottom is off top of page."); 1518Invariant.Assert(DoubleUtil.LessThan(rectStickyNote.Top, rectPage.Bottom), "Note's top is off bottom of page."); 1576else if (DoubleUtil.GreaterThan(rectStickyNote.Bottom, rectPage.Bottom)) 1579offsetY = rectStickyNote.Bottom - rectPage.Bottom;
src\Framework\MS\Internal\Documents\MultiPageTextView.cs (2)
1107if (point.Y >= textViewBounds.Top && point.Y <= textViewBounds.Bottom) 1113vert = Math.Min(Math.Abs(point.Y - textViewBounds.Top), Math.Abs(point.Y - textViewBounds.Bottom));
src\Framework\MS\Internal\Documents\ScrollData.cs (2)
197double minY = ComputeScrollOffset(viewport.Top, viewport.Bottom, rectangle.Top, rectangle.Bottom);
src\Framework\MS\Internal\Documents\TextDocumentView.cs (4)
1954foundHit = snapToText || (point.Y >= columnBox.Top && point.Y <= columnBox.Bottom); 2026else if (point.Y > paragraphBox.Bottom) 2037double gap = nextParagraphBox.Top - paragraphBox.Bottom; 2038if (point.Y > paragraphBox.Bottom + gap / 2 && paragraphs[paragraphIndex + 1].HasTextContent)
src\Framework\MS\Internal\Documents\TextViewBase.cs (2)
150double minY = System.Windows.Controls.ScrollContentPresenter.ComputeScrollOffsetWithMinimalScroll(viewport.Top, viewport.Bottom, rect.Top, rect.Bottom);
src\Framework\MS\Internal\Helper.cs (2)
1206itemsCorrectionFactor.Bottom = parentRect.Bottom - itemsRect.Bottom;
src\Framework\MS\Internal\Ink\SelectionEditingBehavior.cs (2)
231if ( newPoint.Y > _selectionRect.Bottom - MinimumHeightWidthSize ) 233newPoint.Y = _selectionRect.Bottom - MinimumHeightWidthSize;
src\Framework\MS\Internal\PtsHost\ParagraphVisual.cs (6)
103new Point(_renderBounds.Left + pen.Thickness * 0.5, _renderBounds.Bottom - pen.Thickness * 0.5), 112new Point(_renderBounds.Left + pen.Thickness / 2, _renderBounds.Bottom)); 123new Point(_renderBounds.Right - pen.Thickness / 2, _renderBounds.Bottom)); 144new Point(_renderBounds.Left, _renderBounds.Bottom - pen.Thickness / 2), 145new Point(_renderBounds.Right, _renderBounds.Bottom - pen.Thickness / 2)); 157new Point(_renderBounds.Right - _borderThickness.Right, _renderBounds.Bottom - _borderThickness.Bottom)));
src\Framework\System\Windows\Controls\DataGrid.cs (4)
6449if ((pt.Y >= rowBounds.Top) && (pt.Y <= rowBounds.Bottom)) 6584if ((rowPt.Y >= rowBounds.Top) && (rowPt.Y <= rowBounds.Bottom)) 6597else if ((rowPt.Y >= rowBounds.Top) && (rowPt.Y <= rowBounds.Bottom)) 6685else if (pt.Y > bounds.Bottom)
src\Framework\System\Windows\Controls\GridViewRowPresenter.cs (3)
522return ((CheckIsPointBetween(container, element.Top) && CheckIsPointBetween(container, element.Bottom)) || 524CheckIsPointBetween(element, container.Bottom - tolerance)); 531DoubleUtil.LessThanOrClose(pointY, rect.Bottom));
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)
2653scrollHost.ScrollToVerticalOffset(scrollHost.VerticalOffset - scrollHost.ViewportHeight + elementBounds.Bottom); 3051&& DoubleUtil.LessThanOrClose(elementBounds.Bottom, viewPortBounds.Bottom)) 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)) 3128return DoubleUtil.LessThanOrClose(toRect.Bottom, fromRect.Bottom); 3314else if (mousePosition.Y >= bounds.Bottom)
src\Framework\System\Windows\Controls\Primitives\Popup.cs (10)
2171if (childBounds.Bottom > screenBounds.Bottom) 2173bestTranslation.Y = screenBounds.Bottom - childBounds.Height; 2193if (childBounds.Bottom > screenBounds.Bottom) 2195bestTranslation.Y = screenBounds.Bottom - childBounds.Height; 2259limitSize.Height = Math.Max(0.0, Math.Max(screenBounds.Bottom - targetBounds.Bottom, targetBounds.Top - screenBounds.Top)); 2285limitSize.Height = Math.Max(0.0, Math.Max(screenBounds.Bottom - targetBounds.Bottom, targetBounds.Top - screenBounds.Top));
src\Framework\System\Windows\Controls\Primitives\ScrollContentPresenter.cs (2)
609double minY = ComputeScrollOffsetWithMinimalScroll(viewport.Top, viewport.Bottom, rectangle.Top, rectangle.Bottom);
src\Framework\System\Windows\Controls\SinglePageViewer.cs (1)
893else if (DoubleUtil.GreaterThan(point.Y, pageRect.Bottom))
src\Framework\System\Windows\Controls\TextAdaptor.cs (1)
269isi.SetVerticalOffset(alignToTop ? rangeBounds.Top : (rangeBounds.Bottom - isi.ViewportHeight));
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (2)
6343double bottom = DoubleUtil.AreClose(itemsSize.Height, itemsRect.Bottom) ? 0 : itemsRect.Bottom-itemsSize.Height;
src\Framework\System\Windows\Documents\CompositionAdorner.cs (1)
536return _startRect.Bottom - _startRect.Top;
src\Framework\System\Windows\Documents\FixedLineResult.cs (1)
133return _layoutBox.Bottom;
src\Framework\System\Windows\Documents\FixedPageStructure.cs (1)
167double absVerDistance = Math.Max(0, (pt.Y > lineResult.LayoutBox.Y) ? (pt.Y - lineResult.LayoutBox.Bottom) : (lineResult.LayoutBox.Y - pt.Y));
src\Framework\System\Windows\Documents\FixedSOMFixedBlock.cs (2)
56run.BoundingRect.Bottom != lastRun.BoundingRect.Bottom)
src\Framework\System\Windows\Documents\FixedSOMPageConstructor.cs (9)
474alignmentBox.Bottom)) 605if (lastLine != null && textRunRect.Bottom <= lastLine.BoundingRect.Top) 615if (textRunRect.Bottom - verticalOverlap < fixedBlockRect.Top) 620else if (textRunRect.Top + verticalOverlap > fixedBlockRect.Bottom) 710top = fixedBlockRect.Bottom - margin; 715top = textRunRect.Bottom - margin ; 733return (!_lines.IsVerticallySeparated(left, textRunRect.Top, right, textRunRect.Bottom)); 934_AddLine(new Point(center, bounds.Top), new Point(center, bounds.Bottom), transform); 1042Math.Abs(t.BoundingRect.Bottom - row.BoundingRect.Top) < fudge)
src\Framework\System\Windows\Documents\FixedSOMSemanticBox.cs (2)
262else if (thisRect.Bottom <= otherRect.Top) 267else if (otherRect.Bottom <= thisRect.Top)
src\Framework\System\Windows\Documents\FixedTextView.cs (3)
861double verticalDistance = Math.Max(0, (transformedPt.Y > alignmentRect.Y) ? (transformedPt.Y - alignmentRect.Bottom) : (alignmentRect.Y - transformedPt.Y)); 953distance = (pt1.Y > box.Y) ? (pt1.Y - box.Bottom) : (box.Y - pt1.Y); 957double centerY = (box.Top + box.Bottom) / 2;
src\Framework\System\Windows\Documents\Glyphs.cs (1)
172Math.Max(0, designRect.Bottom)
src\Framework\System\Windows\Documents\HighlightVisual.cs (2)
249if (bg != highlightBrush || backgroundRect.Top > combinedRect.Bottom + .1 || backgroundRect.Bottom + .1 < combinedRect.Top
src\Framework\System\Windows\Documents\ImmComposition.cs (5)
771milPointBottomRight = new Point(Math.Max(rectStart.Left, rectEnd.Left), Math.Max(rectStart.Bottom, rectEnd.Bottom)); 772milPointCaret = new Point(rectCaret.Left, rectCaret.Bottom); 893milPointBottomRight = new Point(rectUi.Right, rectUi.Bottom); 897milPointCaret = new Point(rectCaret.Left, rectCaret.Bottom);
src\Framework\System\Windows\Documents\RubberbandSelector.cs (1)
362double bottom = _selectionRect.Bottom;
src\Framework\System\windows\Documents\TextEditorMouse.cs (1)
542targetPoint = new Point(targetPoint.X, targetRect.Bottom - pageHeight);
src\Framework\System\windows\Documents\TextEditorSelection.cs (2)
755Point targetPoint = new Point(GetViewportXOffset(This.TextView, suggestedX), targetRect.Bottom - pageHeight); 1565Point targetPoint = new Point(GetViewportXOffset(This.TextView, suggestedX), targetRect.Bottom - pageHeight);
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (1)
1616if (point.Y < cellInfo.TableArea.Top || point.Y > cellInfo.TableArea.Bottom)
src\Framework\System\Windows\Documents\TextStore.cs (3)
870milPointBottomRight = new Point(Math.Max(rectPrev.Left, rectCur.Left), Math.Max(rectPrev.Bottom, rectCur.Bottom)); 1028milPointBottomRight = new Point(rectUi.Right, rectUi.Bottom);
src\Framework\System\Windows\Input\KeyboardNavigation.cs (18)
2580else if (DoubleUtil.GreaterThan(headerRect.Bottom, itemsHostRect.Bottom)) 2589double after = rect.Bottom - itemsHostRect.Bottom; 2610rect.Y = rect.Bottom - height; 2639return sourceRect.Bottom - targetRect.Bottom; 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)) 2791return DoubleUtil.LessThan(targetRect.Bottom, sourceRect.Bottom) || (DoubleUtil.AreClose(targetRect.Bottom, sourceRect.Bottom) && IsAncestorOfEx(sourceElement, targetElement)); 3023endRange = horizontalDirection ? sourceRect.Bottom : sourceRect.Right; 3143directionScore = currentRect.Bottom; 3166rangeScore = ComputeRangeScore(sourceRect.Top, sourceRect.Bottom, currentRect.Top, currentRect.Bottom);
src\Framework\System\Windows\Shapes\Shape.cs (1)
721Math.Max(bounds.Bottom, 0));
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (8)
502rcLogicalClient.Bottom - rcLogicalWindow.Bottom); 1256Assert.AreEqual(bottomLeftRegionRect.Bottom, windowSize.Height); 1265Assert.AreEqual(bottomRightRegionRect.Bottom, windowSize.Height); 1295(int)Math.Ceiling(region.Bottom)); 1303(int)Math.Ceiling(region.Bottom) + 1, 1457else if (mousePosition.Y < windowPosition.Bottom && mousePosition.Y >= windowPosition.Bottom - (int)_chromeInfo.ResizeBorderThickness.Bottom)
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 (10)
Microsoft\Windows\Themes\ButtonChrome.cs (4)
527dc.DrawRectangle(leftShadow, null, new Rect(1.0, 1.0, 2.0, bounds.Bottom - 2.0)); 629borderFigure.Segments.Add(new LineSegment(new Point(0.5, bounds.Bottom - 0.5), true)); 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));
Microsoft\Windows\Themes\ListBoxChrome.cs (4)
489borderFigure.Segments.Add(new LineSegment(new Point(bounds.Left, bounds.Bottom), false)); 490borderFigure.Segments.Add(new LineSegment(new Point(bounds.Right, bounds.Bottom), false)); 500borderFigure.Segments.Add(new LineSegment(new Point(bounds.Left + thickness.Left, bounds.Bottom - thickness.Bottom), false)); 501borderFigure.Segments.Add(new LineSegment(new Point(bounds.Right - thickness.Right, bounds.Bottom - thickness.Bottom), false));
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (2)
118double centerHeight = shadowBounds.Bottom - shadowBounds.Top - 2 * ShadowDepth; 134double centerBottom = shadowBounds.Bottom - ShadowDepth;
PresentationFramework.Classic (8)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (6)
976dc.DrawRectangle(borderBrush, null, new Rect(bounds.Left, bounds.Bottom - borderThickness.Bottom, bounds.Width, borderThickness.Bottom)); 1043dc.DrawRectangle(LightLightBrush, null, new Rect(bounds.Left, bounds.Bottom - singleThickness.Bottom, bounds.Width, singleThickness.Bottom)); 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)
118double centerHeight = shadowBounds.Bottom - shadowBounds.Top - 2 * ShadowDepth; 134double centerBottom = shadowBounds.Bottom - ShadowDepth;
PresentationFramework.Luna (3)
Microsoft\Windows\Themes\ButtonChrome.cs (1)
460dc.DrawRoundedRectangle(brush, null, new Rect(bounds.Left, bounds.Bottom - 6.0, bounds.Width, 6.0), 4.0, 4.0);
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (2)
118double centerHeight = shadowBounds.Bottom - shadowBounds.Top - 2 * ShadowDepth; 134double centerBottom = shadowBounds.Bottom - ShadowDepth;
PresentationFramework.Royale (3)
Microsoft\Windows\Themes\ButtonChrome.cs (1)
381dc.DrawRoundedRectangle(brush, null, new Rect(bounds.Left, bounds.Bottom - 6.0, bounds.Width, 6.0), 3.0, 3.0);
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (2)
118double centerHeight = shadowBounds.Bottom - shadowBounds.Top - 2 * ShadowDepth; 134double centerBottom = shadowBounds.Bottom - ShadowDepth;
System.Activities.Presentation (9)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\ChoiceEditor.cs (2)
904double dropButtonBottom = innerRect.Bottom - dropButtonInset.Bottom; 917double textAreaBottom = innerRect.Bottom - textAreaInset.Bottom;
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)
1307AddCover(new ConnectorSegment(new Point(rectangle.Left, rectangle.Top), new Point(rectangle.Left, rectangle.Bottom))); 1308AddCover(new ConnectorSegment(new Point(rectangle.Right, rectangle.Top), new Point(rectangle.Right, rectangle.Bottom))); 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)
1167int imageHeight = (int)Math.Ceiling(bounds.Bottom);
UIAutomationClient (6)
MS\Internal\Automation\ClickablePoint.cs (5)
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); 69pt = new Point(rect.Left + (rect.Width /2), rect.Bottom - 1); 161for ( double down = rect.Top + y; down < rect.Bottom; down += y )
System\Windows\Automation\TextPattern.cs (1)
233if (screenLocation.X < rect.Left || screenLocation.X >= rect.Right || screenLocation.Y < rect.Top || screenLocation.Y >= rect.Bottom)
UIAutomationClientsideProviders (9)
MS\Internal\AutomationProxies\Misc.cs (1)
1386return x >= rc.Left && x < rc.Right && y >= rc.Top && y < rc.Bottom;
MS\Internal\AutomationProxies\NonClientArea.cs (2)
575if (x < rect.Right && y < rect.Bottom) 597if (x > rect.Left && y < rect.Bottom)
MS\Internal\AutomationProxies\WindowsRichEdit.cs (1)
388int y = ((int)rect.Top + (int)rect.Bottom) / 2;
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (1)
1456double bottom = rect.Bottom;
MS\Internal\AutomationProxies\WindowsStatusBar.cs (1)
368info.rc.bottom = (int)rc.Bottom;
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)
1207this.bottom = (int)rc.Bottom;
WindowsBase (8)
Base\System\Windows\Rect.cs (8)
391return new Point(Left, Bottom); 403return new Point(Right, Bottom); 482(rect.Top <= Bottom) && 483(rect.Bottom >= Top); 504_height = Math.Max(Math.Min(Bottom, rect.Bottom) - top, 0); 556double maxBottom = Math.Max(Bottom, rect.Bottom);