89 writes to Height
PresentationCore (11)
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (1)
1399_inkSpaceRectangle.Height = data - _inkSpaceRectangle.Top;
Core\CSharp\MS\Internal\TextFormatting\LineServicesRun.cs (1)
454rect.Height = 0;
Core\CSharp\System\Windows\LayoutManager.cs (1)
491arrangeRect.Height = element.DesiredSize.Height;
Core\CSharp\System\Windows\Media\BoundsDrawingContextWalker.cs (1)
610bounds.Height = Double.PositiveInfinity;
Core\CSharp\System\Windows\Media\FormattedText.cs (1)
2005bound.Height = geometryDrawing.Pen.Thickness;
Core\CSharp\System\Windows\Media\RectangleGeometry.cs (1)
220boundingRect.Height += strokeThickness;
Core\CSharp\System\Windows\Media\Visual.cs (4)
431bboxSubgraph.Height = Double.PositiveInfinity; 626bboxSubgraph.Height = Double.PositiveInfinity; 1084_bboxSubgraph.Height = Double.PositiveInfinity; 1159bboxSubgraph.Height = Double.PositiveInfinity;
Shared\MS\Internal\PointUtil.cs (1)
467rect.Height = rc.bottom - rc.top;
PresentationFramework (59)
src\Framework\MS\Internal\Ink\SelectionEditingBehavior.cs (2)
363newRect.Height -= extendBy; 383newRect.Height += extendBy;
src\Framework\MS\Internal\PtsHost\TableParaClient.cs (4)
764rowRect.Height = GetActualRowHeight(arrayTableRowDesc, iR, mbpInfo); 1972rowRect.Height = rowGroupHeight; 1990rowRect.Height = rowGroupHeight; 2022rowRect.Height = GetActualRowHeight(arrayTableRowDesc, iR, mbpInfo);
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (4)
2302lineRect.Height = lineRect.Height + lineTopSpace; 2343r.Height = r.Height + lineTopSpace; 2413elementRect.Height = elementRect.Height + lineTopSpace; 2453r.Height = r.Height + lineTopSpace;
src\Framework\System\Windows\Controls\DockPanel.cs (2)
317rcChild.Height = childDesiredSize.Height; 323rcChild.Height = childDesiredSize.Height;
src\Framework\System\Windows\Controls\Primitives\DocumentPageView.cs (1)
972pageVisualRect.Height = Math.Min(pageVisualRect.Height, maxHeight);
src\Framework\System\Windows\Controls\Primitives\ScrollContentPresenter.cs (1)
501childRect.Height = Math.Max(childRect.Height, arrangeSize.Height);
src\Framework\System\Windows\Controls\Primitives\ToolBarPanel.cs (2)
314rcChild.Height = Math.Max(arrangeSize.Height, child.DesiredSize.Height); 320rcChild.Height = previousChildSize;
src\Framework\System\Windows\Controls\Stack.cs (4)
767rcChild.Height = Math.Max(arrangeSize.Height, child.DesiredSize.Height); 773rcChild.Height = previousChildSize; 917newRect.Height = targetRectSize; 988newRect.Height = InternalChildren[childIndex].DesiredSize.Height;
src\Framework\System\Windows\Controls\StickyNote.cs (1)
971newRectangle.Height = newRectangle.Height + newRectangle.Y;
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (26)
2976viewport.Height = stackPixelSize.Height; 4511viewport.Height = Double.PositiveInfinity; 4803extendedViewport.Height += pixelSizeBeforeViewport + pixelSizeAfterViewport; 4812extendedViewport.Height = Math.Max(extendedViewport.Height + extendedViewport.Y, 0.0); 4818extendedViewport.Height = _scrollData._extent.Height - extendedViewport.Y; 4841extendedViewport.Height += pixelSizeBeforeViewport + pixelSizeAfterViewport; 4847extendedViewport.Height = Math.Max(extendedViewport.Height / approxSizeOfLogicalUnit + extendedViewport.Y, 0.0) * approxSizeOfLogicalUnit; 4853extendedViewport.Height = (_scrollData._extent.Height - extendedViewport.Y) * approxSizeOfLogicalUnit; 5077viewport.Height = Math.Max(viewport.Height - sizeAfterStartViewportEdge, 0); 5112viewport.Height = Math.Max(0, parentViewport.Height - pixelSize.Height); 5123viewport.Height = 0; 5320viewport.Height = Math.Max(0, viewport.Height + viewport.Y); 5359viewport.Height = Math.Max(0, viewport.Height - inset.Top); 5375viewport.Height = 0; 6636childViewport.Height = 0.0; 6644childViewport.Height = Math.Max(childViewport.Height - stackPixelSizeInViewport.Height, 0.0); 6649childViewport.Height = Math.Max(childViewport.Height - stackPixelSizeInViewport.Height, 0.0); 7012adjustedChildViewport.Height = Math.Max(0, adjustedChildViewport.Height - childPixelSizeInViewport.Height); 8327rcChild.Height = Math.Max(arrangeLength, childDesiredSize.Height); 8358rcChild.Height = childDesiredSize.Height; 8414rcChild.Height = Math.Max(arrangeLength, childDesiredSize.Height); 8419rcChild.Height = childDesiredSize.Height; 8458rcChild.Height = Math.Max(arrangeLength, childDesiredSize.Height); 8510rcChild.Height = childDesiredSize.Height; 11068newRect.Height = targetRectSize; 11119newRect.Height = r.Height;
src\Framework\System\Windows\Documents\FixedTextView.cs (1)
1087caretRect.Height = 1;
src\Framework\System\windows\Documents\TextSelection.cs (2)
2250caretRectangle.Height = caretHeight; 2260caretRectangle.Height = Math.Abs(bottom.Y - top.Y);
src\Framework\System\Windows\Input\KeyboardNavigation.cs (2)
2605rect.Height = Math.Min(Math.Max(before, 0.0d), rect.Height); 2611rect.Height = height;
src\Framework\System\Windows\Shapes\Ellipse.cs (3)
135_rect.Width = _rect.Height = 0; 151_rect.Height = _rect.Width; 164_rect.Height = _rect.Width;
src\Framework\System\Windows\Shapes\Rectangle.cs (3)
188_rect.Width = _rect.Height = 0; 204_rect.Height = _rect.Width; 217_rect.Height = _rect.Width;
src\Framework\System\Windows\Window.cs (1)
8472Height = (lprcMonitor.bottom - lprcMonitor.top) / dpiScaleY
PresentationFramework.Aero (5)
Microsoft\Windows\Themes\ButtonChrome.cs (1)
459childArrangeRect.Height = Math.Max(0d, finalSize.Height - 4.0);
Microsoft\Windows\Themes\ListBoxChrome.cs (1)
298childArrangeRect.Height = finalSize.Height - borderY;
Microsoft\Windows\Themes\ScrollChrome.cs (3)
428bounds.Height -= 1.0; 439bounds.Height -= 1.0; 476bounds.Height -= 1.0;
PresentationFramework.Classic (2)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (2)
727childArrangeRect.Height = finalSize.Height - borderHeight; 1046bounds.Height -= singleThickness.Top + singleThickness.Bottom;
PresentationFramework.Luna (6)
Microsoft\Windows\Themes\ButtonChrome.cs (1)
376childArrangeRect.Height = Math.Max(0d, finalSize.Height - sideThickness2);
Microsoft\Windows\Themes\ScrollChrome.cs (5)
251bounds.Height = 0.0; 256bounds.Height -= totalPadding; 265bounds.Height -= 1.0; 276bounds.Height -= 1.0; 315bounds.Height -= 1.0;
PresentationFramework.Royale (5)
Microsoft\Windows\Themes\ButtonChrome.cs (1)
334childArrangeRect.Height = Math.Max(0d, finalSize.Height - sideThickness2);
Microsoft\Windows\Themes\ScrollChrome.cs (4)
233bounds.Height = 0.0; 238bounds.Height -= totalPadding; 247bounds.Height -= 1.0; 258bounds.Height -= 1.0;
UIAutomationClientsideProviders (1)
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (1)
1505rect.Height = bottom - top;
452 references to Height
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)
92_shapeBounds.Height * 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)
476double sy = viewport.Height / 2; // half viewport height 495double sy = viewport.Height / 2; // half viewport height
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)
242DoubleUtil.AreClose(boundingRect.Height, 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)
275DoubleUtil.AreClose(boundingRect.Height, 0) || 301!DoubleUtil.AreClose(boundingRect.Height, 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)
141worldBounds.Top + unitPoint.Y * worldBounds.Height); 151if (worldBounds.Width == 0 || worldBounds.Height == 0) 158(worldPoint.Y - worldBounds.Top) / worldBounds.Height);
Core\CSharp\System\Windows\Media\FormattedText.cs (1)
2003if (bound.Height == 0)
Core\CSharp\System\Windows\Media\RectangleGeometry.cs (4)
157DoubleUtil.AreClose(rect1.Height, rect2.Height) && 314double area = Math.Abs(rect.Width * rect.Height); 503radiusY = Math.Min(rect.Height * (1.0 / 2.0), Math.Abs(radiusY));
Core\CSharp\System\Windows\Media\Visual.cs (1)
643return (bounds.Width <= 0 || bounds.Height <= 0);
Core\CSharp\System\Windows\Media3D\Viewport2DVisual3D.cs (1)
177uv.Y * descBounds.Height + descBounds.Top);
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); 810|| double.IsPositiveInfinity(finalRect.Height) 812|| DoubleUtil.IsNaN(finalRect.Height) 975EventTrace.EventProvider.TraceEvent(EventTrace.Event.WClientArrangeElementEnd, EventTrace.Keyword.KeywordLayout, EventTrace.Level.Verbose, perfElementID, finalRect.Top, finalRect.Left, finalRect.Width, finalRect.Height); 1135RoundLayoutValue(rect.Height, dpiScaleY) 1300t.Children.Add(new TranslateTransform(-(finalRect.Width * origin.X), -(finalRect.Height * origin.Y))); 1306finalRect.Height * origin.Y));
PresentationFramework (211)
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (3)
267return new Point(rect.Left, rect.Top + rect.Height); 292return new Point(rect.Left, rect.Top + rect.Height / 2); 329rect.X += rect.Height / 2.0;
src\Framework\MS\Internal\Annotations\Component\MArkedHighlightComponent.cs (4)
400double desiredBodyHeight = markerRect.Height - MarkerVerticalSpace - _bottomTailHeight - _topTailHeight; 717_bodyHeight = markerGeometry.Children[1].Bounds.Height; 718_topTailHeight = markerGeometry.Children[0].Bounds.Height; 719_bottomTailHeight = markerGeometry.Children[2].Bounds.Height;
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)
387center = new Point(rectWireFrame.Left, rectWireFrame.Top + rectWireFrame.Height / 2); 394center = new Point(rectWireFrame.Right, rectWireFrame.Top + rectWireFrame.Height / 2);
src\Framework\MS\Internal\Documents\DocumentGrid.cs (3)
1890r.Width, r.Height); 1939else if (r.Y + r.Height > VerticalOffset + ViewportHeight) 1941SetVerticalOffsetInternal(VerticalOffset + ((r.Y + r.Height) - (VerticalOffset + ViewportHeight)));
src\Framework\MS\Internal\Documents\TextBoxView.cs (2)
2201lastLineIndex = (int)Math.Ceiling((viewport.Y + viewport.Height) / _lineHeight) - 1; 3107padding = Math.Max(0, viewport.Height - _contentSize.Height);
src\Framework\MS\Internal\Documents\TextDocumentView.cs (5)
2114Point midPoint = new Point(paragraphBox.X + paragraphBox.Width / 2, paragraphBox.Y + paragraphBox.Height / 2); 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\TextParagraphView.cs (7)
602approximatedLineHeight = lines[0].LayoutBox.Height; 622else if (point.Y > lineBox.Y + lineBox.Height) 633double gap = nextLineBox.Y - (lineBox.Y + lineBox.Height); 634if (point.Y > lineBox.Y + lineBox.Height + gap / 2) 665siblingOverhang = lineBox.Y - (siblingLineBox.Y + siblingLineBox.Height); 683siblingOverhang = siblingLineBox.Y - (lineBox.Y + lineBox.Height); 689if (point.Y > lineBox.Y + lineBox.Height + siblingOverhang / 2)
src\Framework\MS\Internal\Ink\InkCanvasSelection.cs (8)
314if ( !DoubleUtil.AreClose(finalRectangle.Height, selectionBounds.Height) 432if ( !DoubleUtil.AreClose(elementBounds.Height, newBounds.Height) ) 437newSize.Height = newBounds.Height; 442( (FrameworkElement)updatedElement ).Height = newBounds.Height; 961double m22 = target.Height / source.Height;
src\Framework\MS\Internal\Ink\PenCursorManager.cs (4)
227double originalHeight = drawingBounds.Height; 231int height = IconHelper.AlignToBytes(drawingBounds.Height, 1); 397if ( DoubleUtil.LessThan(strokeBounds.Height, 1.0) ) 402else if ( DoubleUtil.GreaterThan(strokeBounds.Height, maxLength) )
src\Framework\MS\Internal\LayoutDump.cs (1)
411writer.WriteAttributeString("Height", rect.Height.ToString("F", CultureInfo.InvariantCulture));
src\Framework\MS\Internal\PtsHost\Pts.cs (1)
914dv = TextDpi.ToTextDpi(rect.Height);
src\Framework\MS\Internal\PtsHost\TableParaClient.cs (2)
772rowTop += rowRect.Height; // Adjust for top of next row 2029rowTop += rowRect.Height; // Adjust for top of next row
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (4)
2302lineRect.Height = lineRect.Height + lineTopSpace; 2343r.Height = r.Height + lineTopSpace; 2413elementRect.Height = elementRect.Height + lineTopSpace; 2453r.Height = r.Height + lineTopSpace;
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)) 649Math.Max(0.0, rt.Height - thick.Top - thick.Bottom)); 668Point rightBottom = new Point(rect.Width, rect.Height - radii.BottomRight); 669Point bottomRight = new Point(rect.Width - radii.RightBottom, rect.Height); 670Point bottomLeft = new Point(radii.LeftBottom, rect.Height); 671Point leftBottom = new Point(0, rect.Height - radii.BottomLeft); 690double v = (radii.TopRight) / (radii.TopRight + radii.BottomRight) * rect.Height; 706double v = (radii.TopLeft) / (radii.TopLeft + radii.BottomLeft) * rect.Height;
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)
1532_childClipForFrozenBehavior.Rect = new Rect(cellChoppedWidth, 0, clipWidth, rcChild.Height);
src\Framework\System\Windows\Controls\DataGridColumnFloatingHeader.cs (1)
53brush.Viewbox = new Rect(viewBox.X, viewBox.Y, width - header.GetVisualCanvasMarginX(), viewBox.Height);
src\Framework\System\Windows\Controls\DocumentViewer.cs (2)
1409if (point.Y > gridRect.Y + gridRect.Height) 1411verticalOffset += (point.Y - (gridRect.Y + gridRect.Height));
src\Framework\System\Windows\Controls\ItemsControl.cs (1)
3028Double.PositiveInfinity, viewPortBounds.Height);
src\Framework\System\Windows\Controls\Primitives\BulletDecorator.cs (1)
377return lr[0].LayoutBox.Height + ancestorOffset.Y * 2d;
src\Framework\System\Windows\Controls\Primitives\DocumentPageView.cs (3)
972pageVisualRect.Height = Math.Min(pageVisualRect.Height, maxHeight); 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; 2141Math.Abs(intersection.Height - childBounds.Height) > Tolerance) 2173bestTranslation.Y = screenBounds.Bottom - childBounds.Height; 2195bestTranslation.Y = screenBounds.Bottom - childBounds.Height; 2431rect.Top + rect.Height / 2.0); 2640double maxHeight = RestrictPercentage * screenBounds.Width * screenBounds.Height / desiredSize.Width; 2642desiredSize.Height = Math.Min(desiredSize.Height, screenBounds.Height);
src\Framework\System\Windows\Controls\Primitives\ScrollContentPresenter.cs (1)
501childRect.Height = Math.Max(childRect.Height, arrangeSize.Height);
src\Framework\System\Windows\Controls\Primitives\UniformGrid.cs (1)
235childBounds.Y += childBounds.Height;
src\Framework\System\Windows\Controls\Stack.cs (1)
893targetRectSize = r.Height;
src\Framework\System\Windows\Controls\StickyNote.cs (3)
971newRectangle.Height = newRectangle.Height + newRectangle.Y; 1158Point maxBoundary = new Point(rectPage.Width - rectNote.X - rightBoundary, rectPage.Height - rectNote.Y - 20); 1183double hNew = rectNote.Height + verticalChange;
src\Framework\System\Windows\Controls\TextRangeAdaptor.cs (1)
1846asDoubles[4 * i + 3] = rects[i].Height;
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (44)
2286double factor = Math.Min(1.0, isHorizontal ? viewport.Width / extendedViewport.Width : viewport.Height / extendedViewport.Height); 2974if (double.IsInfinity(viewport.Height)) 3930(!isHorizontal && DoubleUtil.GreaterThanOrClose(currentExtendedViewport.Height, estimatedExtendedViewport.Height))); 4596double factor = isHorizontal ? viewport.Width : viewport.Height; 4812extendedViewport.Height = Math.Max(extendedViewport.Height + extendedViewport.Y, 0.0); 4816if (DoubleUtil.GreaterThan(extendedViewport.Y + extendedViewport.Height, _scrollData._extent.Height)) 4847extendedViewport.Height = Math.Max(extendedViewport.Height / approxSizeOfLogicalUnit + extendedViewport.Y, 0.0) * approxSizeOfLogicalUnit; 4851if (DoubleUtil.GreaterThan(extendedViewport.Y + extendedViewport.Height / approxSizeOfLogicalUnit, _scrollData._extent.Height)) 4865double factor = Math.Max(1.0, isHorizontal ? extendedViewport.Width / viewport.Width : extendedViewport.Height / viewport.Height); 4889viewport.Y = ScrollContentPresenter.CoerceOffset(viewport.Y, extent.Height, viewport.Height); 4890if (!IsPixelBased && !isHorizontal && DoubleUtil.IsZero(viewport.Height) && DoubleUtil.AreClose(viewport.Y, extent.Height)) 4892viewport.Y = ScrollContentPresenter.CoerceOffset(viewport.Y - 1, extent.Height, viewport.Height); 5077viewport.Height = Math.Max(viewport.Height - sizeAfterStartViewportEdge, 0); 5104if (DoubleUtil.GreaterThan(parentViewport.Height, 0)) 5106if (DoubleUtil.GreaterThanOrClose(parentViewport.Height, pixelSize.Height)) 5112viewport.Height = Math.Max(0, parentViewport.Height - pixelSize.Height); 5120sizeBeforeEndViewportEdge = parentViewport.Height; 5298if (DoubleUtil.GreaterThan(viewport.Height, 0)) 5320viewport.Height = Math.Max(0, viewport.Height + viewport.Y); 5349else if (DoubleUtil.GreaterThan(viewport.Height, 0)) 5354if (DoubleUtil.GreaterThanOrClose(viewport.Height, inset.Top)) 5359viewport.Height = Math.Max(0, viewport.Height - inset.Top); 5370cacheAfterSize = Math.Max(0, cacheAfterSize - (inset.Top - viewport.Height)); 6532return DoubleUtil.GreaterThanOrClose(stackPixelSizeInViewport.Height, viewport.Height); 6544return DoubleUtil.AreClose(viewport.Height, 0.0); 6644childViewport.Height = Math.Max(childViewport.Height - stackPixelSizeInViewport.Height, 0.0); 6649childViewport.Height = Math.Max(childViewport.Height - stackPixelSizeInViewport.Height, 0.0); 7012adjustedChildViewport.Height = Math.Max(0, adjustedChildViewport.Height - childPixelSizeInViewport.Height); 7091DoubleUtil.AreClose(childViewport.Height, 0.0)) 7109DoubleUtil.AreClose(childViewport.Height, 0.0)) 7153double childPixelHeightInViewport = Math.Min(childViewport.Height, childPixelSize.Height - Math.Max(childViewport.Y, 0.0)); 7190pixelSizeInViewport = Math.Min(childViewport.Height, childPixelSize.Height - pixelSizeBeforeViewport); 7217if (DoubleUtil.GreaterThan(childViewport.Height, 0.0)) 9489viewportSize.Height = viewport.Height; 10064double proposedViewportSize = Math.Floor(viewport.Height / approxSizeOfLogicalUnit); 10071"pxSz:", stackPixelSizeInViewport.Height, viewport.Height, 10341viewportSize.Height = viewport.Height; 10660double proposedViewportSize = Math.Floor(viewport.Height / approxSizeOfLogicalUnit); 11035targetRectSize = r.Height; 11119newRect.Height = r.Height; 12787writer.Write(rect.Height);
src\Framework\System\windows\Documents\CaretElement.cs (5)
277if (caretRectangle.IsEmpty || caretRectangle.Height <= 0) 288newHeight = caretRectangle.Height; 377MS.Internal.Documents.TextViewBase.BringRectIntoViewMinimally(_textEditor.TextView, new Rect(scrollToOriginPosition, scrollRectangle.Y, scrollRectangle.Width, scrollRectangle.Height)); 408if (targetPoint.Y < 0 || targetPoint.Y + targetRect.Height > scrollerHeight) 419deltaToScroll = targetPoint.Y + targetRect.Height - scrollerHeight;
src\Framework\System\Windows\Documents\FixedPageStructure.cs (1)
184if (manhattan < minManhattan && absVerDistance < lineResult.LayoutBox.Height)
src\Framework\System\Windows\Documents\FixedSOMFixedBlock.cs (4)
52lastRun.BoundingRect.Height / run.BoundingRect.Height < 0.75 && 58return run.BoundingRect.Height; 61return lastRun.BoundingRect.Height;
src\Framework\System\Windows\Documents\FixedSOMPageConstructor.cs (15)
477Rect boundingRect = new Rect(lastX, alignmentBox.Top, advWidth + advFont, alignmentBox.Height); 506Rect boundingRect = new Rect(lastX, alignmentBox.Top, alignmentBox.Right-lastX, alignmentBox.Height); 614double verticalOverlap = textRunRect.Height * 0.2; 642Debug.Assert(textRunRect.Height != 0 && fixedBlock.LineHeight != 0); 648double ratio = fixedBlock.LineHeight / textRunRect.Height; 655!(FixedTextBuilder.IsSameLine(compareLine.BoundingRect.Top - textRunRect.Top, textRunRect.Height, compareLine.BoundingRect.Height))) 668double heightRatio = fixedBlock.LineHeight / textRunRect.Height; 687if (!_IsSpatiallyCombinable(fixedBlockRect, textRunRect, dHorInflate, textRunRect.Height*0.7)) 706double margin = textRunRect.Height * 0.2; 931if (bounds.Height > bounds.Width && bounds.Width < maxLineWidth && bounds.Height > bounds.Width * minLineRatio) 938else if (bounds.Height < maxLineWidth && bounds.Width > bounds.Height * minLineRatio) 940double center = bounds.Top + .5 * bounds.Height;
src\Framework\System\Windows\Documents\FixedSOMTable.cs (2)
85double verticalOverlap = bounds.Height * 0.2; 192if (row != null && row.IsEmpty && row.BoundingRect.Height < _minRowHeight)
src\Framework\System\Windows\Documents\FixedSOMTextRun.cs (2)
71if (FixedTextBuilder.IsSameLine(otherRect.Top - thisRect.Top, thisRect.Height, otherRect.Height))
src\Framework\System\Windows\Documents\FixedTextBuilder.cs (4)
887if (IsSameLine(currentPt.Y - prevPt.Y, box1.Height, box2.Height)) 893double maxHeight = Math.Max(box1.Height, box2.Height);
src\Framework\System\Windows\Documents\FixedTextView.cs (3)
221designRect = _GetTransformedCaretRect(tran, designRect.TopLeft, designRect.Height); 244designRect = _GetTransformedCaretRect(tran, offset, bounds.Height); 1085if (caretRect.Height < 1)
src\Framework\System\Windows\Documents\FlowPosition.cs (1)
271image.Height = somImage.BoundingRect.Height;
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); 456height = boundingRect.Height; 458double centerLine = boundingRect.Y + .5 * boundingRect.Height;
src\Framework\System\windows\Documents\TextEditorContextMenu.cs (2)
283verticalOffset = positionRect.Y + positionRect.Height; 369maxPoint = new Point(bounds.X + bounds.Width, bounds.Y + bounds.Height);
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (3)
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); 1726_columnRect.Height);
src\Framework\System\windows\Documents\TextSelection.cs (5)
1994cursorMousePoint.Y >= objectEdgeRect.Y && cursorMousePoint.Y < objectEdgeRect.Y + objectEdgeRect.Height) 2245if (caretHeight < caretRectangle.Height) 2249caretRectangle.Y += caretRectangle.Height - caretHeight; 2256Point bottom = new Point(caretRectangle.X, caretRectangle.Y + caretRectangle.Height); 2259caretRectangle.Y += caretRectangle.Height - Math.Abs(bottom.Y - top.Y);
src\Framework\System\Windows\FrameworkElement.cs (6)
4288yConstr / childBoundsTr.Height); 4421unclippedDesiredSize.Height = unclippedBoundsTransformed.Height; 4446desiredSize.Height = childBoundsTransformed.Height; 4751clippedInkSize.Height = inkRectTransformed.Height; 4767Math.Max(0, finalRect.Height - marginHeight)); 4926inkSize.Height = inkRectTransformed.Height;
src\Framework\System\Windows\Input\KeyboardNavigation.cs (4)
652control.Height = rect.Height; 670control.Height = rect.Height; 2605rect.Height = Math.Min(Math.Max(before, 0.0d), rect.Height); 2609double height = Math.Min(Math.Max(after, 0.0d), rect.Height);
src\Framework\System\Windows\Interop\ActiveXHost.cs (1)
207_bounds.bottom = (int) (bounds.Height + bounds.Y);
src\Framework\System\Windows\Interop\HwndHost.cs (1)
813(int)rcBoundingBox.Height,
src\Framework\System\Windows\Shapes\Ellipse.cs (4)
145if (_rect.Width > _rect.Height) 147_rect.Width = _rect.Height; 158if (_rect.Width < _rect.Height) 160_rect.Width = _rect.Height;
src\Framework\System\Windows\Shapes\Rectangle.cs (4)
198if (_rect.Width > _rect.Height) 200_rect.Width = _rect.Height; 211if (_rect.Width < _rect.Height) 213_rect.Width = _rect.Height;
src\Framework\System\Windows\Shapes\Shape.cs (4)
622if (geometryBounds.Height > yScale * Double.Epsilon) 624yScale /= geometryBounds.Height; 630if (geometryBounds.Height == 0) 674stretchedSize = new Size(geometryBounds.Width * xScale + strokeThickness, geometryBounds.Height * yScale + strokeThickness);
src\Framework\System\Windows\Standard\MessageWindow.cs (1)
103(int)location.Height,
src\Framework\System\Windows\Window.cs (5)
3953topDeviceUnits = ownerRectDeviceUnits.Y + ((ownerRectDeviceUnits.Height - currentSizeDeviceUnits.Height) / 2); 4113Point sizeLogicalUnits = DeviceToLogicalUnits(new Point(rectDeviceUnits.Width, rectDeviceUnits.Height)); 4796SetValue(HeightProperty, restoreRect.Height); 6988|| margin.Top + margin.Bottom >= logicalClientRc.Height) 6997LogicalToDeviceUnits(new Point(logicalClientRc.Width - margin.Right, logicalClientRc.Height - margin.Bottom)));
PresentationFramework.Aero (44)
Microsoft\Windows\Themes\BulletChrome.cs (11)
632if ((bounds.Width > 4.0) && (bounds.Height > 4.0)) 642bounds.Height - 2.0); 655double centerY = bounds.Height * 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)); 694double centerY = bounds.Height * 0.5; 736double centerY = bounds.Height * 0.5; 744if ((bounds.Width >= 5.0) && (bounds.Height >= 5.0)) 757bounds.Height - 1.0); 768double centerY = bounds.Height * 0.5;
Microsoft\Windows\Themes\ButtonChrome.cs (8)
461childArrangeRect.Y = (finalSize.Height - childArrangeRect.Height) * 0.5; 500if ((bounds.Width > 4.0) && (bounds.Height > 4.0)) 505bounds.Height - 2.0); 521if ((bounds.Width > 4.0) && (bounds.Height > 4.0)) 542if ((bounds.Width >= 5.0) && (bounds.Height >= 5.0)) 614bounds.Height - 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)
333(bounds.Height > borderY)) 338bounds.Height - borderY); 348(bounds.Height > borderY + innerBorderThickness2)) 353bounds.Height - borderY - innerBorderThickness2); 368(bounds.Height >= borderY)) 375bounds.Height - 1.0);
Microsoft\Windows\Themes\ScrollChrome.cs (18)
423if ((bounds.Width >= 1.0) && (bounds.Height >= 1.0)) 436if (bounds.Height >= 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), 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)) 548double height = Math.Min(7.0, bounds.Height); 551double y = bounds.Y + ((bounds.Height - height) * 0.5); 567if ((bounds.Width > 2.0) && (bounds.Height > 15.0)) 574double y = bounds.Y + ((bounds.Height * 0.5) - 4.0); 733if ((bounds.Width < glyphWidth) || (bounds.Height < glyphHeight)) 736double heightScale = Math.Min(glyphHeight, bounds.Height) / glyphHeight; 739double y = (bounds.Y + (bounds.Height * 0.5)) / heightScale - (glyphHeight * 0.5); 753double y = bounds.Y + (bounds.Height * 0.5) - (glyphHeight * 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)
609Math.Max(0.0, rt.Height - thick.Top - thick.Bottom)); 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) 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)); 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)) 1039if (bounds.Height < singleThickness.Top + 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)); 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 (45)
Microsoft\Windows\Themes\ButtonChrome.cs (11)
378childArrangeRect.Y = (finalSize.Height - childArrangeRect.Height) * 0.5; 394if ((bounds.Width < (4.0 / 3.0)) || (bounds.Height < (4.0 / 3.0))) 409bounds.Height - 4.0 / 3.0), 414if ((bounds.Width < 1.5) || (bounds.Height < 1.5)) 435if ((bounds.Width < 0.6) || (bounds.Height < 0.6)) 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); 485if (pen != null && (bounds.Width >= (8.0 / 3.0)) && (bounds.Height >= (8.0 / 3.0))) 494bounds.Height - 8.0 / 3.0), 504if ((borderPen != null) && (bounds.Width >= 1.0) && (bounds.Height >= 1.0)) 513bounds.Height - 1.0),
Microsoft\Windows\Themes\ScrollChrome.cs (19)
249if (totalPadding >= bounds.Height) 260if ((bounds.Width >= 1.0) && (bounds.Height >= 1.0)) 273if (bounds.Height >= 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), 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)) 390double height = Math.Min(6.0, bounds.Height); 392double y = bounds.Y + ((bounds.Height - height) * 0.5); 408if ((bounds.Width > 2.0) && (bounds.Height > 8.0)) 414double y = bounds.Y + ((bounds.Height * 0.5) - 4.0); 592if ((bounds.Width < glyphWidth) || (bounds.Height < glyphHeight)) 595double heightScale = Math.Min(glyphHeight, bounds.Height) / glyphHeight; 598double y = (bounds.Y + (bounds.Height * 0.5)) / heightScale - (glyphHeight * 0.5); 612double y = bounds.Y + (bounds.Height * 0.5) - (glyphHeight * 0.5);
parent\Shared\Microsoft\Windows\Themes\BulletChrome.cs (14)
223Math.Max(0, bounds.Height - thickness.Top - thickness.Bottom)); 242if (fill != null && (bounds.Width > 2.0) && (bounds.Height > 2.0)) 252double centerY = bounds.Height * 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)); 275double centerY = bounds.Height * 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)) 326double centerY = bounds.Height * 0.5; 336if ((bounds.Width >= 5.0) && (bounds.Height >= 5.0)) 349bounds.Height - 1.0); 371double centerY = bounds.Height * 0.5; 465Math.Max(0.0, rt.Height - thick.Top - thick.Bottom));
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)
336childArrangeRect.Y = (finalSize.Height - childArrangeRect.Height) * 0.5; 356if ((bounds.Width < 0.6) || (bounds.Height < 0.6)) 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); 406if (pen != null && (bounds.Width >= (8.0 / 3.0)) && (bounds.Height >= (8.0 / 3.0))) 415bounds.Height - 8.0 / 3.0), 425if ((borderPen != null) && (bounds.Width >= 1.0) && (bounds.Height >= 1.0)) 434bounds.Height - 1.0),
Microsoft\Windows\Themes\ScrollChrome.cs (17)
231if (totalPadding >= bounds.Height) 242if ((bounds.Width >= 1.0) && (bounds.Height >= 1.0)) 255if (bounds.Height >= 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)) 350double height = Math.Min(6.0, bounds.Height); 352double y = bounds.Y + ((bounds.Height - height) * 0.5); 368if ((bounds.Width > 2.0) && (bounds.Height > 8.0)) 374double y = bounds.Y + ((bounds.Height * 0.5) - 4.0); 552if ((bounds.Width < glyphWidth) || (bounds.Height < glyphHeight)) 555double heightScale = Math.Min(glyphHeight, bounds.Height) / glyphHeight; 558double y = (bounds.Y + (bounds.Height * 0.5)) / heightScale - (glyphHeight * 0.5); 572double y = bounds.Y + (bounds.Height * 0.5) - (glyphHeight * 0.5);
parent\Shared\Microsoft\Windows\Themes\BulletChrome.cs (14)
223Math.Max(0, bounds.Height - thickness.Top - thickness.Bottom)); 242if (fill != null && (bounds.Width > 2.0) && (bounds.Height > 2.0)) 252double centerY = bounds.Height * 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)); 275double centerY = bounds.Height * 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)) 326double centerY = bounds.Height * 0.5; 336if ((bounds.Width >= 5.0) && (bounds.Height >= 5.0)) 349bounds.Height - 1.0); 371double centerY = bounds.Height * 0.5; 465Math.Max(0.0, rt.Height - thick.Top - thick.Bottom));
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
113if (shadowBounds.Width > 0 && shadowBounds.Height > 0 && color.A > 0)
System.Activities.Presentation (17)
System.Activities.Presentation\System\Activities\Presentation\Annotations\AnnotationAdorner.cs (2)
84Fx.Assert(anchorPoint.Y >= canvas.Y && anchorPoint.Y <= canvas.Y + canvas.Height, "Y axis of anchorPoint not within canvas"); 92if (anchorPoint.Y + desiredSize.Height <= canvas.Y + canvas.Height)
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)
830this.height = bounds.Height; 856Height = bounds.Height,
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) 324double h = toInsert.bounds.Height / 2; 408double h = this.bounds.Height / 2; 474double h = this.bounds.Height / 2;
System.Activities.Presentation\System\Activities\Presentation\View\RubberBandSelector.cs (1)
255this.rubberBand.Height = rect.Height;
UIAutomationClient (11)
MS\Internal\Automation\ClickablePoint.cs (9)
44NativeMethods.RECT winRect = new NativeMethods.RECT((int)rect.Left, (int)rect.Top, (int)rect.Height, (int)rect.Bottom); 73pt = new Point( rect.Left + 1, rect.Top + (rect.Height /2) ); 77pt = new Point( rect.Right - 1, rect.Top + (rect.Height /2) ); 109Double size = rect.Width * rect.Height; 118double yIncr = rect.Height / hits; 140Double size = rect.Width * rect.Height; 149double xHits = hits * (rect.Width / rect.Height); 150double yHits = hits * (rect.Height / rect.Width); 153double yMovePixels = rect.Height / yHits;
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 (9)
MS\Internal\AutomationProxies\Misc.cs (1)
94doubles[scan++] = rectArray[i].Height;
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 (3)
292Rect rect = new Rect(startPoint.X, startPoint.Y, endPoint.X - startPoint.X, clippingRectangle.Height); 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\WindowsRichEditRange.cs (2)
207if (rect.Width > 0 && rect.Height > 0) 220if (rect.Width > 0 && rect.Height > 0)
MS\Internal\AutomationProxies\WindowsUpDown.cs (1)
559int y = (int) rc.Top - updownRect.top + (int) rc.Height / 2;
WindowsBase (10)
Base\System\Windows\Generated\Rect.cs (5)
67rect1.Height == rect2.Height; 108rect1.Height.Equals(rect2.Height); 167Height.GetHashCode();
Base\System\Windows\Rect.cs (2)
549if ((rect.Height == Double.PositiveInfinity) || (Height == Double.PositiveInfinity))
Shared\MS\Internal\DoubleUtil.cs (3)
246DoubleUtil.AreClose(rect1.Height, rect2.Height) && 280|| DoubleUtil.IsNaN(r.Height)