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\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\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;