631 instantiations of Rect
PresentationCore (75)
Core\CSharp\MS\Internal\AnimatedTypeHelpers.cs (5)
115Rect temp = new Rect(); 236return new Rect( 340return new Rect( 564Rect temp = new Rect(); 829return new Rect(new Point(), new System.Windows.Vector());
Core\CSharp\MS\Internal\Automation\ElementUtil.cs (1)
140Rect rect = new Rect(0, 0, width, height);
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (2)
1764if (_inkSpaceRectangle != new Rect()) 2778private Rect _inkSpaceRectangle = new Rect();
Core\CSharp\MS\Internal\Ink\Lasso.cs (3)
248Rect lassoSegmentBounds = new Rect(lastPoint, point); 775Rect newRect = new Rect(points[count - 1], point); 785Rect currRect = new Rect(points[i], points[i+1]);
Core\CSharp\MS\Internal\Ink\Quad.cs (2)
91get { return IsEmpty ? Rect.Empty : Rect.Union(new Rect(_A, _B), new Rect(_C, _D)); }
Core\CSharp\MS\Internal\Ink\StrokeNodeOperations.cs (2)
74_shapeBounds.Union(new Rect((Point)_vertices[i], (Point)_vertices[i + 1])); 88boundingBox = new Rect(
Core\CSharp\MS\Internal\Ink\StrokeRenderer.cs (1)
74Rect lastRect = new Rect(0, 0, 0, 0);
Core\CSharp\MS\Internal\Ink\StylusShape.cs (1)
203bbox = new Rect(-(m_width * 0.5), -(m_height * 0.5), m_width, m_height);
Core\CSharp\MS\Internal\TextFormatting\FullTextLine.cs (2)
1495new Rect(0, 0, 0, Height), 1511new Rect(Start + Width - _collapsingSymbol.Width, 0, _collapsingSymbol.Width, Height),
Core\CSharp\MS\Internal\TextFormatting\LineServicesCallbacks.cs (3)
1476new Rect( 1519return new Rect( 2677new Rect(
Core\CSharp\MS\Internal\TextFormatting\LineServicesRun.cs (1)
442Rect rect = new Rect(
Core\CSharp\MS\Internal\TextFormatting\SimpleTextLine.cs (4)
637boundingBox = new Rect(Start, 0, 0, 0); 868new Rect( 890new Rect( 1877Rect underlineRect = new Rect(
Core\CSharp\System\Windows\Automation\Peers\GenericRootAutomationPeer.cs (1)
86Rect bounds = new Rect(0,0,0,0);
Core\CSharp\System\Windows\Automation\Peers\UIElementAutomationPeer.cs (3)
216Rect rectElement = new Rect(new Point(0, 0), _owner.RenderSize); 293Rect boundingRect = new Rect(owner.RenderSize); 530Rect rectElement = new Rect(new Point(0, 0), _owner.RenderSize);
Core\CSharp\System\Windows\Documents\DocumentPage.cs (2)
124return new Rect(this.Size); 139return new Rect(this.Size);
Core\CSharp\System\Windows\Interop\HwndSource.cs (4)
1279rootUIElement.Arrange(new Rect(new Point(), rootUIElement.DesiredSize)); 1315rootUIElement.Arrange(new Rect(new Point(), sz)); 1721rootUIElement.Arrange(new Rect(new Point(), sz)); 1754rootUIElement.Arrange(new Rect(new Point(), sizeLogicalUnits));
Core\CSharp\System\Windows\Interop\HwndTarget.cs (2)
854Rect clientRect = new Rect( 1747Rect clientRect = new Rect(
Core\CSharp\System\Windows\Media\Animation\Generated\RectAnimation.cs (4)
235Rect from = new Rect(); 236Rect to = new Rect(); 237Rect accumulated = new Rect(); 238Rect foundation = new Rect();
Core\CSharp\System\Windows\Media\BitmapCacheBrush.cs (1)
283element.Arrange(new Rect(element.DesiredSize));
Core\CSharp\System\Windows\Media\CompositionTarget.cs (1)
608private Rect _worldClipBounds = new Rect(
Core\CSharp\System\Windows\Media\Effects\BlurEffect.cs (1)
48return new Rect(topLeft, bottomRight);
Core\CSharp\System\Windows\Media\Effects\DropShadowEffect.cs (1)
75return new Rect(topLeft, bottomRight);
Core\CSharp\System\Windows\Media\Effects\Effect.cs (3)
165: new Rect(UnitToWorldUnsafe(unitRect.TopLeft, worldBounds), 179return new Rect(tl.Value, br.Value); 224return new Rect(topLeftResult, bottomRightResult);
Core\CSharp\System\Windows\Media\Effects\ShaderEffect.cs (1)
41return new Rect(topLeft, bottomRight);
Core\CSharp\System\Windows\Media\EllipseGeometry.cs (2)
105boundsRect = new Rect( 184rect = new Rect(
Core\CSharp\System\Windows\Media\Generated\TileBrush.cs (4)
396internal static Rect s_Viewport = new Rect(0,0,1,1); 397internal static Rect s_Viewbox = new Rect(0,0,1,1); 464new Rect(0,0,1,1), 473new Rect(0,0,1,1),
Core\CSharp\System\Windows\Media\GlyphRun.cs (6)
1401bounds = new Rect( 1575return new Rect( 1663return new Rect( 1672return new Rect( 1699backgroundRect = new Rect( 1708backgroundRect = new Rect(
Core\CSharp\System\Windows\Media\LineGeometry.cs (2)
75Rect rect = new Rect(StartPoint, EndPoint); 121return new Rect(pt1, pt2);
Core\CSharp\System\windows\Media\MILUtilities.cs (1)
221return new Rect(
Core\CSharp\System\Windows\Media\Visual.cs (2)
576Rect unitBounds = new Rect(0,0,1,1); 1169bboxSubgraph = new Rect();
Core\CSharp\System\Windows\Media\VisualBrush.cs (1)
251element.Arrange(new Rect(element.DesiredSize));
Core\CSharp\System\Windows\Media3D\MeshGeometry3D.cs (1)
160return new Rect(ptMin, ptMax);
Core\CSharp\System\Windows\UIElement.cs (3)
1132return new Rect(RoundLayoutValue(rect.X, dpiScaleX), 1342Rect hitBounds = new Rect(_size); 3381RectangleGeometry rect = new RectangleGeometry(new Rect(RenderSize));
Shared\MS\Internal\PointUtil.cs (2)
312return new Rect(corner1, corner2); 462Rect rect = new Rect();
PresentationFramework (288)
src\Framework\MS\Internal\Annotations\Component\AnnotationAdorner.cs (1)
158((UIElement)_annotationComponent).Arrange(new Rect(((UIElement)_annotationComponent).DesiredSize));
src\Framework\MS\Internal\AppModel\IconHelper.cs (4)
159var drawingDimensions = new Rect(0, 0, renderSize.Width, renderSize.Height); 168drawingDimensions = new Rect((renderSize.Width - img.Width) / 2, (renderSize.Height - img.Height) / 2, img.Width, img.Height); 173drawingDimensions = new Rect((renderSize.Width - scaledRenderWidth) / 2, 0, scaledRenderWidth, renderSize.Height); 178drawingDimensions = new Rect(0, (renderSize.Height - scaledRenderHeight) / 2, renderSize.Width, scaledRenderHeight);
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (2)
1055imageableRect = new Rect(imageableArea.OriginWidth, 1067imageableRect = new Rect(NON_PRINTABLE_MARGIN,
src\Framework\MS\Internal\Controls\InkCanvasFeedbackAdorner.cs (1)
165new Rect(CornerResizeHandleSize / 2, CornerResizeHandleSize / 2,
src\Framework\MS\Internal\Controls\InkCanvasInnerCanvas.cs (1)
183child.Arrange(new Rect(new Point(x, y), child.DesiredSize));
src\Framework\MS\Internal\Controls\InkCanvasSelectionAdorner.cs (4)
76new Rect(0.0, 0.0, 1f, 1f)); 96tileBrush.Viewport = new Rect(0, 0, HatchBorderMargin, HatchBorderMargin); 315rectGeometry = new RectangleGeometry(new Rect(0, 0, RenderSize.Width, RenderSize.Height)); 419visibleRect = new Rect(center.X - size / 2, center.Y - size / 2, size, size);
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (5)
1413Rect viewport = new Rect(0, 0, scrollInfo.ViewportWidth, scrollInfo.ViewportHeight); 1423Rect rect = new Rect(0, 0, Width, Height); 1594ret = new Rect(anchor.X + PositionTransform.X + _deltaX, anchor.Y + PositionTransform.Y + _deltaY, Width, Height); 1614pageBounds = new Rect(-scrollInfo.HorizontalOffset, -scrollInfo.VerticalOffset, scrollInfo.ExtentWidth, scrollInfo.ExtentHeight); 1623pageBounds = new Rect(0, 0, pageSize.Width, pageSize.Height);
src\Framework\MS\Internal\Controls\TemplatedAdorner.cs (1)
174_child.Arrange(new Rect(new Point(), finalSize));
src\Framework\MS\Internal\Documents\ColumnResult.cs (2)
59_layoutBox = new Rect( 84_layoutBox = new Rect(
src\Framework\MS\Internal\Documents\DocumentGrid.cs (5)
1204background.Arrange(new Rect(new Point(0, 0), arrangeSize)); 1254uiPage.Arrange(new Rect(pageOffset, pageSize)); 1889Rect translatedRect = new Rect(HorizontalOffset + r.X, VerticalOffset + r.Y, 1892Rect viewportRect = new Rect(HorizontalOffset, VerticalOffset, 1916Rect viewportRect = new Rect(HorizontalOffset, VerticalOffset,
src\Framework\MS\Internal\Documents\DocumentGridPage.cs (3)
292_pageBorder.Arrange(new Rect(new Point(0.0,0.0), arrangeSize)); 300new Rect( 307new Rect(
src\Framework\MS\Internal\Documents\FlowDocumentFormatter.cs (1)
136viewport = new Rect(0, 0, arrangeSize.Width, _document.StructuralCache.BackgroundFormatInfo.ViewportHeight);
src\Framework\MS\Internal\Documents\FlowDocumentView.cs (1)
160viewport = new Rect(_scrollData.HorizontalOffset, _scrollData.VerticalOffset, safeArrangeSize.Width, safeArrangeSize.Height);
src\Framework\MS\Internal\Documents\MultiPageTextView.cs (2)
1083textViewBounds = TransformToAncestor(_pageTextViews[i].RenderScope, new Rect(_pageTextViews[i].RenderScope.RenderSize)); 1097textViewBounds = TransformToAncestor(_pageTextViews[i].RenderScope, new Rect(_pageTextViews[i].RenderScope.RenderSize));
src\Framework\MS\Internal\Documents\ScrollData.cs (1)
191Rect viewport = new Rect(_offset.X, _offset.Y, _viewport.Width, _viewport.Height);
src\Framework\MS\Internal\Documents\TextBoxView.cs (7)
541context.DrawRectangle(new SolidColorBrush(Color.FromArgb(0, 0, 0, 0)), null, new Rect(0, 0, this.RenderSize.Width, this.RenderSize.Height)); 746Rect rect = new Rect(contentOffset, lineIndex * _lineHeight, _lineMetrics[lineIndex].Width, _lineHeight); 2058Rect rect = new Rect(0, lineIndex * _lineHeight, endOfParaGlyphWidth, _lineHeight); 2105Rect rect = new Rect(contentOffset + _lineMetrics[lineIndex].Width, lineIndex * _lineHeight, endOfParaGlyphWidth, _lineHeight); 2154Rect rect = new Rect(0, 0, endOfParaGlyphWidth, _lineHeight); 2184Rect rect = new Rect(contentOffset + _lineMetrics[lineIndex].Width, 0, endOfParaGlyphWidth, _lineHeight); 3004new Rect(_scrollData.HorizontalOffset, _scrollData.VerticalOffset, _scrollData.ViewportWidth, _scrollData.ViewportHeight);
src\Framework\MS\Internal\Documents\TextDocumentView.cs (5)
216visibleRect = new Rect(scrollInfo.HorizontalOffset, scrollInfo.VerticalOffset, scrollInfo.ViewportWidth, scrollInfo.ViewportHeight); 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\Documents\TextViewBase.cs (1)
144Rect viewport = new Rect(isi.HorizontalOffset, isi.VerticalOffset, isi.ViewportWidth, isi.ViewportHeight);
src\Framework\MS\Internal\Documents\UIElementIsland.cs (1)
94_child.Arrange(new Rect(islandSize));
src\Framework\MS\Internal\Helper.cs (3)
564child.Arrange(new Rect(arrangeSize)); 1195Rect parentRect = new Rect(new Point(), virtualizingElement.DesiredSize); 1204Rect itemsRect = itemsHost.TransformToAncestor(virtualizingElement).TransformBounds(new Rect(new Point(), itemsHost.DesiredSize));
src\Framework\MS\Internal\Ink\InkCanvasSelection.cs (2)
412Rect elementBounds = new Rect(0, 0, size.Width, size.Height); // Rect in element space 1097Rect rect = new Rect(0, 0, size.Width, size.Height); // Rect in element space
src\Framework\MS\Internal\Ink\PenCursorManager.cs (1)
282dc.DrawRectangle(db, null, new Rect(0, 0, width, height));
src\Framework\MS\Internal\PtsHost\CellParaClient.cs (3)
370Rect viewport = new Rect(0, 0, TextDpi.FromTextDpi(ContentRect.du), TextDpi.FromTextDpi(ContentRect.dv)); 477_rectTable = new Rect(TextDpi.FromTextDpi(tpc.Rect.u), 482_rectCell = new Rect(TextDpi.FromTextDpi(cpc.Rect.u),
src\Framework\MS\Internal\PtsHost\FigureParaClient.cs (1)
830Rect viewport = new Rect(0, 0, TextDpi.FromTextDpi(_contentRect.du), TextDpi.FromTextDpi(_contentRect.dv));
src\Framework\MS\Internal\PtsHost\FloaterParaClient.cs (1)
836Rect viewport = new Rect(0, 0, TextDpi.FromTextDpi(_contentRect.du), TextDpi.FromTextDpi(_contentRect.dv));
src\Framework\MS\Internal\PtsHost\FlowDocumentPage.cs (4)
168SetContentBox(new Rect(pageMargin.Left, pageMargin.Top, _ptsPage.CalculatedSize.Width, _ptsPage.CalculatedSize.Height)); 206SetContentBox(new Rect(pageMargin.Left, pageMargin.Top, 799return new Rect(this.Size); 885this.PageVisual.DrawBackground((Brush)_structuralCache.PropertyOwner.GetValue(FlowDocument.BackgroundProperty), new Rect(_partitionSize));
src\Framework\MS\Internal\PtsHost\ParagraphVisual.cs (2)
102dc.DrawRectangle(null, pen, new Rect( 155new Rect(
src\Framework\MS\Internal\PtsHost\Pts.cs (1)
952return new Rect(TextDpi.FromTextDpi(u), TextDpi.FromTextDpi(v), TextDpi.FromTextDpi(du), TextDpi.FromTextDpi(dv));
src\Framework\MS\Internal\PtsHost\PtsPage.cs (1)
817_pageContextOfThisPage.PageRect = new PTS.FSRECT(new Rect(_section.StructuralCache.CurrentFormatContext.PageSize));
src\Framework\MS\Internal\PtsHost\RunClient.cs (1)
93return new Rect(0, -baseline, sideways ? size.Height : size.Width, sideways ? size.Width : size.Height);
src\Framework\MS\Internal\PtsHost\StructuralCache.cs (2)
769internal PTS.FSRECT PageRect { get { return new PTS.FSRECT(new Rect(0, 0, PageWidth, PageHeight)); } } 774internal PTS.FSRECT PageMarginRect { get { return new PTS.FSRECT(new Rect(PageMargin.Left, PageMargin.Top,
src\Framework\MS\Internal\PtsHost\TableParaClient.cs (1)
1230return new Rect( TextDpi.FromTextDpi(rectTable.u + rectTable.du),
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (6)
1455uiElement.Arrange(new Rect(uiElement.DesiredSize)); 1488uiElement.Arrange(new Rect(uiElement.DesiredSize)); 1728Rect lbox = new Rect( 1797Rect lbox = new Rect(TextDpi.FromTextDpi(element.urBBox), TextDpi.FromTextDpi(lineDesc.vrStart), 2352new Rect( 2462new Rect(
src\Framework\MS\Internal\Text\ComplexLine.cs (1)
220inlineObject.Element.Arrange(new Rect(inlineObject.Element.DesiredSize));
src\Framework\MS\Internal\Text\InlineObject.cs (1)
87return new Rect(0, -baseline, sideways ? size.Height : size.Width, sideways ? size.Width : size.Height);
src\Framework\MS\Internal\Text\TextDpi.cs (1)
99return new Rect(
src\Framework\System\Windows\Annotations\AnnotationDocumentPaginator.cs (4)
320decorator.Arrange(new Rect(decorator.DesiredSize)); 361decorator.Arrange(new Rect(decorator.DesiredSize)); 371return new AnnotatedDocumentPage(page, decorator, tempSize, new Rect(tempSize), new Rect(tempSize));
src\Framework\System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (1)
99return new Rect();
src\Framework\System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (1)
210return new Rect();
src\Framework\System\Windows\Automation\Peers\DocumentAutomationPeer.cs (1)
254boundingRect = new Rect(textView.RenderScope.RenderSize);
src\Framework\System\Windows\Automation\Peers\ItemAutomationPeer.cs (1)
205return new Rect();
src\Framework\System\Windows\Automation\Peers\WindowAutomationPeer.cs (1)
80Rect bounds = new Rect(0,0,0,0);
src\Framework\System\Windows\Controls\AccessText.cs (1)
437TextBlock.Arrange(new Rect(arrangeSize));
src\Framework\System\Windows\Controls\AdornedElementPlaceholder.cs (1)
221child.Arrange(new Rect(arrangeBounds));
src\Framework\System\Windows\Controls\Border.cs (5)
277Rect boundRect = new Rect(finalSize); 443Rect rect = new Rect(new Point(halfThickness, halfThickness), 608dc.DrawRoundedRectangle(background, null, new Rect(ptTL, ptBR), innerCornerRadius, innerCornerRadius); 612dc.DrawRectangle(background, null, new Rect(ptTL, ptBR)); 646return new Rect(rt.Left + thick.Left,
src\Framework\System\Windows\Controls\Canvas.cs (2)
341child.Arrange(new Rect(new Point(x, y), child.DesiredSize)); 355return new RectangleGeometry(new Rect(RenderSize));
src\Framework\System\Windows\Controls\ComboBox.cs (4)
916visualBrush.Viewbox = new Rect(_clonedElement.RenderSize); 920visualBrush.Viewport = new Rect(_clonedElement.RenderSize); 980visualBrush.Viewbox = new Rect(_clonedElement.RenderSize); 981visualBrush.Viewport = new Rect(_clonedElement.RenderSize);
src\Framework\System\Windows\Controls\Control.cs (1)
733child.Arrange(new Rect(arrangeBounds));
src\Framework\System\Windows\Controls\DataGrid.cs (5)
6448Rect rowBounds = new Rect(new Point(), row.RenderSize); 6472Rect itemsHostBounds = new Rect(new Point(), itemsHost.RenderSize); 6562Rect cellBounds = new Rect(new Point(), cell.RenderSize); 6578Rect rowBounds = new Rect(new Point(), rowOwner.RenderSize); 6670Rect bounds = new Rect(new Point(), itemsHost.RenderSize);
src\Framework\System\Windows\Controls\DataGridCell.cs (2)
869Rect rect = new Rect(new Size(thickness, RenderSize.Height)); 878Rect rect = new Rect(new Size(RenderSize.Width, thickness));
src\Framework\System\Windows\Controls\DataGridCellsPanel.cs (3)
1439child.Arrange(new Rect()); 1489Rect rcChild = new Rect(new Size(childWidth, arrangeState.ChildHeight)); 1532_childClipForFrozenBehavior.Rect = new Rect(cellChoppedWidth, 0, clipWidth, rcChild.Height);
src\Framework\System\Windows\Controls\DataGridColumnFloatingHeader.cs (3)
53brush.Viewbox = new Rect(viewBox.X, viewBox.Y, width - header.GetVisualCanvasMarginX(), viewBox.Height); 80brush.Viewbox = new Rect(viewBox.X, viewBox.Y, viewBox.Width, height - header.GetVisualCanvasMarginY()); 150visualBrush.Viewbox = new Rect(offset.X, offset.Y, width, height);
src\Framework\System\Windows\Controls\Decorator.cs (1)
219child.Arrange(new Rect(arrangeSize));
src\Framework\System\Windows\Controls\DockPanel.cs (1)
294Rect rcChild = new Rect(
src\Framework\System\Windows\Controls\DocumentViewer.cs (1)
1403Rect gridRect = Rect.Transform(new Rect(grid.RenderSize),
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1138targetRect = new Rect(targetUIElement.RenderSize);
src\Framework\System\Windows\Controls\Grid.cs (2)
740child.Arrange(new Rect(arrangeSize)); 770Rect cellRect = new Rect(
src\Framework\System\Windows\Controls\GridSplitter.cs (1)
455_decorator.Arrange(new Rect(new Point(), finalSize));
src\Framework\System\Windows\Controls\GridViewColumnHeader.cs (1)
887visualBrush.Viewbox = new Rect(offsetVector.X, offsetVector.Y, FloatSourceHeader.ActualWidth, FloatSourceHeader.ActualHeight);
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (4)
360rect = new Rect(accumulatedWidth, 0.0, childArrangeWidth, arrangeSize.Height); 391rect = new Rect(accumulatedWidth, 0.0, Math.Max(remainingWidth, 0.0), arrangeSize.Height); 398_floatingHeader.Arrange(new Rect(new Point(_currentPos.X - _relativeStartPos.X, 0), HeadersPositionList[_startColumnIndex].Size)); 401_indicator.Arrange(new Rect(pos, new Size(_indicator.DesiredSize.Width, arrangeSize.Height)));
src\Framework\System\Windows\Controls\GridViewRowPresenter.cs (3)
229child.Arrange(new Rect(accumulatedWidth, 0, childArrangeWidth, arrangeSize.Height)); 489Rect viewPortBounds = new Rect(new Point(), _viewPort.RenderSize); 490Rect itemBounds = new Rect(new Point(), _viewItem.RenderSize);
src\Framework\System\Windows\Controls\Image.cs (1)
270dc.DrawImage(imageSource, new Rect(new Point(), RenderSize));
src\Framework\System\Windows\Controls\InkCanvas.cs (2)
259_localAdornerDecorator.Arrange(new Rect(arrangeSize)); 272Rect r = new Rect(new Point(), RenderSize);
src\Framework\System\Windows\Controls\InkPresenter.cs (1)
228child.Arrange(new Rect(availableSize));
src\Framework\System\Windows\Controls\ItemsControl.cs (6)
2640Rect elementBounds = new Rect(new Point(), element.RenderSize); 3014Rect viewPortBounds = new Rect(new Point(), viewPort.RenderSize); 3015Rect elementBounds = new Rect(new Point(), element.RenderSize); 3027viewPortBounds = new Rect(Double.NegativeInfinity, viewPortBounds.Top, 3032viewPortBounds = new Rect(viewPortBounds.Left, Double.NegativeInfinity, 3306Rect bounds = new Rect(new Point(), relativeTo.RenderSize);
src\Framework\System\Windows\Controls\MediaElement.cs (1)
748drawingContext.DrawVideo(_helper.Player, new Rect(new Point(), RenderSize));
src\Framework\System\Windows\Controls\MenuItem.cs (3)
860Rect itemBounds = new Rect(new Point(), RenderSize); 1515Rect r = new Rect(new Point(), RenderSize); 1543Rect r = new Rect(new Point(), RenderSize);
src\Framework\System\Windows\Controls\Page.cs (1)
634child.Arrange(new Rect(new Point(), arrangeBounds));
src\Framework\System\Windows\Controls\Panel.cs (1)
76new Rect(0.0, 0.0, renderSize.Width, renderSize.Height));
src\Framework\System\Windows\Controls\Primitives\BulletDecorator.cs (4)
205new Rect(0, 0, RenderSize.Width, RenderSize.Height)); 287bullet.Arrange(new Rect(bullet.DesiredSize)); 304content.Arrange(new Rect(contentOffsetX, 0, contentSize.Width, contentSize.Height)); 313bullet.Arrange(new Rect(0, bulletOffsetY, bullet.DesiredSize.Width, bullet.DesiredSize.Height));
src\Framework\System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (1)
487Rect rect = new Rect(new Size(RenderSize.Width, thickness));
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (4)
149Rect childRect = new Rect(finalSize); 162_columnHeaderDragIndicator.Arrange(new Rect( 172_columnHeaderDropLocationIndicator.Arrange(new Rect(point, new Size(dropIndicatorWidth, _columnHeaderDropLocationIndicator.Height))); 183RectangleGeometry clip = new RectangleGeometry(new Rect(RenderSize));
src\Framework\System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (1)
295Rect rect = new Rect(new Size(RenderSize.Width, thickness));
src\Framework\System\Windows\Controls\Primitives\DocumentPageView.cs (4)
374_pageHost.Arrange(new Rect(_pageHost.CachedOffset, finalSize)); 439_pageHost.Arrange(new Rect(_pageHost.CachedOffset, _documentPage.Size)); 461_pageHost.Arrange(new Rect(_pageHost.CachedOffset, finalSize)); 969Rect pageVisualRect = new Rect(_documentPage.Size);
src\Framework\System\Windows\Controls\Primitives\DocumentViewerBase.cs (2)
1190targetRect = new Rect(targetObject.RenderSize); 1194targetRect.IntersectsWith(new Rect(this.RenderSize));
src\Framework\System\Windows\Controls\Primitives\Popup.cs (7)
2133childBounds = new Rect((Size)_secHelper.GetTransformToDevice().Transform((Point)_popupRoot.Value.RenderSize)); 2326placementRect = new Rect(); 2344placementRect = new Rect(0.0, 0.0, target.RenderSize.Width, target.RenderSize.Height); 2346placementRect = new Rect(); 2385return InterestPointsFromRect(new Rect()); 2388Point[] interestPoints = InterestPointsFromRect(new Rect(new Point(), child.RenderSize)); 2470return new Rect(left, top, right - left, bottom - top);
src\Framework\System\Windows\Controls\Primitives\PopupRoot.cs (1)
246_transformDecorator.Arrange(new Rect(arrangeSize));
src\Framework\System\Windows\Controls\Primitives\ScrollContentPresenter.cs (4)
486_adornerLayer.Arrange(new Rect(arrangeSize)); 491Rect childRect = new Rect(child.DesiredSize); 523return new RectangleGeometry(new Rect(RenderSize)); 603Rect viewport = new Rect(HorizontalOffset, VerticalOffset, ViewportWidth, ViewportHeight);
src\Framework\System\Windows\Controls\Primitives\TabPanel.cs (2)
282child.Arrange(new Rect(childOffset.X, childOffset.Y, cellSize.Width, cellSize.Height)); 314child.Arrange(new Rect(0, childOffsetY, arrangeSize.Width, childSize.Height));
src\Framework\System\Windows\Controls\Primitives\ToolBarOverflowPanel.cs (1)
214child.Arrange(new Rect(x, y, child.DesiredSize.Width, lineHeight));
src\Framework\System\Windows\Controls\Primitives\ToolBarPanel.cs (1)
299Rect rcChild = new Rect(arrangeSize);
src\Framework\System\Windows\Controls\Primitives\Track.cs (6)
524IncreaseRepeatButton.Arrange(new Rect(offset, pieceSize)); 531DecreaseRepeatButton.Arrange(new Rect(offset, pieceSize)); 538Thumb.Arrange(new Rect(offset, pieceSize)); 555DecreaseRepeatButton.Arrange(new Rect(offset, pieceSize)); 562IncreaseRepeatButton.Arrange(new Rect(offset, pieceSize)); 569Thumb.Arrange(new Rect(offset, pieceSize));
src\Framework\System\Windows\Controls\Primitives\UniformGrid.cs (1)
218Rect childBounds = new Rect(0, 0, arrangeSize.Width / _columns, arrangeSize.Height / _rows);
src\Framework\System\Windows\Controls\ScrollViewer.cs (3)
926Rect rc = new Rect(0, 0, this.ActualWidth, this.ActualHeight); 2300targetRect = new Rect(uie.RenderSize); 2302targetRect = new Rect(); //not a good idea to invoke ISI with Empty rect
src\Framework\System\Windows\Controls\SinglePageViewer.cs (1)
846pageRect = new Rect(pageViews[index].RenderSize);
src\Framework\System\Windows\Controls\Stack.cs (2)
247Rect newRect = new Rect(); 732Rect rcChild = new Rect(arrangeSize);
src\Framework\System\Windows\Controls\TextAdaptor.cs (2)
164lineRect = new Rect(ClientToScreen(lineRect.TopLeft, textView.RenderScope), ClientToScreen(lineRect.BottomRight, textView.RenderScope)); 326Rect visibleRect = new Rect(textView.RenderScope.RenderSize);
src\Framework\System\Windows\Controls\TextBlock.cs (3)
1588ctx.DrawRectangle(background, null, new Rect(0, 0, RenderSize.Width, RenderSize.Height)); 1733Rect r = new Rect(new Point(), RenderSize); 2155Rect layoutBox = new Rect(contentOffset.X + lineMetrics.Start, contentOffset.Y + lineOffset, lineMetrics.Width, lineMetrics.Height);
src\Framework\System\Windows\Controls\ToolBarTray.cs (2)
348new Rect(0, 0, RenderSize.Width, RenderSize.Height)); 436Rect rcChild = new Rect();
src\Framework\System\Windows\Controls\ViewBox.cs (1)
363child.Arrange(new Rect(new Point(), child.DesiredSize));
src\Framework\System\Windows\Controls\ViewPort3D.cs (1)
172Rect newBounds = new Rect(new Point(), finalSize);
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (7)
1438Rect newRect = new Rect(); 3338Rect rcChild = new Rect(arrangeSize); 4266viewport = new Rect(offsetX, offsetY, size.Width, size.Height); 4271viewport = new Rect(offsetX, offsetY, viewportSize.Width, viewportSize.Height); 4503viewport = new Rect(0, 0, constraint.Width, constraint.Height); 6332Rect childRect = new Rect(new Point(), child.DesiredSize); 7948Rect viewport = new Rect();
src\Framework\System\Windows\Controls\WrapPanel.cs (1)
355child.Arrange(new Rect(
src\Framework\System\Windows\Documents\AdornerDecorator.cs (1)
151_adornerLayer.Arrange(new Rect(finalSize));
src\Framework\System\Windows\Documents\AdornerLayer.cs (1)
483adornerInfo.Adorner.Arrange(new Rect(new Point(), adornerInfo.Adorner.DesiredSize));
src\Framework\System\windows\Documents\CaretElement.cs (5)
202_caretElement.Arrange(new Rect(point, availableSize)); 339scrollRectangle = new Rect(_left - CaretPaddingWidth, _top, CaretPaddingWidth * 2 + (IsInInterimState ? _interimWidth : _systemCaretWidth), _height); 377MS.Internal.Documents.TextViewBase.BringRectIntoViewMinimally(_textEditor.TextView, new Rect(scrollToOriginPosition, scrollRectangle.Y, scrollRectangle.Width, scrollRectangle.Height)); 687context.DrawRectangle(_caretBrush, null, new Rect(0, 0, _interimWidth, _height)); 700context.DrawRectangle(_caretBrush, null, new Rect(-(_systemCaretWidth / 2), 0, _systemCaretWidth, _height));
src\Framework\System\Windows\Documents\DocumentSequence.cs (1)
1174e.Arrange(new Rect(base.Size));
src\Framework\System\Windows\Documents\FixedDocument.cs (4)
370page.Arrange(new Rect(new Point(), fixedSize)); 1399base(page, fixedSize, new Rect(fixedSize), new Rect(fixedSize)) 1466e.Arrange(new Rect(base.Size));
src\Framework\System\Windows\Documents\FixedHighlight.cs (1)
121return new Rect(0, 0, im.Width, im.Height);
src\Framework\System\Windows\Documents\FixedPage.cs (2)
162new Rect(0, 0, RenderSize.Width, RenderSize.Height)); 843child.Arrange(new Rect(new Point(x, y), child.DesiredSize));
src\Framework\System\Windows\Documents\FixedSOMImage.cs (1)
67Rect sourceRect = new Rect(image.RenderSize);
src\Framework\System\Windows\Documents\FixedSOMPageConstructor.cs (3)
86_pageConstructor._ProcessFilledRect(_transform, new Rect(_xMin, _yMin, _xMax - _xMin, _yMax - _yMin)); 477Rect boundingRect = new Rect(lastX, alignmentBox.Top, advWidth + advFont, alignmentBox.Height); 506Rect boundingRect = new Rect(lastX, alignmentBox.Top, alignmentBox.Right-lastX, alignmentBox.Height);
src\Framework\System\Windows\Documents\FixedSOMTableCell.cs (1)
35_boundingRect = new Rect(new Point(left, top), new Point(right, bottom));
src\Framework\System\Windows\Documents\FixedTextBuilder.cs (2)
218page.Arrange(new Rect(new Point(0, 0), pageSize)); 1334g = new RectangleGeometry(new Rect(0, 0, im.Width, im.Height));
src\Framework\System\Windows\Documents\FixedTextView.cs (2)
175Rect designRect = new Rect(0, 0, 0, 10); 1076Rect caretRect = new Rect(origin, bottom);
src\Framework\System\Windows\Documents\Glyphs.cs (1)
204Rect alignmentRect = new Rect();
src\Framework\System\Windows\Documents\HighlightVisual.cs (1)
97Rect clipRect = new Rect(new Point(0, 0), pageSize);
src\Framework\System\Windows\Documents\NullTextNavigator.cs (1)
294return new Rect();
src\Framework\System\Windows\Documents\RubberbandSelector.cs (1)
160_selectionRect = new Rect(_origin, pt);
src\Framework\System\Windows\Documents\SpellerHighlightLayer.cs (1)
168brush.Viewport = new Rect(0, 0, 3, 3);
src\Framework\System\windows\Documents\TextEditorDragDrop.cs (1)
128_dragRect = new Rect(mouseDownPoint.X - minimumHorizontalDragDistance, mouseDownPoint.Y - minimumVerticalDragDistance, minimumHorizontalDragDistance * 2, minimumVerticalDragDistance * 2);
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (2)
1630columnRect = new Rect(cellInfo.CellArea.Left, cellInfo.TableArea.Top, 1, cellInfo.TableArea.Height); 1640columnRect = new Rect(cellInfo.CellArea.Right, cellInfo.TableArea.Top, 1, cellInfo.TableArea.Height);
src\Framework\System\Windows\Documents\TextStore.cs (2)
873Rect rectTest = new Rect(milPointTopLeft, milPointBottomRight); 938Rect rectBound = new Rect(Size.Empty);
src\Framework\System\Windows\FrameworkElement.cs (12)
4285Rect childBoundsTr = Rect.Transform(new Rect(0, 0, w, h), 4419Rect unclippedBoundsTransformed = Rect.Transform(new Rect(0, 0, unclippedDesiredSize.Width, unclippedDesiredSize.Height), ltd.Transform.Value); 4444Rect childBoundsTransformed = Rect.Transform(new Rect(0, 0, desiredSize.Width, desiredSize.Height), ltd.Transform.Value); 4749Rect inkRectTransformed = Rect.Transform(new Rect(0, 0, clippedInkSize.Width, clippedInkSize.Height), ltd.Transform.Value); 4921Rect inkRectTransformed = new Rect(); 4924inkRectTransformed = Rect.Transform(new Rect(0, 0, inkSize.Width, inkSize.Height), ltd.Transform.Value); 4946Rect clipRect = new Rect(0, 0, maxWidthClip, maxHeightClip); 4964Rect slotClipRect = new Rect(-offset.X + inkRectTransformed.X, 4984Rect localClipRect = new Rect(0, 0, maxWidthClip, maxHeightClip); 5010Rect slotRect = new Rect(-offset.X + inkRectTransformed.X, 5022Rect localRect = new Rect(0, 0, maxWidthClip, maxHeightClip); 5250Rect inkRectTransformed = Rect.Transform(new Rect(inkSize), ltd.Transform.Value);
src\Framework\System\Windows\Input\KeyboardNavigation.cs (4)
679((UIElement)GetVisualChild(0)).Arrange(new Rect(new Point(), finalSize)); 2490return transform.TransformBounds(new Rect(x, y, width, height)); 3089Rect sourceRect = new Rect(0, 0, 0, 0); 3100sourceRect = new Rect(0, 0, 0, 0);
src\Framework\System\Windows\Interop\ActiveXHost.cs (1)
1198private Rect _boundRect = new Rect(0, 0, 0, 0);
src\Framework\System\Windows\Interop\DocobjHost.cs (1)
742Rect windowRect = new Rect(x, y, width, height);
src\Framework\System\Windows\Interop\HwndHost.cs (3)
514Rect rectElement = new Rect(RenderSize); 880return new Rect(RenderSize); 953Rect rectElement = new Rect(RenderSize);
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
8150bamlType.DefaultConstructor = delegate() { return new System.Windows.Rect(); };
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
1490case KnownElements.Rect: o = new System.Windows.Rect(); break;
src\Framework\System\Windows\Shapes\Ellipse.cs (2)
125_rect = new Rect( 210_rect = new Rect(margin, margin, 0, 0);
src\Framework\System\Windows\Shapes\Rectangle.cs (2)
178_rect = new Rect( 256_rect = new Rect(margin, margin, 0, 0);
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (8)
445Rect rcLogicalWindow = DpiHelper.DeviceRectToLogical(new Rect(rcWindow.Left, rcWindow.Top, rcWindow.Width, rcWindow.Height), dpi.DpiScaleX, dpi.DpiScaleY); 446Rect rcLogicalClient = DpiHelper.DeviceRectToLogical(new Rect(rcAdjustedClient.Left, rcAdjustedClient.Top, rcAdjustedClient.Width, rcAdjustedClient.Height), dpi.DpiScaleX, dpi.DpiScaleY); 1041return new Rect(windowPosition.Left, windowPosition.Top, windowPosition.Width, windowPosition.Height); 1234hrgn = _CreateRoundRectRgn(new Rect(windowSize), topLeftRadius); 1242hrgn = _CreateRoundRectRgn(new Rect(0, 0, windowSize.Width / 2 + topLeftRadius, windowSize.Height / 2 + topLeftRadius), topLeftRadius); 1246Rect topRightRegionRect = new Rect(0, 0, windowSize.Width / 2 + topRightRadius, windowSize.Height / 2 + topRightRadius); 1254Rect bottomLeftRegionRect = new Rect(0, 0, windowSize.Width / 2 + bottomLeftRadius, windowSize.Height / 2 + bottomLeftRadius); 1262Rect bottomRightRegionRect = new Rect(0, 0, windowSize.Width / 2 + bottomRightRadius, windowSize.Height / 2 + bottomRightRadius);
src\Framework\System\Windows\Standard\DpiHelper.cs (2)
49return new Rect(topLeft, bottomRight); 57return new Rect(topLeft, bottomRight);
src\Framework\System\Windows\SystemParameters.cs (1)
425_workArea = new Rect(ConvertPixel(workArea.left), ConvertPixel(workArea.top), ConvertPixel(workArea.Width), ConvertPixel(workArea.Height));
src\Framework\System\Windows\Window.cs (7)
1945child.Arrange(new Rect(childArrangeBounds)); 3938ownerRectDeviceUnits = new Rect(ownerLocationDeviceUnits.X, ownerLocationDeviceUnits.Y, 4102return new Rect(locationDeviceUnits.X, locationDeviceUnits.Y, sizeDeviceUnits.X, sizeDeviceUnits.Y); 4116return new Rect(locationLogicalUnits.X, locationLogicalUnits.Y, sizeLogicalUnits.X, sizeLogicalUnits.Y); 6982var logicalClientRc = new Rect( 6995var physicalClip = new Rect( 8467Rect monitorRectInWpfScale = new Rect
PresentationFramework.Aero (47)
Microsoft\Windows\Themes\BulletChrome.cs (6)
615Rect bounds = new Rect(0, 0, ActualWidth, ActualHeight); 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)); 731dc.DrawRectangle(null, HighlightStroke, new Rect(3.5, 3.5, 6, 6)); 754Rect rect = new Rect(bounds.Left + 0.5,
Microsoft\Windows\Themes\ButtonChrome.cs (7)
456Rect childArrangeRect = new Rect(); 478Rect bounds = new Rect(0, 0, ActualWidth, ActualHeight); 502Rect backgroundRect = new Rect(bounds.Left + 1.0, 527dc.DrawRectangle(leftShadow, null, new Rect(1.0, 1.0, 2.0, bounds.Bottom - 2.0)); 534dc.DrawRectangle(topShadow, null, new Rect(1.0, 1.0, bounds.Right - 2.0, 2.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\DataGridHeaderBorder.cs (8)
88dc.DrawRectangle(bevel, null, new Rect(0.0, 0.0, size.Width, size.Height)); 149dc.DrawRectangle(background, null, new Rect(0.0, 0.0, size.Width, size.Height)); 223dc.DrawRectangle(sideBrush, null, new Rect(0.0, 0.0, 1.0, Max0(size.Height - 0.95))); 224dc.DrawRectangle(sideBrush, null, new Rect(size.Width - 1.0, 0.0, 1.0, Max0(size.Height - 0.95))); 246dc.DrawRectangle(topBrush, null, new Rect(0.0, 0.0, size.Width, 2.0)); 263dc.DrawRectangle(pressedBevel, null, new Rect(1.0, 0.0, 1.0, size.Height - 0.95)); 264dc.DrawRectangle(pressedBevel, null, new Rect(size.Width - 2.0, 0.0, 1.0, size.Height - 0.95)); 307dc.DrawRectangle(bottomBrush, null, new Rect(0.0, size.Height - 1.0, size.Width, 1.0));
Microsoft\Windows\Themes\ListBoxChrome.cs (5)
277Rect childArrangeRect = new Rect(); 315Rect bounds = new Rect(0, 0, ActualWidth, ActualHeight); 335Rect backgroundRect = new Rect(bounds.Left + border.Left, 350backgroundRect = new Rect(bounds.Left + border.Left + innerBorderThickness, 372Rect rect = new Rect(bounds.Left + 0.5,
Microsoft\Windows\Themes\ProgressBarHighlightConverter.cs (2)
77newBrush.Viewport = newBrush.Viewbox = new Rect(-width, 0, twiceWidth, height); 87myDrawingContext.DrawRectangle(brush, null, new Rect(-width, 0, width, height));
Microsoft\Windows\Themes\ScrollChrome.cs (8)
420Rect bounds = new Rect(0, 0, ActualWidth, ActualHeight); 473new Rect(bounds.X, bounds.Y + 2.0, bounds.Width, bounds.Height - 2.0), 492new Rect(bounds.X, bounds.Y, bounds.Width, bounds.Height), 506new Rect(bounds.X, bounds.Y, bounds.Width, bounds.Height), 557dc.DrawRectangle(glyphShadow, null, new Rect(x + i - 0.5, y - 0.5, 3.0, shadowHeight)); 560dc.DrawRectangle(brush, null, new Rect(x + i, y, 2.0, height)); 580dc.DrawRectangle(glyphShadow, null, new Rect(x - 0.5, y + i - 0.5, shadowWidth, 3.0)); 583dc.DrawRectangle(brush, null, new Rect(x, y + i, width, 2.0));
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
238child.Arrange(new Rect(padding.Left, padding.Top, childWidth, childHeight));
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (10)
109Rect shadowBounds = new Rect(new Point(ShadowDepth, ShadowDepth), 162Rect topLeft = new Rect(shadowBounds.Left, shadowBounds.Top, cornerRadius.TopLeft, cornerRadius.TopLeft); 168Rect top = new Rect(guidelineSetX[1], shadowBounds.Top, topWidth, ShadowDepth); 172Rect topRight = new Rect(guidelineSetX[2], shadowBounds.Top, cornerRadius.TopRight, cornerRadius.TopRight); 179Rect left = new Rect(shadowBounds.Left, guidelineSetY[1], ShadowDepth, leftHeight); 186Rect right = new Rect(guidelineSetX[5], guidelineSetY[2], ShadowDepth, rightHeight); 191Rect bottomLeft = new Rect(shadowBounds.Left, guidelineSetY[3], cornerRadius.BottomLeft, cornerRadius.BottomLeft); 197Rect bottom = new Rect(guidelineSetX[3], guidelineSetY[5], bottomWidth, ShadowDepth); 201Rect bottomRight = new Rect(guidelineSetX[4], guidelineSetY[4], cornerRadius.BottomRight, cornerRadius.BottomRight); 218Rect center = new Rect(guidelineSetX[0], guidelineSetY[0], centerWidth, centerHeight);
PresentationFramework.Classic (41)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (14)
606return new Rect(rt.Left + thick.Left, 721Rect childArrangeRect = new Rect(); 765Rect bounds = new Rect(0, 0, ActualWidth, ActualHeight); 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)); 970dc.DrawRectangle(borderBrush, null, new Rect(bounds.Right - borderThickness.Right, bounds.Top, borderThickness.Right, 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)); 1056dc.DrawRectangle(LightLightBrush, null, new Rect(bounds.Right - singleThickness.Right, bounds.Top, singleThickness.Right, bounds.Height)); 1224Rect tempBounds = new Rect(0.0, 0.0, bounds.Height, bounds.Width); 1260Rect tempBounds = new Rect(0.0, 0.0, bounds.Height, bounds.Width) ; 1281Rect tempBounds = new Rect(0.0, 0.0, bounds.Width, bounds.Height);
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (11)
102dc.DrawRectangle(background, null, new Rect(0.0, 0.0, size.Width, size.Height)); 109dc.DrawRectangle(dark, null, new Rect(0.0, 0.0, size.Width, 1.0)); 110dc.DrawRectangle(dark, null, new Rect(0.0, 0.0, 1.0, size.Height)); 111dc.DrawRectangle(dark, null, new Rect(0.0, Max0(size.Height - 1.0), size.Width, 1.0)); 112dc.DrawRectangle(dark, null, new Rect(Max0(size.Width - 1.0), 0.0, 1.0, size.Height)); 116dc.DrawRectangle(light, null, new Rect(0.0, 0.0, 1.0, Max0(size.Height - 1.0))); 117dc.DrawRectangle(light, null, new Rect(0.0, 0.0, Max0(size.Width - 1.0), 1.0)); 123dc.DrawRectangle(dark, null, new Rect(Max0(size.Width - 2.0), 1.0, 1.0, Max0(size.Height - 2.0))); 126dc.DrawRectangle(darkDarkRight, null, new Rect(Max0(size.Width - 1.0), 0.0, 1.0, size.Height)); 133dc.DrawRectangle(dark, null, new Rect(1.0, Max0(size.Height - 2.0), Max0(size.Width - 2.0), 1.0)); 136dc.DrawRectangle(darkDarkBottom, null, new Rect(0.0, Max0(size.Height - 1.0), size.Width, 1.0));
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
238child.Arrange(new Rect(padding.Left, padding.Top, childWidth, childHeight));
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (5)
82newBrush.Viewport = newBrush.Viewbox = new Rect(0, 0, width, height); 117newBrush.Viewport = newBrush.Viewbox = new Rect(left, 0, indeterminateWidth - left, height); 152new Rect(left + drawnWidth, 0, blockWidth, height)); 169new Rect(drawnWidth, 0, blockWidth, height)); 182new Rect(drawnWidth, 0, remainder, height));
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (10)
109Rect shadowBounds = new Rect(new Point(ShadowDepth, ShadowDepth), 162Rect topLeft = new Rect(shadowBounds.Left, shadowBounds.Top, cornerRadius.TopLeft, cornerRadius.TopLeft); 168Rect top = new Rect(guidelineSetX[1], shadowBounds.Top, topWidth, ShadowDepth); 172Rect topRight = new Rect(guidelineSetX[2], shadowBounds.Top, cornerRadius.TopRight, cornerRadius.TopRight); 179Rect left = new Rect(shadowBounds.Left, guidelineSetY[1], ShadowDepth, leftHeight); 186Rect right = new Rect(guidelineSetX[5], guidelineSetY[2], ShadowDepth, rightHeight); 191Rect bottomLeft = new Rect(shadowBounds.Left, guidelineSetY[3], cornerRadius.BottomLeft, cornerRadius.BottomLeft); 197Rect bottom = new Rect(guidelineSetX[3], guidelineSetY[5], bottomWidth, ShadowDepth); 201Rect bottomRight = new Rect(guidelineSetX[4], guidelineSetY[4], cornerRadius.BottomRight, cornerRadius.BottomRight); 218Rect center = new Rect(guidelineSetX[0], guidelineSetY[0], centerWidth, centerHeight);
PresentationFramework.Luna (43)
Microsoft\Windows\Themes\ButtonChrome.cs (9)
373Rect childArrangeRect = new Rect(); 405new Rect( 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); 474dc.DrawRoundedRectangle(brush, null, new Rect(bounds.Right - 6.0, bounds.Top, 6.0, bounds.Height), 4.0, 4.0); 490new Rect( 509new Rect( 525Rect bounds = new Rect(0, 0, ActualWidth, ActualHeight);
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (4)
167dc.DrawRectangle(background, null, new Rect(0.0, 0.0, size.Width, size.Height)); 254dc.DrawRectangle(border, null, new Rect(0.0, 0.0, 1.0, size.Height)); 255dc.DrawRectangle(border, null, new Rect(0.0, Max0(size.Height - 1.0), size.Width, 1.0)); 302dc.DrawRectangle(sideBrush, null, new Rect(horizontal ? 0.0 : Max0(size.Width - 2.0), 4.0, 2.0, Max0(size.Height - 8.0)));
Microsoft\Windows\Themes\ScrollChrome.cs (8)
228Rect bounds = new Rect(0, 0, ActualWidth, ActualHeight); 312new Rect(bounds.X, bounds.Y + 2.0, bounds.Width, bounds.Height - 2.0), 332new Rect(bounds.X, bounds.Y, bounds.Width, bounds.Height), 346new Rect(bounds.X, bounds.Y, bounds.Width, bounds.Height), 397dc.DrawRectangle(brush, null, new Rect(x + i, y, 1.0, height)); 400dc.DrawRectangle(glyphShadow, null, new Rect(x + i + 1, y + 1, 1.0, height)); 419dc.DrawRectangle(brush, null, new Rect(x, y + i, width, 1.0)); 422dc.DrawRectangle(glyphShadow, null, new Rect(x + 1, y + i + 1, width, 1.0));
parent\Shared\Microsoft\Windows\Themes\BulletChrome.cs (6)
213Rect bounds = new Rect(0, 0, ActualWidth, ActualHeight); 220innerBounds = new Rect(thickness.Left, 270dc.DrawRectangle(null, highlightPen, new Rect(bounds.Left + 1.0, bounds.Top + 1.0, bounds.Width - 2.0, bounds.Height - 2.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\DataGridHeaderBorder.cs (1)
238child.Arrange(new Rect(padding.Left, padding.Top, childWidth, childHeight));
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (5)
82newBrush.Viewport = newBrush.Viewbox = new Rect(0, 0, width, height); 117newBrush.Viewport = newBrush.Viewbox = new Rect(left, 0, indeterminateWidth - left, height); 152new Rect(left + drawnWidth, 0, blockWidth, height)); 169new Rect(drawnWidth, 0, blockWidth, height)); 182new Rect(drawnWidth, 0, remainder, height));
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (10)
109Rect shadowBounds = new Rect(new Point(ShadowDepth, ShadowDepth), 162Rect topLeft = new Rect(shadowBounds.Left, shadowBounds.Top, cornerRadius.TopLeft, cornerRadius.TopLeft); 168Rect top = new Rect(guidelineSetX[1], shadowBounds.Top, topWidth, ShadowDepth); 172Rect topRight = new Rect(guidelineSetX[2], shadowBounds.Top, cornerRadius.TopRight, cornerRadius.TopRight); 179Rect left = new Rect(shadowBounds.Left, guidelineSetY[1], ShadowDepth, leftHeight); 186Rect right = new Rect(guidelineSetX[5], guidelineSetY[2], ShadowDepth, rightHeight); 191Rect bottomLeft = new Rect(shadowBounds.Left, guidelineSetY[3], cornerRadius.BottomLeft, cornerRadius.BottomLeft); 197Rect bottom = new Rect(guidelineSetX[3], guidelineSetY[5], bottomWidth, ShadowDepth); 201Rect bottomRight = new Rect(guidelineSetX[4], guidelineSetY[4], cornerRadius.BottomRight, cornerRadius.BottomRight); 218Rect center = new Rect(guidelineSetX[0], guidelineSetY[0], centerWidth, centerHeight);
PresentationFramework.Royale (41)
Microsoft\Windows\Themes\ButtonChrome.cs (8)
331Rect childArrangeRect = new Rect(); 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); 395dc.DrawRoundedRectangle(brush, null, new Rect(bounds.Right - 6.0, bounds.Top, 6.0, bounds.Height), 3.0, 3.0); 411new Rect( 430new Rect( 446Rect bounds = new Rect(0, 0, ActualWidth, ActualHeight);
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (4)
96dc.DrawRectangle(background, null, new Rect(0.0, 0.0, size.Width, size.Height)); 176dc.DrawRectangle(border, null, new Rect(0.0, 0.0, 1.0, size.Height)); 177dc.DrawRectangle(border, null, new Rect(0.0, Max0(size.Height - 1.0), size.Width, 1.0)); 224dc.DrawRectangle(sideBrush, null, new Rect(horizontal ? 0.0 : Max0(size.Width - 2.0), 4.0, 2.0, Max0(size.Height - 8.0)));
Microsoft\Windows\Themes\ScrollChrome.cs (7)
210Rect bounds = new Rect(0, 0, ActualWidth, ActualHeight); 292new Rect(bounds.X, bounds.Y, bounds.Width, bounds.Height), 306new Rect(bounds.X, bounds.Y, bounds.Width, bounds.Height), 357dc.DrawRectangle(brush, null, new Rect(x + i, y, 1.0, height)); 360dc.DrawRectangle(glyphShadow, null, new Rect(x + i + 1, y + 1, 1.0, height)); 379dc.DrawRectangle(brush, null, new Rect(x, y + i, width, 1.0)); 382dc.DrawRectangle(glyphShadow, null, new Rect(x + 1, y + i + 1, width, 1.0));
parent\Shared\Microsoft\Windows\Themes\BulletChrome.cs (6)
213Rect bounds = new Rect(0, 0, ActualWidth, ActualHeight); 220innerBounds = new Rect(thickness.Left, 270dc.DrawRectangle(null, highlightPen, new Rect(bounds.Left + 1.0, bounds.Top + 1.0, bounds.Width - 2.0, bounds.Height - 2.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\DataGridHeaderBorder.cs (1)
238child.Arrange(new Rect(padding.Left, padding.Top, childWidth, childHeight));
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (5)
82newBrush.Viewport = newBrush.Viewbox = new Rect(0, 0, width, height); 117newBrush.Viewport = newBrush.Viewbox = new Rect(left, 0, indeterminateWidth - left, height); 152new Rect(left + drawnWidth, 0, blockWidth, height)); 169new Rect(drawnWidth, 0, blockWidth, height)); 182new Rect(drawnWidth, 0, remainder, height));
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (10)
109Rect shadowBounds = new Rect(new Point(ShadowDepth, ShadowDepth), 162Rect topLeft = new Rect(shadowBounds.Left, shadowBounds.Top, cornerRadius.TopLeft, cornerRadius.TopLeft); 168Rect top = new Rect(guidelineSetX[1], shadowBounds.Top, topWidth, ShadowDepth); 172Rect topRight = new Rect(guidelineSetX[2], shadowBounds.Top, cornerRadius.TopRight, cornerRadius.TopRight); 179Rect left = new Rect(shadowBounds.Left, guidelineSetY[1], ShadowDepth, leftHeight); 186Rect right = new Rect(guidelineSetX[5], guidelineSetY[2], ShadowDepth, rightHeight); 191Rect bottomLeft = new Rect(shadowBounds.Left, guidelineSetY[3], cornerRadius.BottomLeft, cornerRadius.BottomLeft); 197Rect bottom = new Rect(guidelineSetX[3], guidelineSetY[5], bottomWidth, ShadowDepth); 201Rect bottomRight = new Rect(guidelineSetX[4], guidelineSetY[4], cornerRadius.BottomRight, cornerRadius.BottomRight); 218Rect center = new Rect(guidelineSetX[0], guidelineSetY[0], centerWidth, centerHeight);
System.Activities.Core.Presentation (2)
System\Activities\Core\Presentation\FlowchartExpressionAdorner.cs (2)
60Rect adornedElementRect = new Rect(this.AdornedElement.DesiredSize); 61Rect tooltipRect = new Rect(adornedElementRect.TopLeft + new Vector(adornedElementRect.Width, -tooltip.DesiredSize.Height), tooltip.DesiredSize);
System.Activities.Presentation (65)
System.Activities.Presentation\System\Activities\Presentation\Annotations\AnnotationAdorner.cs (2)
141anchor = FindAnchor(anchorPoint, adornerSize, new Rect(0, 0, this.ScrollViewer.ViewportWidth, this.ScrollViewer.ViewportHeight)); 147this.content.Arrange(new Rect(location, finalSize));
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\ChoiceEditor.cs (4)
896Rect fullRect = new Rect(0d, 0d, this.ActualWidth, this.ActualHeight); 906RenderUtils.DrawInscribedRoundedRect(drawingContext, dropButtonBrush, null, new Rect(new Point(dropButtonLeft, dropButtonTop), new Point(dropButtonRight, dropButtonBottom)), innerCornerRadius); 911drawingContext.DrawImage(buttonIcon, new Rect(new Point(buttonCenterX - iconWidth / 2d, buttonCenterY - iconHeight / 2d), new Point(buttonCenterX + iconWidth / 2d, buttonCenterY + iconHeight / 2d))); 919RenderUtils.DrawInscribedRoundedRect(drawingContext, this.Background, null, new Rect(new Point(textAreaLeft, textAreaTop), new Point(textAreaRight, textAreaBottom)), innerCornerRadius);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\RenderUtils.cs (2)
32Rect spineRect = new Rect(spineLeftTop, spineRightBottom); 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\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\StringEditor.cs (1)
287RenderUtils.DrawInscribedRoundedRect(drawingContext, this.Background, strokePen, new Rect(0d, 0d, this.ActualWidth, this.ActualHeight), this.CornerRadius);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyPanel.cs (3)
225child.Arrange(new Rect(Math.Max(0, finalSize.Width - lastChildWidth), 0, lastChildWidth, finalSize.Height)); 229child.Arrange(new Rect(left, 0, Math.Min(desiredWidth, availableWidth), finalSize.Height)); 263dc.DrawRectangle(selectionBrush, null, new Rect(
System.Activities.Presentation\System\Activities\Presentation\DockedAnnotationDecorator.cs (1)
31this.Child.Arrange(new Rect(finalSize));
System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (1)
917this.content.Arrange(new Rect(this.content.DesiredSize));
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\AutoConnectAdorner.cs (5)
49this.adornedElementRect = new Rect(new Point(0, 0), size); 52new Rect(-HitTestHeight, (size.Height / 2) - (HitTestWidth / 2), HitTestHeight, HitTestWidth), 53new Rect(size.Width, (size.Height / 2) - (HitTestWidth / 2), HitTestHeight, HitTestWidth), 54new Rect((size.Width / 2) - (HitTestWidth / 2), -HitTestHeight, HitTestWidth, HitTestHeight), 55new Rect((size.Width / 2) - (HitTestWidth / 2), size.Height, HitTestWidth, HitTestHeight)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\AutoConnectHelper.cs (7)
56Rect rect = new Rect(new Point(location.X - HitRegionOffset, location.Y - HitRegionOffset), new Size(size.Width + (HitRegionOffset * 2), size.Height + (HitRegionOffset * 2))); 91rects.Add(new Rect(new Point(targetLocation.X - HitRegionOffset, targetLocation.Y + ((targetSize.Height - DropTargetWidth) / 2)), new Size(HitRegionOffset, DropTargetWidth))); 92rects.Add(new Rect(new Point(targetLocation.X + targetSize.Width, targetLocation.Y + ((targetSize.Height - DropTargetWidth) / 2)), new Size(HitRegionOffset, DropTargetWidth))); 93rects.Add(new Rect(new Point(targetLocation.X + ((targetSize.Width - DropTargetWidth) / 2), targetLocation.Y - HitRegionOffset), new Size(DropTargetWidth, HitRegionOffset))); 94rects.Add(new Rect(new Point(targetLocation.X + ((targetSize.Width - DropTargetWidth) / 2), targetLocation.Y + targetSize.Height), new Size(DropTargetWidth, HitRegionOffset))); 280Rect shapeRect = new Rect(shapeLocation, shapeSize); 294Rect panelRect = new Rect(0, 0, this.panel.Width, this.panel.Height);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\AutoSplitAdorner.cs (1)
23this.adornedElementRect = new Rect(new Point(0, 0), size);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectionPointsAdorner.cs (2)
64new Rect(actualLocation + connPoint.HitTestOffset, connPoint.HitTestSize)); 66new Rect(actualLocation + connPoint.DrawingOffset, connPoint.DrawingSize));
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorRouter.cs (3)
133Rect rect = new Rect(Point.Add(panel.TranslatePoint(FreeFormPanel.GetLocation(child), outmostPanel), new Vector(margin.Left, margin.Top)), childSize); 135Rect shrunk = new Rect(rect.X + delta, rect.Y + delta, rect.Width - delta * 2, rect.Height - delta * 2); 210Rect shrunk = new Rect(rect.X + delta, rect.Y + delta, rect.Width - delta * 2, rect.Height - delta * 2);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\FreeFormPanel.cs (3)
314if (new Rect(panel.TranslatePoint(connPoint.Location, outmost) + connPoint.HitTestOffset, connPoint.HitTestSize).Contains(hitPoint)) 334((UIElement)Children[i]).Arrange(new Rect(pt, size)); 339((UIElement)Children[i]).Arrange(new Rect(pt, size));
System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (1)
717rectToBringIntoView = new Rect(0, 0, width, height);
System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxItemWrapper.cs (1)
267context.DrawRectangle(((DrawingBrush)resource), null, new Rect(0, 0, defaultPixelWidth, defaultPixelHeight));
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (1)
1178background.Arrange(new Rect(0, 0, imageWidth, imageHeight));
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionSurface.cs (2)
64Rect actualPanelRect = new Rect(0, 0, 0, 0); 381child.Arrange(new Rect(pos, child.DesiredSize));
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\RubberBandSelector.cs (4)
203Rect dragHandleRect = new Rect(topLeft, bottomRight); 253Rect rect = new Rect(start, end); 268Rect rubberBandRect = new Rect(this.StartPoint, this.EndPoint); 274Rect rect = new Rect(location.X, location.Y, view.ActualWidth, view.ActualHeight);
System.Activities.Presentation\System\Activities\Presentation\View\SearchToolTipAdorner.cs (1)
60Rect tooltipRect = new Rect(new Point(0, Y), tooltip.DesiredSize);
System.Activities.Presentation\System\Activities\Presentation\View\VirtualizedContainerService.cs (6)
53this.tree.Bounds = new Rect(0, 0, int.MaxValue, int.MaxValue); 162var designers = this.tree.GetNodesInside(new Rect(0, 0, double.MaxValue, double.MaxValue)); 195Rect viewerBounds = new Rect(parentView.HorizontalOffset, parentView.VerticalOffset, parentView.ViewportWidth, parentView.ViewportHeight); 328this.oldBounds = new Rect(0, 0, 0, 0); 398Rect bounds = new Rect(currentPoint, new Size(this.ActualWidth, this.ActualHeight)); 405bounds = new Rect(currentPoint, new Size(this.ActualWidth, this.ActualHeight));
System.Activities.Presentation\System\Activities\Presentation\WorkflowDesignerIcons.cs (1)
222icon.Drawing = new ImageDrawing(imageSource, new Rect(new Size(16, 16)));
System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (1)
800Rect dragHandleRect = new Rect(dragHandleLocation, new Size(this.DragHandle.ActualWidth, this.DragHandle.ActualHeight));
UIAutomationClient (4)
MS\Internal\Automation\BoundingRectTracker.cs (1)
122new Rect (rc32.left, rc32.top, rc32.right - rc32.left, rc32.bottom - rc32.top));
MS\Internal\Automation\HwndProxyElementProvider.cs (1)
258return new Rect(rcW32.left, rcW32.top, rcW32.right - rcW32.left, rcW32.bottom - rcW32.top);
MS\Internal\Automation\Schema.cs (1)
166return new Rect(left, top, width, height);
MS\Internal\Automation\UiaCoreAPI.cs (1)
1045rects[i] = new Rect(x, y, width, height);
UIAutomationClientsideProviders (21)
MS\Internal\AutomationProxies\Misc.cs (4)
1265return new Rect(left, ti.rcTitleBar.top, right - left, ti.rcTitleBar.bottom - ti.rcTitleBar.top); 2044rects[i] = new Rect(leftEdge, tiDL.rcTitleBar.top, buttonWidth, buttonHeight); 2060rects[i] = new Rect(leftEdge, tiDL.rcTitleBar.top, buttonWidth, buttonHeight); 2099rects[i] = new Rect(ti.rgrect[i].left, ti.rgrect[i].top, ti.rgrect[i].right - ti.rgrect[i].left, ti.rgrect[i].bottom - ti.rgrect[i].top);
MS\Internal\AutomationProxies\WindowsEditBox.cs (1)
632return new Rect(rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top);
MS\Internal\AutomationProxies\WindowsEditBoxRange.cs (2)
292Rect rect = new Rect(startPoint.X, startPoint.Y, endPoint.X - startPoint.X, clippingRectangle.Height); 735Rect rect = new Rect(startPoint.X, startPoint.Y, endPoint.X - startPoint.X, height);
MS\Internal\AutomationProxies\WindowsGrip.cs (2)
71return new Rect(client.left - sizeGrip.cx, client.bottom, sizeGrip.cx, sizeGrip.cy); 75return new Rect(client.right, client.bottom, sizeGrip.cx, sizeGrip.cy);
MS\Internal\AutomationProxies\WindowsMenu.cs (2)
841return new Rect(leftEdge, mbi.rcBar.top, buttonWidth, buttonHeight); 1289return new Rect(leftEdge, mbi.rcBar.top, buttonWidth, buttonHeight);
MS\Internal\AutomationProxies\WindowsRebar.cs (1)
431return new Rect (rectW32.left, rectW32.top, rectW32.bottom - rectW32.top, rectW32.right - rectW32.left);
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (2)
195Rect clientRect = new Rect(w32rect.left, w32rect.top, w32rect.right - w32rect.left, w32rect.bottom - w32rect.top); 1390Rect rect = new Rect(clientRect.Location, clientRect.Size);
MS\Internal\AutomationProxies\WindowsSlider.cs (6)
514return new Rect (rcChannel.left, rcChannel.top, rcThumb.left - rcChannel.left, rcChannel.bottom - rcChannel.top); 517return new Rect (rcThumb.left, rcThumb.top, rcThumb.right - rcThumb.left, rcThumb.bottom - rcThumb.top); 520return new Rect (rcThumb.right, rcChannel.top, rcChannel.right - rcThumb.right, rcChannel.bottom - rcChannel.top); 531return new Rect (rcChannel.left, rcChannel.top, dx, rcThumb.top - rcChannel.top); 534return new Rect (rcThumb.left, rcThumb.top, rcThumb.right - rcThumb.left, rcThumb.bottom - rcThumb.top); 537return new Rect (rcChannel.left, rcThumb.bottom, dx, dy);
MS\Win32\NativeMethods.cs (1)
1238return new Rect(rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top);
WindowsBase (4)
Base\System\Windows\Generated\Rect.cs (1)
194value = new Rect(
Base\System\Windows\Rect.cs (3)
579Union(new Rect(point, point)); 587rect.Union(new Rect(point, point)); 792Rect rect = new Rect();
2263 references to Rect
PresentationCore (700)
Core\CSharp\MS\Internal\AnimatedTypeHelpers.cs (18)
113internal static Rect InterpolateRect(Rect from, Rect to, Double progress) 115Rect temp = new Rect(); 234internal static Rect AddRect(Rect value1, Rect value2) 338internal static Rect SubtractRect(Rect value1, Rect value2) 453internal static Double GetSegmentLengthRect(Rect from, Rect to) 562internal static Rect ScaleRect(Rect value, Double factor) 564Rect temp = new Rect(); 691internal static bool IsValidAnimationValueRect(Rect value) 827internal static Rect GetZeroValueRect(Rect baseValue)
Core\CSharp\MS\Internal\Automation\ElementProxy.cs (2)
183public Rect BoundingRectangle 192return (Rect)ElementUtil.Invoke(peer, new DispatcherOperationCallback(InContextBoundingRectangle), null);
Core\CSharp\MS\Internal\Automation\ElementUtil.cs (5)
132internal static Rect GetLocalRect( UIElement element ) 140Rect rect = new Rect(0, 0, width, height); 147internal static Rect GetScreenRect( IntPtr hwnd, UIElement el ) 149Rect rc = GetLocalRect( el ); 159return Rect.Empty;
Core\CSharp\MS\Internal\Automation\InteropAutomationProvider.cs (2)
110Rect IRawElementProviderFragment.BoundingRectangle 112get { return Rect.Empty; }
Core\CSharp\MS\Internal\Ink\ErasingStroke.cs (10)
72_bounds = Rect.Empty; 91internal Rect Bounds { get { return _bounds; } } 107Rect inkSegmentBounds = Rect.Empty; 111Rect inkNodeBounds = inkStrokeNode.GetBounds(); 150Rect inkSegmentBounds = Rect.Empty; 154Rect inkNodeBounds = inkStrokeNode.GetBounds(); 331private Rect _bounds = Rect.Empty;
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (2)
1768Rect inkSpaceRectangle = _inkSpaceRectangle; 2778private Rect _inkSpaceRectangle = new Rect();
Core\CSharp\MS\Internal\Ink\Lasso.cs (13)
41internal Rect Bounds 219Rect currentStrokeSegmentBounds = Rect.Empty; 229Rect nodeBounds = strokeNode.GetBounds(); 248Rect lassoSegmentBounds = new Rect(lastPoint, point); 540private Rect _bounds = Rect.Empty; 741Rect bounds = Rect.Empty; 775Rect newRect = new Rect(points[count - 1], point); 785Rect currRect = new Rect(points[i], points[i+1]); 906private Rect _prevBounds = Rect.Empty;
Core\CSharp\MS\Internal\Ink\Quad.cs (3)
89internal Rect Bounds 91get { return IsEmpty ? Rect.Empty : Rect.Union(new Rect(_A, _B), new Rect(_C, _D)); }
Core\CSharp\MS\Internal\Ink\StrokeNode.cs (20)
100internal Rect GetBounds() 102return IsValid ? _operations.GetNodeBounds(_thisNode) : Rect.Empty; 109internal Rect GetBoundsConnected() 111return IsValid ? Rect.Union(_operations.GetNodeBounds(_thisNode), ConnectingQuad.Bounds) : Rect.Empty; 204Rect startNodeBounds = _operations.GetNodeBounds(_lastNode); 228Rect endNodeRect = _operations.GetNodeBounds(_thisNode); 329Rect bounds = GetBounds(); 442Rect node1Bounds = _operations.GetNodeBounds(previous._lastNode); 443Rect node2Bounds = _operations.GetNodeBounds(_lastNode); 444Rect node3Bounds = _operations.GetNodeBounds(_thisNode); 481Rect union = Rect.Union(node1Bounds, node2Bounds); 555Rect union = Rect.Union(node1Bounds, node2Bounds); 663Rect node3Rect = _operations.GetNodeBounds(_thisNode); 687Rect node12 = Rect.Union(_operations.GetNodeBounds(previous._lastNode), _operations.GetNodeBounds(_lastNode)); 732Rect node12 = Rect.Union(_operations.GetNodeBounds(previous._lastNode), _operations.GetNodeBounds(_lastNode));
Core\CSharp\MS\Internal\Ink\StrokeNodeOperations.cs (4)
67internal Rect GetNodeBounds(StrokeNodeData node) 82Rect boundingBox = _shapeBounds; 1343private Rect _shapeBounds = Rect.Empty;
Core\CSharp\MS\Internal\Ink\StrokeRenderer.cs (16)
45out Rect bounds) 55bounds = Rect.Empty; 74Rect lastRect = new Rect(0, 0, 0, 0); 86Rect strokeNodeBounds = strokeNode.GetBounds(); 218out Rect bounds) 238Rect empty = Rect.Empty; 252Rect prevPrevStrokeNodeBounds = empty; 253Rect prevStrokeNodeBounds = empty; 254Rect strokeNodeBounds = empty; 325prevPrevStrokeNodeBounds = Rect.Union(prevStrokeNodeBounds, prevPrevStrokeNodeBounds); 430prevStrokeNodeBounds = Rect.Union(strokeNodeBounds, prevStrokeNodeBounds); 756Rect strokeNodePreviousBounds, 758Rect strokeNodeCurrentBounds, 843private static RectCompareResult FuzzyContains(Rect rect1, Rect rect2, double percentIntersect)
Core\CSharp\MS\Internal\Ink\StylusShape.cs (3)
186internal Rect BoundingBox 190Rect bbox; 194bbox = Rect.Empty;
Core\CSharp\MS\Internal\Media3D\GeneralTransform2Dto3Dto2D.cs (12)
299Rect bbox = Rect.Empty; 321Rect triBBox = Rect.Empty; 359Rect triBBox = Rect.Empty; 1175public override Rect TransformBounds(Rect rect) 1193Rect result = Rect.Empty; 1332private Rect _visualBounds; 1333private Rect _visualBrushBounds;
Core\CSharp\MS\Internal\Media3D\M3DUtil.cs (3)
387internal static Matrix3D GetWorldToViewportTransform3D(Camera camera, Rect viewport) 417internal static Matrix3D GetHomogeneousToViewportTransform3D(Rect viewport) 492internal static Matrix GetHomogeneousToViewportTransform(Rect viewport)
Core\CSharp\MS\Internal\TextFormatting\FormattedTextSymbols.cs (5)
233public Rect Draw( 238Rect inkBoundingBox = Rect.Empty; 245Rect boundingBox; 269boundingBox = Rect.Empty;
Core\CSharp\MS\Internal\TextFormatting\FullTextLine.cs (4)
626Rect boundingBox = Rect.Empty; 703private Rect DrawCollapsingSymbol( 2686private void BuildOverhang(Point origin, Rect boundingBox)
Core\CSharp\MS\Internal\TextFormatting\LineServicesCallbacks.cs (5)
1287private Rect DrawTextDecoration( 2662Rect objectBounds = textObject.ComputeBoundingBox( 3761private Rect _boundingBox; 3768_boundingBox = Rect.Empty; 3774internal Rect BoundingBox
Core\CSharp\MS\Internal\TextFormatting\LineServicesRun.cs (4)
257internal Rect DrawGlyphRun( 265Rect inkBoundingBox = glyphRun.ComputeInkBoundingBox(); 428internal static Rect RectUV( 442Rect rect = new Rect(
Core\CSharp\MS\Internal\TextFormatting\SimpleTextLine.cs (9)
65private Rect _boundingBox; // line bounding rectangle 596_boundingBox = Rect.Empty; 609Rect boundingBox = Rect.Empty; 1760internal Rect Draw( 1769return Rect.Empty; // nothing to draw 1785Rect inkBoundingBox; 1831inkBoundingBox = Rect.Empty; 1877Rect underlineRect = new Rect(
Core\CSharp\System\Windows\Automation\Peers\AutomationPeer.cs (6)
639abstract protected Rect GetBoundingRectangleCore(); 748virtual internal Rect GetVisibleBoundingRectCore() 755public Rect GetBoundingRectangle() 1690Rect bounds = GetVisibleBoundingRect(); 1703internal Rect GetVisibleBoundingRect() 2434private Rect _boundingRectangle;
Core\CSharp\System\Windows\Automation\Peers\ContentElementAutomationPeer.cs (3)
129override protected Rect GetBoundingRectangleCore() 131return Rect.Empty; 307internal override Rect GetVisibleBoundingRectCore()
Core\CSharp\System\Windows\Automation\Peers\GenericRootAutomationPeer.cs (2)
84override protected Rect GetBoundingRectangleCore() 86Rect bounds = new Rect(0,0,0,0);
Core\CSharp\System\Windows\Automation\Peers\UIElement3DAutomationPeer.cs (12)
173override protected Rect GetBoundingRectangleCore() 175Rect rectScreen; 179rectScreen = Rect.Empty; 192private bool ComputeBoundingRectangle(out Rect rect) 194rect = Rect.Empty; 208Rect rectElement = _owner.Visual2DContentBounds; 210Rect rectRoot = PointUtil.ElementToRoot(rectElement, VisualTreeHelper.GetContainingVisual2D(_owner), presentationSource); 211Rect rectClient = PointUtil.RootToClient(rectRoot, presentationSource); 239Rect boundingRect = UIElementAutomationPeer.CalculateVisibleBoundingRect(containingUIElement); 241isOffscreen = (DoubleUtil.AreClose(boundingRect, Rect.Empty) || 400Rect rectScreen; 420internal override Rect GetVisibleBoundingRectCore()
Core\CSharp\System\Windows\Automation\Peers\UIElementAutomationPeer.cs (25)
202override protected Rect GetBoundingRectangleCore() 208return Rect.Empty; 214return Rect.Empty; 216Rect rectElement = new Rect(new Point(0, 0), _owner.RenderSize); 217Rect rectRoot = PointUtil.ElementToRoot(rectElement, _owner, presentationSource); 218Rect rectClient = PointUtil.RootToClient(rectRoot, presentationSource); 219Rect rectScreen = PointUtil.ClientToScreen(rectClient, hwndSource); 231internal override Rect GetVisibleBoundingRectCore() 237return Rect.Empty; 243return Rect.Empty; 245Rect rectElement = CalculateVisibleBoundingRect(_owner); 246Rect rectRoot = PointUtil.ElementToRoot(rectElement, _owner, presentationSource); 247Rect rectClient = PointUtil.RootToClient(rectRoot, presentationSource); 248Rect rectScreen = PointUtil.ClientToScreen(rectClient, hwndSource); 272Rect boundingRect = CalculateVisibleBoundingRect(_owner); 274isOffscreen = (DoubleUtil.AreClose(boundingRect, Rect.Empty) || 291internal static Rect CalculateVisibleBoundingRect(UIElement owner) 293Rect boundingRect = new Rect(owner.RenderSize); 300!DoubleUtil.AreClose(boundingRect, Rect.Empty) && 315Rect clipBounds = clipGeometry.Bounds; 322boundingRect = Rect.Empty; 530Rect rectElement = new Rect(new Point(0, 0), _owner.RenderSize); 531Rect rectRoot = PointUtil.ElementToRoot(rectElement, _owner, presentationSource); 532Rect rectClient = PointUtil.RootToClient(rectRoot, presentationSource); 533Rect rectScreen = PointUtil.ClientToScreen(rectClient, hwndSource);
Core\CSharp\System\Windows\Documents\DocumentPage.cs (16)
41_bleedBox = Rect.Empty; 42_contentBox = Rect.Empty; 52public DocumentPage(Visual visual, Size pageSize, Rect bleedBox, Rect contentBox) 77_bleedBox = Rect.Empty; 78_contentBox = Rect.Empty; 118public virtual Rect BleedBox 122if (_bleedBox == Rect.Empty) 133public virtual Rect ContentBox 137if (_contentBox == Rect.Empty) 210protected void SetBleedBox(Rect bleedBox) 219protected void SetContentBox(Rect contentBox) 247private Rect _bleedBox; 252private Rect _contentBox; 266public MissingDocumentPage() : base(null, Size.Empty, Rect.Empty, Rect.Empty) { }
Core\CSharp\System\Windows\IContentHost.cs (1)
40ReadOnlyCollection<Rect> GetRectangles(ContentElement child);
Core\CSharp\System\Windows\Ink\IncrementalHitTester.cs (3)
537Rect erasingBounds = _erasingStroke.Bounds; 751internal Rect StrokeBounds { get { return _bounds; } } 945private Rect _bounds;
Core\CSharp\System\Windows\Ink\Stroke.cs (6)
183_cachedBounds = Rect.Empty; 252Rect shapeBoundingBox = stylusShape.BoundingBox; 508_cachedBounds = Rect.Empty; 543_cachedBounds = Rect.Empty; 1080_cachedBounds = Rect.Empty; 1102_cachedBounds = Rect.Empty;
Core\CSharp\System\Windows\Ink\Stroke2.cs (9)
39public virtual Rect GetBounds() 121public StrokeCollection GetClipResult(Rect bounds) 156public StrokeCollection GetEraseResult(Rect bounds) 237public bool HitTest(Rect bounds, int percentageWithinBounds) 367Rect erasingBounds = erasingStroke.Bounds; 515Rect bounds; 610internal void SetBounds(Rect newBounds) 760private Rect _cachedBounds = Rect.Empty;
Core\CSharp\System\Windows\Ink\StrokeCollection2.cs (7)
36public Rect GetBounds() 38Rect bounds = Rect.Empty; 168public StrokeCollection HitTest(Rect bounds, int percentageWithinBounds) 224Rect erasingBounds = erasingStroke.Bounds; 295public void Clip(Rect bounds) 341public void Erase(Rect bounds)
Core\CSharp\System\Windows\Input\TouchPoint.cs (2)
36public TouchPoint(TouchDevice device, Point position, Rect bounds, TouchAction action) 73public Rect Bounds
Core\CSharp\System\Windows\Interop\HwndTarget.cs (5)
854Rect clientRect = new Rect( 968var suggestedRect = 1010var clientRect = 1747Rect clientRect = new Rect( 1894var clipBounds = new Rect(
Core\CSharp\System\Windows\LayoutManager.cs (3)
387Rect finalRect = getProperArrangeRect(currentElement); 474private Rect getProperArrangeRect(UIElement element) 476Rect arrangeRect = element.PreviousArrangeRect;
Core\CSharp\System\Windows\Media\Animation\AnimationStorage.cs (1)
1149else if (type == typeof(Rect))
Core\CSharp\System\Windows\Media\Animation\Generated\DiscreteKeyFrames.cs (4)
1192public DiscreteRectKeyFrame(Rect value) 1200public DiscreteRectKeyFrame(Rect value, KeyTime keyTime) 1228protected override Rect InterpolateValueCore(Rect baseValue, double keyFrameProgress)
Core\CSharp\System\Windows\Media\Animation\Generated\EasingKeyFrames.cs (5)
1426public EasingRectKeyFrame(Rect value) 1435public EasingRectKeyFrame(Rect value, KeyTime keyTime) 1445public EasingRectKeyFrame(Rect value, KeyTime keyTime, IEasingFunction easingFunction) 1474protected override Rect InterpolateValueCore(Rect baseValue, double keyFrameProgress)
Core\CSharp\System\Windows\Media\Animation\Generated\KeyFrames.cs (10)
2208protected RectKeyFrame(Rect value) 2217protected RectKeyFrame(Rect value, KeyTime keyTime) 2260typeof(Rect), 2275Value = (Rect)value; 2282public Rect Value 2286return (Rect)GetValue(ValueProperty); 2303public Rect InterpolateValue( 2304Rect baseValue, 2324protected abstract Rect InterpolateValueCore( 2325Rect baseValue,
Core\CSharp\System\Windows\Media\Animation\Generated\LinearKeyFrames.cs (4)
898public LinearRectKeyFrame(Rect value) 906public LinearRectKeyFrame(Rect value, KeyTime keyTime) 932protected override Rect InterpolateValueCore(Rect baseValue, double keyFrameProgress)
Core\CSharp\System\Windows\Media\Animation\Generated\RectAnimation.cs (32)
45private Rect[] _keyValues; 60Type typeofProp = typeof(Rect?); 69new PropertyMetadata((Rect?)null, propCallback), 76new PropertyMetadata((Rect?)null, propCallback), 83new PropertyMetadata((Rect?)null, propCallback), 107public RectAnimation(Rect toValue, Duration duration) 119public RectAnimation(Rect toValue, Duration duration, FillBehavior fillBehavior) 132public RectAnimation(Rect fromValue, Rect toValue, Duration duration) 145public RectAnimation(Rect fromValue, Rect toValue, Duration duration, FillBehavior fillBehavior) 218protected override Rect GetCurrentValueCore(Rect defaultOriginValue, Rect defaultDestinationValue, AnimationClock animationClock) 235Rect from = new Rect(); 236Rect to = new Rect(); 237Rect accumulated = new Rect(); 238Rect foundation = new Rect(); 352Rect accumulator = AnimatedTypeHelpers.SubtractRect(to, from); 377_keyValues = new Rect[2]; 384_keyValues = new Rect[2]; 391_keyValues = new Rect[1]; 398_keyValues = new Rect[1]; 404_keyValues = new Rect[1]; 425Rect? typedValue = (Rect?)value; 445public Rect? From 449return (Rect?)GetValue(FromProperty); 465public Rect? To 469return (Rect?)GetValue(ToProperty); 485public Rect? By 489return (Rect?)GetValue(ByProperty);
Core\CSharp\System\Windows\Media\Animation\Generated\RectAnimationBase.cs (9)
103return GetCurrentValue((Rect)defaultOriginValue, (Rect)defaultDestinationValue, animationClock); 115return typeof(Rect); 152public Rect GetCurrentValue(Rect defaultOriginValue, Rect defaultDestinationValue, AnimationClock animationClock) 215protected abstract Rect GetCurrentValueCore(Rect defaultOriginValue, Rect defaultDestinationValue, AnimationClock animationClock);
Core\CSharp\System\Windows\Media\Animation\Generated\RectAnimationClockResource.cs (4)
47Rect baseValue, 59public Rect BaseValue 70public Rect CurrentValue 144private Rect _baseValue;
Core\CSharp\System\Windows\Media\Animation\Generated\RectAnimationUsingKeyFrames.cs (8)
331protected sealed override Rect GetCurrentValueCore( 332Rect defaultOriginValue, 333Rect defaultDestinationValue, 359Rect currentIterationValue; 395Rect fromValue; 643private Rect GetResolvedKeyFrameValue(Int32 resolvedKeyFrameIndex) 954Rect prevKeyValue = _keyFrames[index - 1].Value; 958Rect currentKeyValue = _keyFrames[index].Value;
Core\CSharp\System\Windows\Media\Animation\Generated\RectIndependentAnimationStorage.cs (2)
61Rect tempValue = (Rect)dobj.GetValue(_dependencyProperty);
Core\CSharp\System\Windows\Media\Animation\Generated\SplineKeyFrames.cs (5)
1514public SplineRectKeyFrame(Rect value) 1523public SplineRectKeyFrame(Rect value, KeyTime keyTime) 1533public SplineRectKeyFrame(Rect value, KeyTime keyTime, KeySpline keySpline) 1567protected override Rect InterpolateValueCore(Rect baseValue, double keyFrameProgress)
Core\CSharp\System\Windows\Media\Animation\KeyTimeType.cs (1)
29/// such as <see cref="System.Windows.Rect">Rect</see> a length value
Core\CSharp\System\Windows\Media\BoundsDrawingContextWalker.cs (20)
60_bounds = Rect.Empty; 64public Rect Bounds 91Rect geometryBounds = LineGeometry.GetBoundsHelper( 122Rect rectangle) 128Rect geometryBounds = RectangleGeometry.GetBoundsHelper( 168Rect rectangle, 176Rect geometryBounds = RectangleGeometry.GetBoundsHelper( 226Rect geometryBounds = EllipseGeometry.GetBoundsHelper( 264Rect geometryBounds = geometry.GetBoundsInternal(pen, _transform); 283Rect rectangle) 304Rect rectangle) 322Rect rectangle = glyphRun.ComputeInkBoundingBox(); 360_clipStack = new Stack<Rect>(2); 578private void AddBounds(ref Rect bounds) 602private void AddTransformedBounds(ref Rect bounds) 640_clip = Rect.Empty; 641_bounds = Rect.Empty; 652private Rect _bounds; 656private Rect _clip; 674private Stack<Rect> _clipStack;
Core\CSharp\System\Windows\Media\CombinedGeometry.cs (3)
123public override Rect Bounds 139internal override Rect GetBoundsInternal(Pen pen, Matrix matrix, double tolerance, ToleranceType type) 143return Rect.Empty;
Core\CSharp\System\Windows\Media\Composition.cs (1)
255Rect *pBounds);
Core\CSharp\System\Windows\Media\CompositionTarget.cs (3)
258_worldClipBounds = (Rect)argArray[2]; 417internal Rect WorldClipBounds 608private Rect _worldClipBounds = new Rect(
Core\CSharp\System\Windows\Media\ContainerVisual.cs (2)
170public Rect ContentBounds 214public Rect DescendantBounds
Core\CSharp\System\Windows\Media\Drawing.cs (3)
61public Rect Bounds 89Rect IDrawingContent.GetContentBounds(BoundsDrawingContextWalker ctx) 156internal Rect GetBounds()
Core\CSharp\System\Windows\Media\DrawingBrush.cs (1)
58protected override void GetContentBounds(out Rect contentBounds)
Core\CSharp\System\Windows\Media\DrawingDrawingContext.cs (8)
164Rect rectangle) 193Rect rectangle, 270Rect rectangle, 311Rect rectangle, 567Rect rectangle) 592Rect rectangle, 686Rect rectangle) 711Rect rectangle,
Core\CSharp\System\Windows\Media\DrawingVisual.cs (4)
185internal override Rect GetContentBounds() 189Rect resultRect = Rect.Empty; 200return Rect.Empty;
Core\CSharp\System\Windows\Media\Effects\BlurEffect.cs (2)
37internal override Rect GetRenderBounds(Rect contentBounds)
Core\CSharp\System\Windows\Media\Effects\DropShadowEffect.cs (2)
37internal override Rect GetRenderBounds(Rect contentBounds)
Core\CSharp\System\Windows\Media\Effects\Effect.cs (20)
80internal abstract Rect GetRenderBounds(Rect contentBounds); 108Rect worldBounds) 137private static Point UnitToWorldUnsafe(Point unitPoint, Rect worldBounds) 144internal static Point? UnitToWorld(Point unitPoint, Rect worldBounds) 149internal static Point? WorldToUnit(Point worldPoint, Rect worldBounds) 161internal static Rect UnitToWorld(Rect unitRect, Rect worldBounds) 164? Rect.Empty 169internal static Rect? WorldToUnit(Rect worldRect, Rect worldBounds) 187public UnitSpaceCoercingGeneralTransform(Rect worldBounds, GeneralTransform innerTransform) 209public override Rect TransformBounds(Rect rect) 221return Rect.Empty; 284private readonly Rect _worldBounds; 293private Rect _mruWorldBounds = Rect.Empty;
Core\CSharp\System\Windows\Media\Effects\Generated\BitmapEffectInput.cs (6)
132public Rect AreaToApplyEffect 136return (Rect) GetValue(AreaToApplyEffectProperty); 236internal static Rect s_AreaToApplyEffect = Rect.Empty; 283typeof(Rect), 285Rect.Empty,
Core\CSharp\System\Windows\Media\Effects\ShaderEffect.cs (2)
31internal override Rect GetRenderBounds(Rect contentBounds)
Core\CSharp\System\Windows\Media\EllipseGeometry.cs (6)
47public EllipseGeometry(Rect rect) 89public override Rect Bounds 95Rect boundsRect; 144internal override Rect GetBoundsInternal(Pen pen, Matrix matrix, double tolerance, ToleranceType type) 166internal static Rect GetBoundsHelper(Pen pen, Matrix worldMatrix, Point center, double radiusX, double radiusY, 169Rect rect;
Core\CSharp\System\Windows\Media\FormattedText.cs (2)
1682Rect rect = bound.Rectangle; 2002Rect bound = lineGeometry.Bounds;
Core\CSharp\System\Windows\Media\GeneralTransform.cs (2)
74public abstract Rect TransformBounds(Rect rect);
Core\CSharp\System\Windows\Media\GeneralTransformGroup.cs (3)
83public override Rect TransformBounds(Rect rect) 90Rect result = rect;
Core\CSharp\System\Windows\Media\Generated\DrawingContext.cs (8)
87Rect rectangle); 107Rect rectangle, 135Rect rectangle, 167Rect rectangle, 274Rect rectangle); 290Rect rectangle, 324Rect rectangle); 338Rect rectangle,
Core\CSharp\System\Windows\Media\Generated\DrawingContextDrawingContextWalker.cs (8)
103Rect rectangle) 130Rect rectangle, 165Rect rectangle, 206Rect rectangle, 351Rect rectangle) 373Rect rectangle, 424Rect rectangle) 444Rect rectangle,
Core\CSharp\System\Windows\Media\Generated\DrawingContextWalker.cs (8)
94Rect rectangle) 117Rect rectangle, 148Rect rectangle, 183Rect rectangle, 302Rect rectangle) 321Rect rectangle, 367Rect rectangle) 384Rect rectangle,
Core\CSharp\System\Windows\Media\Generated\ImageDrawing.cs (6)
167public Rect Rect 171return (Rect) GetValue(RectProperty); 350internal static Rect s_Rect = Rect.Empty; 386typeof(Rect), 388Rect.Empty,
Core\CSharp\System\Windows\Media\Generated\RectangleGeometry.cs (6)
148public Rect Rect 152return (Rect) GetValue(RectProperty); 372internal static Rect s_Rect = Rect.Empty; 417typeof(Rect), 419Rect.Empty,
Core\CSharp\System\Windows\Media\Generated\RenderData.cs (16)
89Rect rectangle 97[FieldOffset(0)] public Rect rectangle; 108Rect rectangle, 119[FieldOffset(0)] public Rect rectangle; 132Rect rectangle, 144[FieldOffset(0)] public Rect rectangle; 157Rect rectangle, 176[FieldOffset(0)] public Rect rectangle; 274Rect rectangle 282[FieldOffset(0)] public Rect rectangle; 292Rect rectangle, 301[FieldOffset(0)] public Rect rectangle; 342Rect rectangle 350[FieldOffset(0)] public Rect rectangle; 360Rect rectangle, 369[FieldOffset(0)] public Rect rectangle;
Core\CSharp\System\Windows\Media\Generated\RenderDataDrawingContext.cs (9)
182Rect rectangle) 244Rect rectangle, 317Rect rectangle, 393Rect rectangle, 692Rect rectangle) 749Rect rectangle, 908Rect rectangle) 963Rect rectangle, 1576Rect baseValue,
Core\CSharp\System\Windows\Media\Generated\TileBrush.cs (8)
204public Rect Viewport 208return (Rect) GetValue(ViewportProperty); 219public Rect Viewbox 223return (Rect) GetValue(ViewboxProperty); 396internal static Rect s_Viewport = new Rect(0,0,1,1); 397internal static Rect s_Viewbox = new Rect(0,0,1,1); 462typeof(Rect), 471typeof(Rect),
Core\CSharp\System\Windows\Media\Generated\VideoDrawing.cs (6)
148public Rect Rect 152return (Rect) GetValue(RectProperty); 331internal static Rect s_Rect = Rect.Empty; 367typeof(Rect), 369Rect.Empty,
Core\CSharp\System\Windows\Media\Geometry.cs (9)
64public virtual Rect Bounds 98public virtual Rect GetRenderBounds(Pen pen, double tolerance, ToleranceType type) 110public Rect GetRenderBounds(Pen pen) 137internal virtual Rect GetBoundsInternal(Pen pen, Matrix matrix, double tolerance, ToleranceType type) 141return Rect.Empty; 159internal Rect GetBoundsInternal(Pen pen, Matrix matrix) 169internal unsafe static Rect GetBoundsHelper( 202Rect bounds; 225bounds = Rect.Empty;
Core\CSharp\System\Windows\Media\GeometryHitTestParameters.cs (5)
28private Rect _origBounds; 29private Rect _bounds; 123internal Rect Bounds 146_bounds = Rect.Transform(_origBounds, composedMatrix); 159_bounds = Rect.Transform(_origBounds, matrix);
Core\CSharp\System\Windows\Media\GlyphRun.cs (10)
1266public Rect ComputeInkBoundingBox() 1274return (Rect)_inkBoundingBox; 1296Rect bounds; 1397bounds = Rect.Empty; 1476private Rect ComputeInkBoundingBoxLtoR(MS.Internal.Text.TextInterface.GlyphMetrics[] glyphMetrics) 1573return Rect.Empty; 1645public Rect ComputeAlignmentBox() 1695Rect backgroundRect; 1906Rect adjustedInkBoundingBox = ComputeInkBoundingBox(); 1920command.ManagedBounds = (Rect)adjustedInkBoundingBox;
Core\CSharp\System\Windows\Media\HitTestDrawingContextWalker.cs (4)
87Rect rectangle) 118Rect rectangle, 175Rect rectangle) 203Rect rectangle)
Core\CSharp\System\Windows\Media\HitTestWithGeometryDrawingContextWalker.cs (1)
181Rect rectangle = glyphRun.ComputeInkBoundingBox();
Core\CSharp\System\Windows\Media\HitTestWithPointDrawingContextWalker.cs (1)
121Rect rectangle = glyphRun.ComputeInkBoundingBox();
Core\CSharp\System\Windows\Media\HostVisual.cs (2)
102internal override Rect GetContentBounds() 104return Rect.Empty;
Core\CSharp\System\Windows\Media\IDrawingContent.cs (1)
34Rect GetContentBounds(BoundsDrawingContextWalker ctx);
Core\CSharp\System\Windows\Media\ImageBrush.cs (2)
68protected override void GetContentBounds(out Rect contentBounds) 72contentBounds = Rect.Empty;
Core\CSharp\System\Windows\Media\ImageDrawing.cs (1)
41public ImageDrawing(ImageSource imageSource, Rect rect)
Core\CSharp\System\Windows\Media\Imaging\BitmapVisualManager.cs (2)
66Render(visual, Matrix.Identity, Rect.Empty); 83internal void Render(Visual visual, Matrix worldTransform, Rect windowClip)
Core\CSharp\System\Windows\Media\LineGeometry.cs (4)
69public override Rect Bounds 75Rect rect = new Rect(StartPoint, EndPoint); 92internal override Rect GetBoundsInternal(Pen pen, Matrix worldMatrix, double tolerance, ToleranceType type) 113internal static Rect GetBoundsHelper(Pen pen, Matrix worldMatrix, Point pt1, Point pt2,
Core\CSharp\System\Windows\Media\MatrixTransform.cs (1)
124internal override void TransformRect(ref Rect rect)
Core\CSharp\System\windows\Media\MILUtilities.cs (2)
200internal static Rect ProjectBounds( 217return Rect.Empty;
Core\CSharp\System\Windows\Media\PathGeometry.cs (4)
744public override Rect Bounds 752return Rect.Empty; 778internal static Rect GetPathBounds( 788return Rect.Empty;
Core\CSharp\System\Windows\Media\RectangleGeometry.cs (24)
46public RectangleGeometry(Rect rect) 54public RectangleGeometry(Rect rect, 70Rect rect, 83public override Rect Bounds 89Rect boundsRect; 91Rect currentRect = Rect; 96boundsRect = Rect.Empty; 150Rect rect1 = rectGeometry1.Rect; 151Rect rect2 = rectGeometry2.Rect; 172internal override Rect GetBoundsInternal(Pen pen, Matrix worldMatrix, double tolerance, ToleranceType type) 194internal static Rect GetBoundsHelper(Pen pen, Matrix worldMatrix, Rect rect, double radiusX, double radiusY, 197Rect boundingRect; 204boundingRect = Rect.Empty; 270Rect rect = Rect; 311Rect rect = Rect; 341Rect rect = Rect; 436Rect rect = Rect; 475private Point[] GetPointList(Rect rect, double radiusX, double radiusY) 495private unsafe static void GetPointList(Point * points, uint pointsCount, Rect rect, double radiusX, double radiusY) 537private static byte[] GetTypeList(Rect rect, double radiusX, double radiusY) 553private uint GetPointCount(Rect rect, double radiusX, double radiusY) 569private uint GetSegmentCount(Rect rect, double radiusX, double radiusY) 585private static void GetCounts(Rect rect, double radiusX, double radiusY, out uint pointCount, out uint segmentCount)
Core\CSharp\System\Windows\Media\RenderData.cs (1)
141public Rect GetContentBounds(BoundsDrawingContextWalker ctx)
Core\CSharp\System\Windows\Media\Renderer.cs (2)
46Render(pRenderTarget, channel, visual, width, height, dpiX, dpiY, Matrix.Identity, Rect.Empty); 67Rect windowClip
Core\CSharp\System\Windows\Media\ScaleTransform.cs (1)
96internal override void TransformRect(ref Rect rect)
Core\CSharp\System\Windows\Media\StreamGeometry.cs (2)
192public override Rect Bounds 200return Rect.Empty;
Core\CSharp\System\Windows\Media\TextFormatting\TextBounds.cs (6)
33Rect bounds, 47public Rect Rectangle 73private Rect _bounds; 87Rect bounds, 121public Rect Rectangle 137private Rect _bounds;
Core\CSharp\System\Windows\Media\TextFormatting\TextEmbeddedObject.cs (1)
72public abstract Rect ComputeBoundingBox(
Core\CSharp\System\Windows\Media\TextFormatting\TextFormatterContext.cs (1)
267internal Rect BoundingBox
Core\CSharp\System\Windows\Media\TileBrush.cs (7)
55protected abstract void GetContentBounds(out Rect contentBounds); 76Rect shapeFillBounds, 80Rect contentBounds = Rect.Empty; 97if (contentBounds == Rect.Empty) 114Rect viewport = Viewport; 115Rect viewbox = Viewbox;
Core\CSharp\System\Windows\Media\Transform.cs (3)
79internal virtual void TransformRect(ref Rect rect) 153public override Rect TransformBounds(Rect rect)
Core\CSharp\System\Windows\Media\TranslateTransform.cs (1)
87internal override void TransformRect(ref Rect rect)
Core\CSharp\System\Windows\Media\UnsafeNativeMethodsMilCoreApi.cs (4)
112Rect* shapeFillBounds, 113Rect* contentBounds, 114ref Rect viewport, 115ref Rect viewbox,
Core\CSharp\System\Windows\Media\Visual.cs (37)
370internal virtual Rect GetContentBounds() 372return Rect.Empty; 398internal Rect VisualContentBounds 416internal Rect VisualDescendantBounds 423Rect bboxSubgraph = CalculateSubgraphBoundsInnerSpace(); 457internal Rect CalculateSubgraphBoundsInnerSpace() 466internal Rect CalculateSubgraphRenderBoundsInnerSpace() 483internal virtual Rect CalculateSubgraphBoundsInnerSpace(bool renderBounds) 485Rect bboxSubgraph = Rect.Empty; 498Rect bboxSubgraphChild = child.CalculateSubgraphBoundsOuterSpace(renderBounds); 507Rect contentBounds = GetContentBounds(); 510contentBounds = Rect.Empty; 527internal Rect CalculateSubgraphBoundsOuterSpace() 537internal Rect CalculateSubgraphRenderBoundsOuterSpace() 554private Rect CalculateSubgraphBoundsOuterSpace(bool renderBounds) 556Rect bboxSubgraph = Rect.Empty; 567Rect effectBounds; 576Rect unitBounds = new Rect(0,0,1,1); 577Rect unitTransformedBounds = effect.EffectMapping.TransformBounds(unitBounds); 614Rect? scrollClip = ScrollableAreaClipField.GetValue(this); 641private bool IsEmptyRenderBounds(ref Rect bounds) 1058Rect bboxSubgraph; 1088internal void PrecomputeRecursive(out Rect bboxSubgraph) 1110Rect bboxSubgraphChild; 1147Rect? scrollClip = ScrollableAreaClipField.GetValue(this); 1581Rect? scrollableArea = ScrollableAreaClipField.GetValue(this); 1903internal virtual Rect GetHitTestBounds() 2126Rect? scrollClip = ScrollableAreaClipField.GetValue(child); 2327Rect? scrollClip = ScrollableAreaClipField.GetValue(child); 3436protected internal Rect? VisualScrollableAreaClip 3448Rect? currentValue = ScrollableAreaClipField.GetValue(this); 5389private Rect _bboxSubgraph = Rect.Empty; 5425private static readonly UncommonField<Rect?> ScrollableAreaClipField = new UncommonField<Rect?>(null);
Core\CSharp\System\Windows\Media\VisualBrush.cs (3)
341protected override void GetContentBounds(out Rect contentBounds) 365private Rect _bbox = Rect.Empty;
Core\CSharp\System\Windows\Media\VisualTreeHelper.cs (2)
367public static Rect GetContentBounds(Visual reference) 386public static Rect GetDescendantBounds(Visual reference)
Core\CSharp\System\Windows\Media3D\GeneralTransform2DTo3D.cs (1)
197private Rect _childBounds;
Core\CSharp\System\Windows\Media3D\GeneralTransform3DTo2D.cs (2)
91public Rect TransformBounds(Rect3D rect3D) 99return Rect.Empty;
Core\CSharp\System\Windows\Media3D\MeshGeometry3D.cs (2)
123internal Rect GetTextureCoordinateBounds() 164return Rect.Empty;
Core\CSharp\System\Windows\Media3D\Viewport2DVisual3D.cs (2)
174internal static Point TextureCoordsToVisualCoords(Point uv, Rect descBounds) 257internal static Point VisualCoordsToTextureCoords(Point pt, Rect descBounds)
Core\CSharp\System\Windows\Media3D\Viewport3DVisual.cs (13)
142public Rect ContentBounds 185public Rect DescendantBounds 257/* propertyType = */ typeof(Rect), 259new PropertyMetadata(Rect.Empty, ViewportPropertyChanged), 276public Rect Viewport 280return (Rect) GetValue(ViewportProperty); 546internal override Rect GetHitTestBounds() 551internal override Rect CalculateSubgraphBoundsInnerSpace(bool renderBounds) 557return Rect.Empty; 573return Rect.Empty; 576Rect viewport = Viewport; 588return Rect.Empty; 593Rect projectedBounds2D = MILUtilities.ProjectBounds(ref viewProjMatrix, ref _bboxChildrenSubgraph3D);
Core\CSharp\System\Windows\Media3D\Visual3D.cs (3)
821internal Rect Visual2DContentBounds 826Rect contentBounds = Rect.Empty;
Core\CSharp\System\Windows\UIElement.cs (13)
781public void Arrange(Rect finalRect) 1130internal static Rect RoundLayoutRect(Rect rect, double dpiScaleX, double dpiScaleY) 1274protected virtual void ArrangeCore(Rect finalRect) 1340internal override Rect GetHitTestBounds() 1342Rect hitBounds = new Rect(_size); 1349Rect resultRect = _drawingContent.GetContentBounds(ctx); 3264internal override Rect GetContentBounds() 3268Rect resultRect = Rect.Empty; 3279return Rect.Empty; 4165internal Rect PreviousArrangeRect 4704private Rect _finalRect;
Graphics\include\exports.cs (3)
2009Rect? clip, 2024command.Clip = Rect.Empty; 2278Rect viewport,
Graphics\include\Generated\wgx_commands.cs (13)
100[FieldOffset(8)] internal Rect Value; 250[FieldOffset(8)] internal Rect Clip; 265[FieldOffset(8)] internal Rect Viewport; 408[FieldOffset(32)] internal Rect ManagedBounds; 838[FieldOffset(24)] internal Rect Rect; 943[FieldOffset(16)] internal Rect Viewport; 944[FieldOffset(48)] internal Rect Viewbox; 967[FieldOffset(16)] internal Rect Viewport; 968[FieldOffset(48)] internal Rect Viewbox; 991[FieldOffset(16)] internal Rect Viewport; 992[FieldOffset(48)] internal Rect Viewbox; 1067[FieldOffset(8)] internal Rect Rect; 1076[FieldOffset(8)] internal Rect Rect;
Shared\MS\Internal\PointUtil.cs (14)
249internal static Rect ElementToRoot(Rect rectElement, Visual element, PresentationSource presentationSource) 252Rect rectRoot = transformElementToRoot.TransformBounds(rectElement); 278internal static Rect RootToClient(Rect rectRoot, PresentationSource presentationSource) 282Rect rectRootUntransformed = Rect.Transform(rectRoot, matrixRootTransform); 284Rect rectClient = Rect.Transform(rectRootUntransformed, matrixDPI); 308internal static Rect ClientToScreen(Rect rectClient, HwndSource hwndSource) 439internal static NativeMethods.RECT FromRect(Rect rect) 460internal static Rect ToRect(NativeMethods.RECT rc) 462Rect rect = new Rect();
PresentationFramework (1084)
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (8)
263Rect rect = GetAnchorRectangle(pointer); 265if (rect != Rect.Empty) 288Rect rect = GetAnchorRectangle(pointer); 290if (rect != Rect.Empty) 307public static Rect GetAnchorRectangle(ITextPointer pointer) 326Rect rect = textView.GetRectangleFromTextPosition(pointer); 327if (extension && rect != Rect.Empty) 334return Rect.Empty;
src\Framework\MS\Internal\Annotations\Anchoring\TreeNodeSelectionProcessor.cs (1)
137Rect rect = element.VisualContentBounds;
src\Framework\MS\Internal\Annotations\Component\MArkedHighlightComponent.cs (6)
394Rect markerRect = TextSelectionHelper.GetAnchorRectangle(anchor); 396if (markerRect == Rect.Empty) 840Rect current = TextSelectionHelper.GetAnchorRectangle(pointer); 871Rect next = TextSelectionHelper.GetAnchorRectangle(nextPointer); 874if (next != Rect.Empty && current != Rect.Empty)
src\Framework\MS\Internal\AppModel\ApplicationProxyInternal.cs (5)
87internal Rect WindowRect; 389internal void Move(Rect windowRect) 411Rect r = (Rect)moveArgs; 1214Rect _windowRect;
src\Framework\MS\Internal\AppModel\IconHelper.cs (1)
159var drawingDimensions = new Rect(0, 0, renderSize.Width, renderSize.Height);
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (7)
780Rect rect = Rect.Intersect(webBrowser.BoundRect, _webBrowserList[j].BoundRect); 976Rect imageableRect = GetImageableRect(printDlg); 1023private static Rect GetImageableRect(PrintDialog dialog) 1025Rect imageableRect = Rect.Empty; 1065if (imageableRect == Rect.Empty)
src\Framework\MS\Internal\Controls\InkCanvasFeedbackAdorner.cs (6)
84private void OnBoundsUpdated(Rect rect) 99Rect adornerRect = Rect.Inflate(rect, offset, offset); 173internal void UpdateBounds(Rect rect) 181private Rect _previousRect = Rect.Empty;
src\Framework\MS\Internal\Controls\InkCanvasSelectionAdorner.cs (24)
103_elementsBounds = new List<Rect>(); 104_strokesBounds = Rect.Empty; 115Rect rectWireFrame = GetWireFrameRect(); 123Rect toleranceRect; 124Rect visibleRect; 137Rect outterRect = Rect.Inflate(rectWireFrame, CornerResizeHandleSize / 2, CornerResizeHandleSize / 2); 158internal void UpdateSelectionWireFrame(Rect strokesBounds, List<Rect> hatchBounds) 211Rect rectWireFrame = GetWireFrameRect(); 230private void DrawHandles(DrawingContext drawingContext, Rect rectWireFrame) 236Rect toleranceRect; 237Rect visibleRect; 259Rect hatchRect = _elementsBounds[i]; 357private void GetHandleRect(InkCanvasSelectionHitResult hitResult, Rect rectWireFrame, out Rect visibleRect, out Rect toleranceRect) 428private Rect GetWireFrameRect() 430Rect frameRect = Rect.Empty; 431Rect selectionRect = ((InkCanvasInnerCanvas)AdornedElement).InkCanvas.GetSelectionBounds(); 435frameRect = Rect.Inflate(selectionRect, BorderMargin, BorderMargin); 445private Rect _strokesBounds; 446private List<Rect> _elementsBounds;
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (17)
1064Rect rectPage = PageBounds; 1065Rect rectStickyNote = StickyNoteBounds; 1412Rect bounds = StickyNoteBounds; 1413Rect viewport = new Rect(0, 0, scrollInfo.ViewportWidth, scrollInfo.ViewportHeight); 1423Rect rect = new Rect(0, 0, Width, Height); 1443Rect rect = (Rect)(args[1]); 1508Rect rectPage = PageBounds; 1509Rect rectStickyNote = StickyNoteBounds; 1555private static void GetOffsets(Rect rectPage, Rect rectStickyNote, out double offsetX, out double offsetY) 1583private Rect StickyNoteBounds 1589Rect ret = Rect.Empty; 1601private Rect PageBounds 1605Rect pageBounds = Rect.Empty;
src\Framework\MS\Internal\Documents\ColumnResult.cs (2)
155internal Rect LayoutBox { get { return _layoutBox; } } 318private readonly Rect _layoutBox;
src\Framework\MS\Internal\Documents\DocumentGrid.cs (20)
272public Rect MakeVisible(Visual v, Rect r) 292public Rect MakeVisible(object o, Rect r, int pageNumber) 318MakeContentPositionVisibleAsync(new MakeVisibleData(null, cp, Rect.Empty)); 1855Rect boundingRect = (data.Rect != Rect.Empty) ? data.Rect : data.Visual.VisualContentBounds; 1857Rect offsetRect = transform.TransformBounds(boundingRect); 1884private void MakeRectVisible(Rect r, bool alwaysCenter) 1886if (r != Rect.Empty) 1889Rect translatedRect = new Rect(HorizontalOffset + r.X, VerticalOffset + r.Y, 1892Rect viewportRect = new Rect(HorizontalOffset, VerticalOffset, 1912private void MakeIPVisible(Rect r) 1914if (r != Rect.Empty && TextEditor != null) 1916Rect viewportRect = new Rect(HorizontalOffset, VerticalOffset, 2653Rect selectionRect = TextView.GetRectangleFromTextPosition(tp); 2656if (selectionRect != Rect.Empty) 3416public MakeVisibleData(Visual visual, ContentPosition contentPosition, Rect rect) 3442public Rect Rect 3449private Rect _rect;
src\Framework\MS\Internal\Documents\DocumentPageTextView.cs (4)
119internal override Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform) 121Rect rect; 134return Rect.Empty; 233Rect rect = _pageTextView.GetRectangleFromTextPosition(position);
src\Framework\MS\Internal\Documents\DocumentViewerHelper.cs (8)
437Rect positionRect = textView.GetRectangleFromTextPosition(contextMenuPosition); 438if (positionRect != Rect.Empty) 441if (positionRect != Rect.Empty) 474internal static Rect CalculateVisibleRect(Rect visibleRect, Visual originalVisual) 477while (visual != null && visibleRect != Rect.Empty) 486Rect rectBounds = VisualTreeHelper.GetClip(visual).Bounds; 493visibleRect = Rect.Empty;
src\Framework\MS\Internal\Documents\FlowDocumentFormatter.cs (1)
123internal void Arrange(Size arrangeSize, Rect viewport)
src\Framework\MS\Internal\Documents\FlowDocumentView.cs (5)
106Rect viewport = Rect.Empty; 589Rect IScrollInfo.MakeVisible(Visual visual, Rect rectangle) 593rectangle = Rect.Empty;
src\Framework\MS\Internal\Documents\IDocumentScrollInfo.cs (2)
59Rect MakeVisible(object o, Rect r, int pageNumber);
src\Framework\MS\Internal\Documents\LineResult.cs (1)
135internal abstract Rect LayoutBox { get; }
src\Framework\MS\Internal\Documents\MultiPageTextView.cs (8)
119internal override Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform) 121Rect rect = Rect.Empty; 998Rect rect = newPageTextView.GetRectangleFromTextPosition(positionOut); 1076Rect textViewBounds; 1267private Rect TransformToAncestor(Visual innerScope, Rect rect) 1269if (rect != Rect.Empty)
src\Framework\MS\Internal\Documents\ParagraphResult.cs (11)
59internal ParagraphResult(BaseParaClient paraClient, Rect layoutBox, DependencyObject element) : this(paraClient) 128internal Rect LayoutBox { get { return _layoutBox; } } 187protected readonly Rect _layoutBox; 248internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect) 357internal Rect GetRectangleFromTextPosition(ITextPointer position) 370internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, double paragraphTopSpace, Rect visibleRect) 649internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect) 713internal Rect GetRectangleFromRowEndPosition(ITextPointer position) 792internal RowParagraphResult(BaseParaClient paraClient, int index, Rect rowRect, RowParagraph rowParagraph) 1091internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect, out bool success) 1264internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect, out bool success)
src\Framework\MS\Internal\Documents\ScrollData.cs (4)
175internal Rect MakeVisible(UIElement owner, Visual visual, Rect rectangle) 183return Rect.Empty; 191Rect viewport = new Rect(_offset.X, _offset.Y, _viewport.Width, _viewport.Height);
src\Framework\MS\Internal\Documents\TextBoxLine.cs (7)
249internal Rect GetBoundsFromTextPosition(int characterIndex, out FlowDirection flowDirection) 267internal List<Rect> GetRangeBounds(int cp, int cch, double xOffset, double yOffset) 269List<Rect> rectangles = new List<Rect>(); 280Rect rect = textBounds[boundIndex].Rectangle; 506private Rect GetBoundsFromPosition(int cp, int cch, out FlowDirection flowDirection) 508Rect rect;
src\Framework\MS\Internal\Documents\TextBoxView.cs (21)
232Rect IScrollInfo.MakeVisible(Visual visual, Rect rectangle) 236rectangle = Rect.Empty; 629Rect ITextView.GetRectangleFromTextPosition(ITextPointer position) 631Rect rect; 683Rect ITextView.GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform) 746Rect rect = new Rect(contentOffset, lineIndex * _lineHeight, _lineMetrics[lineIndex].Width, _lineHeight); 2025private Rect TransformToVisualSpace(Rect rect) 2043IList<Rect> bounds; 2058Rect rect = new Rect(0, lineIndex * _lineHeight, endOfParaGlyphWidth, _lineHeight); 2092Rect rect = TransformToVisualSpace(bounds[i]); 2105Rect rect = new Rect(contentOffset + _lineMetrics[lineIndex].Width, lineIndex * _lineHeight, endOfParaGlyphWidth, _lineHeight); 2129IList<Rect> bounds; 2154Rect rect = new Rect(0, 0, endOfParaGlyphWidth, _lineHeight); 2171Rect rect = bounds[i]; 2184Rect rect = new Rect(contentOffset + _lineMetrics[lineIndex].Width, 0, endOfParaGlyphWidth, _lineHeight); 2196Rect viewport = this.Viewport; 2999private Rect Viewport 3003return _scrollData == null ? Rect.Empty : 3099Rect viewport = this.Viewport;
src\Framework\MS\Internal\Documents\TextDocumentView.cs (55)
92internal override Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform) 106Rect rect = GetRectangleFromTextPosition(Columns, FloatingElements, position); 133Rect visibleRect = CalculateViewportRect(); 176Rect columnBox = columns[columnIndex].LayoutBox; 208private Rect CalculateViewportRect() 210Rect visibleRect = Rect.Empty; 754Rect paragraphBox = paragraph.LayoutBox; 1119private Rect GetRectangleFromTextPosition(ReadOnlyCollection<ParagraphResult> paragraphs, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position) 1124Rect rect = Rect.Empty; 1156private Rect GetRectangleFromTextPosition(ParagraphResult paragraph, ITextPointer position) 1158Rect rect = Rect.Empty; 1168if (rect == Rect.Empty) 1190if (rect == Rect.Empty) 1209if (rect != Rect.Empty) 1246if (rect == Rect.Empty) 1259private Rect GetRectangleFromTextPosition(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position) 1261Rect rect = Rect.Empty; 1285Rect visibleRect) 1306Rect layoutBox = GetLayoutBox(paragraphs[i]); 1353Rect visibleRect) 1379Rect visibleRect, 1396Rect layoutBox = GetLayoutBox(floatingElements[i]); 1397Rect visibleRectThisPara = visibleRect; 1444private static Rect GetLayoutBox(ParagraphResult paragraph) 1450return Rect.Empty; 1844Rect columnBox; 1902Rect nextColumnBox = columns[columnIndex + 1].LayoutBox; 1932Rect nextColumnBox = columns[columnIndex + 1].LayoutBox; 1976Rect paragraphBox; 2033Rect nextParagraphBox = paragraphs[paragraphIndex + 1].LayoutBox; 2063Rect nextParagraphBox = paragraphs[paragraphIndex + 1].LayoutBox; 2107Rect paragraphBox = floatingElements[paragraphIndex].LayoutBox; 2474Rect paragraphBox = paragraphs[paragraphIndex].LayoutBox; 2504Rect paragraphBox = paragraphs[paragraphIndex].LayoutBox; 2582Rect paragraphBox = paragraphs[paragraphIndex].LayoutBox; 2818Rect paragraphBox = paragraphs[paragraphIndex].LayoutBox; 2845Rect paragraphBox = paragraphs[paragraphIndex].LayoutBox; 2883Rect paragraphBox = paragraphs[paragraphIndex].LayoutBox; 2908Rect paragraphBox = paragraphs[paragraphIndex].LayoutBox; 2977Rect paragraphBox = paragraph.LayoutBox; 3347private void TransformToContent(ref Rect rect) 3365private void TransformFromContent(ref Rect rect, out Transform transform) 3370if (rect == Rect.Empty) 3437private static void TransformToSubpage(ref Rect rect, Vector subpageOffset) 3439if (rect == Rect.Empty) 3451private static void TransformFromSubpage(ref Rect rect, Vector subpageOffset) 3453if (rect == Rect.Empty) 3486private Rect GetRectangleFromEdge(ParagraphResult paragraphResult, ITextPointer textPointer) 3503return Rect.Empty; 3516private Rect GetRectangleFromContentEdge(ParagraphResult paragraphResult, ITextPointer textPointer) 3537return Rect.Empty;
src\Framework\MS\Internal\Documents\TextParagraphView.cs (6)
93internal override Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform) 606Rect lineBox = lines[lineIndex].LayoutBox; 629Rect nextLineBox = lines[lineIndex + 1].LayoutBox; 657Rect siblingLineBox; 732Rect lineBox = lines[lineIndex].LayoutBox; 733Rect siblingLineBox;
src\Framework\MS\Internal\Documents\TextViewBase.cs (8)
48internal virtual Rect GetRectangleFromTextPosition(ITextPointer position) 51Rect rect = GetRawRectangleFromTextPosition(position, out transform); 54if (rect != Rect.Empty) 64internal abstract Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform); 138internal static void BringRectIntoViewMinimally(ITextView textView, Rect rect) 144Rect viewport = new Rect(isi.HorizontalOffset, isi.VerticalOffset, isi.ViewportWidth, isi.ViewportHeight); 477Rect ITextView.GetRectangleFromTextPosition(ITextPointer position) 485Rect ITextView.GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform)
src\Framework\MS\Internal\Documents\UIElementIsland.cs (3)
200ReadOnlyCollection<Rect> IContentHost.GetRectangles(ContentElement child) 202return new ReadOnlyCollection<Rect>(new List<Rect>());
src\Framework\MS\Internal\Helper.cs (2)
1195Rect parentRect = new Rect(new Point(), virtualizingElement.DesiredSize); 1204Rect itemsRect = itemsHost.TransformToAncestor(virtualizingElement).TransformBounds(new Rect(new Point(), itemsHost.DesiredSize));
src\Framework\MS\Internal\Ink\ClipboardProcessor.cs (1)
156Rect bounds = inkCanvasSelection.SelectionBounds;
src\Framework\MS\Internal\Ink\InkCanvasSelection.cs (36)
64_inkCanvas.FeedbackAdorner.UpdateBounds(Rect.Empty); 124internal Rect SelectionBounds 128return Rect.Union(GetStrokesBounds(), GetElementsUnionBounds()); 148internal void StartFeedbackAdorner(Rect feedbackRect, InkCanvasSelectionHitResult activeSelectionHitResult) 174internal void UpdateFeedbackAdorner(Rect feedbackRect) 189internal void EndFeedbackAdorner(Rect finalRectangle) 198feedbackAdorner.UpdateBounds(Rect.Empty); 290internal void CommitChanges(Rect finalRectangle, bool raiseEvent) 295Rect selectionBounds = SelectionBounds; 412Rect elementBounds = new Rect(0, 0, size.Width, size.Height); // Rect in element space 416Rect newBounds = Rect.Transform(elementBounds, transform); 615IEnumerator<Rect> enumerator = SelectedElementsBoundsEnumerator.GetEnumerator(); 618Rect elementRect = enumerator.Current; 666private void CommitMoveChange(Rect finalRectangle) 668Rect selectionBounds = SelectionBounds; 700private void CommitResizeChange(Rect finalRectangle) 702Rect selectionBounds = SelectionBounds; 736private void MoveSelection(Rect previousRect, Rect newRect) 833private Rect GetStrokesBounds() 839SelectedStrokes.GetBounds( ) : Rect.Empty; 850private List<Rect> GetElementsBounds() 852List<Rect> rects = new List<Rect>(); 857foreach ( Rect elementRect in SelectedElementsBoundsEnumerator ) 870private Rect GetElementsUnionBounds() 874return Rect.Empty; 877Rect elementsBounds = Rect.Empty; 880foreach ( Rect elementRect in SelectedElementsBoundsEnumerator ) 937private static Matrix MapRectToRect(Rect target, Rect source) 1081private IEnumerable<Rect> SelectedElementsBoundsEnumerator 1097Rect rect = new Rect(0, 0, size.Width, size.Height); // Rect in element space 1128private Rect _cachedStrokesBounds;
src\Framework\MS\Internal\Ink\LassoHelper.cs (2)
42Rect _boundingBox; 320_boundingBox = Rect.Empty;
src\Framework\MS\Internal\Ink\PenCursorManager.cs (2)
224Rect drawingBounds = drawing.Bounds; 382Rect strokeBounds = singleStroke.GetBounds();
src\Framework\MS\Internal\Ink\SelectionEditingBehavior.cs (19)
156Rect newRect = ChangeFeedbackRectangle(curPoint); 199private Rect ChangeFeedbackRectangle(Point newPoint) 249Rect newRect = CalculateRect(newPoint.X - _previousLocation.X, newPoint.Y - _previousLocation.Y); 281private Rect CalculateRect(double x, double y) 283Rect newRect = _previousRect; 348private static Rect ExtendSelectionLeft(Rect rect, double extendBy) 350Rect newRect = rect; 358private static Rect ExtendSelectionTop(Rect rect, double extendBy) 360Rect newRect = rect; 369private static Rect ExtendSelectionRight(Rect rect, double extendBy) 371Rect newRect = rect; 379private static Rect ExtendSelectionBottom(Rect rect, double extendBy) 381Rect newRect = rect; 433private Rect _previousRect; 434private Rect _selectionRect;
src\Framework\MS\Internal\LayoutDump.cs (3)
213Rect bounds = visual.VisualContentBounds; 405internal static void DumpRect(XmlTextWriter writer, string tagName, Rect rect) 987Rect rect = cellParaClient.Rect.FromTextDpi();
src\Framework\MS\Internal\PtsHost\BaseParaClient.cs (5)
148internal virtual List<Rect> GetRectangles(ContentElement e, int start, int length) 151return new List<Rect>(); 159internal virtual void GetRectanglesForParagraphElement(out List<Rect> rectangles) 161rectangles = new List<Rect>(); 163Rect rect = TextDpi.FromTextRect(_rect);
src\Framework\MS\Internal\PtsHost\CellParaClient.cs (6)
341internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect) 370Rect viewport = new Rect(0, 0, TextDpi.FromTextDpi(ContentRect.du), TextDpi.FromTextDpi(ContentRect.dv)); 530internal Rect TableArea { get { return (_rectTable); } } 535internal Rect CellArea { get { return (_rectCell); } } 537private Rect _rectCell; 538private Rect _rectTable;
src\Framework\MS\Internal\PtsHost\ContainerParaClient.cs (5)
159internal override List<Rect> GetRectangles(ContentElement e, int start, int length) 161List<Rect> rectangles = new List<Rect>(); 190rectangles = new List<Rect>(); 463internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect)
src\Framework\MS\Internal\PtsHost\FigureParaClient.cs (6)
331internal override List<Rect> GetRectangles(ContentElement e, int start, int length) 333List<Rect> rectangles = new List<Rect>(); 368List<Rect> trackRectangles = PtsHelper.GetRectanglesInTrack(PtsContext, e, start, length, ref arrayColumnDesc[index]); 815internal Geometry GetTightBoundingGeometryFromTextPositions(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect) 830Rect viewport = new Rect(0, 0, TextDpi.FromTextDpi(_contentRect.du), TextDpi.FromTextDpi(_contentRect.dv));
src\Framework\MS\Internal\PtsHost\FloaterParaClient.cs (6)
333internal override List<Rect> GetRectangles(ContentElement e, int start, int length) 335List<Rect> rectangles = new List<Rect>(); 370List<Rect> trackRectangles = PtsHelper.GetRectanglesInTrack(PtsContext, e, start, length, ref arrayColumnDesc[index]); 821internal Geometry GetTightBoundingGeometryFromTextPositions(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect) 836Rect viewport = new Rect(0, 0, TextDpi.FromTextDpi(_contentRect.du), TextDpi.FromTextDpi(_contentRect.dv));
src\Framework\MS\Internal\PtsHost\FlowDocumentPage.cs (9)
319internal ReadOnlyCollection<Rect> GetRectanglesCore(ContentElement child, bool isLimitedToTextView) 323List<Rect> rectangles = new List<Rect>(); 345List<Rect> transformedRectangles = new List<Rect>(rectangles.Count); 360return new ReadOnlyCollection<Rect>(rectangles); 648Rect contentViewport; 795internal Rect Viewport 1229ReadOnlyCollection<Rect> IContentHost.GetRectangles(ContentElement child)
src\Framework\MS\Internal\PtsHost\Line.cs (8)
424Rect rect = GetBoundsFromPosition(dcpRun, run.Length, out flowDirection); 483internal Rect GetBoundsFromTextPosition(int textPosition, out FlowDirection flowDirection) 508internal List<Rect> GetRangeBounds(int cp, int cch, double xOffset, double yOffset) 510List<Rect> rectangles = new List<Rect>(); 533Rect rect = textBounds[boundIndex].Rectangle; 1004private Rect GetBoundsFromPosition(int cp, int cch, out FlowDirection flowDirection) 1006Rect rect;
src\Framework\MS\Internal\PtsHost\PageVisual.cs (5)
44internal void DrawBackground(Brush backgroundBrush, Rect renderBounds) 130ReadOnlyCollection<Rect> IContentHost.GetRectangles(ContentElement child) 137return new ReadOnlyCollection<Rect>(new List<Rect>(0)); 184private Rect _renderBounds;
src\Framework\MS\Internal\PtsHost\ParagraphVisual.cs (4)
30_renderBounds = Rect.Empty; 42internal void DrawBackgroundAndBorder(Brush backgroundBrush, Brush borderBrush, Thickness borderThickness, Rect renderBounds, bool isFirstChunk, bool isLastChunk) 66internal void DrawBackgroundAndBorderIntoContext(DrawingContext dc, Brush backgroundBrush, Brush borderBrush, Thickness borderThickness, Rect renderBounds, bool isFirstChunk, bool isLastChunk) 164private Rect _renderBounds; // Render bounds of the visual
src\Framework\MS\Internal\PtsHost\Pts.cs (2)
907internal FSRECT(Rect rect) 950internal Rect FromTextDpi()
src\Framework\MS\Internal\PtsHost\PtsHelper.cs (12)
65internal static void ClipChildrenToRect(ContainerVisual visual, Rect rect) 485internal static List<Rect> GetRectanglesInTrack( 492List<Rect> rectangles = new List<Rect>(); 524internal static List<Rect> GetRectanglesInParaList( 531List<Rect> rectangles = new List<Rect>(); 558internal static List<Rect> OffsetRectangleList(List<Rect> rectangleList, double xOffset, double yOffset) 560List<Rect> offsetRectangles = new List<Rect>(rectangleList.Count); 564Rect rect = rectangleList[index];
src\Framework\MS\Internal\PtsHost\PtsPage.cs (11)
240internal List<Rect> GetRectangles(ContentElement e, int start, int length) 242List<Rect> rectangles = new List<Rect>(); 1382private List<Rect> GetRectanglesInPage(ContentElement e, int start, int length) 1385List<Rect> rectangles = new List<Rect>(); 1434rectangles = new List<Rect>(); 1513private List<Rect> GetRectanglesInSection( 1524List<Rect> rectangles = new List<Rect>(); 1552List<Rect> trackRectangles = PtsHelper.GetRectanglesInTrack(PtsContext, e, start, length, ref arrayColumnDesc[index]);
src\Framework\MS\Internal\PtsHost\RunClient.cs (1)
78public override Rect ComputeBoundingBox(bool rightToLeft, bool sideways)
src\Framework\MS\Internal\PtsHost\SubpageParaClient.cs (4)
259internal override List<Rect> GetRectangles(ContentElement e, int start, int length) 261List<Rect> rectangles = new List<Rect>(); 295List<Rect> trackRectangles = PtsHelper.GetRectanglesInTrack(PtsContext, e, start, length, ref arrayColumnDesc[index]);
src\Framework\MS\Internal\PtsHost\TableParaClient.cs (16)
251Rect tableContentRect = GetTableContentRect(mbpInfo).FromTextDpi(); 473internal override List<Rect> GetRectangles(ContentElement e, int start, int length) 477List<Rect> rectangles = new List<Rect>(); 491rectangles = new List<Rect>(); 747Rect tableContentRect = GetTableContentRect(mbpInfo).FromTextDpi(); 749Rect rowRect = tableContentRect; 886internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect) 1211internal Rect GetRectangleFromRowEndPosition(ITextPointer position) 1243return System.Windows.Rect.Empty; 1869private void DrawColumnBackgrounds(DrawingContext dc, Rect tableContentRect) 1872Rect colRect = tableContentRect; 1949private void DrawRowGroupBackgrounds(DrawingContext dc, PTS.FSTABLEROWDESCRIPTION[] arrayTableRowDesc, Rect tableContentRect, MbpInfo mbpInfo) 1953Rect rowRect = tableContentRect; 2011private void DrawRowBackgrounds(DrawingContext dc, PTS.FSTABLEROWDESCRIPTION[] arrayTableRowDesc, Rect tableContentRect, MbpInfo mbpInfo) 2014Rect rowRect = tableContentRect;
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (47)
295internal override List<Rect> GetRectangles(ContentElement e, int start, int length) 297List<Rect> rectangles = new List<Rect>(); 733Rect rect = System.Windows.Rect.Empty; 778internal Rect GetRectangleFromTextPosition(ITextPointer position) 780Rect rect = System.Windows.Rect.Empty; 847internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, double paragraphTopSpace, Rect visibleRect) 1728Rect lbox = new Rect( 1797Rect lbox = new Rect(TextDpi.FromTextDpi(element.urBBox), TextDpi.FromTextDpi(lineDesc.vrStart), 1841ref Rect rect, 1934ref Rect rect, 2032Rect visibleRect) 2106IList<Rect> rectangles = RectanglesFromDcpRangeOfSimpleLine( 2144Rect visibleRect) 2221IList<Rect> rectangles = RectanglesFromDcpRangeOfCompositeLineElement( 2279private List<Rect> RectanglesFromDcpRangeOfSimpleLine( 2286Rect visibleRect) 2288List<Rect> rectangles = null; 2292Rect lineRect = new PTS.FSRECT(lineDesc.urBBox, lineDesc.vrStart, lineDesc.durBBox, lineDesc.dvrAscent + lineDesc.dvrDescent).FromTextDpi(); 2308Rect testRect = lineRect; 2316rectangles = new List<Rect>(1); 2341Rect r = rectangles[i]; 2390private List<Rect> RectanglesFromDcpRangeOfCompositeLineElement( 2399Rect visibleRect) 2401List<Rect> rectangles = null; 2403Rect elementRect = new PTS.FSRECT(elemDesc.urBBox, lineDesc.vrStart, elemDesc.durBBox, lineDesc.dvrAscent + lineDesc.dvrDescent).FromTextDpi(); 2419Rect testRect = elementRect; 2427rectangles = new List<Rect>(1); 2451Rect r = rectangles[i]; 2574Rect objectRect = objectParaClient.Rect.FromTextDpi(); 4150private List<Rect> GetRectanglesInSimpleLines( 4158List<Rect> rectangles = new List<Rect>(); 4178List<Rect> lineRectangles = GetRectanglesInSingleLine(lineDesc, e, localStart, length); 4192private List<Rect> GetRectanglesInSingleLine( 4200List<Rect> rectangles = new List<Rect>(); 4340private List<Rect> GetRectanglesInCompositeLines( 4348List<Rect> rectangles = new List<Rect>(); 4367List<Rect> lineRectangles = GetRectanglesInCompositeLine(lineDesc, e, localStart, length); 4388private List<Rect> GetRectanglesInCompositeLine( 4394List<Rect> rectangles = new List<Rect>(); 4448List<Rect> elementRectangles = line.GetRangeBounds(localStart, localEnd - localStart, TextDpi.FromTextDpi(element.urStart), TextDpi.FromTextDpi(lineDesc.vrStart));
src\Framework\MS\Internal\PtsHost\TextParaLineResult.cs (3)
227internal override Rect LayoutBox 265internal TextParaLineResult(TextParaClient owner, int dcp, int cch, Rect layoutBox, double baseline) 349private readonly Rect _layoutBox;
src\Framework\MS\Internal\PtsHost\UIElementParaClient.cs (3)
95internal override List<Rect> GetRectangles(ContentElement e, int start, int length) 97List<Rect> rectangles = new List<Rect>();
src\Framework\MS\Internal\Text\ComplexLine.cs (1)
185Rect rect = GetBoundsFromPosition(runDcp, inlineObject.Length, out flowDirection);
src\Framework\MS\Internal\Text\InlineObject.cs (2)
74public override Rect ComputeBoundingBox(bool rightToLeft, bool sideways) 91return Rect.Empty;
src\Framework\MS\Internal\Text\Line.cs (7)
141internal Rect GetBoundsFromTextPosition(int characterIndex, out FlowDirection flowDirection) 166internal List<Rect> GetRangeBounds(int cp, int cch, double xOffset, double yOffset) 168List<Rect> rectangles = new List<Rect>(); 192Rect rect = textBounds[boundIndex].Rectangle; 462protected Rect GetBoundsFromPosition(int cp, int cch, out FlowDirection flowDirection) 464Rect rect;
src\Framework\MS\Internal\Text\TextDpi.cs (1)
97internal static Rect FromTextRect(PTS.FSRECT fsrect)
src\Framework\MS\Internal\Text\TextLineResult.cs (3)
213internal override Rect LayoutBox { get { return _layoutBox; } } 240internal TextLineResult(System.Windows.Controls.TextBlock owner, int dcp, int cch, Rect layoutBox, double baseline, int index) 297private readonly Rect _layoutBox;
src\Framework\System\Windows\Annotations\AnnotationDocumentPaginator.cs (5)
447public AnnotatedDocumentPage(DocumentPage basePage, Visual visual, Size pageSize, Rect bleedBox, Rect contentBox) 474public ReadOnlyCollection<Rect> GetRectangles(ContentElement child) 482return new ReadOnlyCollection<Rect>(new List<Rect>(0));
src\Framework\System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (2)
89protected override Rect GetBoundingRectangleCore() 363override internal Rect GetVisibleBoundingRectCore()
src\Framework\System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (2)
198protected override Rect GetBoundingRectangleCore() 468internal override Rect GetVisibleBoundingRectCore()
src\Framework\System\Windows\Automation\Peers\DocumentAutomationPeer.cs (13)
146protected override Rect GetBoundingRectangleCore() 149Rect boundingRect = CalculateBoundingRect(false, out uiScope); 150if (boundingRect != Rect.Empty && uiScope != null) 176Rect boundingRect = CalculateBoundingRect(true, out uiScope); 177if (boundingRect != Rect.Empty && uiScope != null) 209Rect boundingRect = CalculateBoundingRect(true, out uiScope); 210return (DoubleUtil.AreClose(boundingRect, Rect.Empty) || uiScope == null); 229private Rect CalculateBoundingRect(bool clipToVisible, out UIElement uiScope) 232Rect boundingRect = Rect.Empty; 261while (visual != null && boundingRect != Rect.Empty) 270Rect clipBounds = VisualTreeHelper.GetClip(visual).Bounds; 277boundingRect = Rect.Empty;
src\Framework\System\Windows\Automation\Peers\ItemAutomationPeer.cs (2)
163override internal Rect GetVisibleBoundingRectCore() 195protected override Rect GetBoundingRectangleCore()
src\Framework\System\Windows\Automation\Peers\TextElementAutomationPeer.cs (20)
58protected override Rect GetBoundingRectangleCore() 65return Rect.Empty; 76return Rect.Empty; 84return Rect.Empty; 87Rect rectElement = geometry.Bounds; 88Rect rectRoot = PointUtil.ElementToRoot(rectElement, textView.RenderScope, presentationSource); 89Rect rectClient = PointUtil.RootToClient(rectRoot, presentationSource); 90Rect rectScreen = PointUtil.ClientToScreen(rectClient, hwndSource); 96return Rect.Empty; 139Rect rectElement = CalculateVisibleRect(textView, textElement, textElement.ContentStart, endPosition); 140Rect rectRoot = PointUtil.ElementToRoot(rectElement, textView.RenderScope, presentationSource); 141Rect rectClient = PointUtil.RootToClient(rectRoot, presentationSource); 142Rect rectScreen = PointUtil.ClientToScreen(rectClient, hwndSource); 174if (CalculateVisibleRect(textView, textElement, textElement.ContentStart, textElement.ContentEnd) == Rect.Empty) 187private Rect CalculateVisibleRect(ITextView textView, TextElement textElement, TextPointer startPointer, TextPointer endPointer) 190Rect visibleRect = (geometry != null) ? geometry.Bounds : Rect.Empty; 192while (visual != null && visibleRect != Rect.Empty) 202Rect rectBounds = VisualTreeHelper.GetClip(visual).Bounds; 210return Rect.Empty;
src\Framework\System\Windows\Automation\Peers\WindowAutomationPeer.cs (2)
77override protected Rect GetBoundingRectangleCore() 80Rect bounds = new Rect(0,0,0,0);
src\Framework\System\Windows\Controls\Border.cs (7)
277Rect boundRect = new Rect(finalSize); 278Rect innerRect = HelperDeflateRect(boundRect, borders); 284Rect childRect = HelperDeflateRect(innerRect, Padding); 443Rect rect = new Rect(new Point(halfThickness, halfThickness), 644private static Rect HelperDeflateRect(Rect rt, Thickness thick) 659private static void GenerateGeometry(StreamGeometryContext ctx, Rect rect, Radii radii)
src\Framework\System\Windows\Controls\ContextMenu.cs (2)
219public Rect PlacementRectangle 221get { return (Rect) GetValue(PlacementRectangleProperty); }
src\Framework\System\Windows\Controls\ContextMenuService.cs (5)
236typeof(Rect), // Type 238new FrameworkPropertyMetadata(Rect.Empty)); // Default Value 246public static Rect GetPlacementRectangle(DependencyObject element) 252return (Rect)element.GetValue(PlacementRectangleProperty); 260public static void SetPlacementRectangle(DependencyObject element, Rect value)
src\Framework\System\Windows\Controls\DataGrid.cs (6)
6448Rect rowBounds = new Rect(new Point(), row.RenderSize); 6472Rect itemsHostBounds = new Rect(new Point(), itemsHost.RenderSize); 6559private static bool CalculateCellDistance(FrameworkElement cell, DataGridRow rowOwner, Panel itemsHost, Rect itemsHostBounds, bool isMouseInCorner, out double distance) 6562Rect cellBounds = new Rect(new Point(), cell.RenderSize); 6578Rect rowBounds = new Rect(new Point(), rowOwner.RenderSize); 6670Rect bounds = new Rect(new Point(), itemsHost.RenderSize);
src\Framework\System\Windows\Controls\DataGridCell.cs (2)
869Rect rect = new Rect(new Size(thickness, RenderSize.Height)); 878Rect rect = new Rect(new Size(RenderSize.Width, thickness));
src\Framework\System\Windows\Controls\DataGridCellsPanel.cs (1)
1489Rect rcChild = new Rect(new Size(childWidth, arrangeState.ChildHeight));
src\Framework\System\Windows\Controls\DataGridColumnFloatingHeader.cs (2)
52Rect viewBox = brush.Viewbox; 79Rect viewBox = brush.Viewbox;
src\Framework\System\Windows\Controls\DockPanel.cs (1)
294Rect rcChild = new Rect(
src\Framework\System\Windows\Controls\DocumentViewer.cs (3)
939protected override void OnBringIntoView(DependencyObject element, Rect rect, int pageNumber) 1403Rect gridRect = Rect.Transform(new Rect(grid.RenderSize),
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (8)
858Rect rect = textView.GetRectangleFromTextPosition(contentPosition); 859if (rect != Rect.Empty) 1107ReadOnlyCollection<Rect> rects; 1109Rect targetRect = Rect.Empty; 1607private static Rect MakeVisible(IScrollInfo scrollInfo, Visual visual, Rect rectangle) 1614Rect result;
src\Framework\System\Windows\Controls\Grid.cs (1)
770Rect cellRect = new Rect(
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (5)
342Rect rect; 1345Rect rect = HeadersPositionList[i]; 1631private List<Rect> HeadersPositionList 1637_headersPositionList = new List<Rect>(); 1644private List<Rect> _headersPositionList;
src\Framework\System\Windows\Controls\GridViewRowPresenter.cs (5)
489Rect viewPortBounds = new Rect(new Point(), _viewPort.RenderSize); 490Rect itemBounds = new Rect(new Point(), _viewItem.RenderSize); 500private bool CheckContains(Rect container, Rect element) 527private bool CheckIsPointBetween(Rect rect, double pointY)
src\Framework\System\Windows\Controls\InkCanvas.cs (4)
272Rect r = new Rect(new Point(), RenderSize); 1770public Rect GetSelectionBounds() 2230Rect bounds = GetSelectionBounds( ); 2231InkCanvasSelection.CommitChanges(Rect.Offset(bounds, -bounds.Left + point.X, -bounds.Top + point.Y), false);
src\Framework\System\Windows\Controls\InkPresenter.cs (3)
176Rect boundingRect = StrokesBounds; 588private Rect StrokesBounds 611private Nullable<Rect> _cachedBounds = null;
src\Framework\System\Windows\Controls\ItemsControl.cs (14)
2039Rect currentRect; 2054Rect startingRect; 2640Rect elementBounds = new Rect(new Point(), element.RenderSize); 2963Rect elementRect; 2971out Rect elementRect) 2999out Rect elementRect) 3001elementRect = Rect.Empty; 3014Rect viewPortBounds = new Rect(new Point(), viewPort.RenderSize); 3015Rect elementBounds = new Rect(new Point(), element.RenderSize); 3083private static bool ElementIntersectsViewport(Rect viewportRect, Rect elementRect) 3100private bool IsInDirectionForLineNavigation(Rect fromRect, Rect toRect, FocusNavigationDirection direction, bool isHorizontal) 3306Rect bounds = new Rect(new Point(), relativeTo.RenderSize);
src\Framework\System\Windows\Controls\MenuItem.cs (3)
860Rect itemBounds = new Rect(new Point(), RenderSize); 1515Rect r = new Rect(new Point(), RenderSize); 1543Rect r = new Rect(new Point(), RenderSize);
src\Framework\System\Windows\Controls\PasswordTextNavigator.cs (1)
525Rect ITextPointer.GetCharacterRect(LogicalDirection direction)
src\Framework\System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (1)
487Rect rect = new Rect(new Size(RenderSize.Width, thickness));
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
149Rect childRect = new Rect(finalSize);
src\Framework\System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (1)
295Rect rect = new Rect(new Size(RenderSize.Width, thickness));
src\Framework\System\Windows\Controls\Primitives\DocumentPageView.cs (1)
969Rect pageVisualRect = new Rect(_documentPage.Size);
src\Framework\System\Windows\Controls\Primitives\DocumentViewerBase.cs (5)
509protected virtual void OnBringIntoView(DependencyObject element, Rect rect, int pageNumber) 1145Rect targetRect = Rect.Empty; 1715internal BringIntoViewState(DocumentViewerBase source, ContentPosition contentPosition, DependencyObject targetObject, Rect targetRect) 1725internal Rect TargetRect;
src\Framework\System\Windows\Controls\Primitives\HierarchicalVirtualizationConstraints.cs (3)
21Rect viewport) 58public Rect Viewport 140Rect _viewport;
src\Framework\System\Windows\Controls\Primitives\IScrollInfo.cs (2)
123Rect MakeVisible(Visual visual, Rect rectangle);
src\Framework\System\Windows\Controls\Primitives\LayoutInformation.cs (1)
34public static Rect GetLayoutSlot(FrameworkElement element)
src\Framework\System\Windows\Controls\Primitives\Popup.cs (30)
687typeof(Rect), 690Rect.Empty, 698public Rect PlacementRectangle 700get { return (Rect) GetValue(PlacementRectangleProperty); } 1509_positionInfo.MouseRect = Rect.Empty; 1996public Rect MouseRect = Rect.Empty; 2017Rect targetBounds = GetBounds(placementTargetInterestPoints); 2018Rect screenBounds; 2019Rect childBounds = GetBounds(childInterestPoints); 2095Rect tranlsatedChildBounds = Rect.Offset(childBounds, popupTranslation); 2097Rect currentIntersection = Rect.Intersect(screenBounds, tranlsatedChildBounds); 2100double score = currentIntersection != Rect.Empty ? currentIntersection.Width * currentIntersection.Height : 0; 2137Rect intersection = Rect.Intersect(screenBounds, childBounds); 2229private void GetPopupRootLimits(out Rect targetBounds, out Rect screenBounds, out Size limitSize) 2299Rect placementRect = PlacementRectangle; 2313if (_positionInfo.MouseRect == Rect.Empty) 2324else if (placementRect == Rect.Empty) 2341if (placementRect == Rect.Empty) 2422private static Point[] InterestPointsFromRect(Rect rect) 2454private Rect GetBounds(Point[] interestPoints) 2630Rect targetBounds, screenBounds; 2664private Rect GetScreenBounds(Rect boundingBox, Point p) 2706private Rect GetMouseRect(PlacementMode placement) 3154internal Rect GetParentWindowRect()
src\Framework\System\Windows\Controls\Primitives\ScrollContentPresenter.cs (7)
190public Rect MakeVisible(Visual visual, Rect rectangle) 491Rect childRect = new Rect(child.DesiredSize); 564internal Rect MakeVisible(Visual visual, Rect rectangle, bool throwOnError) 584return Rect.Empty; 603Rect viewport = new Rect(HorizontalOffset, VerticalOffset, ViewportWidth, ViewportHeight);
src\Framework\System\Windows\Controls\Primitives\TextBoxBase.cs (3)
1605internal bool GetRectangleFromTextPosition(TextPointer position, out Rect rect) 1632rect = Rect.Empty; 1635return rect != Rect.Empty;
src\Framework\System\Windows\Controls\Primitives\ToolBarPanel.cs (1)
299Rect rcChild = new Rect(arrangeSize);
src\Framework\System\Windows\Controls\Primitives\UniformGrid.cs (1)
218Rect childBounds = new Rect(0, 0, arrangeSize.Width / _columns, arrangeSize.Height / _rows);
src\Framework\System\Windows\Controls\ScrollViewer.cs (9)
195internal void MakeVisible(Visual child, Rect rect) 926Rect rc = new Rect(0, 0, this.ActualWidth, this.ActualHeight); 1081Rect viewPortRect = KeyboardNavigation.GetRectangle(scp); 1082Rect elementRect = KeyboardNavigation.GetRectangle(element); 2167internal MakeVisibleParams(Visual child, Rect targetRect) 2173internal Rect TargetRect; 2295Rect targetRect = cmd.MakeVisibleParam.TargetRect; 2309Rect rcNew; 2528ReadOnlyCollection<Rect> rects = contentHost.GetRectangles(contentElement);
src\Framework\System\Windows\Controls\SinglePageViewer.cs (4)
835Rect[] pageRects; 836Rect pageRect; 843pageRects = new Rect[pageViews.Count]; 1186OnBringIntoView(this, Rect.Empty, newMasterPageNumber);
src\Framework\System\Windows\Controls\Stack.cs (8)
244public Rect MakeVisible(Visual visual, Rect rectangle) 247Rect newRect = new Rect(); 256return Rect.Empty; 732Rect rcChild = new Rect(arrangeSize); 879private void MakeVisiblePhysicalHelper(Rect r, ref Vector newOffset, ref Rect newRect) 927private void MakeVisibleLogicalHelper(int childIndex, ref Vector newOffset, ref Rect newRect)
src\Framework\System\Windows\Controls\StickyNote.cs (5)
942Rect newRectangle = e.NewRectangle; 959Rect newRectangle = e.NewRectangle; 1139Rect rectNote = StickyNoteBounds; 1140Rect rectPage = PageBounds; 1180Rect rectNote = StickyNoteBounds;
src\Framework\System\Windows\Controls\TextAdaptor.cs (23)
100internal Rect[] GetBoundingRectangles(ITextPointer start, ITextPointer end, bool clipToView, bool transformToScreen) 105return new Rect[0]; 123return new Rect[0]; 129Rect visibleRect = Rect.Empty; 136return new Rect[0]; 140List<Rect> rectangles = new List<Rect>(); 151Rect lineRect = Rect.Empty; 226Rect rangeBounds = Rect.Empty; 227Rect[] lineBounds = GetBoundingRectangles(start, end, false, false); 228foreach (Rect rect in lineBounds) 237Rect visibleRect = GetVisibleRectangle(textView); 238Rect rangeVisibleBounds = Rect.Intersect(rangeBounds, visibleRect); 324private Rect GetVisibleRectangle(ITextView textView) 326Rect visibleRect = new Rect(textView.RenderScope.RenderSize); 329while (visual != null && visibleRect != Rect.Empty) 338Rect rectBounds = VisualTreeHelper.GetClip(visual).Bounds; 345visibleRect = Rect.Empty; 520Rect visibleRect = GetVisibleRectangle(textView);
src\Framework\System\Windows\Controls\TextBlock.cs (22)
92ReadOnlyCollection<Rect> IContentHost.GetRectangles(ContentElement child) 1733Rect r = new Rect(new Point(), RenderSize); 1827protected virtual ReadOnlyCollection<Rect> GetRectanglesCore(ContentElement child) 1838return new ReadOnlyCollection<Rect>(new List<Rect>(0)); 1848return new ReadOnlyCollection<Rect>(new List<Rect>(0)); 1855return new ReadOnlyCollection<Rect>(new List<Rect>(0)); 1871return new ReadOnlyCollection<Rect>(new List<Rect>(0)); 1891List<Rect> rectangles = new List<Rect>(); 1926List<Rect> lineBounds = line.GetRangeBounds(boundStart, boundEnd - boundStart, xOffset, yOffset); 1940return new ReadOnlyCollection<Rect>(rectangles); 2155Rect layoutBox = new Rect(contentOffset.X + lineMetrics.Start, contentOffset.Y + lineOffset, lineMetrics.Width, lineMetrics.Height); 2259internal Rect GetRectangleFromTextPosition(ITextPointer orientedPosition) 2288Rect rect = Rect.Empty; 2424IList<Rect> aryTextBounds = line.GetRangeBounds(dcpStart, dcpEnd - dcpStart, contentOffset.X, contentOffset.Y + lineOffset); 2433Rect rect = aryTextBounds[j]; 3477ReadOnlyCollection<Rect> rects = textBlock.GetRectanglesCore(child);
src\Framework\System\Windows\Controls\TextBox.cs (8)
397Rect rect; 447public Rect GetRectFromCharacterIndex(int charIndex) 458public Rect GetRectFromCharacterIndex(int charIndex, bool trailingEdge) 488Rect rect; 1401private bool GetRectangleFromTextPositionInternal(TextPointer position, bool relativeToTextBox, out Rect rect) 1405rect = Rect.Empty; 1415rect = Rect.Empty; 1418return rect != Rect.Empty;
src\Framework\System\Windows\Controls\TextRangeAdaptor.cs (1)
1839Rect[] rects = _textAdaptor.GetBoundingRectangles(_start, _end, true, true);
src\Framework\System\Windows\Controls\ToolBarTray.cs (1)
436Rect rcChild = new Rect();
src\Framework\System\Windows\Controls\ToolTip.cs (2)
285public Rect PlacementRectangle 287get { return (Rect) GetValue(PlacementRectangleProperty); }
src\Framework\System\Windows\Controls\ToolTipService.cs (5)
229typeof(Rect), // Type 231new FrameworkPropertyMetadata(Rect.Empty)); // Default Value 239public static Rect GetPlacementRectangle(DependencyObject element) 245return (Rect)element.GetValue(PlacementRectangleProperty); 253public static void SetPlacementRectangle(DependencyObject element, Rect value)
src\Framework\System\Windows\Controls\ViewPort3D.cs (1)
172Rect newBounds = new Rect(new Point(), finalSize);
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (63)
1159Rect elementRect; 1433public Rect MakeVisible(Visual visual, Rect rectangle) 1438Rect newRect = new Rect(); 1439Rect originalRect = rectangle; 1449return Rect.Empty; 2151Rect viewport = Rect.Empty, extendedViewport = Rect.Empty; 3338Rect rcChild = new Rect(arrangeSize); 3379Rect rcChildBeforeViewport = rcChild; 3906Rect viewport = _viewport; 3907Rect currentExtendedViewport = _extendedViewport; 3908Rect estimatedExtendedViewport = Rect.Empty; 4234ref Rect viewport, 4237out Rect extendedViewport) 4590Rect viewport, 4626private Rect ExtendViewport( 4629Rect viewport, 4644Rect extendedViewport = viewport; 4874private void CoerceScrollingViewportOffset(ref Rect viewport, Size extent, bool isHorizontal) 4902ref Rect viewport, 4915ref Rect viewport, 4929ref Rect viewport, 4937Rect parentViewport = viewport; 5164ref Rect viewport, 5172Rect parentViewport = viewport; 5407Rect viewport, 5546ref Rect viewport, 6332Rect childRect = new Rect(new Point(), child.DesiredSize); 6336Rect itemsRect = transform.TransformBounds(childRect); 6524private bool IsEndOfViewport(bool isHorizontal, Rect viewport, Size stackPixelSizeInViewport) 6536private bool IsViewportEmpty(bool isHorizontal, Rect viewport) 6563Rect parentViewport, 6574out Rect childViewport, 6738Rect childViewport, 6786Rect childItemsViewport = childViewport; 6823Rect childHeaderViewport = childViewport; 6917Rect childViewport, 7001Rect adjustedChildViewport = childViewport; 7064Rect childViewport, 7948Rect viewport = new Rect(); 8022ref Rect viewport, 8046Rect childViewport = Rect.Empty; 8253ref Rect rcChild, 8401ref Rect rcChild, 8441ref Rect rcChild, 9444Rect viewport, 10303Rect viewport, 11015private void MakeVisiblePhysicalHelper(Rect r, ref Vector newOffset, ref Rect newRect, bool isHorizontal, ref bool alignTop, ref bool alignBottom) 11072private void MakeVisibleLogicalHelper(int childIndex, Rect r, ref Vector newOffset, ref Rect newRect, ref bool alignTop, ref bool alignBottom) 11564private Rect _viewport; 11570private Rect _extendedViewport; 11787public Rect Viewport; // in local coordinates 11792public FirstContainerInformation(ref Rect viewport, DependencyObject firstContainer, int firstItemIndex, double firstItemOffset) 12711internal Rect _viewport; 12713internal Rect _extendedViewport; 12782private static void WriteRect(BinaryWriter writer, ref Rect rect) 12815internal Rect _arrangeRect;
src\Framework\System\windows\Documents\CaretElement.cs (5)
243internal void Update(bool visible, Rect caretRectangle, Brush caretBrush, double opacity, bool italic, CaretScrollMethod scrollMethod, double scrollToOriginPosition) 335Rect scrollRectangle; 370private void DoSimpleScrollToView(double scrollToOriginPosition, Rect scrollRectangle) 390private void DoNavigationalScrollToView(double scrollToOriginPosition, Rect targetRect) 500internal static void ClipGeometryByViewport(ref Geometry geometry, Rect viewport)
src\Framework\System\Windows\Documents\CompositionAdorner.cs (12)
260Rect rect = Rect.Union(compositionLine.StartRect, compositionLine.EndRect); 618Rect startRect = _textView.GetRectangleFromTextPosition(startLinePointer); 619Rect endRect = _textView.GetRectangleFromTextPosition(endLinePointer); 652private Rect _startRect; 655private Rect _endRect; 682internal CompositionLine(Rect startRect, Rect endRect, Color lineColor) 724internal Rect StartRect 735internal Rect EndRect 765private Rect _startRect; 768private Rect _endRect;
src\Framework\System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
518Rect ITextPointer.GetCharacterRect(LogicalDirection direction)
src\Framework\System\Windows\Documents\DocumentSequenceTextView.cs (2)
131internal override Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform) 154return Rect.Empty;
src\Framework\System\Windows\Documents\FixedHighlight.cs (4)
113internal Rect ComputeDesignRect() 132return Rect.Empty; 138return Rect.Empty; 141Rect designRect = run.ComputeAlignmentBox();
src\Framework\System\Windows\Documents\FixedLineResult.cs (3)
36internal FixedLineResult(FixedNode[] nodes, Rect layoutBox) 137internal Rect LayoutBox 162private readonly Rect _layoutBox; // relative to page
src\Framework\System\Windows\Documents\FixedPage.cs (8)
521public Rect ContentBox 523get { return (Rect) GetValue(ContentBoxProperty); } 533typeof(Rect), 535new FrameworkPropertyMetadata(Rect.Empty)); 540public Rect BleedBox 542get { return (Rect) GetValue(BleedBoxProperty); } 552typeof(Rect), 554new FrameworkPropertyMetadata(Rect.Empty));
src\Framework\System\Windows\Documents\FixedSOMContainer.cs (1)
243void _UpdateBoundingRect(Rect rect)
src\Framework\System\Windows\Documents\FixedSOMElement.cs (1)
85Rect alignmentBox = glyphRun.ComputeAlignmentBox();
src\Framework\System\Windows\Documents\FixedSOMImage.cs (3)
35private FixedSOMImage(Rect imageRect, GeneralTransform trans, Uri sourceUri, FixedNode node, DependencyObject o) : base(node, trans) 67Rect sourceRect = new Rect(image.RenderSize); 89Rect sourceRect = path.Data.Bounds;
src\Framework\System\Windows\Documents\FixedSOMPageConstructor.cs (11)
430Rect alignmentBox = glyphRun.ComputeAlignmentBox(); 477Rect boundingRect = new Rect(lastX, alignmentBox.Top, advWidth + advFont, alignmentBox.Height); 506Rect boundingRect = new Rect(lastX, alignmentBox.Top, alignmentBox.Right-lastX, alignmentBox.Height); 519private void _CreateTextRun(Rect boundingRect, GeneralTransform trans, Glyphs glyphs, FixedNode node, int startIndex, int endIndex) 566Rect textRunRect = textRun.BoundingRect; 567Rect fixedBlockRect = _currentFixedBlock.BoundingRect; 599Rect textRunRect = textRun.BoundingRect; 600Rect fixedBlockRect = fixedBlock.BoundingRect; 742private bool _IsSpatiallyCombinable(Rect rect1, Rect rect2, double inflateH, double inflateV) 926internal bool _ProcessFilledRect(Matrix transform, Rect bounds)
src\Framework\System\Windows\Documents\FixedSOMSemanticBox.cs (8)
35_boundingRect = Rect.Empty; 37public FixedSOMSemanticBox(Rect boundingRect) 50public Rect BoundingRect 200Rect thisRect = this.BoundingRect; 201Rect otherRect = otherBox.BoundingRect; 255Rect thisRect = this.BoundingRect; 256Rect otherRect = otherBox.BoundingRect; 358protected Rect _boundingRect;
src\Framework\System\Windows\Documents\FixedSOMTable.cs (1)
81Rect bounds = container.BoundingRect;
src\Framework\System\Windows\Documents\FixedSOMTextRun.cs (4)
38private FixedSOMTextRun(Rect boundingRect, GeneralTransform trans, FixedNode fixedNode, int startIndex, int endIndex) : base(fixedNode, startIndex, endIndex, trans) 54Rect thisRect = this.BoundingRect; 55Rect otherRect = otherRun.BoundingRect; 101public static FixedSOMTextRun Create(Rect boundingRect, GeneralTransform transform, Glyphs glyphs, FixedNode fixedNode, int startIndex, int endIndex, bool allowReverseGlyphs)
src\Framework\System\Windows\Documents\FixedTextBuilder.cs (9)
871Rect box1 = run1.ComputeAlignmentBox(); 873Rect box2 = run2.ComputeAlignmentBox(); 1240public Rect BoundingRect 1272private Rect _boundingRect; 1321Rect designRect = run.ComputeAlignmentBox(); 1377Rect r = g.Bounds; 1414_lineLayoutBox = Rect.Empty; 1799_lineLayoutBox = Rect.Empty; 1824private Rect _lineLayoutBox;
src\Framework\System\Windows\Documents\FixedTextPointer.cs (1)
485Rect ITextPointer.GetCharacterRect(LogicalDirection direction)
src\Framework\System\Windows\Documents\FixedTextView.cs (13)
164internal override Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform) 175Rect designRect = new Rect(0, 0, 0, 10); 238Rect bounds = path.Data.Bounds; 277Rect backgroundRect = fh.ComputeDesignRect(); 279if (backgroundRect == Rect.Empty) 296Rect clipRect = fh.Element.Clip.Bounds; 857Rect alignmentRect = run.ComputeAlignmentBox(); 946Rect box = run.ComputeAlignmentBox(); 1005internal static Rect _GetGlyphRunDesignRect(Glyphs g, int charStart, int charEnd) 1010return Rect.Empty; 1013Rect designRect = run.ComputeAlignmentBox(); 1070private Rect _GetTransformedCaretRect(GeneralTransform transform, Point origin, double height) 1076Rect caretRect = new Rect(origin, bottom);
src\Framework\System\Windows\Documents\Glyphs.cs (4)
119Rect inkBoundingBox; 124inkBoundingBox = Rect.Empty; 166Rect designRect = _measurementGlyphRun.ComputeAlignmentBox(); 204Rect alignmentRect = new Rect();
src\Framework\System\Windows\Documents\HighlightVisual.cs (9)
97Rect clipRect = new Rect(new Point(0, 0), pageSize); 110Rect r = _rubberbandSelector.SelectionRect; 184Rect combinedRect = Rect.Empty; 200Rect backgroundRect = fh.ComputeDesignRect(); 202if (backgroundRect == Rect.Empty) 234Rect clipRect = fh.Element.Clip.Bounds; 302Rect clipRect = fh.ComputeDesignRect(); 304if (clipRect == Rect.Empty)
src\Framework\System\Windows\Documents\ImmComposition.cs (7)
717Rect rectStart; 718Rect rectEnd; 719Rect rectCaret; 823Rect rectUi; 828Rect rectCaret; 1820Rect rectCurrent; 1821Rect rectNext;
src\Framework\System\Windows\Documents\ITextPointer.cs (1)
111Rect GetCharacterRect(LogicalDirection direction);
src\Framework\System\Windows\Documents\ITextView.cs (2)
97Rect GetRectangleFromTextPosition(ITextPointer position); 136Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform);
src\Framework\System\Windows\Documents\NullTextNavigator.cs (1)
291Rect ITextPointer.GetCharacterRect(LogicalDirection direction)
src\Framework\System\Windows\Documents\RubberbandSelector.cs (4)
54_selectionRect = Rect.Empty; 451Rect boundingRect = run.ComputeAlignmentBox(); 700internal Rect SelectionRect 714private Rect _selectionRect; // rectangle in page coordinates, or empty
src\Framework\System\windows\Documents\TextEditor.cs (1)
1519Rect lastCharacterRect;
src\Framework\System\windows\Documents\TextEditorContextMenu.cs (2)
279Rect positionRect = position.GetCharacterRect(direction); 367Rect bounds = clip.Bounds;
src\Framework\System\windows\Documents\TextEditorDragDrop.cs (2)
439Rect caretRectangle = this.TextView.GetRectangleFromTextPosition(dragPosition); 737private Rect _dragRect;
src\Framework\System\windows\Documents\TextEditorMouse.cs (6)
541Rect targetRect = This.TextView.GetRectangleFromTextPosition(snappedCursorPosition); 547Rect targetRect = This.TextView.GetRectangleFromTextPosition(snappedCursorPosition); 581Rect lastCharacterRect = snappedCursorPosition.GetCharacterRect(LogicalDirection.Backward); 756Rect uiElementFirstEdgeRect = This.TextView.GetRectangleFromTextPosition(mouseMovePosition); 757Rect uiElementSecondEdgeRect = This.TextView.GetRectangleFromTextPosition(otherEdgePosition); 759Rect boundingRect = uiElementFirstEdgeRect;
src\Framework\System\windows\Documents\TextEditorSelection.cs (4)
640Rect targetRect = This.TextView.GetRectangleFromTextPosition(movingPosition); 754Rect targetRect = This.TextView.GetRectangleFromTextPosition(movingPosition); 1468Rect targetRect = This.TextView.GetRectangleFromTextPosition(movingPosition); 1564Rect targetRect = This.TextView.GetRectangleFromTextPosition(movingPosition);
src\Framework\System\Windows\Documents\TextPointer.cs (3)
1259public Rect GetCharacterRect(LogicalDirection direction) 1270return Rect.Empty; 2685Rect ITextPointer.GetCharacterRect(LogicalDirection direction)
src\Framework\System\Windows\Documents\TextPointerBase.cs (3)
861internal static Rect GetCharacterRect(ITextPointer thisPointer, LogicalDirection direction) 867internal static Rect GetCharacterRect(ITextPointer thisPointer, LogicalDirection direction, bool transformToUiScope) 887Rect rect = textView.GetRectangleFromTextPosition(thisPointer.CreatePointer(direction));
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (6)
1572Rect columnRect; 1583out Rect columnRect, 1590columnRect = Rect.Empty; 1661Rect columnRect; 1691internal TableColumnResizeInfo(ITextView textView, Table table, int columnIndex, Rect columnRect, double tableAutofitWidth, double[] columnWidths) 1794private Rect _columnRect;
src\Framework\System\windows\Documents\TextSelection.cs (9)
1964Rect objectEdgeRect = this.TextView.GetRectangleFromTextPosition(cursorPosition); 1986private bool ShouldSelectEmbeddedObject(ITextPointer cursorPosition, Point cursorMousePoint, Rect objectEdgeRect) 2134Rect caretRectangle; 2220private static Rect CalculateCaretRectangle(ITextSelection currentTextSelection, ITextPointer caretPosition) 2223Rect caretRectangle = currentTextSelection.TextView.GetRawRectangleFromTextPosition(caretPosition, out caretTransform); 2229return Rect.Empty; 2268private static Rect CalculateInterimCaretRectangle(ITextSelection focusedTextSelection) 2278Rect nextCharacterRectangle; 2279Rect caretRectangle;
src\Framework\System\Windows\Documents\TextStore.cs (13)
856Rect rectCur; 857Rect rectPrev; 873Rect rectTest = new Rect(milPointTopLeft, milPointBottomRight); 932Rect rectStart = startPointer.GetCharacterRect(LogicalDirection.Forward); 938Rect rectBound = new Rect(Size.Empty); 949Rect lineRect; 1008Rect rectUi; 1009Rect rectDescendant; 2916Rect rectCurrent; 2917Rect rectNext; 3084private static Rect GetLineBounds(ITextPointer start, ITextPointer end) 3089return Rect.Empty; 3093Rect lineBounds = start.GetCharacterRect(LogicalDirection.Forward);
src\Framework\System\Windows\FrameworkContentElement.cs (1)
1083RequestBringIntoViewEventArgs args = new RequestBringIntoViewEventArgs(this, Rect.Empty);
src\Framework\System\Windows\FrameworkElement.cs (20)
3302BringIntoView( /*RenderSize*/ Rect.Empty); 3308public void BringIntoView(Rect targetRectangle) 4285Rect childBoundsTr = Rect.Transform(new Rect(0, 0, w, h), 4419Rect unclippedBoundsTransformed = Rect.Transform(new Rect(0, 0, unclippedDesiredSize.Width, unclippedDesiredSize.Height), ltd.Transform.Value); 4444Rect childBoundsTransformed = Rect.Transform(new Rect(0, 0, desiredSize.Width, desiredSize.Height), ltd.Transform.Value); 4527protected sealed override void ArrangeCore(Rect finalRect) 4749Rect inkRectTransformed = Rect.Transform(new Rect(0, 0, clippedInkSize.Width, clippedInkSize.Height), ltd.Transform.Value); 4921Rect inkRectTransformed = new Rect(); 4924inkRectTransformed = Rect.Transform(new Rect(0, 0, inkSize.Width, inkSize.Height), ltd.Transform.Value); 4946Rect clipRect = new Rect(0, 0, maxWidthClip, maxHeightClip); 4964Rect slotClipRect = new Rect(-offset.X + inkRectTransformed.X, 4984Rect localClipRect = new Rect(0, 0, maxWidthClip, maxHeightClip); 5010Rect slotRect = new Rect(-offset.X + inkRectTransformed.X, 5022Rect localRect = new Rect(0, 0, maxWidthClip, maxHeightClip); 5250Rect inkRectTransformed = Rect.Transform(new Rect(inkSize), ltd.Transform.Value);
src\Framework\System\Windows\Ink\Events.cs (6)
253private Rect _oldRectangle; 254private Rect _newRectangle; 258internal InkCanvasSelectionEditingEventArgs(Rect oldRectangle, Rect newRectangle) 267public Rect OldRectangle 275public Rect NewRectangle
src\Framework\System\Windows\Input\KeyboardNavigation.cs (34)
636Rect desiredRect = Rect.Empty; 638IEnumerator<Rect> enumerator = _contentRects.GetEnumerator(); 646Rect rect = enumerator.Current; 663Rect rect = enumerator.Current; 745ReadOnlyCollection<Rect> oldRects = _contentRects; 808private ReadOnlyCollection<Rect> _contentRects; 2459internal static Rect GetRectangle(DependencyObject element) 2514ReadOnlyCollection<Rect> rects = parentICH.GetRectangles(ce); 2515IEnumerator<Rect> enumerator = rects.GetEnumerator(); 2519Rect rect = enumerator.Current; 2535Rect rectElement = uiElement3D.Visual2DContentBounds; 2544return Rect.Empty; 2552private Rect GetRepresentativeRectangle(DependencyObject element) 2554Rect rect = GetRectangle(element); 2561Rect itemsHostRect = GetRectangle(itemsHost); 2562if (itemsHostRect != Rect.Empty) 2571Rect headerRect = GetRectangle(header); 2628private double GetPerpDistance(Rect sourceRect, Rect targetRect, FocusNavigationDirection direction) 2652private double GetDistance(Rect sourceRect, Rect targetRect, FocusNavigationDirection direction) 2694private bool IsInDirection(Rect fromRect, Rect toRect, FocusNavigationDirection direction) 2748private bool IsInRange(DependencyObject sourceElement, DependencyObject targetElement, Rect sourceRect, Rect targetRect, FocusNavigationDirection direction, double startRange, double endRange) 2926Rect sourceRect, 2935Rect resultRect = Rect.Empty; 2944Rect currentRect = GetRepresentativeRectangle(currElement); 2947if (currentRect != Rect.Empty) 3012Rect sourceRect = searchInsideContainer ? GetRectangle(container) 3089Rect sourceRect = new Rect(0, 0, 0, 0); 3123Rect currentRect;
src\Framework\System\Windows\Interop\ActiveXHost.cs (3)
197protected override void OnWindowPositionChanged(Rect bounds) 900internal Rect BoundRect 1198private Rect _boundRect = new Rect(0, 0, 0, 0);
src\Framework\System\Windows\Interop\DocobjHost.cs (1)
742Rect windowRect = new Rect(x, y, width, height);
src\Framework\System\Windows\Interop\HwndHost.cs (7)
481Rect rectClientRTLAdjusted = PointUtil.ToRect(rcClientRTLAdjusted); 514Rect rectElement = new Rect(RenderSize); 515Rect rectRoot = PointUtil.ElementToRoot(rectElement, this, source); 516Rect rectClient = PointUtil.RootToClient(rectRoot, source); 801protected virtual void OnWindowPositionChanged(Rect rcBoundingBox) 878internal override Rect GetContentBounds() 953Rect rectElement = new Rect(RenderSize);
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
597case 505: t = () => typeof(Rect); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
8148typeof(System.Windows.Rect),
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
6049case KnownElements.Rect: t = typeof(System.Windows.Rect); break;
src\Framework\System\Windows\RequestBringIntoViewEventArgs.cs (3)
12internal RequestBringIntoViewEventArgs(DependencyObject target, Rect targetRect) 29public Rect TargetRect 52private Rect _rcTarget; // Rectange in the object's coordinate space to bring into view.
src\Framework\System\Windows\Shapes\Ellipse.cs (3)
225internal override Rect GetDefiningGeometryBounds() 244private Rect _rect = Rect.Empty;
src\Framework\System\Windows\Shapes\Polyline.cs (1)
155if (polylineGeometry.Bounds == Rect.Empty)
src\Framework\System\Windows\Shapes\Rectangle.cs (3)
272internal override Rect GetDefiningGeometryBounds() 291private Rect _rect = Rect.Empty;
src\Framework\System\Windows\Shapes\Shape.cs (5)
547internal Size GetStretchedRenderSize(Stretch mode, double strokeThickness, Size availableSize, Rect geometryBounds) 558internal Size GetStretchedRenderSizeAndSetStretchMatrix(Stretch mode, double strokeThickness, Size availableSize, Rect geometryBounds) 583internal void GetStretchMetrics(Stretch mode, double strokeThickness, Size availableSize, Rect geometryBounds, 713Rect bounds = geometry.GetRenderBounds(pen); 727internal virtual Rect GetDefiningGeometryBounds()
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (11)
445Rect rcLogicalWindow = DpiHelper.DeviceRectToLogical(new Rect(rcWindow.Left, rcWindow.Top, rcWindow.Width, rcWindow.Height), dpi.DpiScaleX, dpi.DpiScaleY); 446Rect rcLogicalClient = DpiHelper.DeviceRectToLogical(new Rect(rcAdjustedClient.Left, rcAdjustedClient.Top, rcAdjustedClient.Width, rcAdjustedClient.Height), dpi.DpiScaleX, dpi.DpiScaleY); 770Rect windowPosition = _GetWindowRect(); 1037private Rect _GetWindowRect() 1176Rect r = _GetWindowRect(); 1246Rect topRightRegionRect = new Rect(0, 0, windowSize.Width / 2 + topRightRadius, windowSize.Height / 2 + topRightRadius); 1254Rect bottomLeftRegionRect = new Rect(0, 0, windowSize.Width / 2 + bottomLeftRadius, windowSize.Height / 2 + bottomLeftRadius); 1262Rect bottomRightRegionRect = new Rect(0, 0, windowSize.Width / 2 + bottomRightRadius, windowSize.Height / 2 + bottomRightRadius); 1285private static IntPtr _CreateRoundRectRgn(Rect region, double radius) 1313private static void _CreateAndCombineRoundRectRgn(IntPtr hrgnSource, Rect region, double radius) 1444private HT _HitTestNca(Rect windowPosition, Point mousePosition)
src\Framework\System\Windows\Standard\DpiHelper.cs (4)
44public static Rect LogicalRectToDevice(Rect logicalRectangle, double dpiScaleX, double dpiScaleY) 52public static Rect DeviceRectToLogical(Rect deviceRectangle, double dpiScaleX, double dpiScaleY)
src\Framework\System\Windows\Standard\MessageWindow.cs (1)
70public MessageWindow(CS classStyle, WS style, WS_EX exStyle, Rect location, string name, WndProc callback)
src\Framework\System\Windows\SystemParameters.cs (2)
414public static Rect WorkArea 6590private static Rect _workArea;
src\Framework\System\Windows\Window.cs (11)
1106public Rect RestoreBounds 1126return Rect.Empty; 3908Rect ownerRectDeviceUnits = Rect.Empty; 4078private Rect GetNormalRectDeviceUnits(IntPtr hwndHandle) 4109private Rect GetNormalRectLogicalUnits(IntPtr hwndHandle) 4111Rect rectDeviceUnits = GetNormalRectDeviceUnits(hwndHandle); 4792Rect restoreRect = RestoreBounds; 6982var logicalClientRc = new Rect( 6995var physicalClip = new Rect( 8467Rect monitorRectInWpfScale = new Rect
PresentationFramework.Aero (37)
Microsoft\Windows\Themes\BulletChrome.cs (7)
615Rect bounds = new Rect(0, 0, ActualWidth, ActualHeight); 630private void DrawBackground(DrawingContext dc, ref Rect bounds) 639Rect backgroundRect = new Rect(bounds.Left + 1.0, 671private void DrawInnerBorder(DrawingContext dc, ref Rect bounds) 712private void DrawGlyph(DrawingContext dc, ref Rect bounds) 742private void DrawBorder(DrawingContext dc, ref Rect bounds) 754Rect rect = new Rect(bounds.Left + 0.5,
Microsoft\Windows\Themes\ButtonChrome.cs (8)
456Rect childArrangeRect = new Rect(); 478Rect bounds = new Rect(0, 0, ActualWidth, ActualHeight); 494private void DrawBackground(DrawingContext dc, ref Rect bounds) 502Rect backgroundRect = new Rect(bounds.Left + 1.0, 519private void DrawDropShadows(DrawingContext dc, ref Rect bounds) 540private void DrawBorder(DrawingContext dc, ref Rect bounds) 611Rect rect = new Rect(bounds.Left + 0.5, 651private void DrawInnerBorder(DrawingContext dc, ref Rect bounds)
Microsoft\Windows\Themes\ListBoxChrome.cs (5)
277Rect childArrangeRect = new Rect(); 315Rect bounds = new Rect(0, 0, ActualWidth, ActualHeight); 335Rect backgroundRect = new Rect(bounds.Left + border.Left, 372Rect rect = new Rect(bounds.Left + 0.5, 484private static Geometry GetBorderGeometry(Thickness thickness, Rect bounds)
Microsoft\Windows\Themes\ScrollChrome.cs (7)
420Rect bounds = new Rect(0, 0, ActualWidth, ActualHeight); 463private void DrawShadow(DrawingContext dc, ref Rect bounds) 481private void DrawBorders(DrawingContext dc, ref Rect bounds) 514private void DrawGlyph(DrawingContext dc, ref Rect bounds) 542private void DrawHorizontalGripper(DrawingContext dc, Brush brush, Rect bounds) 565private void DrawVerticalGripper(DrawingContext dc, Brush brush, Rect bounds) 720private void DrawArrow(DrawingContext dc, Brush brush, Rect bounds)
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (10)
109Rect shadowBounds = new Rect(new Point(ShadowDepth, ShadowDepth), 162Rect topLeft = new Rect(shadowBounds.Left, shadowBounds.Top, cornerRadius.TopLeft, cornerRadius.TopLeft); 168Rect top = new Rect(guidelineSetX[1], shadowBounds.Top, topWidth, ShadowDepth); 172Rect topRight = new Rect(guidelineSetX[2], shadowBounds.Top, cornerRadius.TopRight, cornerRadius.TopRight); 179Rect left = new Rect(shadowBounds.Left, guidelineSetY[1], ShadowDepth, leftHeight); 186Rect right = new Rect(guidelineSetX[5], guidelineSetY[2], ShadowDepth, rightHeight); 191Rect bottomLeft = new Rect(shadowBounds.Left, guidelineSetY[3], cornerRadius.BottomLeft, cornerRadius.BottomLeft); 197Rect bottom = new Rect(guidelineSetX[3], guidelineSetY[5], bottomWidth, ShadowDepth); 201Rect bottomRight = new Rect(guidelineSetX[4], guidelineSetY[4], cornerRadius.BottomRight, cornerRadius.BottomRight); 218Rect center = new Rect(guidelineSetX[0], guidelineSetY[0], centerWidth, centerHeight);
PresentationFramework.Classic (46)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (36)
604private static Rect HelperDeflateRect(Rect rt, Thickness thick) 721Rect childArrangeRect = new Rect(); 765Rect bounds = new Rect(0, 0, ActualWidth, ActualHeight); 878private static PathFigure GenerateRectFigure(Rect rect) 892private static Geometry GenerateBorderGeometry(Rect rect, Thickness borderThickness) 907private Geometry GetBorder(Rect bounds, Thickness borderThickness) 934private void DrawBorder(Brush borderBrush, Thickness borderThickness, DrawingContext dc, ref Rect bounds) 948bounds = Rect.Empty; 988private void DrawBorderPair(Brush highlight, Brush shadow, Thickness singleThickness, DrawingContext dc, ref Rect bounds) 997private void DrawRaisedBorder(Thickness singleThickness, DrawingContext dc, ref Rect bounds) 1007private void DrawRaisedPressedBorder(Thickness singleThickness, DrawingContext dc, ref Rect bounds) 1016private void DrawSunkenBorder(Thickness singleThickness, DrawingContext dc, ref Rect bounds) 1026private void DrawEtchedBorder(Thickness singleThickness, DrawingContext dc, ref Rect bounds) 1037private void DrawHorizontalLine(Thickness singleThickness, DrawingContext dc, ref Rect bounds) 1050private void DrawVerticalLine(Thickness singleThickness, DrawingContext dc, ref Rect bounds) 1075private Geometry GenerateTabTopHighlightGeometry(Rect bounds, bool outerBorder) 1107private Geometry GenerateTabTopShadowGeometry(Rect bounds, bool outerBorder) 1134private Geometry GetHighlight1(Rect bounds) 1152private Geometry GetShadow1(Rect bounds) 1165private Geometry GetHighlight2(Rect bounds) 1178private Geometry GetShadow2(Rect bounds) 1218private void DrawTabLeft(DrawingContext dc, ref Rect bounds) 1224Rect tempBounds = new Rect(0.0, 0.0, bounds.Height, bounds.Width); 1240private void DrawTabTop(DrawingContext dc, ref Rect bounds) 1254private void DrawTabRight(DrawingContext dc, ref Rect bounds) 1260Rect tempBounds = new Rect(0.0, 0.0, bounds.Height, bounds.Width) ; 1276private void DrawTabBottom(DrawingContext dc, ref Rect bounds) 1281Rect tempBounds = new Rect(0.0, 0.0, bounds.Width, bounds.Height); 1298private void DrawThinRaisedBorder(Thickness singleThickness, DrawingContext dc, ref Rect bounds) 1306private void DrawThinPressedBorder(Thickness singleThickness, DrawingContext dc, ref Rect bounds) 1314private void DrawAltRaisedBorder(Thickness singleThickness, DrawingContext dc, ref Rect bounds) 1323private void DrawAltPressedBorder(Thickness singleThickness, DrawingContext dc, ref Rect bounds) 1331private void DrawRadioButtonBorder(DrawingContext dc, ref Rect bounds) 1459public Rect Bounds; // bounds used to create geometry 1467public Rect Bounds; // bounds used to create geometry
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (10)
109Rect shadowBounds = new Rect(new Point(ShadowDepth, ShadowDepth), 162Rect topLeft = new Rect(shadowBounds.Left, shadowBounds.Top, cornerRadius.TopLeft, cornerRadius.TopLeft); 168Rect top = new Rect(guidelineSetX[1], shadowBounds.Top, topWidth, ShadowDepth); 172Rect topRight = new Rect(guidelineSetX[2], shadowBounds.Top, cornerRadius.TopRight, cornerRadius.TopRight); 179Rect left = new Rect(shadowBounds.Left, guidelineSetY[1], ShadowDepth, leftHeight); 186Rect right = new Rect(guidelineSetX[5], guidelineSetY[2], ShadowDepth, rightHeight); 191Rect bottomLeft = new Rect(shadowBounds.Left, guidelineSetY[3], cornerRadius.BottomLeft, cornerRadius.BottomLeft); 197Rect bottom = new Rect(guidelineSetX[3], guidelineSetY[5], bottomWidth, ShadowDepth); 201Rect bottomRight = new Rect(guidelineSetX[4], guidelineSetY[4], cornerRadius.BottomRight, cornerRadius.BottomRight); 218Rect center = new Rect(guidelineSetX[0], guidelineSetY[0], centerWidth, centerHeight);
PresentationFramework.Luna (35)
Microsoft\Windows\Themes\ButtonChrome.cs (7)
373Rect childArrangeRect = new Rect(); 389private bool DrawOuterHighlight(DrawingContext dc, ref Rect bounds) 426private bool DrawBackground(DrawingContext dc, ref Rect bounds) 444private void DrawShades(DrawingContext dc, ref Rect bounds) 481private void DrawInnerHighlight(DrawingContext dc, ref Rect bounds) 500private void DrawBorder(DrawingContext dc, ref Rect bounds) 525Rect bounds = new Rect(0, 0, ActualWidth, ActualHeight);
Microsoft\Windows\Themes\ScrollChrome.cs (7)
228Rect bounds = new Rect(0, 0, ActualWidth, ActualHeight); 302private void DrawShadow(DrawingContext dc, ref Rect bounds) 321private void DrawBorders(DrawingContext dc, ref Rect bounds) 354private void DrawGlyph(DrawingContext dc, ScrollGlyph glyph, ref Rect bounds) 384private void DrawHorizontalGripper(DrawingContext dc, Brush brush, Rect bounds) 406private void DrawVerticalGripper(DrawingContext dc, Brush brush, Rect bounds) 572private void DrawArrow(DrawingContext dc, Brush brush, Rect bounds, ScrollGlyph glyph)
parent\Shared\Microsoft\Windows\Themes\BulletChrome.cs (11)
213Rect bounds = new Rect(0, 0, ActualWidth, ActualHeight); 215Rect innerBounds = bounds; 239private void DrawBackground(DrawingContext dc, ref Rect bounds) 262private void DrawHighlight(DrawingContext dc, ref Rect bounds) 283private void DrawGlyph(DrawingContext dc, ref Rect bounds, bool isUnitThickness) 334private void DrawBorder(DrawingContext dc, ref Rect bounds, Thickness thickness, bool isUnitThickness) 346Rect rect = new Rect(bounds.Left + 0.5, 460private static Rect HelperDeflateRect(Rect rt, Thickness thick) 469private static PathFigure GenerateRectFigure(Rect rect) 483private static Geometry GenerateBorderGeometry(Rect rect, Thickness borderThickness)
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (10)
109Rect shadowBounds = new Rect(new Point(ShadowDepth, ShadowDepth), 162Rect topLeft = new Rect(shadowBounds.Left, shadowBounds.Top, cornerRadius.TopLeft, cornerRadius.TopLeft); 168Rect top = new Rect(guidelineSetX[1], shadowBounds.Top, topWidth, ShadowDepth); 172Rect topRight = new Rect(guidelineSetX[2], shadowBounds.Top, cornerRadius.TopRight, cornerRadius.TopRight); 179Rect left = new Rect(shadowBounds.Left, guidelineSetY[1], ShadowDepth, leftHeight); 186Rect right = new Rect(guidelineSetX[5], guidelineSetY[2], ShadowDepth, rightHeight); 191Rect bottomLeft = new Rect(shadowBounds.Left, guidelineSetY[3], cornerRadius.BottomLeft, cornerRadius.BottomLeft); 197Rect bottom = new Rect(guidelineSetX[3], guidelineSetY[5], bottomWidth, ShadowDepth); 201Rect bottomRight = new Rect(guidelineSetX[4], guidelineSetY[4], cornerRadius.BottomRight, cornerRadius.BottomRight); 218Rect center = new Rect(guidelineSetX[0], guidelineSetY[0], centerWidth, centerHeight);
PresentationFramework.Royale (33)
Microsoft\Windows\Themes\ButtonChrome.cs (6)
331Rect childArrangeRect = new Rect(); 347private bool DrawBackground(DrawingContext dc, ref Rect bounds) 365private void DrawShades(DrawingContext dc, ref Rect bounds) 402private void DrawInnerHighlight(DrawingContext dc, ref Rect bounds) 421private void DrawBorder(DrawingContext dc, ref Rect bounds) 446Rect bounds = new Rect(0, 0, ActualWidth, ActualHeight);
Microsoft\Windows\Themes\ScrollChrome.cs (6)
210Rect bounds = new Rect(0, 0, ActualWidth, ActualHeight); 281private void DrawBorders(DrawingContext dc, ref Rect bounds) 314private void DrawGlyph(DrawingContext dc, ScrollGlyph glyph, ref Rect bounds) 344private void DrawHorizontalGripper(DrawingContext dc, Brush brush, Rect bounds) 366private void DrawVerticalGripper(DrawingContext dc, Brush brush, Rect bounds) 532private void DrawArrow(DrawingContext dc, Brush brush, Rect bounds, ScrollGlyph glyph)
parent\Shared\Microsoft\Windows\Themes\BulletChrome.cs (11)
213Rect bounds = new Rect(0, 0, ActualWidth, ActualHeight); 215Rect innerBounds = bounds; 239private void DrawBackground(DrawingContext dc, ref Rect bounds) 262private void DrawHighlight(DrawingContext dc, ref Rect bounds) 283private void DrawGlyph(DrawingContext dc, ref Rect bounds, bool isUnitThickness) 334private void DrawBorder(DrawingContext dc, ref Rect bounds, Thickness thickness, bool isUnitThickness) 346Rect rect = new Rect(bounds.Left + 0.5, 460private static Rect HelperDeflateRect(Rect rt, Thickness thick) 469private static PathFigure GenerateRectFigure(Rect rect) 483private static Geometry GenerateBorderGeometry(Rect rect, Thickness borderThickness)
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (10)
109Rect shadowBounds = new Rect(new Point(ShadowDepth, ShadowDepth), 162Rect topLeft = new Rect(shadowBounds.Left, shadowBounds.Top, cornerRadius.TopLeft, cornerRadius.TopLeft); 168Rect top = new Rect(guidelineSetX[1], shadowBounds.Top, topWidth, ShadowDepth); 172Rect topRight = new Rect(guidelineSetX[2], shadowBounds.Top, cornerRadius.TopRight, cornerRadius.TopRight); 179Rect left = new Rect(shadowBounds.Left, guidelineSetY[1], ShadowDepth, leftHeight); 186Rect right = new Rect(guidelineSetX[5], guidelineSetY[2], ShadowDepth, rightHeight); 191Rect bottomLeft = new Rect(shadowBounds.Left, guidelineSetY[3], cornerRadius.BottomLeft, cornerRadius.BottomLeft); 197Rect bottom = new Rect(guidelineSetX[3], guidelineSetY[5], bottomWidth, ShadowDepth); 201Rect bottomRight = new Rect(guidelineSetX[4], guidelineSetY[4], cornerRadius.BottomRight, cornerRadius.BottomRight); 218Rect center = new Rect(guidelineSetX[0], guidelineSetY[0], centerWidth, centerHeight);
System.Activities.Core.Presentation (2)
System\Activities\Core\Presentation\FlowchartExpressionAdorner.cs (2)
60Rect adornedElementRect = new Rect(this.AdornedElement.DesiredSize); 61Rect tooltipRect = new Rect(adornedElementRect.TopLeft + new Vector(adornedElementRect.Width, -tooltip.DesiredSize.Height), tooltip.DesiredSize);
System.Activities.Presentation (96)
System.Activities.Presentation\System\Activities\Presentation\Annotations\AnnotationAdorner.cs (1)
81internal static AdornerLocation FindAnchor(Point anchorPoint, Size desiredSize, Rect canvas)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\ChoiceEditor.cs (2)
896Rect fullRect = new Rect(0d, 0d, this.ActualWidth, this.ActualHeight); 900Rect innerRect = RenderUtils.CalculateInnerRect(fullRect, 0);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\RenderUtils.cs (4)
17public static bool DrawInscribedRoundedRect(DrawingContext drawingContext, Brush fill, Pen stroke, Rect outerBounds, double cornerRadius) 32Rect spineRect = new Rect(spineLeftTop, spineRightBottom); 42public static Rect CalculateInnerRect(Rect outerBounds, double strokeThickness)
System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (2)
828Rect bounds = VisualTreeHelper.GetDescendantBounds(viewElement); 852Rect bounds = VisualTreeHelper.GetDescendantBounds(viewElement);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\AutoConnectAdorner.cs (3)
31private Rect[] hitTestRects; 33private Rect adornedElementRect; 50this.hitTestRects = new Rect[]
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\AutoConnectHelper.cs (12)
52internal static Rect GetAutoConnectHitRect(DependencyObject target) 56Rect rect = new Rect(new Point(location.X - HitRegionOffset, location.Y - HitRegionOffset), new Size(size.Width + (HitRegionOffset * 2), size.Height + (HitRegionOffset * 2))); 86internal static List<Rect> CreateHitTestRects(Point targetLocation, Size targetSize) 88List<Rect> rects = new List<Rect>(); 182Rect rect = GetAutoConnectHitRect(shape); 224Rect rect = GetAutoConnectHitRect(currentTarget); 264private static void RemoveDirectionsInCollision(List<DependencyObject> childShapes, DependencyObject target, List<Rect> hitTestRects, ref AutoConnectDirections directions) 280Rect shapeRect = new Rect(shapeLocation, shapeSize); 292private void RemoveDirectionsOutsideOfPanel(List<Rect> hitTestRects, ref AutoConnectDirections directions) 294Rect panelRect = new Rect(0, 0, this.panel.Width, this.panel.Height); 307List<Rect> hitTestRects = CreateHitTestRects(FreeFormPanel.GetLocation(target), FreeFormPanel.GetChildSize(target));
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\AutoSplitAdorner.cs (1)
16private Rect adornedElementRect;
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorRouter.cs (18)
120static void AddExcludedAndSrcDestRects(FreeFormPanel outmostPanel, FreeFormPanel panel, Point srcPoint, Point destPoint, UIElement srcElement, UIElement destElement, List<Rect> excludedRects, List<Rect> srcDestRects) 133Rect rect = new Rect(Point.Add(panel.TranslatePoint(FreeFormPanel.GetLocation(child), outmostPanel), new Vector(margin.Left, margin.Top)), childSize); 135Rect shrunk = new Rect(rect.X + delta, rect.Y + delta, rect.Width - delta * 2, rect.Height - delta * 2); 169List<Rect> excludedRects = new List<Rect>(); 170List<Rect> srcDestRects = new List<Rect>(); 190internal static Point[] Route(Point srcPoint, Point destPoint, List<Point> srcEdge, List<Point> destEdge, List<Rect> excludedRects, List<Point> excludedLines, List<Rect> srcDestRects) 206Rect[] srcDestRectsCopy = srcDestRects.ToArray(); 207foreach (Rect rect in srcDestRectsCopy) 210Rect shrunk = new Rect(rect.X + delta, rect.Y + delta, rect.Width - delta * 2, rect.Height - delta * 2); 218static Point[] TryRoute(Point srcPoint, Point destPoint, List<Rect> excludedRects, List<Point> excludedLines, List<Rect> srcDestRects) 721static Point[] GetRoutedLineSegments(Point begin, Point end, Size margin, Rect[] rectanglesToExclude, Point[] linesToExclude) 1303public CoverSet(Rect[] rectanglesToExclude, Point[] linesToExclude) 1305foreach (Rect rectangle in rectanglesToExclude)
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemExtensions.cs (7)
561ModelItemFocusHelper.Focus(item, MaxExpandLevel, false, Rect.Empty); 564internal static void Highlight(this ModelItem item, Rect rectToBringIntoView) 608Rect rectToBringIntoView; 661private ModelItemFocusHelper(ModelItem itemToFocus, int maxExpandLevel, bool shouldGetKeyboardFocus, Rect rectToBringIntoView) 693Focus(itemToFocus, maxExpandLevel, shouldGetKeyboardFocus, Rect.Empty); 696internal static void Focus(ModelItem itemToFocus, int maxExpandLevel, bool shouldGetKeyboardFocus, Rect rectToBringIntoView) 965if (rectToBringIntoView != Rect.Empty)
System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (2)
711Rect rectToBringIntoView; 721rectToBringIntoView = Rect.Empty;
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (1)
1165Rect bounds = VisualTreeHelper.GetDescendantBounds(this.designerPresenter);
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionSurface.cs (1)
64Rect actualPanelRect = new Rect(0, 0, 0, 0);
System.Activities.Presentation\System\Activities\Presentation\View\QuadTree.cs (29)
29Rect bounds; // overall bounds we are indexing. 39public Rect Bounds 50public void Insert(T node, Rect bounds) 81public IEnumerable<T> GetNodesInside(Rect bounds) 94public bool HasNodesInside(Rect bounds) 108IEnumerable<QuadNode> GetNodes(Rect bounds) 155Rect bounds; 164public QuadNode(T node, Rect bounds) 182public Rect Bounds 206Rect bounds; // quadrant bounds. 274public Quadrant(Quadrant parent, Rect bounds) 296internal Rect Bounds 307internal Quadrant Insert(T node, Rect bounds) 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); 404internal void GetIntersectingNodes(List<QuadNode> nodes, Rect bounds) 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); 449static void GetIntersectingNodes(QuadNode last, List<QuadNode> nodes, Rect bounds) 470internal bool HasIntersectingNodes(Rect bounds) 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); 519static bool HasIntersectingNodes(QuadNode last, Rect bounds)
System.Activities.Presentation\System\Activities\Presentation\View\RubberBandSelector.cs (4)
203Rect dragHandleRect = new Rect(topLeft, bottomRight); 253Rect rect = new Rect(start, end); 268Rect rubberBandRect = new Rect(this.StartPoint, this.EndPoint); 274Rect rect = new Rect(location.X, location.Y, view.ActualWidth, view.ActualHeight);
System.Activities.Presentation\System\Activities\Presentation\View\SearchToolTipAdorner.cs (1)
60Rect tooltipRect = new Rect(new Point(0, Y), tooltip.DesiredSize);
System.Activities.Presentation\System\Activities\Presentation\View\VirtualizedContainerService.cs (6)
192Rect GetViewerBounds() 195Rect viewerBounds = new Rect(parentView.HorizontalOffset, parentView.VerticalOffset, parentView.ViewportWidth, parentView.ViewportHeight); 290Rect oldBounds; 398Rect bounds = new Rect(currentPoint, new Size(this.ActualWidth, this.ActualHeight)); 399Rect viewerBounds = this.containerService.GetViewerBounds(); 428if (this.oldBounds != Rect.Empty)
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (1)
700Rect charRect = textbox.GetRectFromCharacterIndex(index, true);
System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (1)
800Rect dragHandleRect = new Rect(dragHandleLocation, new Size(this.DragHandle.ActualWidth, this.DragHandle.ActualHeight));
UIAutomationClient (27)
MS\Internal\Automation\BoundingRectTracker.cs (1)
121Rect.Empty,
MS\Internal\Automation\ClickablePoint.cs (6)
36Rect rect = el.Current.BoundingRectangle; 102private static bool TryLinePattern( out Point pt, ref Rect rect, AutomationElement el) 135private static bool TrySparsePattern( out Point pt, ref Rect rect, AutomationElement el) 159private static bool TryPattern(double x, double y, out Point pt, ref Rect rect, AutomationElement el ) 193private static bool IsTopLevelWindowObscuring( AutomationElement target, Rect targetRect, AutomationElement hitTarget) 206Rect hitTargetAncestorRect = hitTargetAncestor.Current.BoundingRectangle;
MS\Internal\Automation\HwndProxyElementProvider.cs (3)
240Rect IRawElementProviderFragment.BoundingRectangle 250return Rect.Empty; 256return Rect.Empty;
MS\Internal\Automation\Schema.cs (2)
253new AutomationPropertyInfo( convertToRect, AutomationElement.BoundingRectangleProperty, typeof(Rect), Rect.Empty ),
MS\Internal\Automation\UiaCoreAPI.cs (4)
1021internal static Rect[] TextRange_GetBoundingRectangles(SafeTextRangeHandle hobj) 1034Rect[] rects = new Rect[count]; 1043rects[i] = Rect.Empty;
System\Windows\Automation\AutomationElement.cs (2)
1513public Rect BoundingRectangle { get { return (Rect) _el.GetPatternPropertyValue(BoundingRectangleProperty, _useCache); } }
System\Windows\Automation\ItemContainerPattern.cs (3)
168else if (value is Rect) 170Rect rc = (Rect)value;
System\Windows\Automation\PropertyCondition.cs (3)
173else if (val is Rect) 175Rect rc = (Rect)val;
System\Windows\Automation\Text\TextRange.cs (1)
277public Rect[] GetBoundingRectangles()
System\Windows\Automation\TextPattern.cs (2)
232Rect rect = (Rect)_element.GetCurrentPropertyValue(AutomationElement.BoundingRectangleProperty);
UIAutomationClientsideProviders (150)
MS\Internal\AutomationProxies\Accessible.cs (1)
566internal Rect Location
MS\Internal\AutomationProxies\CommonXSendMessage.cs (3)
1169internal static Rect GetItemRect(IntPtr hwnd, int msg, int index) 1187return Rect.Empty; 1217return Rect.Empty;
MS\Internal\AutomationProxies\Misc.cs (18)
83internal static double[] RectArrayToDoubleArray(Rect[] rectArray) 852static internal bool IsItemVisible(ref NativeMethods.Win32Rect parentRect, ref Rect itemRect) 862static internal bool IsItemVisible(ref Rect parentRect, ref NativeMethods.Win32Rect itemRect) 872static internal bool IsItemVisible(ref Rect parentRect, ref Rect itemRect) 1228internal static Rect [] GetTitlebarRects(IntPtr hwnd) 1240internal static Rect GetTitleBarRect(IntPtr hwnd) 1245return Rect.Empty; 1384internal static bool PtInRect(ref Rect rc, int x, int y) 2002private static Rect[] GetTitlebarRectsXP(IntPtr hwnd) 2026Rect[] rects = new Rect[NativeMethods.CCHILDREN_TITLEBAR + 1]; 2049rects[i] = Rect.Empty; 2065rects[i] = Rect.Empty; 2073private static Rect[] GetTitlebarRectsEx(IntPtr hwnd) 2089Rect[] rects = new Rect[NativeMethods.CCHILDREN_TITLEBAR + 1]; 2095rects[i] = Rect.Empty;
MS\Internal\AutomationProxies\MSAANativeProvider.cs (5)
432Rect IRawElementProviderFragment.BoundingRectangle 441return Rect.Empty; 453return Rect.Empty; 456Rect rc = _acc.Location; 460return Rect.Empty;
MS\Internal\AutomationProxies\NonClientArea.cs (2)
574Rect rect = grip.BoundingRectangle; 596Rect rect = grip.BoundingRectangle;
MS\Internal\AutomationProxies\ProxyHwnd.cs (1)
264Rect itemRect = BoundingRectangle;
MS\Internal\AutomationProxies\ProxySimple.cs (6)
103internal virtual Rect BoundingRectangle 109return Rect.Empty; 116return Rect.Empty; 320Rect itemRect = BoundingRectangle; 338Rect parentRect = parent.BoundingRectangle; 444Rect IRawElementProviderFragment.BoundingRectangle
MS\Internal\AutomationProxies\WindowsAltTab.cs (1)
357internal override Rect BoundingRectangle
MS\Internal\AutomationProxies\WindowsComboBox.cs (6)
131internal override Rect BoundingRectangle 149return Rect.Empty; 153return Rect.Empty; 931internal override Rect BoundingRectangle 939return Rect.Empty; 943return Rect.Empty;
MS\Internal\AutomationProxies\WindowsEditBox.cs (2)
628internal Rect GetRect() 707Rect r = GetRect();
MS\Internal\AutomationProxies\WindowsEditBoxRange.cs (6)
274Rect clippingRectangle = _provider.GetRect(); 292Rect rect = new Rect(startPoint.X, startPoint.Y, endPoint.X - startPoint.X, clippingRectangle.Height); 304Rect[] rectArray = new Rect[rects.Count]; 677private ArrayList GetMultilineBoundingRectangles(string text, Point mapClientToScreen, Rect clippingRectangle) 735Rect rect = new Rect(startPoint.X, startPoint.Y, endPoint.X - startPoint.X, height);
MS\Internal\AutomationProxies\WindowsGrip.cs (2)
58internal override Rect BoundingRectangle 80return Rect.Empty;
MS\Internal\AutomationProxies\WindowsHyperlink.cs (1)
95internal override Rect BoundingRectangle
MS\Internal\AutomationProxies\WindowsListBox.cs (1)
716internal override Rect BoundingRectangle
MS\Internal\AutomationProxies\WindowsListView.cs (1)
449Rect boundingRectangle = BoundingRectangle;
MS\Internal\AutomationProxies\WindowsListViewGroup.cs (1)
76internal override Rect BoundingRectangle
MS\Internal\AutomationProxies\WindowsListViewGroupSubsetLink.cs (1)
73internal unsafe override Rect BoundingRectangle
MS\Internal\AutomationProxies\WindowsListViewItem.cs (3)
106internal override Rect BoundingRectangle 111Rect boundingRectangle = Rect.Empty;
MS\Internal\AutomationProxies\WindowsListViewItemCheckBox.cs (2)
66internal override Rect BoundingRectangle 80Rect parentRect = GetParent().BoundingRectangle;
MS\Internal\AutomationProxies\WindowsListViewSubItem.cs (5)
78internal override Rect BoundingRectangle 90return Rect.Empty; 103return Rect.Empty; 143Rect parentRect = GetParent().GetParent().BoundingRectangle; 144Rect itemRect = BoundingRectangle;
MS\Internal\AutomationProxies\WindowsMenu.cs (8)
378internal override Rect BoundingRectangle 807private Rect GetBoundingRectangle() 1258internal override Rect BoundingRectangle 1301return Rect.Empty; 1427Rect itemRect = BoundingRectangle; 1667Rect rc = BoundingRectangle; 2919internal override Rect BoundingRectangle 2923return Rect.Empty;
MS\Internal\AutomationProxies\WindowsRebar.cs (4)
292internal override Rect BoundingRectangle 410internal static Rect GetBoundingRectangle (IntPtr hwnd, int item) 418return Rect.Empty; 424return Rect.Empty;
MS\Internal\AutomationProxies\WindowsRichEdit.cs (1)
386Rect rect = BoundingRectangle;
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (10)
195Rect clientRect = new Rect(w32rect.left, w32rect.top, w32rect.right - w32rect.left, w32rect.bottom - w32rect.top); 201Rect rect; 226Rect[] rectArray = new Rect[rects.Count]; 1370private static Rect CalculateOneLineRangeRectangle(ITextRange lineRange, Rect clientRect) 1390Rect rect = new Rect(clientRect.Location, clientRect.Size); 1421rect = Rect.Empty; 1435return Rect.Empty; 1450private static bool TrimRectangleByRangeCorners(ITextRange range, ref Rect rect)
MS\Internal\AutomationProxies\WindowsScrollBar.cs (4)
140internal override Rect BoundingRectangle 159return Rect.Empty; 169return Rect.Empty; 180Rect rcParent = _parent.BoundingRectangle;
MS\Internal\AutomationProxies\WindowsScrollBarBits.cs (11)
132internal override Rect BoundingRectangle 212static internal Rect GetBoundingRectangle(IntPtr hwnd, ProxyFragment parent, WindowsScrollBar.ScrollBarItem item, int sbFlag) 222return Rect.Empty; 228return Rect.Empty; 237return Rect.Empty; 248Rect rcParent = parent._parent.BoundingRectangle; 276return Rect.Empty; 304static internal Rect GetVerticalScrollbarBitBoundingRectangle(IntPtr hwnd, WindowsScrollBar.ScrollBarItem item, NativeMethods.ScrollBarInfo sbi) 309return Rect.Empty; 395static internal Rect GetHorizontalScrollbarBitBoundingRectangle(IntPtr hwnd, WindowsScrollBar.ScrollBarItem item, NativeMethods.ScrollBarInfo sbi) 401return Rect.Empty;
MS\Internal\AutomationProxies\WindowsSlider.cs (5)
412internal override Rect BoundingRectangle 470internal static Rect GetBoundingRectangle (IntPtr hwnd, WindowsSlider.SItem item, bool fHorizontal) 481return Rect.Empty; 493return Rect.Empty; 541return Rect.Empty;
MS\Internal\AutomationProxies\WindowsSpinner.cs (6)
135internal override Rect BoundingRectangle 139Rect rcUpDown = _elUpDown.BoundingRectangle; 140Rect rcEdit = _elEdit.BoundingRectangle; 141return Rect.Union(rcEdit, rcUpDown); 166Rect rcUpDown = _elUpDown.BoundingRectangle; 167Rect rcEdit = _elEdit.BoundingRectangle;
MS\Internal\AutomationProxies\WindowsStatusBar.cs (6)
360unsafe static private IntPtr GetChildHwnd(IntPtr hwnd, Rect rc) 469internal override Rect BoundingRectangle 570static internal Rect GetBoundingRectangle (IntPtr hwnd, int item) 581return Rect.Empty; 592return Rect.Empty; 783internal override Rect BoundingRectangle
MS\Internal\AutomationProxies\WindowsSysHeader.cs (2)
420internal override Rect BoundingRectangle 739Rect rect = XSendMessage.GetItemRect(_hwnd, NativeMethods.HDM_GETITEMDROPDOWNRECT, _item);
MS\Internal\AutomationProxies\WindowsTab.cs (3)
574Rect firstRect = firstChild.BoundingRectangle; 575Rect lastRect = lastChild.BoundingRectangle; 943internal override Rect BoundingRectangle
MS\Internal\AutomationProxies\WindowsTitleBar.cs (3)
66internal override Rect BoundingRectangle 367internal override Rect BoundingRectangle 371Rect[] rects = Misc.GetTitlebarRects(_hwnd);
MS\Internal\AutomationProxies\WindowsToolbar.cs (3)
462internal override Rect BoundingRectangle 573internal static Rect GetBoundingRectangle(IntPtr hwnd, int item) 673Rect boundingRectangle = BoundingRectangle;
MS\Internal\AutomationProxies\WindowsTooltip.cs (1)
267Rect[] rects = Misc.GetTitlebarRects(hwnd);
MS\Internal\AutomationProxies\WindowsTreeView.cs (3)
844internal override Rect BoundingRectangle 886Rect itemRect = BoundingRectangle; 915Rect parentRect = parent.BoundingRectangle;
MS\Internal\AutomationProxies\WindowsUpDown.cs (5)
481internal override Rect BoundingRectangle 550Rect rc = GetBoundingRectangle(_hwnd, (WindowsUpDown.SpinItem)item); 577static internal Rect GetBoundingRectangle(IntPtr hwnd, WindowsUpDown.SpinItem item) 583return Rect.Empty; 626return Rect.Empty;
MS\Internal\AutomationProxies\WinFormsSpinner.cs (1)
266Rect rcUpDown = _elUpDown.BoundingRectangle;
MS\Win32\NativeMethods.cs (6)
1039internal Rect rcParent; 1202internal Win32Rect (Rect rc) 1226static public explicit operator Rect (Win32Rect rc) 1236return Rect.Empty; 1241internal Rect ToRect(bool isRtoL) 1244return (Rect)this;
WindowsBase (53)
Base\System\Windows\Converters\Generated\RectValueSerializer.cs (5)
51if (!(value is Rect)) 67return Rect.Parse(value ); 81if (value is Rect) 83Rect instance = (Rect) value;
Base\System\Windows\Generated\Rect.cs (14)
62public static bool operator == (Rect rect1, Rect rect2) 81public static bool operator != (Rect rect1, Rect rect2) 97public static bool Equals (Rect rect1, Rect rect2) 125if ((null == o) || !(o is Rect)) 130Rect value = (Rect)o; 131return Rect.Equals(this,value); 145public bool Equals(Rect value) 147return Rect.Equals(this, value); 176public static Rect Parse(string source) 182Rect value;
Base\System\Windows\Generated\RectConverter.cs (4)
95return Rect.Parse(source); 117if (destinationType != null && value is Rect) 119Rect instance = (Rect)value;
Base\System\Windows\Rect.cs (26)
123public static Rect Empty 449public bool Contains(Rect rect) 473public bool IntersectsWith(Rect rect) 491public void Intersect(Rect rect) 515public static Rect Intersect(Rect rect1, Rect rect2) 524public void Union(Rect rect) 568public static Rect Union(Rect rect1, Rect rect2) 585public static Rect Union(Rect rect, Point point) 625public static Rect Offset(Rect rect, Vector offsetVector) 635public static Rect Offset(Rect rect, double offsetX, double offsetY) 688public static Rect Inflate(Rect rect, Size size) 698public static Rect Inflate(Rect rect, double width, double height) 713public static Rect Transform(Rect rect, Matrix matrix) 790static private Rect CreateEmptyRect() 792Rect rect = new Rect(); 806private readonly static Rect s_empty = CreateEmptyRect();
Shared\MS\Internal\DoubleUtil.cs (3)
232public static bool AreClose(Rect rect1, Rect rect2) 276public static bool RectHasNaN(Rect r)
Shared\MS\Internal\MatrixUtil.cs (1)
54internal static void TransformRect(ref Rect rect, ref Matrix matrix)