161 references to Max
PresentationFramework.Classic (3)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (3)
245
float max = Math.
Max
(rgbColor.Red, Math.
Max
(rgbColor.Green, rgbColor.Blue));
277
saturation = 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)
224
float desiredAspectRatio = Math.
Max
(float.Epsilon, GetAspectRatio(desiredSize));
225
float actualAspectRatio = Math.
Max
(float.Epsilon, GetAspectRatio(actualSize));
227
float desiredArea = Math.
Max
(float.Epsilon, GetArea(desiredSize));
228
float 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)
224
float desiredAspectRatio = Math.
Max
(float.Epsilon, GetAspectRatio(desiredSize));
225
float actualAspectRatio = Math.
Max
(float.Epsilon, GetAspectRatio(actualSize));
227
float desiredArea = Math.
Max
(float.Epsilon, GetArea(desiredSize));
228
float 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)
117
max=Math.
Max
(values[record], max);
System.Drawing (4)
commonui\System\Drawing\Advanced\RectangleF.cs (4)
408
float x1 = Math.
Max
(a.X, b.X);
410
float y1 = Math.
Max
(a.Y, b.Y);
441
float x2 = Math.
Max
(a.X + a.Width, b.X + b.Width);
443
float 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)
939
radius = (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)
721
pixelSize = (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)
336
markerSize = (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)
3483
arrowSize = Math.
Max
(arrowSizePrimary.Height, arrowSizeSecondary.Height);
3488
arrowSize = Math.
Max
(arrowSizePrimary.Width, arrowSizeSecondary.Width);
3532
this.markSize += (float)Math.
Max
(majorTickSize, minorTickSize);
3599
this.markSize = Math.
Max
(this.markSize, arrowSize - (this.markSize + this.scrollBarSize + this.titleSize));
5324
axisLabelSize.Height = Math.
Max
(axisLabelSize.Height, imageRelSize.Height);
5340
groupingLabelSizes[groupLevelIndex - 1] = (float)Math.
Max
(groupingLabelSizes[groupLevelIndex - 1], axisLabelSize.Height);
5346
groupingLabelSizes[groupLevelIndex - 1] = (float)Math.
Max
(groupingLabelSizes[groupLevelIndex - 1], axisLabelSize.Width);
5497
axisLabelSize.Width = Math.
Max
(axisLabelSize.Width, imageRelSize.Width);
5502
axisLabelSize.Height = Math.
Max
(axisLabelSize.Height, imageRelSize.Height);
5732
axisLabelSize.Width = Math.
Max
(axisLabelSize.Width, imageRelSize.Width);
5737
axisLabelSize.Height = Math.
Max
(axisLabelSize.Height, imageRelSize.Height);
5775
resultSize = Math.
Max
(resultSize, axisLabelSize.Height);
5776
resultRotatedSize = Math.
Max
(resultRotatedSize, axisLabelSize.Height);
5785
resultSize = Math.
Max
(resultSize, axisLabelSize.Height);
5786
resultRotatedSize = Math.
Max
(resultRotatedSize, height);
5804
resultSize = Math.
Max
(resultSize, axisLabelSize.Width);
5805
resultRotatedSize = Math.
Max
(resultRotatedSize, axisLabelSize.Width);
5813
resultSize = Math.
Max
(resultSize, axisLabelSize.Width);
5814
resultRotatedSize = Math.
Max
(resultRotatedSize, width);
5952
axisLabelSize.Height = Math.
Max
(axisLabelSize.Height, imageRelSize.Height);
5970
resultSize[groupLevelIndex - 1] = Math.
Max
(resultSize[groupLevelIndex - 1], axisLabelSize.Height);
5977
resultSize[groupLevelIndex - 1] = Math.
Max
(resultSize[groupLevelIndex - 1], axisLabelSize.Width);
Common\General\Chart.cs (1)
345
float newResolution = Math.
Max
(resolution / 2, 96);
Common\General\ChartArea.cs (13)
1715
rectLabelSideSpacing.X = (float)Math.
Max
(offset, rectLabelSideSpacing.X);
1722
rectLabelSideSpacing.Width = (float)Math.
Max
(axis.labelFarOffset - Position.Right, rectLabelSideSpacing.Width);
1726
rectLabelSideSpacing.Width = (float)Math.
Max
(plottingRect.Width * 0.3f, rectLabelSideSpacing.Width);
1743
rectLabelSideSpacing.Y = (float)Math.
Max
(offset, rectLabelSideSpacing.Y);
1750
rectLabelSideSpacing.Height = (float)Math.
Max
(axis.labelFarOffset - Position.Bottom, rectLabelSideSpacing.Height);
1754
rectLabelSideSpacing.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);
2307
scaleValue = 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)
675
dataGridViewColumnTmp.UsedFillWeight = Math.
Max
(dataGridViewColumnTmp.FillWeight * usedWeightSumNoneMinimal / weightSumNoneMinimal,
841
dataGridViewColumnTmp.UsedFillWeight = Math.
Max
(dataGridViewColumnTmp.FillWeight * usedWeightSumNoneMinimal / weightSumNoneMinimal,
winforms\Managed\System\WinForms\Layout\TableLayout.cs (2)
258
containerInfo.ColumnStyles[0].SetSize(Math.
Max
(oldWidth, Math.Min(proposedConstraints.Width, containerSize.Width)));
1052
totalPercentAllocatedSpace = 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)
939
radius = (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)
721
pixelSize = (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)
336
markerSize = (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)
3483
arrowSize = Math.
Max
(arrowSizePrimary.Height, arrowSizeSecondary.Height);
3488
arrowSize = Math.
Max
(arrowSizePrimary.Width, arrowSizeSecondary.Width);
3532
this.markSize += (float)Math.
Max
(majorTickSize, minorTickSize);
3599
this.markSize = Math.
Max
(this.markSize, arrowSize - (this.markSize + this.scrollBarSize + this.titleSize));
5324
axisLabelSize.Height = Math.
Max
(axisLabelSize.Height, imageRelSize.Height);
5340
groupingLabelSizes[groupLevelIndex - 1] = (float)Math.
Max
(groupingLabelSizes[groupLevelIndex - 1], axisLabelSize.Height);
5346
groupingLabelSizes[groupLevelIndex - 1] = (float)Math.
Max
(groupingLabelSizes[groupLevelIndex - 1], axisLabelSize.Width);
5497
axisLabelSize.Width = Math.
Max
(axisLabelSize.Width, imageRelSize.Width);
5502
axisLabelSize.Height = Math.
Max
(axisLabelSize.Height, imageRelSize.Height);
5732
axisLabelSize.Width = Math.
Max
(axisLabelSize.Width, imageRelSize.Width);
5737
axisLabelSize.Height = Math.
Max
(axisLabelSize.Height, imageRelSize.Height);
5775
resultSize = Math.
Max
(resultSize, axisLabelSize.Height);
5776
resultRotatedSize = Math.
Max
(resultRotatedSize, axisLabelSize.Height);
5785
resultSize = Math.
Max
(resultSize, axisLabelSize.Height);
5786
resultRotatedSize = Math.
Max
(resultRotatedSize, height);
5804
resultSize = Math.
Max
(resultSize, axisLabelSize.Width);
5805
resultRotatedSize = Math.
Max
(resultRotatedSize, axisLabelSize.Width);
5813
resultSize = Math.
Max
(resultSize, axisLabelSize.Width);
5814
resultRotatedSize = Math.
Max
(resultRotatedSize, width);
5952
axisLabelSize.Height = Math.
Max
(axisLabelSize.Height, imageRelSize.Height);
5970
resultSize[groupLevelIndex - 1] = Math.
Max
(resultSize[groupLevelIndex - 1], axisLabelSize.Height);
5977
resultSize[groupLevelIndex - 1] = Math.
Max
(resultSize[groupLevelIndex - 1], axisLabelSize.Width);
Common\General\Chart.cs (1)
345
float newResolution = Math.
Max
(resolution / 2, 96);
Common\General\ChartArea.cs (13)
1715
rectLabelSideSpacing.X = (float)Math.
Max
(offset, rectLabelSideSpacing.X);
1722
rectLabelSideSpacing.Width = (float)Math.
Max
(axis.labelFarOffset - Position.Right, rectLabelSideSpacing.Width);
1726
rectLabelSideSpacing.Width = (float)Math.
Max
(plottingRect.Width * 0.3f, rectLabelSideSpacing.Width);
1743
rectLabelSideSpacing.Y = (float)Math.
Max
(offset, rectLabelSideSpacing.Y);
1750
rectLabelSideSpacing.Height = (float)Math.
Max
(axis.labelFarOffset - Position.Bottom, rectLabelSideSpacing.Height);
1754
rectLabelSideSpacing.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);
2307
scaleValue = 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)
526
this.transparency = Math.
Max
(DynamicAction.DefaultTransparency, value);