96 writes to Width
PresentationCore (11)
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (1)
1388_inkSpaceRectangle.Width = data - _inkSpaceRectangle.Left;
Core\CSharp\MS\Internal\TextFormatting\LineServicesRun.cs (1)
449rect.Width = 0;
Core\CSharp\System\Windows\LayoutManager.cs (1)
488arrangeRect.Width = element.DesiredSize.Width;
Core\CSharp\System\Windows\Media\BoundsDrawingContextWalker.cs (1)
609bounds.Width = Double.PositiveInfinity;
Core\CSharp\System\Windows\Media\FormattedText.cs (1)
2009bound.Width = geometryDrawing.Pen.Thickness;
Core\CSharp\System\Windows\Media\RectangleGeometry.cs (1)
219boundingRect.Width += strokeThickness;
Core\CSharp\System\Windows\Media\Visual.cs (4)
430bboxSubgraph.Width = Double.PositiveInfinity; 625bboxSubgraph.Width = Double.PositiveInfinity; 1083_bboxSubgraph.Width = Double.PositiveInfinity; 1158bboxSubgraph.Width = Double.PositiveInfinity;
Shared\MS\Internal\PointUtil.cs (1)
466rect.Width = rc.right - rc.left;
PresentationFramework (65)
src\Framework\MS\Internal\Documents\TextBoxView.cs (2)
674rect.Width = 0; 752rect.Width += endOfParaGlyphWidth;
src\Framework\MS\Internal\Ink\SelectionEditingBehavior.cs (2)
352newRect.Width -= extendBy; 373newRect.Width += extendBy;
src\Framework\MS\Internal\PtsHost\TableParaClient.cs (2)
1883colRect.Width = CalculatedColumns[iC].DurWidth + Table.InternalCellSpacing; 1902colRect.Width = CalculatedColumns[iC].DurWidth + Table.InternalCellSpacing;
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (6)
1908rect.Width = 0; 2007rect.Width = 0; 2298lineRect.Width = Math.Max(lineVisual.WidthIncludingTrailingWhitespace, 0); 2303lineRect.Width = lineRect.Width + lineRightSpace; 2409elementRect.Width = Math.Max(lineVisual.WidthIncludingTrailingWhitespace, 0); 2414elementRect.Width = elementRect.Width + lineRightSpace;
src\Framework\System\Windows\Controls\DockPanel.cs (2)
306rcChild.Width = childDesiredSize.Width; 312rcChild.Width = childDesiredSize.Width;
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
154childRect.Width = Math.Max(finalSize.Width, dataGrid.CellsPanelActualWidth);
src\Framework\System\Windows\Controls\Primitives\DocumentPageView.cs (1)
971pageVisualRect.Width = Math.Min(pageVisualRect.Width, maxWidth);
src\Framework\System\Windows\Controls\Primitives\ScrollContentPresenter.cs (1)
500childRect.Width = Math.Max(childRect.Width, arrangeSize.Width);
src\Framework\System\Windows\Controls\Primitives\ToolBarPanel.cs (2)
313rcChild.Width = previousChildSize; 321rcChild.Width = Math.Max(arrangeSize.Width, child.DesiredSize.Width);
src\Framework\System\Windows\Controls\Stack.cs (4)
766rcChild.Width = previousChildSize; 774rcChild.Width = Math.Max(arrangeSize.Width, child.DesiredSize.Width); 923newRect.Width = targetRectSize; 982newRect.Width = InternalChildren[childIndex].DesiredSize.Width;
src\Framework\System\Windows\Controls\StickyNote.cs (1)
965newRectangle.Width = newRectangle.Width + newRectangle.X;
src\Framework\System\Windows\Controls\TextBlock.cs (2)
2349rect.Width = 0; 2440rect.Width = rect.Width + endOfParaGlyphWidth;
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (26)
2972viewport.Width = stackPixelSize.Width; 4507viewport.Width = Double.PositiveInfinity; 4697extendedViewport.Width += pixelSizeBeforeViewport + pixelSizeAfterViewport; 4706extendedViewport.Width = Math.Max(extendedViewport.Width + extendedViewport.X, 0.0); 4712extendedViewport.Width = _scrollData._extent.Width - extendedViewport.X; 4735extendedViewport.Width += pixelSizeBeforeViewport + pixelSizeAfterViewport; 4741extendedViewport.Width = Math.Max(extendedViewport.Width / approxSizeOfLogicalUnit + extendedViewport.X, 0.0) * approxSizeOfLogicalUnit; 4747extendedViewport.Width = (_scrollData._extent.Width - extendedViewport.X) * approxSizeOfLogicalUnit; 4978viewport.Width = Math.Max(viewport.Width - sizeAfterStartViewportEdge, 0); 5013viewport.Width = Math.Max(0, parentViewport.Width - pixelSize.Width); 5024viewport.Width = 0; 5217viewport.Width = Math.Max(0, viewport.Width + viewport.X); 5256viewport.Width = Math.Max(0, viewport.Width - inset.Left); 5272viewport.Width = 0; 6591childViewport.Width = 0.0; 6598childViewport.Width = Math.Max(childViewport.Width - stackPixelSizeInViewport.Width, 0.0); 6603childViewport.Width = Math.Max(childViewport.Width - stackPixelSizeInViewport.Width, 0.0); 7006adjustedChildViewport.Width = Math.Max(0, adjustedChildViewport.Width - childPixelSizeInViewport.Width); 8326rcChild.Width = childDesiredSize.Width; 8359rcChild.Width = Math.Max(arrangeLength, childDesiredSize.Width); 8413rcChild.Width = childDesiredSize.Width; 8420rcChild.Width = Math.Max(arrangeLength, childDesiredSize.Width); 8457rcChild.Width = childDesiredSize.Width; 8511rcChild.Width = Math.Max(arrangeLength, childDesiredSize.Width); 11062newRect.Width = targetRectSize; 11113newRect.Width = r.Width;
src\Framework\System\windows\Documents\CaretElement.cs (1)
349scrollRectangle.Width = 0;
src\Framework\System\Windows\Documents\FixedHighlight.cs (1)
180designRect.Width = width;
src\Framework\System\Windows\Documents\FixedTextView.cs (2)
1064designRect.Width = width; 1082caretRect.Width = 0;
src\Framework\System\windows\Documents\TextSelection.cs (2)
2236caretRectangle.Width = 0; 2316caretRectangle.Width = nextCharacterRectangle.Left - caretRectangle.Left;
src\Framework\System\Windows\Shapes\Ellipse.cs (3)
135_rect.Width = _rect.Height = 0; 147_rect.Width = _rect.Height; 160_rect.Width = _rect.Height;
src\Framework\System\Windows\Shapes\Rectangle.cs (3)
188_rect.Width = _rect.Height = 0; 200_rect.Width = _rect.Height; 213_rect.Width = _rect.Height;
src\Framework\System\Windows\Window.cs (1)
8471Width = (lprcMonitor.right - lprcMonitor.left) / dpiScaleX,
PresentationFramework.Aero (5)
Microsoft\Windows\Themes\ButtonChrome.cs (1)
458childArrangeRect.Width = Math.Max(0d, finalSize.Width - 4.0);
Microsoft\Windows\Themes\ListBoxChrome.cs (1)
297childArrangeRect.Width = finalSize.Width - borderX;
Microsoft\Windows\Themes\ScrollChrome.cs (3)
427bounds.Width -= 1.0; 449bounds.Width -= 1.0; 477bounds.Width = Math.Max(0.0, bounds.Width - 1.0);
PresentationFramework.Classic (2)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (2)
726childArrangeRect.Width = finalSize.Width - borderWidth; 1059bounds.Width -= singleThickness.Left + singleThickness.Right;
PresentationFramework.Luna (6)
Microsoft\Windows\Themes\ButtonChrome.cs (1)
375childArrangeRect.Width = Math.Max(0d, finalSize.Width - sideThickness2);
Microsoft\Windows\Themes\ScrollChrome.cs (5)
240bounds.Width = 0.0; 245bounds.Width -= totalPadding; 264bounds.Width -= 1.0; 286bounds.Width -= 1.0; 316bounds.Width = Math.Max(0.0, bounds.Width - 1.0);
PresentationFramework.Royale (5)
Microsoft\Windows\Themes\ButtonChrome.cs (1)
333childArrangeRect.Width = Math.Max(0d, finalSize.Width - sideThickness2);
Microsoft\Windows\Themes\ScrollChrome.cs (4)
222bounds.Width = 0.0; 227bounds.Width -= totalPadding; 246bounds.Width -= 1.0; 268bounds.Width -= 1.0;
UIAutomationClientsideProviders (2)
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (2)
1415rect.Width = clientRect.Width; 1504rect.Width = right - left;
425 references to Width
PresentationCore (39)
Core\CSharp\MS\Internal\Ink\StrokeNode.cs (4)
209abPoints.Add(new Point(startNodeBounds.Width, startNodeBounds.Height)); 333abPoints.Add(new Point(bounds.Width, bounds.Height)); 526dcPoints.Add(new Point(node2Bounds.Width, node2Bounds.Height)); 602abPoints.Add(new Point(node2Bounds.Width, node2Bounds.Height));
Core\CSharp\MS\Internal\Ink\StrokeNodeOperations.cs (1)
91_shapeBounds.Width * pressureFactor,
Core\CSharp\MS\Internal\Ink\StrokeRenderer.cs (8)
104else if (strokeNodeBounds.Height > 40d || strokeNodeBounds.Width > 40d) 112double prevArea = lastRect.Height * lastRect.Width; 113double currArea = strokeNodeBounds.Height * strokeNodeBounds.Width; 531double prevArea = prevStrokeNodeBounds.Height * prevStrokeNodeBounds.Width; 532double currArea = strokeNodeBounds.Height * strokeNodeBounds.Width; 534bool areaChanged = !(prevArea == currArea && prevArea == (prevPrevStrokeNodeBounds.Height * prevPrevStrokeNodeBounds.Width)); 859double rect1Area = rect1.Height * rect1.Width; 860double rect2Area = rect2.Height * rect2.Width;
Core\CSharp\MS\Internal\Media3D\M3DUtil.cs (2)
475double sx = viewport.Width / 2; // half viewport width 494double sx = viewport.Width / 2; // half viewport width
Core\CSharp\MS\Internal\TextFormatting\FullTextLine.cs (1)
2003if (bounds.Rectangle.Width != 0 && bounds.Rectangle.Height != 0)
Core\CSharp\System\Windows\Automation\Peers\UIElement3DAutomationPeer.cs (2)
243DoubleUtil.AreClose(boundingRect.Width, 0)); 406pt = new Point(rectScreen.Left + rectScreen.Width * 0.5, rectScreen.Top + rectScreen.Height * 0.5);
Core\CSharp\System\Windows\Automation\Peers\UIElementAutomationPeer.cs (3)
276DoubleUtil.AreClose(boundingRect.Width, 0)); 302!DoubleUtil.AreClose(boundingRect.Width, 0)) 535pt = new Point(rectScreen.Left + rectScreen.Width * 0.5, rectScreen.Top + rectScreen.Height * 0.5);
Core\CSharp\System\Windows\Ink\Stroke.cs (1)
253double min = Math.Min(shapeBoundingBox.Width, shapeBoundingBox.Height);
Core\CSharp\System\Windows\Media\Effects\Effect.cs (3)
140worldBounds.Left + unitPoint.X * worldBounds.Width, 151if (worldBounds.Width == 0 || worldBounds.Height == 0) 157(worldPoint.X - worldBounds.Left) / worldBounds.Width,
Core\CSharp\System\Windows\Media\FormattedText.cs (1)
2007else if (bound.Width == 0)
Core\CSharp\System\Windows\Media\RectangleGeometry.cs (4)
156DoubleUtil.AreClose(rect1.Width, rect2.Width) && 314double area = Math.Abs(rect.Width * rect.Height); 502radiusX = Math.Min(rect.Width * (1.0 / 2.0), Math.Abs(radiusX));
Core\CSharp\System\Windows\Media\Visual.cs (1)
643return (bounds.Width <= 0 || bounds.Height <= 0);
Core\CSharp\System\Windows\Media3D\Viewport2DVisual3D.cs (1)
176return new Point(uv.X * descBounds.Width + descBounds.Left,
Core\CSharp\System\Windows\UIElement.cs (7)
795EventTrace.EventProvider.TraceEvent(EventTrace.Event.WClientArrangeElementBegin, EventTrace.Keyword.KeywordLayout, EventTrace.Level.Verbose, perfElementID, finalRect.Top, finalRect.Left, finalRect.Width, finalRect.Height); 809if (double.IsPositiveInfinity(finalRect.Width) 811|| DoubleUtil.IsNaN(finalRect.Width) 975EventTrace.EventProvider.TraceEvent(EventTrace.Event.WClientArrangeElementEnd, EventTrace.Keyword.KeywordLayout, EventTrace.Level.Verbose, perfElementID, finalRect.Top, finalRect.Left, finalRect.Width, finalRect.Height); 1134RoundLayoutValue(rect.Width, dpiScaleX), 1300t.Children.Add(new TranslateTransform(-(finalRect.Width * origin.X), -(finalRect.Height * origin.Y))); 1305t.Children.Add(new TranslateTransform(finalRect.Width * origin.X,
PresentationFramework (180)
src\Framework\MS\Internal\AppModel\ApplicationProxyInternal.cs (1)
417_rbw.Value.ResizeMove((int)r.X, (int)r.Y, (int)r.Width, (int)r.Height);
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (1)
783if ((rect.Width > 0) && (rect.Height > 0))
src\Framework\MS\Internal\Controls\InkCanvasFeedbackAdorner.cs (1)
101newSize = new Size(adornerRect.Width, adornerRect.Height);
src\Framework\MS\Internal\Controls\InkCanvasSelectionAdorner.cs (2)
374center = new Point(rectWireFrame.Left + rectWireFrame.Width / 2, rectWireFrame.Top); 407center = new Point(rectWireFrame.Left + rectWireFrame.Width / 2, rectWireFrame.Bottom);
src\Framework\MS\Internal\Documents\DocumentGrid.cs (1)
1890r.Width, r.Height);
src\Framework\MS\Internal\Documents\TextDocumentView.cs (5)
773if (point.X <= paragraphBox.Width) 879if (DoubleUtil.LessThanOrClose(point.X, paragraphBox.X + paragraphBox.Width / 2)) 893if (point.X <= paragraphBox.Width) 2114Point midPoint = new Point(paragraphBox.X + paragraphBox.Width / 2, paragraphBox.Y + paragraphBox.Height / 2); 2912if (DoubleUtil.LessThanOrClose(suggestedX, paragraphBox.Width / 2))
src\Framework\MS\Internal\Documents\TextParagraphView.cs (5)
743if (point.X <= siblingLineBox.X + siblingLineBox.Width) 749siblingGap = Math.Max(lineBox.X - (siblingLineBox.X + siblingLineBox.Width), 0); 766else if ((point.X > lineBox.X + lineBox.Width) && (lineIndex < lines.Count - 1)) 778siblingGap = Math.Max(siblingLineBox.X - (lineBox.X + lineBox.Width), 0); 797foundHit = snapToText || (point.X >= lineBox.X && point.X <= lineBox.X + lineBox.Width);
src\Framework\MS\Internal\Ink\InkCanvasSelection.cs (8)
315|| !DoubleUtil.AreClose(finalRectangle.Width, selectionBounds.Width) ) 418if ( !DoubleUtil.AreClose(elementBounds.Width, newBounds.Width) ) 423newSize.Width = newBounds.Width; 428((FrameworkElement)updatedElement).Width = newBounds.Width; 957double m11 = target.Width / source.Width;
src\Framework\MS\Internal\Ink\PenCursorManager.cs (4)
226double originalWidth = drawingBounds.Width; 230int width = IconHelper.AlignToBytes(drawingBounds.Width, 1); 386if ( DoubleUtil.LessThan(strokeBounds.Width, 1.0) ) 391else if ( DoubleUtil.GreaterThan(strokeBounds.Width, maxLength) )
src\Framework\MS\Internal\LayoutDump.cs (1)
410writer.WriteAttributeString("Width", rect.Width.ToString ("F", CultureInfo.InvariantCulture));
src\Framework\MS\Internal\PtsHost\Line.cs (2)
425Debug.Assert(DoubleUtil.GreaterThanOrClose(rect.Width, 0), "Negative inline object's width."); 443PtsHelper.UpdateMirroringTransform(paragraphFlowDirection, parentFlowDirection, inlineObject.UIElementIsland, rect.Width);
src\Framework\MS\Internal\PtsHost\Pts.cs (1)
913du = TextDpi.ToTextDpi(rect.Width);
src\Framework\MS\Internal\PtsHost\TableParaClient.cs (2)
1891columnStart += colRect.Width; 1910columnStart += colRect.Width;
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (2)
2303lineRect.Width = lineRect.Width + lineRightSpace; 2414elementRect.Width = elementRect.Width + lineRightSpace;
src\Framework\MS\Internal\Text\ComplexLine.cs (2)
186Debug.Assert(DoubleUtil.GreaterThanOrClose(rect.Width, 0), "Negative inline object's width."); 200PtsHelper.UpdateMirroringTransform(_owner.FlowDirection, parentFlowDirection, proxyVisual, rect.Width);
src\Framework\System\Windows\Automation\Peers\DocumentAutomationPeer.cs (1)
185point = new Point(boundingRect.Left + boundingRect.Width * 0.1, boundingRect.Top + boundingRect.Height * 0.1);
src\Framework\System\Windows\Automation\Peers\TextElementAutomationPeer.cs (1)
144pt = new Point(rectScreen.Left + rectScreen.Width * 0.5, rectScreen.Top + rectScreen.Height * 0.5);
src\Framework\System\Windows\Controls\Border.cs (9)
322if (!DoubleUtil.IsZero(innerRect.Width) && !DoubleUtil.IsZero(innerRect.Height)) 339if (!DoubleUtil.IsZero(boundRect.Width) && !DoubleUtil.IsZero(boundRect.Height)) 648Math.Max(0.0, rt.Width - thick.Left - thick.Right), 666Point topRight = new Point(rect.Width - radii.RightTop, 0); 667Point rightTop = new Point(rect.Width, radii.TopRight); 668Point rightBottom = new Point(rect.Width, rect.Height - radii.BottomRight); 669Point bottomRight = new Point(rect.Width - radii.RightBottom, rect.Height); 682double v = (radii.LeftTop) / (radii.LeftTop + radii.RightTop) * rect.Width; 698double v = (radii.LeftBottom) / (radii.LeftBottom + radii.RightBottom) * rect.Width;
src\Framework\System\Windows\Controls\DataGrid.cs (1)
6571Vector v = new Vector(pt.X - (cellBounds.Width * 0.5), pt.Y - (cellBounds.Height * 0.5));
src\Framework\System\Windows\Controls\DataGridCellsPanel.cs (1)
2038availableViewportWidth = hvsInfo.Constraints.Viewport.Width;
src\Framework\System\Windows\Controls\DataGridColumnFloatingHeader.cs (1)
80brush.Viewbox = new Rect(viewBox.X, viewBox.Y, viewBox.Width, height - header.GetVisualCanvasMarginY());
src\Framework\System\Windows\Controls\DocumentViewer.cs (2)
1423else if (point.X > gridRect.X + gridRect.Width) 1425horizontalOffset += (point.X - (gridRect.X + gridRect.Width));
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
1347double endX = startX + rect.Width;
src\Framework\System\Windows\Controls\ItemsControl.cs (1)
3033viewPortBounds.Width, Double.PositiveInfinity);
src\Framework\System\Windows\Controls\Primitives\DocumentPageView.cs (3)
971pageVisualRect.Width = Math.Min(pageVisualRect.Width, maxWidth); 978if(pageVisualRect.Width > 1.0 && pageVisualRect.Height > 1.0) 980RenderTargetBitmap renderTargetBitmap = new RenderTargetBitmap((int)pageVisualRect.Width, (int)pageVisualRect.Height, 96.0, 96.0, PixelFormats.Pbgra32);
src\Framework\System\Windows\Controls\Primitives\Popup.cs (9)
2021double childArea = childBounds.Width * childBounds.Height; 2100double score = currentIntersection != Rect.Empty ? currentIntersection.Width * currentIntersection.Height : 0; 2140if (Math.Abs(intersection.Width - childBounds.Width) > Tolerance || 2161bestTranslation.X = screenBounds.Right - childBounds.Width; 2206bestTranslation.X = screenBounds.Right - childBounds.Width; 2430points[(int)InterestPoint.Center] = new Point(rect.Left + rect.Width / 2.0, 2637desiredSize.Width = Math.Min(desiredSize.Width, screenBounds.Width); 2640double maxHeight = RestrictPercentage * screenBounds.Width * screenBounds.Height / desiredSize.Width;
src\Framework\System\Windows\Controls\Primitives\ScrollContentPresenter.cs (1)
500childRect.Width = Math.Max(childRect.Width, arrangeSize.Width);
src\Framework\System\Windows\Controls\Primitives\UniformGrid.cs (2)
219double xStep = childBounds.Width; 222childBounds.X += childBounds.Width * FirstColumn;
src\Framework\System\Windows\Controls\Stack.cs (1)
900targetRectSize = r.Width;
src\Framework\System\Windows\Controls\StickyNote.cs (5)
965newRectangle.Width = newRectangle.Width + newRectangle.X; 1157Point minBoundary = new Point(-(rectNote.X + rectNote.Width - leftBoundary), - rectNote.Y); 1158Point maxBoundary = new Point(rectPage.Width - rectNote.X - rightBoundary, rectPage.Height - rectNote.Y - 20); 1182double wNew = rectNote.Width + horizontalChange; 1193wNew = rectNote.Width;
src\Framework\System\Windows\Controls\TextBlock.cs (1)
2440rect.Width = rect.Width + endOfParaGlyphWidth;
src\Framework\System\Windows\Controls\TextRangeAdaptor.cs (1)
1845asDoubles[4 * i + 2] = rects[i].Width;
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (44)
2286double factor = Math.Min(1.0, isHorizontal ? viewport.Width / extendedViewport.Width : viewport.Height / extendedViewport.Height); 2970if (double.IsInfinity(viewport.Width)) 3929return ((isHorizontal && DoubleUtil.GreaterThanOrClose(currentExtendedViewport.Width, estimatedExtendedViewport.Width)) || 4596double factor = isHorizontal ? viewport.Width : viewport.Height; 4706extendedViewport.Width = Math.Max(extendedViewport.Width + extendedViewport.X, 0.0); 4710if (DoubleUtil.GreaterThan(extendedViewport.X + extendedViewport.Width, _scrollData._extent.Width)) 4741extendedViewport.Width = Math.Max(extendedViewport.Width / approxSizeOfLogicalUnit + extendedViewport.X, 0.0) * approxSizeOfLogicalUnit; 4745if (DoubleUtil.GreaterThan(extendedViewport.X + extendedViewport.Width / approxSizeOfLogicalUnit, _scrollData._extent.Width)) 4865double factor = Math.Max(1.0, isHorizontal ? extendedViewport.Width / viewport.Width : extendedViewport.Height / viewport.Height); 4880viewport.X = ScrollContentPresenter.CoerceOffset(viewport.X, extent.Width, viewport.Width); 4881if (!IsPixelBased && isHorizontal && DoubleUtil.IsZero(viewport.Width) && DoubleUtil.AreClose(viewport.X, extent.Width)) 4883viewport.X = ScrollContentPresenter.CoerceOffset(viewport.X - 1, extent.Width, viewport.Width); 4978viewport.Width = Math.Max(viewport.Width - sizeAfterStartViewportEdge, 0); 5005if (DoubleUtil.GreaterThan(parentViewport.Width, 0)) 5007if (DoubleUtil.GreaterThanOrClose(parentViewport.Width, pixelSize.Width)) 5013viewport.Width = Math.Max(0, parentViewport.Width - pixelSize.Width); 5021sizeBeforeEndViewportEdge = parentViewport.Width; 5195if (DoubleUtil.GreaterThan(viewport.Width, 0)) 5217viewport.Width = Math.Max(0, viewport.Width + viewport.X); 5246else if (DoubleUtil.GreaterThan(viewport.Width, 0)) 5251if (DoubleUtil.GreaterThanOrClose(viewport.Width, inset.Left)) 5256viewport.Width = Math.Max(0, viewport.Width - inset.Left); 5267cacheAfterSize = Math.Max(0, cacheAfterSize - (inset.Left - viewport.Width)); 6528return DoubleUtil.GreaterThanOrClose(stackPixelSizeInViewport.Width, viewport.Width); 6540return DoubleUtil.AreClose(viewport.Width, 0.0); 6598childViewport.Width = Math.Max(childViewport.Width - stackPixelSizeInViewport.Width, 0.0); 6603childViewport.Width = Math.Max(childViewport.Width - stackPixelSizeInViewport.Width, 0.0); 7006adjustedChildViewport.Width = Math.Max(0, adjustedChildViewport.Width - childPixelSizeInViewport.Width); 7098pixelSizeInViewport = Math.Min(childViewport.Width, childPixelSize.Width - pixelSizeBeforeViewport); 7125if (DoubleUtil.GreaterThan(childViewport.Width, 0.0)) 7183DoubleUtil.AreClose(childViewport.Width, 0.0)) 7201DoubleUtil.AreClose(childViewport.Width, 0.0)) 7245double childPixelWidthInViewport = Math.Min(childViewport.Width, childPixelSize.Width - Math.Max(childViewport.X, 0.0)); 9499viewportSize.Width = viewport.Width; 9847double proposedViewportSize = Math.Floor(viewport.Width / approxSizeOfLogicalUnit); 9854"pxSz:", stackPixelSizeInViewport.Width, viewport.Width, 10351viewportSize.Width = viewport.Width; 10529double proposedViewportSize = Math.Floor(viewport.Width / approxSizeOfLogicalUnit); 11028targetRectSize = r.Width; 11113newRect.Width = r.Width; 12786writer.Write(rect.Width);
src\Framework\System\windows\Documents\CaretElement.cs (4)
305if (!caretRectangle.IsEmpty && _interimWidth != caretRectangle.Width) 307_interimWidth = caretRectangle.Width; 348scrollRectangle.X += scrollRectangle.Width; 377MS.Internal.Documents.TextViewBase.BringRectIntoViewMinimally(_textEditor.TextView, new Rect(scrollToOriginPosition, scrollRectangle.Y, scrollRectangle.Width, scrollRectangle.Height));
src\Framework\System\Windows\Documents\FixedSOMPageConstructor.cs (5)
931if (bounds.Height > bounds.Width && bounds.Width < maxLineWidth && bounds.Height > bounds.Width * minLineRatio) 933double center = bounds.Left + .5 * bounds.Width; 938else if (bounds.Height < maxLineWidth && bounds.Width > bounds.Height * minLineRatio)
src\Framework\System\Windows\Documents\FixedSOMSemanticBox.cs (4)
224double longerWidth = thisRect.Width > otherRect.Width ? thisRect.Width : otherRect.Width;
src\Framework\System\Windows\Documents\FixedSOMTable.cs (2)
86double horizontalOverlap = bounds.Width * 0.2; 227deleteCol = cell.IsEmpty && cell.BoundingRect.Width < _minColumnWidth;
src\Framework\System\Windows\Documents\FixedTextView.cs (3)
242offset.X += bounds.Width; 1077if (caretRect.Width > 0) 1081caretRect.X += caretRect.Width / 2;
src\Framework\System\Windows\Documents\FlowPosition.cs (1)
270image.Width = somImage.BoundingRect.Width;
src\Framework\System\Windows\Documents\Glyphs.cs (1)
220_glyphRunOrigin.X = leftToRight ? 0 : alignmentRect.Width;
src\Framework\System\Windows\Documents\RubberbandSelector.cs (4)
212if (HasSelection && _selectionRect.Width > 0 && _selectionRect.Height > 0) 301RenderTargetBitmap data = new RenderTargetBitmap((int)(scale * _selectionRect.Width), (int)(scale * _selectionRect.Height),dpi,dpi, PixelFormats.Pbgra32); 561dStart = boundingRect.Left + boundingRect.Width * dStart; 562dEnd = boundingRect.Left + boundingRect.Width * dEnd;
src\Framework\System\windows\Documents\TextEditor.cs (1)
1548if (e.Point.X > lastCharacterRect.X + lastCharacterRect.Width)
src\Framework\System\windows\Documents\TextEditorContextMenu.cs (1)
369maxPoint = new Point(bounds.X + bounds.Width, bounds.Y + bounds.Height);
src\Framework\System\windows\Documents\TextEditorMouse.cs (1)
582if (mouseMovePoint.X > lastCharacterRect.X + lastCharacterRect.Width)
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (2)
1724_columnRect.Left + _columnRect.Width / 2, 1746double dx = mousePoint.X - (_columnRect.X + _columnRect.Width / 2);
src\Framework\System\Windows\FrameworkElement.cs (6)
4287Double expandFactor = Math.Min(xConstr / childBoundsTr.Width, 4420unclippedDesiredSize.Width = unclippedBoundsTransformed.Width; 4445desiredSize.Width = childBoundsTransformed.Width; 4750clippedInkSize.Width = inkRectTransformed.Width; 4766Size clientSize = new Size(Math.Max(0, finalRect.Width - marginWidth), 4925inkSize.Width = inkRectTransformed.Width;
src\Framework\System\Windows\Input\KeyboardNavigation.cs (2)
651control.Width = rect.Width; 669control.Width = rect.Width;
src\Framework\System\Windows\Interop\ActiveXHost.cs (1)
206_bounds.right = (int) (bounds.Width + bounds.X);
src\Framework\System\Windows\Interop\HwndHost.cs (1)
812(int)rcBoundingBox.Width,
src\Framework\System\Windows\Shapes\Ellipse.cs (4)
145if (_rect.Width > _rect.Height) 151_rect.Height = _rect.Width; 158if (_rect.Width < _rect.Height) 164_rect.Height = _rect.Width;
src\Framework\System\Windows\Shapes\Rectangle.cs (4)
198if (_rect.Width > _rect.Height) 204_rect.Height = _rect.Width; 211if (_rect.Width < _rect.Height) 217_rect.Height = _rect.Width;
src\Framework\System\Windows\Shapes\Shape.cs (4)
608if (geometryBounds.Width > xScale * Double.Epsilon) 610xScale /= geometryBounds.Width; 616if (geometryBounds.Width == 0) 674stretchedSize = new Size(geometryBounds.Width * xScale + strokeThickness, geometryBounds.Height * yScale + strokeThickness);
src\Framework\System\Windows\Standard\MessageWindow.cs (1)
102(int)location.Width,
src\Framework\System\Windows\Window.cs (5)
3952leftDeviceUnits = ownerRectDeviceUnits.X + ((ownerRectDeviceUnits.Width - currentSizeDeviceUnits.Width) / 2); 4113Point sizeLogicalUnits = DeviceToLogicalUnits(new Point(rectDeviceUnits.Width, rectDeviceUnits.Height)); 4795SetValue(WidthProperty, restoreRect.Width); 6987if (margin.Left + margin.Right >= logicalClientRc.Width 6997LogicalToDeviceUnits(new Point(logicalClientRc.Width - margin.Right, logicalClientRc.Height - margin.Bottom)));
PresentationFramework.Aero (45)
Microsoft\Windows\Themes\BulletChrome.cs (11)
632if ((bounds.Width > 4.0) && (bounds.Height > 4.0)) 641bounds.Width - 2.0, 654double centerX = bounds.Width * 0.5; 673if ((bounds.Width >= 6.0) && (bounds.Height >= 6.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)); 693double centerX = bounds.Width * 0.5; 735double centerX = bounds.Width * 0.5; 744if ((bounds.Width >= 5.0) && (bounds.Height >= 5.0)) 756bounds.Width - 1.0, 767double centerX = bounds.Width * 0.5;
Microsoft\Windows\Themes\ButtonChrome.cs (8)
460childArrangeRect.X = (finalSize.Width - childArrangeRect.Width) * 0.5; 500if ((bounds.Width > 4.0) && (bounds.Height > 4.0)) 504bounds.Width - 2.0, 521if ((bounds.Width > 4.0) && (bounds.Height > 4.0)) 542if ((bounds.Width >= 5.0) && (bounds.Height >= 5.0)) 613bounds.Width - 1.0, 656if ((bounds.Width >= 4.0) && (bounds.Height >= 4.0)) 662dc.DrawRoundedRectangle(null, innerBorder, new Rect(bounds.Left + 1.5, bounds.Top + 1.5, bounds.Width - 3.0, bounds.Height - 3.0), 1.75, 1.75);
Microsoft\Windows\Themes\ListBoxChrome.cs (6)
332if ((bounds.Width > borderX) && 337bounds.Width - borderX, 347if ((bounds.Width > borderX + innerBorderThickness2) && 352bounds.Width - borderX - innerBorderThickness2, 367if ((bounds.Width >= borderX) && 374bounds.Width - 1.0,
Microsoft\Windows\Themes\ScrollChrome.cs (19)
423if ((bounds.Width >= 1.0) && (bounds.Height >= 1.0)) 446if (bounds.Width >= 1.0) 465if ((bounds.Width > 0.0) && (bounds.Height > 2.0)) 473new Rect(bounds.X, bounds.Y + 2.0, bounds.Width, bounds.Height - 2.0), 477bounds.Width = Math.Max(0.0, bounds.Width - 1.0); 483if ((bounds.Width >= 2.0) && (bounds.Height >= 2.0)) 492new Rect(bounds.X, bounds.Y, bounds.Width, bounds.Height), 498if ((bounds.Width >= 2.0) && (bounds.Height >= 2.0)) 506new Rect(bounds.X, bounds.Y, bounds.Width, bounds.Height), 516if ((bounds.Width > 0.0) && (bounds.Height > 0.0)) 544if ((bounds.Width > 15.0) && (bounds.Height > 2.0)) 550double x = bounds.X + ((bounds.Width * 0.5) - 4.0); 567if ((bounds.Width > 2.0) && (bounds.Height > 15.0)) 571double width = Math.Min(7.0, bounds.Width); 573double x = bounds.X + ((bounds.Width - width) * 0.5); 733if ((bounds.Width < glyphWidth) || (bounds.Height < glyphHeight)) 735double widthScale = Math.Min(glyphWidth, bounds.Width) / glyphWidth; 738double x = (bounds.X + (bounds.Width * 0.5)) / widthScale - (glyphWidth * 0.5); 752double x = bounds.X + (bounds.Width * 0.5) - (glyphWidth * 0.5);
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
113if (shadowBounds.Width > 0 && shadowBounds.Height > 0 && color.A > 0)
PresentationFramework.Classic (26)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (25)
608Math.Max(0.0, rt.Width - thick.Left - thick.Right), 837if (background != null && bounds.Width > 0.0 && bounds.Height > 0.0) 942if (borderSize.Width > bounds.Width || borderSize.Height > bounds.Height) 944if(borderBrush != null && bounds.Width > 0.0 && bounds.Height > 0.0) 958dc.DrawRectangle(borderBrush, null, new Rect(bounds.Left, bounds.Top, bounds.Width, borderThickness.Top)); 976dc.DrawRectangle(borderBrush, null, new Rect(bounds.Left, bounds.Bottom - borderThickness.Bottom, bounds.Width, borderThickness.Bottom)); 999if (bounds.Width < 2.0 * (singleThickness.Left + singleThickness.Right) || bounds.Height < 2.0 * (singleThickness.Top + singleThickness.Bottom)) 1009if (bounds.Width < (singleThickness.Left + singleThickness.Right) || bounds.Height < (singleThickness.Top + singleThickness.Bottom)) 1018if (bounds.Width < 2.0 * (singleThickness.Left + singleThickness.Right) || bounds.Height < 2.0 * (singleThickness.Top + singleThickness.Bottom)) 1028if (bounds.Width < 2.0 * (singleThickness.Left + singleThickness.Right) || bounds.Height < 2.0 * (singleThickness.Top + singleThickness.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)); 1052if (bounds.Width < singleThickness.Left + singleThickness.Right) 1220if (bounds.Width < 6.0 || bounds.Height < 6.0) 1224Rect tempBounds = new Rect(0.0, 0.0, bounds.Height, bounds.Width); 1242if (bounds.Width < 6.0 || bounds.Height < 6.0) 1256if (bounds.Width < 6.0 || bounds.Height < 6.0) 1260Rect tempBounds = new Rect(0.0, 0.0, bounds.Height, bounds.Width) ; 1278if (bounds.Width < 6.0 || bounds.Height < 6.0) 1281Rect tempBounds = new Rect(0.0, 0.0, bounds.Width, bounds.Height); 1300if (bounds.Width < (singleThickness.Left + singleThickness.Right) || bounds.Height < (singleThickness.Top + singleThickness.Bottom)) 1308if (bounds.Width < (singleThickness.Left + singleThickness.Right) || bounds.Height < (singleThickness.Top + singleThickness.Bottom)) 1316if (bounds.Width < 2.0 * (singleThickness.Left + singleThickness.Right) || bounds.Height < 2.0 * (singleThickness.Top + singleThickness.Bottom)) 1325if (bounds.Width < (singleThickness.Left + singleThickness.Right) || bounds.Height < (singleThickness.Top + singleThickness.Bottom)) 1333if (bounds.Width < 12 || bounds.Height < 12)
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
113if (shadowBounds.Width > 0 && shadowBounds.Height > 0 && color.A > 0)
PresentationFramework.Luna (46)
Microsoft\Windows\Themes\ButtonChrome.cs (11)
377childArrangeRect.X = (finalSize.Width - childArrangeRect.Width) * 0.5; 394if ((bounds.Width < (4.0 / 3.0)) || (bounds.Height < (4.0 / 3.0))) 408bounds.Width - 4.0 / 3.0, 414if ((bounds.Width < 1.5) || (bounds.Height < 1.5)) 435if ((bounds.Width < 0.6) || (bounds.Height < 0.6)) 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); 485if (pen != null && (bounds.Width >= (8.0 / 3.0)) && (bounds.Height >= (8.0 / 3.0))) 493bounds.Width - 8.0 / 3.0, 504if ((borderPen != null) && (bounds.Width >= 1.0) && (bounds.Height >= 1.0)) 512bounds.Width - 1.0,
Microsoft\Windows\Themes\ScrollChrome.cs (20)
238if (totalPadding >= bounds.Width) 260if ((bounds.Width >= 1.0) && (bounds.Height >= 1.0)) 283if (bounds.Width >= 1.0) 304if ((bounds.Width > 0.0) && (bounds.Height > 2.0)) 312new Rect(bounds.X, bounds.Y + 2.0, bounds.Width, bounds.Height - 2.0), 316bounds.Width = Math.Max(0.0, bounds.Width - 1.0); 323if ((bounds.Width >= 2.0) && (bounds.Height >= 2.0)) 332new Rect(bounds.X, bounds.Y, bounds.Width, bounds.Height), 338if ((bounds.Width >= 2.0) && (bounds.Height >= 2.0)) 346new Rect(bounds.X, bounds.Y, bounds.Width, bounds.Height), 357if ((bounds.Width > 0.0) && (bounds.Height > 0.0)) 386if ((bounds.Width > 8.0) && (bounds.Height > 2.0)) 391double x = bounds.X + ((bounds.Width * 0.5) - 4.0); 408if ((bounds.Width > 2.0) && (bounds.Height > 8.0)) 412double width = Math.Min(6.0, bounds.Width); 413double x = bounds.X + ((bounds.Width - width) * 0.5); 592if ((bounds.Width < glyphWidth) || (bounds.Height < glyphHeight)) 594double widthScale = Math.Min(glyphWidth, bounds.Width) / glyphWidth; 597double x = (bounds.X + (bounds.Width * 0.5)) / widthScale - (glyphWidth * 0.5); 611double x = bounds.X + (bounds.Width * 0.5) - (glyphWidth * 0.5);
parent\Shared\Microsoft\Windows\Themes\BulletChrome.cs (14)
222Math.Max(0, bounds.Width - thickness.Left - thickness.Right), 242if (fill != null && (bounds.Width > 2.0) && (bounds.Height > 2.0)) 251double centerX = bounds.Width * 0.5; 266if (highlightPen != null && (bounds.Width >= 4.0) && (bounds.Height >= 4.0)) 270dc.DrawRectangle(null, highlightPen, new Rect(bounds.Left + 1.0, bounds.Top + 1.0, bounds.Width - 2.0, bounds.Height - 2.0)); 274double centerX = bounds.Width * 0.5; 286if (glyphFill != null && (bounds.Width > 4.0) && (bounds.Height > 4.0)) 318dc.DrawRectangle(glyphFill, null, new Rect(bounds.Left + 2, bounds.Top + 2, bounds.Width - 4.0, bounds.Height - 4.0)); 323if ((bounds.Width > 8.0) && (bounds.Height > 8.0)) 325double centerX = bounds.Width * 0.5; 336if ((bounds.Width >= 5.0) && (bounds.Height >= 5.0)) 348bounds.Width - 1.0, 370double centerX = bounds.Width * 0.5; 464Math.Max(0.0, rt.Width - thick.Left - thick.Right),
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
113if (shadowBounds.Width > 0 && shadowBounds.Height > 0 && color.A > 0)
PresentationFramework.Royale (40)
Microsoft\Windows\Themes\ButtonChrome.cs (8)
335childArrangeRect.X = (finalSize.Width - childArrangeRect.Width) * 0.5; 356if ((bounds.Width < 0.6) || (bounds.Height < 0.6)) 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); 406if (pen != null && (bounds.Width >= (8.0 / 3.0)) && (bounds.Height >= (8.0 / 3.0))) 414bounds.Width - 8.0 / 3.0, 425if ((borderPen != null) && (bounds.Width >= 1.0) && (bounds.Height >= 1.0)) 433bounds.Width - 1.0,
Microsoft\Windows\Themes\ScrollChrome.cs (17)
220if (totalPadding >= bounds.Width) 242if ((bounds.Width >= 1.0) && (bounds.Height >= 1.0)) 265if (bounds.Width >= 1.0) 283if ((bounds.Width >= 2.0) && (bounds.Height >= 2.0)) 292new Rect(bounds.X, bounds.Y, bounds.Width, bounds.Height), 298if ((bounds.Width >= 2.0) && (bounds.Height >= 2.0)) 306new Rect(bounds.X, bounds.Y, bounds.Width, bounds.Height), 317if ((bounds.Width > 0.0) && (bounds.Height > 0.0)) 346if ((bounds.Width > 8.0) && (bounds.Height > 2.0)) 351double x = bounds.X + ((bounds.Width * 0.5) - 4.0); 368if ((bounds.Width > 2.0) && (bounds.Height > 8.0)) 372double width = Math.Min(6.0, bounds.Width); 373double x = bounds.X + ((bounds.Width - width) * 0.5); 552if ((bounds.Width < glyphWidth) || (bounds.Height < glyphHeight)) 554double widthScale = Math.Min(glyphWidth, bounds.Width) / glyphWidth; 557double x = (bounds.X + (bounds.Width * 0.5)) / widthScale - (glyphWidth * 0.5); 571double x = bounds.X + (bounds.Width * 0.5) - (glyphWidth * 0.5);
parent\Shared\Microsoft\Windows\Themes\BulletChrome.cs (14)
222Math.Max(0, bounds.Width - thickness.Left - thickness.Right), 242if (fill != null && (bounds.Width > 2.0) && (bounds.Height > 2.0)) 251double centerX = bounds.Width * 0.5; 266if (highlightPen != null && (bounds.Width >= 4.0) && (bounds.Height >= 4.0)) 270dc.DrawRectangle(null, highlightPen, new Rect(bounds.Left + 1.0, bounds.Top + 1.0, bounds.Width - 2.0, bounds.Height - 2.0)); 274double centerX = bounds.Width * 0.5; 286if (glyphFill != null && (bounds.Width > 4.0) && (bounds.Height > 4.0)) 318dc.DrawRectangle(glyphFill, null, new Rect(bounds.Left + 2, bounds.Top + 2, bounds.Width - 4.0, bounds.Height - 4.0)); 323if ((bounds.Width > 8.0) && (bounds.Height > 8.0)) 325double centerX = bounds.Width * 0.5; 336if ((bounds.Width >= 5.0) && (bounds.Height >= 5.0)) 348bounds.Width - 1.0, 370double centerX = bounds.Width * 0.5; 464Math.Max(0.0, rt.Width - thick.Left - thick.Right),
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
113if (shadowBounds.Width > 0 && shadowBounds.Height > 0 && color.A > 0)
System.Activities.Core.Presentation (1)
System\Activities\Core\Presentation\FlowchartExpressionAdorner.cs (1)
61Rect tooltipRect = new Rect(adornedElementRect.TopLeft + new Vector(adornedElementRect.Width, -tooltip.DesiredSize.Height), tooltip.DesiredSize);
System.Activities.Presentation (18)
System.Activities.Presentation\System\Activities\Presentation\Annotations\AnnotationAdorner.cs (2)
83Fx.Assert(anchorPoint.X >= canvas.X && anchorPoint.X <= canvas.X + canvas.Width, "X axis of anchorPoint not within canvas"); 89if (anchorPoint.X + desiredSize.Width <= canvas.X + canvas.Width)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\RenderUtils.cs (1)
33if (!Tolerances.NearZero(spineRect.Width) && !Tolerances.NearZero(spineRect.Height))
System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (2)
829this.width = bounds.Width; 855Width = bounds.Width,
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorRouter.cs (2)
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\View\QuadTree.cs (9)
52if (this.bounds.Width == 0 || this.bounds.Height == 0) 56if (bounds.Width == 0 || bounds.Height == 0) 277Fx.Assert(bounds.Width != 0 && bounds.Height != 0, "Cannot have empty bound"); 278if (bounds.Width == 0 || bounds.Height == 0) 310Fx.Assert(bounds.Width != 0 && bounds.Height != 0, "Cannot have empty bound"); 311if (bounds.Width == 0 || bounds.Height == 0) 319double w = toInsert.bounds.Width / 2; 407double w = this.bounds.Width / 2; 473double w = this.bounds.Width / 2;
System.Activities.Presentation\System\Activities\Presentation\View\RubberBandSelector.cs (1)
254this.rubberBand.Width = rect.Width;
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (1)
701if (position.X > charRect.Left + charRect.Width / 2)
UIAutomationClient (10)
MS\Internal\Automation\ClickablePoint.cs (8)
65pt = new Point(rect.Left + (rect.Width /2), rect.Top + 1); 69pt = new Point(rect.Left + (rect.Width /2), rect.Bottom - 1); 109Double size = rect.Width * rect.Height; 117double xIncr = rect.Width / hits; 140Double size = rect.Width * rect.Height; 149double xHits = hits * (rect.Width / rect.Height); 150double yHits = hits * (rect.Height / rect.Width); 152double xMovePixels = rect.Width / xHits;
System\Windows\Automation\ItemContainerPattern.cs (1)
171value = new double[] { rc.Left, rc.Top, rc.Width, rc.Height };
System\Windows\Automation\PropertyCondition.cs (1)
176val = new double[] { rc.Left, rc.Top, rc.Width, rc.Height };
UIAutomationClientsideProviders (10)
MS\Internal\AutomationProxies\Misc.cs (1)
93doubles[scan++] = rectArray[i].Width;
MS\Internal\AutomationProxies\MSAANativeProvider.cs (1)
458if (rc.Width <= 0 || rc.Height <= 0)
MS\Internal\AutomationProxies\NonClientArea.cs (1)
556if (menuProxy.BoundingRectangle.Width != 0 && menuProxy.BoundingRectangle.Height != 0)
MS\Internal\AutomationProxies\WindowsEditBoxRange.cs (2)
296if (rect.Width > 0 && rect.Height > 0) // r.Empty is true only if both width & height are zero. Duh! 737if (rect.Width > 0 && rect.Height > 0) // r.Empty is true only if both width & height are zero. Duh!
MS\Internal\AutomationProxies\WindowsListView.cs (1)
456else if (boundingRectangle.Left + boundingRectangle.Width - x < xAdjustment)
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (3)
207if (rect.Width > 0 && rect.Height > 0) 220if (rect.Width > 0 && rect.Height > 0) 1415rect.Width = clientRect.Width;
MS\Internal\AutomationProxies\WindowsUpDown.cs (1)
558int x = (int) rc.Left - updownRect.left + (int) rc.Width / 2;
WindowsBase (10)
Base\System\Windows\Generated\Rect.cs (5)
66rect1.Width == rect2.Width && 107rect1.Width.Equals(rect2.Width) && 166Width.GetHashCode() ^
Base\System\Windows\Rect.cs (2)
537if ((rect.Width == Double.PositiveInfinity) || (Width == Double.PositiveInfinity))
Shared\MS\Internal\DoubleUtil.cs (3)
247DoubleUtil.AreClose(rect1.Width, rect2.Width); 281|| DoubleUtil.IsNaN(r.Width) )