161 references to Max
PresentationFramework.Classic (3)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (3)
245float max = Math.Max(rgbColor.Red, Math.Max(rgbColor.Green, rgbColor.Blue)); 277saturation = Math.Max(0.0f, Math.Min(saturation, 1.0f));
System.Activities.Presentation (5)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\manifestimages.cs (5)
224float desiredAspectRatio = Math.Max(float.Epsilon, GetAspectRatio(desiredSize)); 225float actualAspectRatio = Math.Max(float.Epsilon, GetAspectRatio(actualSize)); 227float desiredArea = Math.Max(float.Epsilon, GetArea(desiredSize)); 228float actualArea = Math.Max(float.Epsilon, GetArea(actualSize)); 236_lastMatch = Math.Min(1f, Math.Max(0f, 1f - diff));
System.Data (6)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\manifestimages.cs (5)
224float desiredAspectRatio = Math.Max(float.Epsilon, GetAspectRatio(desiredSize)); 225float actualAspectRatio = Math.Max(float.Epsilon, GetAspectRatio(actualSize)); 227float desiredArea = Math.Max(float.Epsilon, GetArea(desiredSize)); 228float actualArea = Math.Max(float.Epsilon, GetArea(actualSize)); 236_lastMatch = Math.Min(1f, Math.Max(0f, 1f - diff));
fx\src\data\System\Data\Common\SingleStorage.cs (1)
117max=Math.Max(values[record], max);
System.Drawing (4)
commonui\System\Drawing\Advanced\RectangleF.cs (4)
408float x1 = Math.Max(a.X, b.X); 410float y1 = Math.Max(a.Y, b.Y); 441float x2 = Math.Max(a.X + a.Width, b.X + b.Width); 443float y2 = Math.Max(a.Y + a.Height, b.Y + b.Height);
System.Web.DataVisualization (69)
Common\Annotation\AnnotationBase.cs (1)
2810 float maxAnchorOffsetAbs = Math.Max(anchorOffsetAbs.X, anchorOffsetAbs.Y);
Common\Annotation\TextAnnotation.cs (4)
526 spacingScaleX = Math.Max(1f, spacingScaleX); 531 spacingScaleY = Math.Max(1f, spacingScaleY); 971 spacingScaleX = Math.Max(1f, spacingScaleX); 976 spacingScaleY = Math.Max(1f, spacingScaleY);
Common\Borders3D\EmbedBorder.cs (1)
939radius = (float)Math.Max(radius, 2f * resolution / 96.0f);
Common\Borders3D\EmbossBorder.cs (1)
194 radius = (float)Math.Max(radius, 2f * resolution / 96.0f);
Common\ChartTypes\AreaChart.cs (1)
984 maxY = (float)Math.Max(maxY, axisPosition);
Common\ChartTypes\BarChart.cs (1)
721pixelSize = (int)Math.Max(size.Width, size.Height);
Common\ChartTypes\BoxPlotChart.cs (2)
544 dashWidth = Math.Max(dashWidth, minSize.Width); 1324 dashWidth = Math.Max(dashWidth, minSize.Width);
Common\ChartTypes\FastPointChart.cs (1)
336markerSize = (int)Math.Max(markerSize * graph.Graphics.DpiX / 96, markerSize * graph.Graphics.DpiY / 96);
Common\ChartTypes\FunnelChart.cs (2)
1865 Math.Max(this._funnelNeckSize.Width/2f, (topDiameter + bottomDiameter) / 4f); 1884 Math.Max(this._funnelNeckSize.Width/2f, (topDiameter + bottomDiameter) / 4f);
Common\ChartTypes\PieChart.cs (2)
5321 maxSize = Math.Max( size.Width, maxSize ); 5322 maxSizeVertical = Math.Max( size.Height, maxSizeVertical );
Common\ChartTypes\RangeChart.cs (1)
1109 maxY = (float)Math.Max(maxY, axisPosition);
Common\ChartTypes\StockChart.cs (2)
800 rect.Height = (float)Math.Max(open, close) - rect.Y; 1625 rect.Height = (float)Math.Max(open, close) - rect.Y;
Common\General\Axis.cs (22)
3483arrowSize = Math.Max(arrowSizePrimary.Height, arrowSizeSecondary.Height); 3488arrowSize = Math.Max(arrowSizePrimary.Width, arrowSizeSecondary.Width); 3532this.markSize += (float)Math.Max(majorTickSize, minorTickSize); 3599this.markSize = Math.Max(this.markSize, arrowSize - (this.markSize + this.scrollBarSize + this.titleSize)); 5324axisLabelSize.Height = Math.Max(axisLabelSize.Height, imageRelSize.Height); 5340groupingLabelSizes[groupLevelIndex - 1] = (float)Math.Max(groupingLabelSizes[groupLevelIndex - 1], axisLabelSize.Height); 5346groupingLabelSizes[groupLevelIndex - 1] = (float)Math.Max(groupingLabelSizes[groupLevelIndex - 1], axisLabelSize.Width); 5497axisLabelSize.Width = Math.Max(axisLabelSize.Width, imageRelSize.Width); 5502axisLabelSize.Height = Math.Max(axisLabelSize.Height, imageRelSize.Height); 5732axisLabelSize.Width = Math.Max(axisLabelSize.Width, imageRelSize.Width); 5737axisLabelSize.Height = Math.Max(axisLabelSize.Height, imageRelSize.Height); 5775resultSize = Math.Max(resultSize, axisLabelSize.Height); 5776resultRotatedSize = Math.Max(resultRotatedSize, axisLabelSize.Height); 5785resultSize = Math.Max(resultSize, axisLabelSize.Height); 5786resultRotatedSize = Math.Max(resultRotatedSize, height); 5804resultSize = Math.Max(resultSize, axisLabelSize.Width); 5805resultRotatedSize = Math.Max(resultRotatedSize, axisLabelSize.Width); 5813resultSize = Math.Max(resultSize, axisLabelSize.Width); 5814resultRotatedSize = Math.Max(resultRotatedSize, width); 5952 axisLabelSize.Height = Math.Max(axisLabelSize.Height, imageRelSize.Height); 5970resultSize[groupLevelIndex - 1] = Math.Max(resultSize[groupLevelIndex - 1], axisLabelSize.Height); 5977resultSize[groupLevelIndex - 1] = Math.Max(resultSize[groupLevelIndex - 1], axisLabelSize.Width);
Common\General\Chart.cs (1)
345float newResolution = Math.Max(resolution / 2, 96);
Common\General\ChartArea.cs (13)
1715rectLabelSideSpacing.X = (float)Math.Max(offset, rectLabelSideSpacing.X); 1722rectLabelSideSpacing.Width = (float)Math.Max(axis.labelFarOffset - Position.Right, rectLabelSideSpacing.Width); 1726rectLabelSideSpacing.Width = (float)Math.Max(plottingRect.Width * 0.3f, rectLabelSideSpacing.Width); 1743rectLabelSideSpacing.Y = (float)Math.Max(offset, rectLabelSideSpacing.Y); 1750rectLabelSideSpacing.Height = (float)Math.Max(axis.labelFarOffset - Position.Bottom, rectLabelSideSpacing.Height); 1754rectLabelSideSpacing.Height = (float)Math.Max(plottingRect.Height * 0.3f, rectLabelSideSpacing.Height); 1797 float xTitleSize = (float)Math.Max(this.AxisY.titleSize, this.AxisY2.titleSize); 1803 float yTitleSize = (float)Math.Max(this.AxisX.titleSize, this.AxisX2.titleSize); 2701 labelsSize = (float)Math.Max( 2724 labelsSize = (float)Math.Max( 2726 Math.Max(width, height)); 2751 labelsSize = (float)Math.Max( 2753 Math.Max(width, textSize.Height));
Common\General\ChartGraphics.cs (1)
3788 radius = (float)Math.Max(radius, 2f);
Common\General\ChartGraphics3D.cs (4)
366 point1.X = Math.Max(point1.X, point2.X); 383 point1.Y = Math.Max(point1.Y, point2.Y); 2221 float maxX = (float)Math.Max(points3D[0].X, points3D[1].X); 2222 float maxY = (float)Math.Max(points3D[0].Y, points3D[1].Y);
Common\General\Label.cs (4)
1837 rectLabels.Width = (float)Math.Max(rectLabels.Width, rectLabels.X - labelsAxis.PlotAreaPosition.X); 1861 rectLabels.Width = (float)Math.Max(rectLabels.Width, labelsAxis.PlotAreaPosition.Right - rectLabels.X); 1883 rectLabels.Height = (float)Math.Max(rectLabels.Height, rectLabels.Y - labelsAxis.PlotAreaPosition.Y); 1907 rectLabels.Height = (float)Math.Max(rectLabels.Height, labelsAxis.PlotAreaPosition.Bottom - rectLabels.Y);
Common\General\Legend.cs (2)
1796 cellSize.Width = (int)Math.Max(cellSize.Width, legendColumn.MinimumWidth * singleWCharacterSize.Width / 100f); 1902 (int)Math.Max(subColumnSizes[currentColumn, currentSubColumn], legendColumn.MinimumWidth * singleWCharacterSize.Width / 100f);
Common\General\LegendColumns.cs (3)
2137 scaleValue = Math.Max(scaleValue, (float)imagePosition.Width / (float)imageCellPosition.Width); 2307scaleValue = Math.Max(scaleValue, (float)imageScale.Width / (float)seriesMarkerPosition.Width); 2448 scaleValue = Math.Max(scaleValue, (float)imageScale.Width / (float)seriesMarkerPosition.Width);
System.Windows.Forms (4)
winforms\Managed\System\WinForms\DataGridViewMethods.cs (2)
675dataGridViewColumnTmp.UsedFillWeight = Math.Max(dataGridViewColumnTmp.FillWeight * usedWeightSumNoneMinimal / weightSumNoneMinimal, 841dataGridViewColumnTmp.UsedFillWeight = Math.Max(dataGridViewColumnTmp.FillWeight * usedWeightSumNoneMinimal / weightSumNoneMinimal,
winforms\Managed\System\WinForms\Layout\TableLayout.cs (2)
258containerInfo.ColumnStyles[0].SetSize(Math.Max(oldWidth, Math.Min(proposedConstraints.Width, containerSize.Width))); 1052totalPercentAllocatedSpace = Math.Max(0, maxSize - totalAbsoluteAndAutoSizeAllocatedSpace);
System.Windows.Forms.DataVisualization (69)
Common\Annotation\AnnotationBase.cs (1)
2810 float maxAnchorOffsetAbs = Math.Max(anchorOffsetAbs.X, anchorOffsetAbs.Y);
Common\Annotation\TextAnnotation.cs (4)
526 spacingScaleX = Math.Max(1f, spacingScaleX); 531 spacingScaleY = Math.Max(1f, spacingScaleY); 971 spacingScaleX = Math.Max(1f, spacingScaleX); 976 spacingScaleY = Math.Max(1f, spacingScaleY);
Common\Borders3D\EmbedBorder.cs (1)
939radius = (float)Math.Max(radius, 2f * resolution / 96.0f);
Common\Borders3D\EmbossBorder.cs (1)
194 radius = (float)Math.Max(radius, 2f * resolution / 96.0f);
Common\ChartTypes\AreaChart.cs (1)
984 maxY = (float)Math.Max(maxY, axisPosition);
Common\ChartTypes\BarChart.cs (1)
721pixelSize = (int)Math.Max(size.Width, size.Height);
Common\ChartTypes\BoxPlotChart.cs (2)
544 dashWidth = Math.Max(dashWidth, minSize.Width); 1324 dashWidth = Math.Max(dashWidth, minSize.Width);
Common\ChartTypes\FastPointChart.cs (1)
336markerSize = (int)Math.Max(markerSize * graph.Graphics.DpiX / 96, markerSize * graph.Graphics.DpiY / 96);
Common\ChartTypes\FunnelChart.cs (2)
1865 Math.Max(this._funnelNeckSize.Width/2f, (topDiameter + bottomDiameter) / 4f); 1884 Math.Max(this._funnelNeckSize.Width/2f, (topDiameter + bottomDiameter) / 4f);
Common\ChartTypes\PieChart.cs (2)
5321 maxSize = Math.Max( size.Width, maxSize ); 5322 maxSizeVertical = Math.Max( size.Height, maxSizeVertical );
Common\ChartTypes\RangeChart.cs (1)
1109 maxY = (float)Math.Max(maxY, axisPosition);
Common\ChartTypes\StockChart.cs (2)
800 rect.Height = (float)Math.Max(open, close) - rect.Y; 1625 rect.Height = (float)Math.Max(open, close) - rect.Y;
Common\General\Axis.cs (22)
3483arrowSize = Math.Max(arrowSizePrimary.Height, arrowSizeSecondary.Height); 3488arrowSize = Math.Max(arrowSizePrimary.Width, arrowSizeSecondary.Width); 3532this.markSize += (float)Math.Max(majorTickSize, minorTickSize); 3599this.markSize = Math.Max(this.markSize, arrowSize - (this.markSize + this.scrollBarSize + this.titleSize)); 5324axisLabelSize.Height = Math.Max(axisLabelSize.Height, imageRelSize.Height); 5340groupingLabelSizes[groupLevelIndex - 1] = (float)Math.Max(groupingLabelSizes[groupLevelIndex - 1], axisLabelSize.Height); 5346groupingLabelSizes[groupLevelIndex - 1] = (float)Math.Max(groupingLabelSizes[groupLevelIndex - 1], axisLabelSize.Width); 5497axisLabelSize.Width = Math.Max(axisLabelSize.Width, imageRelSize.Width); 5502axisLabelSize.Height = Math.Max(axisLabelSize.Height, imageRelSize.Height); 5732axisLabelSize.Width = Math.Max(axisLabelSize.Width, imageRelSize.Width); 5737axisLabelSize.Height = Math.Max(axisLabelSize.Height, imageRelSize.Height); 5775resultSize = Math.Max(resultSize, axisLabelSize.Height); 5776resultRotatedSize = Math.Max(resultRotatedSize, axisLabelSize.Height); 5785resultSize = Math.Max(resultSize, axisLabelSize.Height); 5786resultRotatedSize = Math.Max(resultRotatedSize, height); 5804resultSize = Math.Max(resultSize, axisLabelSize.Width); 5805resultRotatedSize = Math.Max(resultRotatedSize, axisLabelSize.Width); 5813resultSize = Math.Max(resultSize, axisLabelSize.Width); 5814resultRotatedSize = Math.Max(resultRotatedSize, width); 5952 axisLabelSize.Height = Math.Max(axisLabelSize.Height, imageRelSize.Height); 5970resultSize[groupLevelIndex - 1] = Math.Max(resultSize[groupLevelIndex - 1], axisLabelSize.Height); 5977resultSize[groupLevelIndex - 1] = Math.Max(resultSize[groupLevelIndex - 1], axisLabelSize.Width);
Common\General\Chart.cs (1)
345float newResolution = Math.Max(resolution / 2, 96);
Common\General\ChartArea.cs (13)
1715rectLabelSideSpacing.X = (float)Math.Max(offset, rectLabelSideSpacing.X); 1722rectLabelSideSpacing.Width = (float)Math.Max(axis.labelFarOffset - Position.Right, rectLabelSideSpacing.Width); 1726rectLabelSideSpacing.Width = (float)Math.Max(plottingRect.Width * 0.3f, rectLabelSideSpacing.Width); 1743rectLabelSideSpacing.Y = (float)Math.Max(offset, rectLabelSideSpacing.Y); 1750rectLabelSideSpacing.Height = (float)Math.Max(axis.labelFarOffset - Position.Bottom, rectLabelSideSpacing.Height); 1754rectLabelSideSpacing.Height = (float)Math.Max(plottingRect.Height * 0.3f, rectLabelSideSpacing.Height); 1797 float xTitleSize = (float)Math.Max(this.AxisY.titleSize, this.AxisY2.titleSize); 1803 float yTitleSize = (float)Math.Max(this.AxisX.titleSize, this.AxisX2.titleSize); 2701 labelsSize = (float)Math.Max( 2724 labelsSize = (float)Math.Max( 2726 Math.Max(width, height)); 2751 labelsSize = (float)Math.Max( 2753 Math.Max(width, textSize.Height));
Common\General\ChartGraphics.cs (1)
3788 radius = (float)Math.Max(radius, 2f);
Common\General\ChartGraphics3D.cs (4)
366 point1.X = Math.Max(point1.X, point2.X); 383 point1.Y = Math.Max(point1.Y, point2.Y); 2221 float maxX = (float)Math.Max(points3D[0].X, points3D[1].X); 2222 float maxY = (float)Math.Max(points3D[0].Y, points3D[1].Y);
Common\General\Label.cs (4)
1837 rectLabels.Width = (float)Math.Max(rectLabels.Width, rectLabels.X - labelsAxis.PlotAreaPosition.X); 1861 rectLabels.Width = (float)Math.Max(rectLabels.Width, labelsAxis.PlotAreaPosition.Right - rectLabels.X); 1883 rectLabels.Height = (float)Math.Max(rectLabels.Height, rectLabels.Y - labelsAxis.PlotAreaPosition.Y); 1907 rectLabels.Height = (float)Math.Max(rectLabels.Height, labelsAxis.PlotAreaPosition.Bottom - rectLabels.Y);
Common\General\Legend.cs (2)
1796 cellSize.Width = (int)Math.Max(cellSize.Width, legendColumn.MinimumWidth * singleWCharacterSize.Width / 100f); 1902 (int)Math.Max(subColumnSizes[currentColumn, currentSubColumn], legendColumn.MinimumWidth * singleWCharacterSize.Width / 100f);
Common\General\LegendColumns.cs (3)
2137 scaleValue = Math.Max(scaleValue, (float)imagePosition.Width / (float)imageCellPosition.Width); 2307scaleValue = Math.Max(scaleValue, (float)imageScale.Width / (float)seriesMarkerPosition.Width); 2448 scaleValue = Math.Max(scaleValue, (float)imageScale.Width / (float)seriesMarkerPosition.Width);
System.Workflow.ComponentModel (1)
AuthoringOM\Design\MessageFilters\DynamicActionMessageFilter.cs (1)
526this.transparency = Math.Max(DynamicAction.DefaultTransparency, value);