469 references to Min
mscorlib (2)
system\globalization\CalendricalCalculationsHelper.cs (2)
267return CopySign(Math.Min(Math.Abs(equation), TwelveHours), equation); 386return Math.Min(time, timeSunLastAtLongitude - (MeanSpeedOfSun * longitudeErrorDelta));
PresentationCore (37)
Core\CSharp\MS\Internal\Ink\CuspData.cs (1)
474rMin = Math.Min(rMin, a);
Core\CSharp\MS\Internal\Ink\EllipticalNodeOperations.cs (2)
735findex = Math.Min(s1, s2); 762findex = Math.Abs(Math.Min(s1, s2) - 0d) < Math.Abs(Math.Max(s1, s2) - 1d) ? 0d : 1d;
Core\CSharp\MS\Internal\Ink\ErasingStroke.cs (1)
186Math.Min(lastFragment.BeginFIndex, fragment.BeginFIndex),
Core\CSharp\MS\Internal\Ink\Lasso.cs (2)
156DoubleUtil.GreaterThanOrClose(point.X, Math.Min(prevLassoPoint.X, lassoPoint.X)) && 171else if (DoubleUtil.GreaterThanOrClose(point.X, Math.Min(prevLassoPoint.X, lassoPoint.X)))
Core\CSharp\MS\Internal\Ink\StrokeRenderer.cs (6)
115if ((Math.Min(prevArea, currArea) / Math.Max(prevArea, currArea)) <= 0.70d) 259percentIntersect += Math.Min(4.99999d, ((maxExtent / 20d) * 5d)); 538if ((Math.Min(prevArea, currArea) / Math.Max(prevArea, currArea)) <= 0.90d) 850double intersectWidth = Math.Max((double)(Math.Min(rect1.Right, rect2.Right) - intersectLeft), (double)0); 851double intersectHeight = Math.Max((double)(Math.Min(rect1.Bottom, rect2.Bottom) - intersectTop), (double)0); 861double minArea = Math.Min(rect1Area, rect2Area);
Core\CSharp\MS\Internal\Media3D\GeneralTransform2Dto3Dto2D.cs (8)
515if (!((Math.Max(visEdgeStart.X, visEdgeEnd.X) < Math.Min(uv1.X, uv2.X)) || 516(Math.Min(visEdgeStart.X, visEdgeEnd.X) > Math.Max(uv1.X, uv2.X)) || 517(Math.Max(visEdgeStart.Y, visEdgeEnd.Y) < Math.Min(uv1.Y, uv2.Y)) || 518(Math.Min(visEdgeStart.Y, visEdgeEnd.Y) > Math.Max(uv1.Y, uv2.Y)))) 933if (!((Math.Max(visEdgeStart.X, visEdgeEnd.X) < Math.Min(uv1.X, uv2.X)) || 934(Math.Min(visEdgeStart.X, visEdgeEnd.X) > Math.Max(uv1.X, uv2.X)) || 935(Math.Max(visEdgeStart.Y, visEdgeEnd.Y) < Math.Min(uv1.Y, uv2.Y)) || 936(Math.Min(visEdgeStart.Y, visEdgeEnd.Y) > Math.Max(uv1.Y, uv2.Y))))
Core\CSharp\System\Windows\Ink\Stroke.cs (1)
253double min = Math.Min(shapeBoundingBox.Width, shapeBoundingBox.Height);
Core\CSharp\System\Windows\Media\Animation\CircleEase.cs (1)
16normalizedTime = Math.Max(0.0, Math.Min(1.0, normalizedTime));
Core\CSharp\System\Windows\Media\FormattedText.cs (3)
1819accBlackBoxLeft = Math.Min(accBlackBoxLeft, blackBoxLeft); 1822accBlackBoxTop = Math.Min(accBlackBoxTop, blackBoxTop); 1830lineStartOfLongestLine = Math.Min(lineStartOfLongestLine, currentLine.Start);
Core\CSharp\System\Windows\Media\GlyphRun.cs (1)
1431double inflation = Math.Min(_renderingEmSize / 7.0, 1.0);
Core\CSharp\System\Windows\Media\RectangleGeometry.cs (2)
502radiusX = Math.Min(rect.Width * (1.0 / 2.0), Math.Abs(radiusX)); 503radiusY = Math.Min(rect.Height * (1.0 / 2.0), Math.Abs(radiusY));
Core\CSharp\System\Windows\Media3D\Rect3D.cs (9)
101_x = Math.Min(point1._x, point2._x); 102_y = Math.Min(point1._y, point2._y); 103_z = Math.Min(point1._z, point2._z); 446_sizeX = Math.Min(_x + _sizeX, rect._x + rect._sizeX) - x; 447_sizeY = Math.Min(_y + _sizeY, rect._y + rect._sizeY) - y; 448_sizeZ = Math.Min(_z + _sizeZ, rect._z + rect._sizeZ) - z; 481double x = Math.Min(_x, rect._x); 482double y = Math.Min(_y, rect._y); 483double z = Math.Min(_z, rect._z);
PresentationFramework (175)
src\Framework\MS\Internal\Documents\DocumentGrid.cs (5)
603double clippedHorizontalOffset = Math.Min(_horizontalOffset, ExtentWidth - ViewportWidth); 646double clippedVerticalOffset = Math.Min(_verticalOffset, ExtentHeight - ViewportHeight); 2413newScale = Math.Min(newScale, DocumentViewerConstants.MaximumScale); 2482scaleFactor = Math.Min(compensatedViewportWidth / rowWidth, compensatedViewportHeight / rowHeight); 2511scaleFactor = Math.Min(compensatedViewportWidth / rowWidth,
src\Framework\MS\Internal\Documents\FlowDocumentView.cs (4)
89desiredSize.Width = Math.Min(constraint.Width, _formatter.DocumentPage.Size.Width); 90desiredSize.Height = Math.Min(constraint.Height, _formatter.DocumentPage.Size.Height); 149Math.Max(0, Math.Min(_scrollData.ExtentWidth - _scrollData.ViewportWidth, _scrollData.HorizontalOffset)), 150Math.Max(0, Math.Min(_scrollData.ExtentHeight - _scrollData.ViewportHeight, _scrollData.VerticalOffset)));
src\Framework\MS\Internal\Documents\MultiPageTextView.cs (2)
1105horz = Math.Min(Math.Abs(point.X - textViewBounds.Left), Math.Abs(point.X - textViewBounds.Right)); 1113vert = Math.Min(Math.Abs(point.Y - textViewBounds.Top), Math.Abs(point.Y - textViewBounds.Bottom));
src\Framework\MS\Internal\Documents\ScrollData.cs (2)
138offset = Math.Max(0, Math.Min(_extent.Width - _viewport.Width, offset)); 160offset = Math.Max(0, Math.Min(_extent.Height - _viewport.Height, offset));
src\Framework\MS\Internal\Documents\TextBoxView.cs (4)
504desiredSize.Width = Math.Min(constraint.Width, desiredSize.Width); 505desiredSize.Height = Math.Min(constraint.Height, desiredSize.Height); 1789Math.Max(0, Math.Min(_scrollData.ExtentWidth - _scrollData.ViewportWidth, _scrollData.HorizontalOffset)), 1790Math.Max(0, Math.Min(_scrollData.ExtentHeight - _scrollData.ViewportHeight, _scrollData.VerticalOffset)));
src\Framework\MS\Internal\Ink\LassoHelper.cs (2)
241&& DoubleUtil.GreaterThanOrClose(point.X, Math.Min(prevLassoPoint.X, lassoPoint.X)) 262else if (DoubleUtil.GreaterThanOrClose(point.X, Math.Min(prevLassoPoint.X, lassoPoint.X)))
src\Framework\MS\Internal\Ink\PenCursorManager.cs (1)
372double maxLength = Math.Min(SystemParameters.PrimaryScreenWidth / 2, SystemParameters.PrimaryScreenHeight / 2);
src\Framework\MS\Internal\PtsHost\FigureHelper.cs (3)
188value = Math.Max(1, Math.Min(value, structuralCache.CurrentFormatContext.PageHeight)); 193value = Math.Max(1, Math.Min(value, structuralCache.CurrentFormatContext.PageHeight - pageMargin.Top - pageMargin.Bottom)); 261width = Math.Min(width, pageWidth);
src\Framework\MS\Internal\PtsHost\FloaterParagraph.cs (1)
912return Math.Min(desiredSize, spaceAvailable);
src\Framework\MS\Internal\PtsHost\PtsHelper.cs (1)
986columnWidth = Math.Max(1, Math.Min(columnWidth, pageWidth));
src\Framework\MS\Internal\Text\DynamicPropertyReader.cs (1)
220return Math.Max(TextDpi.MinWidth, Math.Min(TextDpi.MaxWidth, lineHeight));
src\Framework\System\Windows\Automation\Peers\ScrollViewerAutomationPeer.cs (3)
214return Math.Min(100.0, (double)(owner.ViewportWidth * 100.0 / owner.ExtentWidth)); 228return Math.Min(100.0, (double)(owner.ViewportHeight * 100.0 / owner.ExtentHeight)); 264return Math.Min(100.0, (double)(viewport * 100.0 / extent));
src\Framework\System\Windows\Controls\DataGridCellsPanel.cs (1)
1911childMeasureWidth = Math.Min(childMeasureWidth, column.MaxWidth);
src\Framework\System\Windows\Controls\DataGridColumnCollection.cs (10)
1277double displayValue = Math.Min(width.DesiredValue, maxWidth); 1369column.SetWidthInternal(new DataGridLength(width.Value, width.UnitType, width.DesiredValue, Math.Min(width.DesiredValue, maxWidth))); 1788double maxColumnResizeWidth = expandBeyondDesiredWidth ? column.MaxWidth : Math.Min(width.DesiredValue, column.MaxWidth); 1923column.UpdateWidthForStarColumn(Math.Min(columnDesiredWidth, column.MaxWidth), columnDesiredWidth, columnDesiredWidth / perStarWidth); 2010double usedStarSpace = ComputeStarColumnWidths(Math.Min(expectedStarSpace, sumOfStarMaxWidths)); 2081double lagWidth = Math.Min(width.DesiredValue, columnMaxWidth) - width.DisplayValue; 2112if (DoubleUtil.LessThan(width.DisplayValue, Math.Min(width.DesiredValue, column.MaxWidth))) 2140giveAwayWidth -= Math.Min(contributingSpace, giveAwayWidth); 2147giveAwayWidth = Math.Min(giveAwayWidth, Math.Max(0d, totalSpace - usedSpace)); 2194return Math.Min(usedSpace - totalAvailableWidth, takeAwayWidth);
src\Framework\System\Windows\Controls\DataGridHelper.cs (1)
722value = Math.Min(value, maxValue);
src\Framework\System\Windows\Controls\FlowDocumentReader.cs (1)
723SetCurrentValueInternal(ZoomProperty, Math.Min(Zoom + ZoomIncrement, MaxZoom));
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (2)
635Zoom = Math.Min(Zoom + ZoomIncrement, MaxZoom); 718SetCurrentValueInternal(ZoomProperty, Math.Min(Zoom + ZoomIncrement, MaxZoom));
src\Framework\System\Windows\Controls\Grid.cs (19)
1169userMinSize = Math.Max(userMinSize, Math.Min(userSize, userMaxSize)); 1193definitions[i].MeasureSize = Math.Max(userMinSize, Math.Min(userSize, userMaxSize)); 1294DefinitionsU[PrivateCells[i].ColumnIndex].UpdateMinSize(Math.Min(children[i].DesiredSize.Width, DefinitionsU[PrivateCells[i].ColumnIndex].UserMaxSize)); 1311DefinitionsV[PrivateCells[i].RowIndex].UpdateMinSize(Math.Min(children[i].DesiredSize.Height, DefinitionsV[PrivateCells[i].RowIndex].UserMaxSize)); 1584double newMinSize = Math.Min(sizeToDistribute / (count - i), tempDefinitions[i].PreferredSize); 1614tempDefinitions[i].UpdateMinSize(Math.Min(newMinSize, tempDefinitions[i].SizeCache)); 1625tempDefinitions[i].UpdateMinSize(Math.Min(newMinSize, tempDefinitions[i].SizeCache)); 1736starValue = Math.Min(starValue, c_starClip); 1741maxSize = Math.Min(maxSize, c_starClip); 1780resolvedSize = Math.Min(userSize, tempDefinitions[i].UserMaxSize); 2086resolvedSize = Math.Min(resolvedSize, def.UserMaxSize); 2176starValue = Math.Min(starValue, c_starClip); 2181maxSize = Math.Min(maxSize, c_starClip); 2221definitions[i].SizeCache = Math.Max(definitions[i].MinSizeForArrange, Math.Min(userSize, userMaxSize)); 2268resolvedSize = Math.Min(userSize, definitions[definitionIndices[i]].UserMaxSize); 2296final = Math.Min(final, definitions[definitionIndex].SizeCache); 2303final = Math.Min(final, definitions[definitionIndex].SizeCache); 2510def.SizeCache = Math.Max(def.MinSizeForArrange, Math.Min(userSize, userMaxSize)); 2703resolvedSize = Math.Min(resolvedSize, def.UserMaxSize);
src\Framework\System\Windows\Controls\GridSplitter.cs (6)
506_resizeData.SplitterLength = Math.Min(ActualWidth, ActualHeight); 666_resizeData.Adorner.OffsetX = Math.Min(Math.Max(horizontalChange, _resizeData.MinChange), _resizeData.MaxChange); 670_resizeData.Adorner.OffsetY = Math.Min(Math.Max(verticalChange, _resizeData.MinChange), _resizeData.MaxChange); 814minDelta = -Math.Min(definition1Len - definition1Min, definition2Max - definition2Len); 815maxDelta = Math.Min(definition1Max - definition1Len, definition2Len - definition2Min); 923delta = Math.Min(Math.Max(delta, min), max);
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (3)
286childConstraintWidth = Math.Min(childConstraintWidth, column.DesiredWidth); 294childConstraintWidth = Math.Min(childConstraintWidth, column.Width); 357double childArrangeWidth = Math.Min(remainingWidth, ((column.State == ColumnMeasureState.SpecificWidth) ? column.Width : column.DesiredWidth));
src\Framework\System\Windows\Controls\GridViewRowPresenter.cs (3)
179childConstraintWidth = Math.Min(childConstraintWidth, column.DesiredWidth); 187childConstraintWidth = Math.Min(childConstraintWidth, column.Width); 227double childArrangeWidth = Math.Min(remainingWidth, ((column.State == ColumnMeasureState.SpecificWidth) ? column.Width : column.DesiredWidth));
src\Framework\System\Windows\Controls\InkPresenter.cs (2)
219availableSize = new Size(Math.Min(arrangeSize.Width, _constraintSize.Width), 220Math.Min(arrangeSize.Height, _constraintSize.Height));
src\Framework\System\Windows\Controls\MenuScrollingVisibilityConverter.cs (1)
99double percent = Math.Min(100.0, Math.Max(0.0, (verticalOffset * 100.0 / (extentHeight - viewportHeight))));
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (2)
134desiredSize.Width = Math.Min(availableSize.Width, desiredSize.Width); 923columnEstimatedWidth = Math.Min(columnEstimatedWidth, column.MaxWidth);
src\Framework\System\Windows\Controls\Primitives\DocumentPageView.cs (2)
971pageVisualRect.Width = Math.Min(pageVisualRect.Width, maxWidth); 972pageVisualRect.Height = Math.Min(pageVisualRect.Height, maxHeight);
src\Framework\System\Windows\Controls\Primitives\Popup.cs (5)
2637desiredSize.Width = Math.Min(desiredSize.Width, screenBounds.Width); 2638desiredSize.Width = Math.Min(desiredSize.Width, limitSize.Width); 2642desiredSize.Height = Math.Min(desiredSize.Height, screenBounds.Height); 2643desiredSize.Height = Math.Min(desiredSize.Height, maxHeight); 2644desiredSize.Height = Math.Min(desiredSize.Height, limitSize.Height);
src\Framework\System\Windows\Controls\Primitives\PopupRoot.cs (2)
235return new Size(Math.Min(restrictedSize.Width, restricted2DDesiredSize.Width), 236Math.Min(restrictedSize.Height, restricted2DDesiredSize.Height));
src\Framework\System\Windows\Controls\Primitives\ScrollBar.cs (3)
430newValue = Math.Min(Math.Max(newValue, Minimum), Maximum); 569double newValue = Math.Min(Value + SmallChange, Maximum); 587double newValue = Math.Min(Value + LargeChange, Maximum);
src\Framework\System\Windows\Controls\Primitives\ScrollContentPresenter.cs (2)
451desiredSize.Width = Math.Min(constraint.Width, desiredSize.Width); 452desiredSize.Height = Math.Min(constraint.Height, desiredSize.Height);
src\Framework\System\Windows\Controls\Primitives\ToolBarOverflowPanel.cs (2)
123_wrapWidth = Math.Min(_wrapWidth, constraint.Width); 167_wrapWidth = Math.Min(_wrapWidth, arrangeBounds.Width);
src\Framework\System\Windows\Controls\Primitives\Track.cs (3)
84return Math.Max(Minimum, Math.Min(Maximum, val)); 584double offset = Math.Min(range, Value - min); 623double offset = Math.Min(range, Value - min);
src\Framework\System\Windows\Controls\ScrollViewer.cs (1)
1865double newUnused = Math.Min(unused + delta, 0);
src\Framework\System\Windows\Controls\SinglePageViewer.cs (1)
752SetCurrentValueInternal(ZoomProperty, Math.Min(Zoom + ZoomIncrement, MaxZoom));
src\Framework\System\Windows\Controls\Slider.cs (3)
1141next = Math.Min(Maximum, previous + TickFrequency); 1161double next = SnapToTick(Math.Max(this.Minimum, Math.Min(this.Maximum, value + direction))); 1357this.SetCurrentValueInternal(ValueProperty, Math.Max(this.Minimum, Math.Min(this.Maximum, snappedValue)));
src\Framework\System\Windows\Controls\Stack.cs (5)
675offset.Y = Math.Max(0, Math.Min(offset.Y, extent.Height - viewport.Height)); 683offset.X = Math.Max(0, Math.Min(offset.X, extent.Width - viewport.Width)); 688stackDesiredSize.Width = Math.Min(stackDesiredSize.Width, constraint.Width); 689stackDesiredSize.Height = Math.Min(stackDesiredSize.Height, constraint.Height); 909targetRectSize = Math.Max(Math.Min(targetRectSize + targetRectOffset, minPhysicalOffset + viewportSize) - left, 0);
src\Framework\System\Windows\Controls\StickyNote.cs (2)
1160horizontalChange = Math.Min(Math.Max(minBoundary.X, horizontalChange), maxBoundary.X); 1161verticalChange = Math.Min(Math.Max(minBoundary.Y, verticalChange), maxBoundary.Y);
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (14)
2286double factor = Math.Min(1.0, isHorizontal ? viewport.Width / extendedViewport.Width : viewport.Height / extendedViewport.Height); 6595childViewport.X = Math.Min(childViewport.X, 0) - 6640childViewport.Y = Math.Min(childViewport.Y, 0) - 7098pixelSizeInViewport = Math.Min(childViewport.Width, childPixelSize.Width - pixelSizeBeforeViewport); 7153double childPixelHeightInViewport = Math.Min(childViewport.Height, childPixelSize.Height - Math.Max(childViewport.Y, 0.0)); 7190pixelSizeInViewport = Math.Min(childViewport.Height, childPixelSize.Height - pixelSizeBeforeViewport); 7245double childPixelWidthInViewport = Math.Min(childViewport.Width, childPixelSize.Width - Math.Max(childViewport.X, 0.0)); 9573Math.Min(stackPixelSize.Width, constraint.Width) : constraint.Width; 9578Math.Min(stackPixelSize.Height, constraint.Height) : constraint.Height; 10425Math.Min(stackPixelSize.Width, constraint.Width) : constraint.Width; 10430Math.Min(stackPixelSize.Height, constraint.Height) : constraint.Height; 10526lastPageSafeOffset = lastPageSafeOffset.HasValue ? Math.Min(computedViewportOffset.X, (double)lastPageSafeOffset) : computedViewportOffset.X; 10657lastPageSafeOffset = lastPageSafeOffset.HasValue ? Math.Min(computedViewportOffset.Y, (double)lastPageSafeOffset) : computedViewportOffset.Y; 11054targetRectSize = Math.Max(Math.Min(targetRectSize + targetRectOffset, minPhysicalOffset + viewportSize) - left, 0);
src\Framework\System\windows\Documents\CaretElement.cs (2)
420scroller.ScrollToVerticalOffset(Math.Min(scroller.ExtentHeight, scroller.VerticalOffset + deltaToScroll + scrollerHeight / 4)); 437scroller.ScrollToHorizontalOffset(Math.Min(scroller.ExtentWidth, scroller.HorizontalOffset + deltaToScroll + scrollerWidth / 4));
src\Framework\System\Windows\Documents\ImmComposition.cs (2)
770milPointTopLeft = new Point(Math.Min(rectStart.Left, rectEnd.Left), Math.Min(rectStart.Top, rectEnd.Top));
src\Framework\System\Windows\Documents\TextRangeEdit.cs (1)
2373retValue = Math.Min(retValue, _upperBound);
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (2)
1737xPosAdorner = Math.Min(xPosAdorner, _columnRect.Right + this.RightDragMax); 1749dx = Math.Min(dx, this.RightDragMax);
src\Framework\System\Windows\Documents\TextStore.cs (2)
869milPointTopLeft = new Point(Math.Min(rectPrev.Left, rectCur.Left), Math.Min(rectPrev.Top, rectCur.Top));
src\Framework\System\Windows\FrameworkElement.cs (19)
4065maxHeight = Math.Max(Math.Min(height, maxHeight), minHeight); 4068minHeight = Math.Max(Math.Min(maxHeight, height), minHeight); 4075maxWidth = Math.Max(Math.Min(width, maxWidth), minWidth); 4078minWidth = Math.Max(Math.Min(maxWidth, width), minWidth); 4201h = Math.Min(0.5*Math.Abs(xConstr/c), yCoverD); 4212w = Math.Min( 0.5*Math.Abs(yConstr/b), xCoverA); 4241h = Math.Min(0.5*Math.Abs(yConstr/d), xCoverC); 4252w = Math.Min( 0.5*Math.Abs(xConstr/a), yCoverB); 4269w = Math.Min(yCoverB, xCoverA) * 0.5; 4270h = Math.Min(xCoverC, yCoverD) * 0.5; 4287Double expandFactor = Math.Min(xConstr / childBoundsTr.Width, 4392frameworkAvailableSize.Width = Math.Max(mm.minWidth, Math.Min(frameworkAvailableSize.Width, mm.maxWidth)); 4393frameworkAvailableSize.Height = Math.Max(mm.minHeight, Math.Min(frameworkAvailableSize.Height, mm.maxHeight)); 4733Size clippedInkSize = new Size(Math.Min(innerInkSize.Width, mm.maxWidth), 4734Math.Min(innerInkSize.Height, mm.maxHeight)); 4916inkSize.Width = Math.Min(inkSize.Width, mm.maxWidth); 4917inkSize.Height = Math.Min(inkSize.Height, mm.maxHeight); 5247inkSize.Width = Math.Min(inkSize.Width, mm.maxWidth); 5248inkSize.Height = Math.Min(inkSize.Height, mm.maxHeight);
src\Framework\System\Windows\Input\KeyboardNavigation.cs (4)
2605rect.Height = Math.Min(Math.Max(before, 0.0d), rect.Height); 2609double height = Math.Min(Math.Max(after, 0.0d), rect.Height); 2756startRange = Math.Min(startRange, _horizontalBaseline); 2778startRange = Math.Min(startRange, _verticalBaseline);
src\Framework\System\Windows\Interop\HwndHost.cs (2)
857desiredSize.Width = Math.Min(_desiredSize.Width, constraint.Width); 858desiredSize.Height = Math.Min(_desiredSize.Height, constraint.Height);
src\Framework\System\Windows\Shapes\Ellipse.cs (1)
101width = Math.Min(width, height);
src\Framework\System\Windows\Shapes\Rectangle.cs (1)
153width = Math.Min(width, height);
src\Framework\System\Windows\Shell\TaskbarItemInfo.cs (1)
104progressValue = Math.Min(1, progressValue);
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (5)
1226double shortestDimension = Math.Min(windowSize.Width, windowSize.Height); 1229topLeftRadius = Math.Min(topLeftRadius, shortestDimension / 2); 1245topRightRadius = Math.Min(topRightRadius, shortestDimension / 2); 1253bottomLeftRadius = Math.Min(bottomLeftRadius, shortestDimension / 2); 1261bottomRightRadius = Math.Min(bottomRightRadius, shortestDimension / 2);
src\Framework\System\Windows\Window.cs (8)
1877frameworkAvailableSize.Width = Math.Max(mm.minWidth, Math.Min(frameworkAvailableSize.Width, mm.maxWidth)); 1878frameworkAvailableSize.Height = Math.Max(mm.minHeight, Math.Min(frameworkAvailableSize.Height, mm.maxHeight)); 1907arrangeBounds.Width = Math.Max(mm.minWidth, Math.Min(arrangeBounds.Width, mm.maxWidth)); 1908arrangeBounds.Height = Math.Max(mm.minHeight, Math.Min(arrangeBounds.Height, mm.maxHeight)); 3554mm.maxWidth = Math.Min(MinWidth, maxSizeLogicalUnits.X); 3560mm.maxWidth = Math.Min(MaxWidth, maxSizeLogicalUnits.X); 3576mm.maxHeight = Math.Min(this.MinHeight, maxSizeLogicalUnits.Y); 3582mm.maxHeight = Math.Min(MaxHeight, maxSizeLogicalUnits.Y);
PresentationFramework.Aero (13)
Microsoft\Windows\Themes\ButtonChrome.cs (2)
440desired = new Size(Math.Min(4.0, availableSize.Width), Math.Min(4.0, availableSize.Height));
Microsoft\Windows\Themes\ListBoxChrome.cs (2)
261desired = new Size(Math.Min(borderX, availableSize.Width), Math.Min(borderY, availableSize.Height));
Microsoft\Windows\Themes\ScrollChrome.cs (4)
548double height = Math.Min(7.0, bounds.Height); 571double width = Math.Min(7.0, bounds.Width); 735double widthScale = Math.Min(glyphWidth, bounds.Width) / glyphWidth; 736double heightScale = Math.Min(glyphHeight, bounds.Height) / glyphHeight;
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (5)
121double maxRadius = Math.Min(centerWidth * 0.5, centerHeight * 0.5); 122cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 123cornerRadius.TopRight = Math.Min(cornerRadius.TopRight, maxRadius); 124cornerRadius.BottomLeft = Math.Min(cornerRadius.BottomLeft, maxRadius); 125cornerRadius.BottomRight = Math.Min(cornerRadius.BottomRight, maxRadius);
PresentationFramework.Classic (7)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (2)
697desired = new Size(Math.Min(borderSize.Width, availableSize.Width), Math.Min(borderSize.Height, availableSize.Height));
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (5)
121double maxRadius = Math.Min(centerWidth * 0.5, centerHeight * 0.5); 122cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 123cornerRadius.TopRight = Math.Min(cornerRadius.TopRight, maxRadius); 124cornerRadius.BottomLeft = Math.Min(cornerRadius.BottomLeft, maxRadius); 125cornerRadius.BottomRight = Math.Min(cornerRadius.BottomRight, maxRadius);
PresentationFramework.Luna (13)
Microsoft\Windows\Themes\ButtonChrome.cs (2)
357desired = new Size(Math.Min(sideThickness2, availableSize.Width), Math.Min(sideThickness2, availableSize.Height));
Microsoft\Windows\Themes\ScrollChrome.cs (4)
390double height = Math.Min(6.0, bounds.Height); 412double width = Math.Min(6.0, bounds.Width); 594double widthScale = Math.Min(glyphWidth, bounds.Width) / glyphWidth; 595double heightScale = Math.Min(glyphHeight, bounds.Height) / glyphHeight;
parent\Shared\Microsoft\Windows\Themes\BulletChrome.cs (2)
199desired = new Size(Math.Min(11.0 + borderX, availableSize.Width), Math.Min(11.0 + borderY, availableSize.Height));
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (5)
121double maxRadius = Math.Min(centerWidth * 0.5, centerHeight * 0.5); 122cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 123cornerRadius.TopRight = Math.Min(cornerRadius.TopRight, maxRadius); 124cornerRadius.BottomLeft = Math.Min(cornerRadius.BottomLeft, maxRadius); 125cornerRadius.BottomRight = Math.Min(cornerRadius.BottomRight, maxRadius);
PresentationFramework.Royale (13)
Microsoft\Windows\Themes\ButtonChrome.cs (2)
315desired = new Size(Math.Min(sideThickness2, availableSize.Width), Math.Min(sideThickness2, availableSize.Height));
Microsoft\Windows\Themes\ScrollChrome.cs (4)
350double height = Math.Min(6.0, bounds.Height); 372double width = Math.Min(6.0, bounds.Width); 554double widthScale = Math.Min(glyphWidth, bounds.Width) / glyphWidth; 555double heightScale = Math.Min(glyphHeight, bounds.Height) / glyphHeight;
parent\Shared\Microsoft\Windows\Themes\BulletChrome.cs (2)
199desired = new Size(Math.Min(11.0 + borderX, availableSize.Width), Math.Min(11.0 + borderY, availableSize.Height));
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (5)
121double maxRadius = Math.Min(centerWidth * 0.5, centerHeight * 0.5); 122cornerRadius.TopLeft = Math.Min(cornerRadius.TopLeft, maxRadius); 123cornerRadius.TopRight = Math.Min(cornerRadius.TopRight, maxRadius); 124cornerRadius.BottomLeft = Math.Min(cornerRadius.BottomLeft, maxRadius); 125cornerRadius.BottomRight = Math.Min(cornerRadius.BottomRight, maxRadius);
System.Activities.DurableInstancing (3)
System\Activities\DurableInstancing\LoadRetryExponentialBackoffStrategy.cs (1)
31Math.Min
System\Activities\DurableInstancing\SqlWorkflowInstanceStore.cs (2)
183double lockBuffer = Math.Min(SqlWorkflowInstanceStoreConstants.LockOwnerTimeoutBuffer.TotalSeconds, (TimeSpan.MaxValue.Subtract(this.HostLockRenewalPeriod)).TotalSeconds); 184this.bufferedHostLockRenewalPeriod = TimeSpan.FromSeconds(Math.Min(Int32.MaxValue, lockBuffer + this.HostLockRenewalPeriod.TotalSeconds));
System.Activities.Presentation (24)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyPanel.cs (1)
229child.Arrange(new Rect(left, 0, Math.Min(desiredWidth, availableWidth), finalSize.Height));
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\SharedPropertyValueColumnWidthContainer.cs (1)
190return Math.Max(min, Math.Min(max, value));
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorRouter.cs (6)
1147(p.X.IsNoLessThan(Math.Min(this.point1.X, this.point2.X)) && p.X.IsNoGreaterThan(Math.Max(this.point1.X, this.point2.X))) : 1148(p.Y.IsNoLessThan(Math.Min(this.point1.Y, this.point2.Y)) && p.Y.IsNoGreaterThan(Math.Max(this.point1.Y, this.point2.Y))); 1184k += k.IsEqualTo(Math.Min(k1, k2)) ? -1.0 : 1.0; 1238if (vertical.A.X < Math.Min(horizontal.A.X, horizontal.B.X) || vertical.A.X > Math.Max(horizontal.A.X, horizontal.B.X)) 1243if (horizontal.A.Y < Math.Min(vertical.A.Y, vertical.B.Y) || horizontal.A.Y > Math.Max(vertical.A.Y, vertical.B.Y)) 1261return k.IsNoLessThan(Math.Min(k1, k2)) && k.IsNoGreaterThan(Math.Max(k1, k2));
System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (2)
715width = Math.Min(fe.RenderSize.Width, designerView.ScrollViewer.ViewportWidth); 716height = Math.Min(fe.RenderSize.Height, designerView.ScrollViewer.ViewportHeight);
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (4)
1624double y = Math.Min(maxValue, Math.Max(minValue, Math.Min(y1, y2))); 1667y = Math.Min(maxValue, Math.Max(minValue, Math.Min(y1, y2)));
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionSurface.cs (4)
327this.canvasOffset.X = Math.Min(this.canvasOffset.X, p.X); 328this.canvasOffset.Y = Math.Min(this.canvasOffset.Y, p.Y); 415offsetMinusX = Math.Min(offsetMinusX, pos.X); 416offsetMinusY = Math.Min(offsetMinusY, pos.Y);
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionWindow.cs (2)
477size.Width = Math.Min(Math.Max(MinWidth, current.X), MaxWidth); 496size.Height = Math.Min(Math.Max(MinHeight, current.Y), MaxHeight);
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionWindowResizeGrip.cs (2)
60newSize.Width = Math.Min(Math.Max(this.parent.MinWidth, currentPosition.X), this.parent.MaxWidth); 61newSize.Height = Math.Min(Math.Max(this.parent.MinHeight, currentPosition.Y), this.parent.MaxHeight);
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (2)
434this.blockHeight = Math.Min(this.blockHeight, textBlock.MaxHeight); 437this.blockWidth = Math.Min(this.blockWidth, textBlock.MaxWidth);
System.Data (9)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyPanel.cs (1)
229child.Arrange(new Rect(left, 0, Math.Min(desiredWidth, availableWidth), finalSize.Height));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\SharedPropertyValueColumnWidthContainer.cs (1)
190return Math.Max(min, Math.Min(max, value));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorRouter.cs (2)
1184k += k.IsEqualTo(Math.Min(k1, k2)) ? -1.0 : 1.0; 1261return k.IsNoLessThan(Math.Min(k1, k2)) && k.IsNoGreaterThan(Math.Max(k1, k2));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (4)
1624double y = Math.Min(maxValue, Math.Max(minValue, Math.Min(y1, y2))); 1667y = Math.Min(maxValue, Math.Max(minValue, Math.Min(y1, y2)));
fx\src\data\System\Data\Common\DoubleStorage.cs (1)
102min=Math.Min(values[record], min);
System.Data.Services.Client (1)
System\Data\Services\Client\DataServiceContext.cs (1)
1962request.Timeout = (int)Math.Min(Int32.MaxValue, new TimeSpan(0, 0, this.timeout).TotalMilliseconds);
System.ServiceModel (1)
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (1)
682int newSize = (int)Math.Min(((double)internalBuffer.Length) * 2, this.maxBufferSize);
System.Web.DataVisualization (77)
Common\ChartTypes\AreaChart.cs (2)
979 float minX = (float)Math.Min(firstPoint.xPosition, secondPoint.xPosition); 980 float minY = (float)Math.Min(firstPoint.yPosition, secondPoint.yPosition);
Common\ChartTypes\BarChart.cs (2)
2283 double yMin1 = Math.Min(point1.yPosition, point1.height); 2285 double yMin2 = Math.Min(point2.yPosition, point2.height);
Common\ChartTypes\BoxPlotChart.cs (6)
390 point.positionRel = new PointF((float)xPosition, (float)Math.Min(high, low)); 577 areaRect.Y = (float)Math.Min(high, low); 643 high = Math.Min(high, currentValue); 1169 point.positionRel = new PointF((float)xPosition, (float)Math.Min(high, low)); 1364 areaRect.Y = (float)Math.Min(high, low); 1449 DrawLabel(common, area, graph, ser, point, new PointF(xPosition, (float)Math.Min(high, low)), index);
Common\ChartTypes\BubbleChart.cs (6)
226 _minAll = Math.Min(_minAll, CommonElements.ParseDouble(ser[CustomPropertyName.BubbleScaleMin])); 286minSer = Math.Min(minSer, point.YValues[1]); 365 minAll = Math.Min(minAll, CommonElements.ParseDouble(ser[CustomPropertyName.BubbleScaleMin])); 408minSer = Math.Min(minSer, point.YValues[1]); 413minimum = Math.Min(minimum, point.YValues[0]); 418minimum = Math.Min(minimum, point.XValue);
Common\ChartTypes\ErrorBarChart.cs (6)
550 point.positionRel = new PointF((float)xPosition, (float)Math.Min(high, low)); 595 areaRect.Y = (float)Math.Min(high, low); 701 DrawLabel(common, area, graph, ser, point, new PointF(xPosition, (float)Math.Min(high, low)), index); 1301 point.positionRel = new PointF((float)xPosition, (float)Math.Min(high, low)); 1359 areaRect.Y = (float)Math.Min(high, low); 1477 DrawLabel(common, area, graph, ser, point, new PointF(xPosition, (float)Math.Min(high, low)), index);
Common\ChartTypes\RangeChart.cs (2)
1104 float minX = (float)Math.Min(firstPoint.xPosition, secondPoint.xPosition); 1105 float minY = (float)Math.Min(firstPoint.yPosition, secondPoint.yPosition);
Common\ChartTypes\StockChart.cs (4)
466 areaRect.Y = (float)Math.Min(high, low); 622 DrawLabel(common, area, graph, ser, point, new PointF(xPosition, (float)Math.Min(high, low)), index); 1280 areaRect.Y = (float)Math.Min(high, low); 1360 DrawLabel(common, area, graph, ser, point, new PointF(xPosition, (float)Math.Min(high, low)), index);
Common\DataManager\DataManager.cs (19)
429returnValue = Math.Min(returnValue, seriesPoint.XValue - BubbleChart.AxisScaleBubbleSize(area.Common, area, seriesPoint.YValues[1], false)); 433returnValue = Math.Min(returnValue, seriesPoint.XValue); 504 min = Math.Min(min, seriesPoint.XValue); 534 min = Math.Min(min, yValue); 566 min = Math.Min(min, y); 599 min = Math.Min(min, y); 747 returnValue = Math.Min(returnValue, seriesPoint.YValues[valueIndex]); 777returnValue = Math.Min(returnValue, seriesPoint.YValues[0] - BubbleChart.AxisScaleBubbleSize(area.Common, area, seriesPoint.YValues[1], true)); 781returnValue = Math.Min(returnValue, seriesPoint.YValues[0]); 811 returnValue = Math.Min(returnValue, y); 831 returnValue = Math.Min(returnValue, seriesPoint.XValue); 872 noStackedMin = Math.Min(noStackedMin,this._series[seriesName].Points[pointIndex].YValues[valueIndex]); 876 stackedMin = Math.Min(stackedMin, noStackedMin); 881 returnValue = Math.Min(returnValue, stackedMin); 927noStackedMin = Math.Min(noStackedMin, this._series[seriesName].Points[pointIndex].YValues[valueIndex]); 931 minValue = Math.Min(noStackedMin, minValue); 932returnValue = Math.Min(returnValue, minValue); 956 returnValue = Math.Min(returnValue, doubleIndexValue); 1070 returnValue = Math.Min(returnValue,
Common\DataManager\DataSeries.cs (1)
1292keywordValue = Math.Min(keywordValue, point.YValues[yValueIndex]);
Common\General\Axis.cs (8)
5302rect.X = (float)Math.Min(fromPosition, toPosition); 5308rect.Y = (float)Math.Min(fromPosition, toPosition); 5411rect.Y = (float)Math.Min(fromPosition, toPosition); 5664rect.Y = (float)Math.Min(fromPosition, toPosition); 5779labelNearOffset = (float)Math.Min(labelNearOffset, (fromPosition + toPosition) / 2f - axisLabelSize.Width / 2f); 5795labelNearOffset = (float)Math.Min(labelNearOffset, (fromPosition + toPosition) / 2f - width * 1.1f); 5808labelNearOffset = (float)Math.Min(labelNearOffset, (fromPosition + toPosition) / 2f - axisLabelSize.Height / 2f); 5823labelNearOffset = (float)Math.Min(labelNearOffset, (fromPosition + toPosition) / 2f - height * 1.1f);
Common\General\AxisScaleBreaks.cs (2)
682 double minSize = Math.Min(this._minSegmentSize, Math.Floor(100.0 / axisSegments.Count)); 1033 segmentMinValue[segmentIndex] = Math.Min(segmentMinValue[segmentIndex], dataPoint.YValues[yValueIndex]);
Common\General\AxisScaleSegments.cs (2)
697 breakPosition.Y = (float)Math.Min(from, to); 702 breakPosition.X = (float)Math.Min(from, to);
Common\General\ChartArea3D.cs (2)
1982 double yMin1 = Math.Min(point1.yPosition, point1.height); 1984 double yMin2 = Math.Min(point2.yPosition, point2.height);
Common\General\ChartAreaAxes.cs (3)
1142 stackMinBarColumn = Math.Min(stackMinBarColumn, stackMinBarColumnForGroup); 1144 stackMinArea = Math.Min(stackMinArea, stackMinAreaForGroup); 1149 autoMinimum = Math.Min(stackMinBarColumn,stackMinArea);
Common\General\DataManipulator.cs (4)
605 double fromX = Math.Min(fromXValue, toXValue); 632 fromX = Math.Min(fromX, ser.Points[0].XValue); 2853 Math.Min(pointTempValues[functionInfo.outputIndex], point.YValues[funcIndex-1]); 2906 Math.Min(pointTempValues[functionInfo.outputIndex + 1], point.YValues[funcIndex-1]);
Common\General\Label.cs (5)
271 double fromX = Math.Min(min, max); 1746rect.X = (float)Math.Min(fromPosition, toPosition); 1759rect.Y = (float)Math.Min(fromPosition, toPosition); 2260rect.X = (float)Math.Min(fromPosition, toPosition); 2277rect.Y = (float)Math.Min(fromPosition, toPosition);
Common\General\SmartLabels.cs (1)
809 float minMove = (float)Math.Min(smartLabelStyle.MinMovingDistance, smartLabelStyle.MaxMovingDistance);
Common\General\StripLine.cs (2)
369 rect.Y = (float)Math.Min(pos1, pos2); 379 rect.X = (float)Math.Min(pos1, pos2);
System.Windows.Forms (5)
winforms\Managed\System\WinForms\Printing\PrintPreviewControl.cs (2)
438zoom = Math.Min(zoomX, zoomY); 607zoom = Math.Min(zoomX, zoomY);
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (1)
4535labelRatio = Math.Max(Math.Min(labelRatio, 9), 1.1);
winforms\Managed\System\WinForms\ToolStrip.cs (2)
2392minTan = Math.Min(minTan, tan); 2393minHypotenuse = Math.Min(minHypotenuse, hypotenuse);
System.Windows.Forms.DataVisualization (75)
Common\ChartTypes\AreaChart.cs (2)
979 float minX = (float)Math.Min(firstPoint.xPosition, secondPoint.xPosition); 980 float minY = (float)Math.Min(firstPoint.yPosition, secondPoint.yPosition);
Common\ChartTypes\BarChart.cs (2)
2283 double yMin1 = Math.Min(point1.yPosition, point1.height); 2285 double yMin2 = Math.Min(point2.yPosition, point2.height);
Common\ChartTypes\BoxPlotChart.cs (6)
390 point.positionRel = new PointF((float)xPosition, (float)Math.Min(high, low)); 577 areaRect.Y = (float)Math.Min(high, low); 643 high = Math.Min(high, currentValue); 1169 point.positionRel = new PointF((float)xPosition, (float)Math.Min(high, low)); 1364 areaRect.Y = (float)Math.Min(high, low); 1449 DrawLabel(common, area, graph, ser, point, new PointF(xPosition, (float)Math.Min(high, low)), index);
Common\ChartTypes\BubbleChart.cs (6)
226 _minAll = Math.Min(_minAll, CommonElements.ParseDouble(ser[CustomPropertyName.BubbleScaleMin])); 286minSer = Math.Min(minSer, point.YValues[1]); 365 minAll = Math.Min(minAll, CommonElements.ParseDouble(ser[CustomPropertyName.BubbleScaleMin])); 408minSer = Math.Min(minSer, point.YValues[1]); 413minimum = Math.Min(minimum, point.YValues[0]); 418minimum = Math.Min(minimum, point.XValue);
Common\ChartTypes\ErrorBarChart.cs (6)
550 point.positionRel = new PointF((float)xPosition, (float)Math.Min(high, low)); 595 areaRect.Y = (float)Math.Min(high, low); 701 DrawLabel(common, area, graph, ser, point, new PointF(xPosition, (float)Math.Min(high, low)), index); 1301 point.positionRel = new PointF((float)xPosition, (float)Math.Min(high, low)); 1359 areaRect.Y = (float)Math.Min(high, low); 1477 DrawLabel(common, area, graph, ser, point, new PointF(xPosition, (float)Math.Min(high, low)), index);
Common\ChartTypes\RangeChart.cs (2)
1104 float minX = (float)Math.Min(firstPoint.xPosition, secondPoint.xPosition); 1105 float minY = (float)Math.Min(firstPoint.yPosition, secondPoint.yPosition);
Common\ChartTypes\StockChart.cs (4)
466 areaRect.Y = (float)Math.Min(high, low); 622 DrawLabel(common, area, graph, ser, point, new PointF(xPosition, (float)Math.Min(high, low)), index); 1280 areaRect.Y = (float)Math.Min(high, low); 1360 DrawLabel(common, area, graph, ser, point, new PointF(xPosition, (float)Math.Min(high, low)), index);
Common\DataManager\DataManager.cs (19)
429returnValue = Math.Min(returnValue, seriesPoint.XValue - BubbleChart.AxisScaleBubbleSize(area.Common, area, seriesPoint.YValues[1], false)); 433returnValue = Math.Min(returnValue, seriesPoint.XValue); 504 min = Math.Min(min, seriesPoint.XValue); 534 min = Math.Min(min, yValue); 566 min = Math.Min(min, y); 599 min = Math.Min(min, y); 747 returnValue = Math.Min(returnValue, seriesPoint.YValues[valueIndex]); 777returnValue = Math.Min(returnValue, seriesPoint.YValues[0] - BubbleChart.AxisScaleBubbleSize(area.Common, area, seriesPoint.YValues[1], true)); 781returnValue = Math.Min(returnValue, seriesPoint.YValues[0]); 811 returnValue = Math.Min(returnValue, y); 831 returnValue = Math.Min(returnValue, seriesPoint.XValue); 872 noStackedMin = Math.Min(noStackedMin,this._series[seriesName].Points[pointIndex].YValues[valueIndex]); 876 stackedMin = Math.Min(stackedMin, noStackedMin); 881 returnValue = Math.Min(returnValue, stackedMin); 927noStackedMin = Math.Min(noStackedMin, this._series[seriesName].Points[pointIndex].YValues[valueIndex]); 931 minValue = Math.Min(noStackedMin, minValue); 932returnValue = Math.Min(returnValue, minValue); 956 returnValue = Math.Min(returnValue, doubleIndexValue); 1070 returnValue = Math.Min(returnValue,
Common\DataManager\DataSeries.cs (1)
1292keywordValue = Math.Min(keywordValue, point.YValues[yValueIndex]);
Common\General\Axis.cs (8)
5302rect.X = (float)Math.Min(fromPosition, toPosition); 5308rect.Y = (float)Math.Min(fromPosition, toPosition); 5411rect.Y = (float)Math.Min(fromPosition, toPosition); 5664rect.Y = (float)Math.Min(fromPosition, toPosition); 5779labelNearOffset = (float)Math.Min(labelNearOffset, (fromPosition + toPosition) / 2f - axisLabelSize.Width / 2f); 5795labelNearOffset = (float)Math.Min(labelNearOffset, (fromPosition + toPosition) / 2f - width * 1.1f); 5808labelNearOffset = (float)Math.Min(labelNearOffset, (fromPosition + toPosition) / 2f - axisLabelSize.Height / 2f); 5823labelNearOffset = (float)Math.Min(labelNearOffset, (fromPosition + toPosition) / 2f - height * 1.1f);
Common\General\AxisScaleBreaks.cs (2)
682 double minSize = Math.Min(this._minSegmentSize, Math.Floor(100.0 / axisSegments.Count)); 1033 segmentMinValue[segmentIndex] = Math.Min(segmentMinValue[segmentIndex], dataPoint.YValues[yValueIndex]);
Common\General\AxisScaleSegments.cs (2)
697 breakPosition.Y = (float)Math.Min(from, to); 702 breakPosition.X = (float)Math.Min(from, to);
Common\General\ChartAreaAxes.cs (3)
1142 stackMinBarColumn = Math.Min(stackMinBarColumn, stackMinBarColumnForGroup); 1144 stackMinArea = Math.Min(stackMinArea, stackMinAreaForGroup); 1149 autoMinimum = Math.Min(stackMinBarColumn,stackMinArea);
Common\General\DataManipulator.cs (4)
605 double fromX = Math.Min(fromXValue, toXValue); 632 fromX = Math.Min(fromX, ser.Points[0].XValue); 2853 Math.Min(pointTempValues[functionInfo.outputIndex], point.YValues[funcIndex-1]); 2906 Math.Min(pointTempValues[functionInfo.outputIndex + 1], point.YValues[funcIndex-1]);
Common\General\Label.cs (5)
271 double fromX = Math.Min(min, max); 1746rect.X = (float)Math.Min(fromPosition, toPosition); 1759rect.Y = (float)Math.Min(fromPosition, toPosition); 2260rect.X = (float)Math.Min(fromPosition, toPosition); 2277rect.Y = (float)Math.Min(fromPosition, toPosition);
Common\General\SmartLabels.cs (1)
809 float minMove = (float)Math.Min(smartLabelStyle.MinMovingDistance, smartLabelStyle.MaxMovingDistance);
Common\General\StripLine.cs (2)
369 rect.Y = (float)Math.Min(pos1, pos2); 379 rect.X = (float)Math.Min(pos1, pos2);
System.Workflow.ComponentModel (2)
AuthoringOM\Design\DesignerHelpers.cs (2)
1867minDistance = Math.Min(minDistance, distances[i]); 1930minDistance = Math.Min(minDistance, distances[i]);
WindowsBase (12)
Base\System\Windows\Rect.cs (6)
79_x = Math.Min(point1._x, point2._x); 80_y = Math.Min(point1._y, point2._y); 503_width = Math.Max(Math.Min(Right, rect.Right) - left, 0); 504_height = Math.Max(Math.Min(Bottom, rect.Bottom) - top, 0); 532double left = Math.Min(Left, rect.Left); 533double top = Math.Min(Top, rect.Top);
Shared\MS\Internal\MatrixUtil.cs (6)
113rect._x = Math.Min(Math.Min(point0.X, point1.X), Math.Min(point2.X, point3.X)); 114rect._y = Math.Min(Math.Min(point0.Y, point1.Y), Math.Min(point2.Y, point3.Y));