132 references to Min
PresentationFramework.Classic (3)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (3)
244
float min = Math.
Min
(rgbColor.Red, Math.
Min
(rgbColor.Green, rgbColor.Blue));
277
saturation = Math.Max(0.0f, Math.
Min
(saturation, 1.0f));
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\manifestimages.cs (1)
236
_lastMatch = Math.
Min
(1f, Math.Max(0f, 1f - diff));
System.Data (2)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\manifestimages.cs (1)
236
_lastMatch = Math.
Min
(1f, Math.Max(0f, 1f - diff));
fx\src\data\System\Data\Common\SingleStorage.cs (1)
103
min=Math.
Min
(values[record], min);
System.Drawing (4)
commonui\System\Drawing\Advanced\RectangleF.cs (4)
409
float x2 = Math.
Min
(a.X + a.Width, b.X + b.Width);
411
float y2 = Math.
Min
(a.Y + a.Height, b.Y + b.Height);
440
float x1 = Math.
Min
(a.X, b.X);
442
float y1 = Math.
Min
(a.Y, b.Y);
System.Web.DataVisualization (56)
Common\Annotation\CalloutAnnotation.cs (2)
832
float radius = Math.
Min
(rectanglePositionAbs.Width, rectanglePositionAbs.Height);
937
float size = Math.
Min
(rectanglePositionAbs.Width, rectanglePositionAbs.Height);
Common\Borders3D\EmbedBorder.cs (4)
863
areasRect.Width -= (float)Math.
Min
(areasRect.Width, relSizeLeftTop.Width + relSizeRightBottom.Width);
865
areasRect.Height -= (float)Math.
Min
(areasRect.Height, relSizeLeftTop.Height + relSizeRightBottom.Height);
940
radius = (float)Math.
Min
(radius, rect.Width/2f);
941
radius = (float)Math.
Min
(radius, rect.Height/2f);
Common\Borders3D\EmbossBorder.cs (4)
120
areasRect.Width -= (float)Math.
Min
(areasRect.Width, borderSize.Width * 2.5f);
126
areasRect.Height -= (float)Math.
Min
(areasRect.Height, borderSize.Height * 2.5f);
195
radius = (float)Math.
Min
(radius, rect.Width/2f);
196
radius = (float)Math.
Min
(radius, rect.Height/2f);
Common\ChartTypes\AreaChart.cs (1)
981
minY = (float)Math.
Min
(minY, axisPosition);
Common\ChartTypes\BarChart.cs (8)
927
rectLabel.Width -= (float)Math.
Min
(rectLabel.Width, markerSize.Width / 2F);
930
rectLabel.X += (float)Math.
Min
(rectLabel.Width, markerSize.Width / 2F);
952
rectLabel.Width -= (float)Math.
Min
(rectLabel.Width, markerSize.Width / 2F);
955
rectLabel.X += (float)Math.
Min
(rectLabel.Width, markerSize.Width / 2F);
1946
rectLabel.Width -= (float)Math.
Min
(rectLabel.Width, markerSize.Width / 2F);
1949
rectLabel.X += (float)Math.
Min
(rectLabel.Width, markerSize.Width / 2F);
1971
rectLabel.Width -= (float)Math.
Min
(rectLabel.Width, markerSize.Width / 2F);
1974
rectLabel.X += (float)Math.
Min
(rectLabel.Width, markerSize.Width / 2F);
Common\ChartTypes\BoxPlotChart.cs (2)
553
new PointF((float) Math.
Min
(rectSize.Right, curPosition + dashWidth), medianValue),
1333
new PointF((float) Math.
Min
(rectSize.Right, curPosition + dashWidth), medianValue),
Common\ChartTypes\BubbleChart.cs (2)
304
_maxBubleSize = (float)(Math.
Min
(areaSize.Width, areaSize.Height) / (100.0/_maxPossibleBubbleSize));
305
_minBubleSize = (float)(Math.
Min
(areaSize.Width, areaSize.Height) / (100.0/_minPossibleBubbleSize));
Common\ChartTypes\FunnelChart.cs (1)
2246
float minSize = Math.
Min
(2f, this.funnelSegmentGap / 2f);
Common\ChartTypes\RangeChart.cs (1)
1106
minY = (float)Math.
Min
(minY, axisPosition);
Common\ChartTypes\StockChart.cs (2)
798
rect.Y = (float)Math.
Min
(open, close);
1623
rect.Y = (float)Math.
Min
(open, close);
Common\General\Axis.cs (8)
3404
this.titleSize = Math.
Min
(titleStringSize.Width, maxTitlesize);
3408
this.titleSize = Math.
Min
(titleStringSize.Height, maxTitlesize);
3419
this.titleSize = Math.
Min
(titleStringSize.Width, maxTitlesize);
3423
this.titleSize = Math.
Min
(titleStringSize.Height, maxTitlesize);
3542
this.markSize = Math.
Min
(this.markSize, (plotArea.Height / 100F) * (Axis.maxAxisMarkSize / axesNumber));
3548
this.markSize = Math.
Min
(this.markSize, (plotArea.Width / 100F) * (Axis.maxAxisMarkSize / axesNumber));
3600
this.markSize = Math.
Min
(this.markSize, (plotArea.Width / 100F) * (Axis.maxAxisMarkSize / axesNumber));
3727
size = (float)Math.
Min
(size, ChartArea.axesAutoFontSize);
Common\General\AxisScaleSegments.cs (2)
414
size = Math.
Min
(size, breakPosition.Height);
418
size = Math.
Min
(size, breakPosition.Width);
Common\General\ChartArea.cs (3)
1540
axesAutoFontSize = Math.
Min
(axesAutoFontSize, axis.autoLabelFont.Size);
2603
labelsSizeEstimate = (float)Math.
Min
(labelsSizeEstimate * 1.1f, plotAreaRectAbs.Width / 5f);
2618
labelsSize = (float)Math.
Min
(labelsSize, plotAreaRectAbs.Width / 2.5f);
Common\General\ChartGraphics.cs (6)
3547
imageRect.Width = Math.
Min
(fillRect.Width, imageAbsSize.Width);
3548
imageRect.Height = Math.
Min
(fillRect.Height, imageAbsSize.Height);
3789
radius = (float)Math.
Min
(radius, offset.Width/4f);
3790
radius = (float)Math.
Min
(radius, offset.Height/4f);
5135
float minSize = (float)Math.
Min
(position.Width, position.Height);
5192
float minSize = (float)Math.
Min
(position.Width, position.Height);
Common\General\ChartGraphics3D.cs (3)
362
point1.X = Math.
Min
(point1.X, point2.X);
2219
float minX = (float)Math.
Min
(points3D[0].X, points3D[1].X);
2220
float minY = (float)Math.
Min
(points3D[0].Y, points3D[1].Y);
Common\General\Legend.cs (4)
1800
cellSize.Width = (int)Math.
Min
(cellSize.Width, legendColumn.MaximumWidth * singleWCharacterSize.Width / 100f);
1907
(int)Math.
Min
(subColumnSizes[currentColumn, currentSubColumn], legendColumn.MaximumWidth * singleWCharacterSize.Width / 100f);
4926
float areaSpacing = Math.
Min
((chartAreasRectangle.Height/100F) * elementSpacing, (chartAreasRectangle.Width/100F) * elementSpacing);
5028
float areaSpacing = Math.
Min
((legendPlottingRectangle.Height/100F) * elementSpacing, (legendPlottingRectangle.Width/100F) * elementSpacing);
Common\General\LegendColumns.cs (1)
2408
markerSize = (int)Math.
Min
(legendItem.markerSize, (legendItem.style == LegendImageStyle.Line) ? 2f*(markerSize/3f) : markerSize);
Common\General\Title.cs (2)
2065
float areaSpacing = Math.
Min
((chartAreasRectangle.Height/100F) * elementSpacing, (chartAreasRectangle.Width/100F) * elementSpacing);
2198
float areaSpacing = Math.
Min
((titlePlottingRectangle.Height/100F) * elementSpacing, (titlePlottingRectangle.Width/100F) * elementSpacing);
System.Windows.Forms (1)
winforms\Managed\System\WinForms\PictureBox.cs (1)
462
float ratio = Math.
Min
((float)ClientRectangle.Width / (float)imageSize.Width, (float)ClientRectangle.Height / (float)imageSize.Height);
System.Windows.Forms.DataVisualization (58)
Common\Annotation\CalloutAnnotation.cs (2)
832
float radius = Math.
Min
(rectanglePositionAbs.Width, rectanglePositionAbs.Height);
937
float size = Math.
Min
(rectanglePositionAbs.Width, rectanglePositionAbs.Height);
Common\Borders3D\EmbedBorder.cs (4)
863
areasRect.Width -= (float)Math.
Min
(areasRect.Width, relSizeLeftTop.Width + relSizeRightBottom.Width);
865
areasRect.Height -= (float)Math.
Min
(areasRect.Height, relSizeLeftTop.Height + relSizeRightBottom.Height);
940
radius = (float)Math.
Min
(radius, rect.Width/2f);
941
radius = (float)Math.
Min
(radius, rect.Height/2f);
Common\Borders3D\EmbossBorder.cs (4)
120
areasRect.Width -= (float)Math.
Min
(areasRect.Width, borderSize.Width * 2.5f);
126
areasRect.Height -= (float)Math.
Min
(areasRect.Height, borderSize.Height * 2.5f);
195
radius = (float)Math.
Min
(radius, rect.Width/2f);
196
radius = (float)Math.
Min
(radius, rect.Height/2f);
Common\ChartTypes\AreaChart.cs (1)
981
minY = (float)Math.
Min
(minY, axisPosition);
Common\ChartTypes\BarChart.cs (8)
927
rectLabel.Width -= (float)Math.
Min
(rectLabel.Width, markerSize.Width / 2F);
930
rectLabel.X += (float)Math.
Min
(rectLabel.Width, markerSize.Width / 2F);
952
rectLabel.Width -= (float)Math.
Min
(rectLabel.Width, markerSize.Width / 2F);
955
rectLabel.X += (float)Math.
Min
(rectLabel.Width, markerSize.Width / 2F);
1946
rectLabel.Width -= (float)Math.
Min
(rectLabel.Width, markerSize.Width / 2F);
1949
rectLabel.X += (float)Math.
Min
(rectLabel.Width, markerSize.Width / 2F);
1971
rectLabel.Width -= (float)Math.
Min
(rectLabel.Width, markerSize.Width / 2F);
1974
rectLabel.X += (float)Math.
Min
(rectLabel.Width, markerSize.Width / 2F);
Common\ChartTypes\BoxPlotChart.cs (2)
553
new PointF((float) Math.
Min
(rectSize.Right, curPosition + dashWidth), medianValue),
1333
new PointF((float) Math.
Min
(rectSize.Right, curPosition + dashWidth), medianValue),
Common\ChartTypes\BubbleChart.cs (2)
304
_maxBubleSize = (float)(Math.
Min
(areaSize.Width, areaSize.Height) / (100.0/_maxPossibleBubbleSize));
305
_minBubleSize = (float)(Math.
Min
(areaSize.Width, areaSize.Height) / (100.0/_minPossibleBubbleSize));
Common\ChartTypes\FunnelChart.cs (1)
2246
float minSize = Math.
Min
(2f, this.funnelSegmentGap / 2f);
Common\ChartTypes\RangeChart.cs (1)
1106
minY = (float)Math.
Min
(minY, axisPosition);
Common\ChartTypes\StockChart.cs (2)
798
rect.Y = (float)Math.
Min
(open, close);
1623
rect.Y = (float)Math.
Min
(open, close);
Common\General\Axis.cs (8)
3404
this.titleSize = Math.
Min
(titleStringSize.Width, maxTitlesize);
3408
this.titleSize = Math.
Min
(titleStringSize.Height, maxTitlesize);
3419
this.titleSize = Math.
Min
(titleStringSize.Width, maxTitlesize);
3423
this.titleSize = Math.
Min
(titleStringSize.Height, maxTitlesize);
3542
this.markSize = Math.
Min
(this.markSize, (plotArea.Height / 100F) * (Axis.maxAxisMarkSize / axesNumber));
3548
this.markSize = Math.
Min
(this.markSize, (plotArea.Width / 100F) * (Axis.maxAxisMarkSize / axesNumber));
3600
this.markSize = Math.
Min
(this.markSize, (plotArea.Width / 100F) * (Axis.maxAxisMarkSize / axesNumber));
3727
size = (float)Math.
Min
(size, ChartArea.axesAutoFontSize);
Common\General\AxisScaleSegments.cs (2)
414
size = Math.
Min
(size, breakPosition.Height);
418
size = Math.
Min
(size, breakPosition.Width);
Common\General\ChartArea.cs (3)
1540
axesAutoFontSize = Math.
Min
(axesAutoFontSize, axis.autoLabelFont.Size);
2603
labelsSizeEstimate = (float)Math.
Min
(labelsSizeEstimate * 1.1f, plotAreaRectAbs.Width / 5f);
2618
labelsSize = (float)Math.
Min
(labelsSize, plotAreaRectAbs.Width / 2.5f);
Common\General\ChartGraphics.cs (6)
3547
imageRect.Width = Math.
Min
(fillRect.Width, imageAbsSize.Width);
3548
imageRect.Height = Math.
Min
(fillRect.Height, imageAbsSize.Height);
3789
radius = (float)Math.
Min
(radius, offset.Width/4f);
3790
radius = (float)Math.
Min
(radius, offset.Height/4f);
5135
float minSize = (float)Math.
Min
(position.Width, position.Height);
5192
float minSize = (float)Math.
Min
(position.Width, position.Height);
Common\General\ChartGraphics3D.cs (3)
362
point1.X = Math.
Min
(point1.X, point2.X);
2219
float minX = (float)Math.
Min
(points3D[0].X, points3D[1].X);
2220
float minY = (float)Math.
Min
(points3D[0].Y, points3D[1].Y);
Common\General\Legend.cs (4)
1800
cellSize.Width = (int)Math.
Min
(cellSize.Width, legendColumn.MaximumWidth * singleWCharacterSize.Width / 100f);
1907
(int)Math.
Min
(subColumnSizes[currentColumn, currentSubColumn], legendColumn.MaximumWidth * singleWCharacterSize.Width / 100f);
4926
float areaSpacing = Math.
Min
((chartAreasRectangle.Height/100F) * elementSpacing, (chartAreasRectangle.Width/100F) * elementSpacing);
5028
float areaSpacing = Math.
Min
((legendPlottingRectangle.Height/100F) * elementSpacing, (legendPlottingRectangle.Width/100F) * elementSpacing);
Common\General\LegendColumns.cs (1)
2408
markerSize = (int)Math.
Min
(legendItem.markerSize, (legendItem.style == LegendImageStyle.Line) ? 2f*(markerSize/3f) : markerSize);
Common\General\Title.cs (2)
2065
float areaSpacing = Math.
Min
((chartAreasRectangle.Height/100F) * elementSpacing, (chartAreasRectangle.Width/100F) * elementSpacing);
2198
float areaSpacing = Math.
Min
((titlePlottingRectangle.Height/100F) * elementSpacing, (titlePlottingRectangle.Width/100F) * elementSpacing);
WinForm\Utilities\Printing.cs (2)
266
chartPosition.Width = (int)(chartPosition.Width * Math.
Min
(chartWidthScale, chartHeightScale));
267
chartPosition.Height = (int)(chartPosition.Height * Math.
Min
(chartWidthScale, chartHeightScale));
System.Workflow.ComponentModel (7)
AuthoringOM\Design\CommandSet.cs (1)
289
int newZoom = (int)(100.0f / this.workflowView.ActiveLayout.Scaling * Math.
Min
((float)this.workflowView.ViewPortSize.Width / (float)this.workflowView.ActiveLayout.Extent.Width, (float)this.workflowView.ViewPortSize.Height / (float)this.workflowView.ActiveLayout.Extent.Height));
AuthoringOM\Design\DesignerWidgets.cs (1)
3565
stretchFactor = Math.
Min
(stretchFactor, ((float)previewSize.Height) / previewDesignerSize.Height);
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (1)
1219
Zoom = Convert.ToInt32((Math.
Min
(zoom.X, zoom.Y) * 100));
AuthoringOM\Design\MessageFilters\ZoomingMessageFilter.cs (1)
171
int zoom = (int)(Math.
Min
((float)parentView.ViewPortSize.Width / (float)dragRectangle.Width, (float)parentView.ViewPortSize.Height / (float)dragRectangle.Height) * 100.0f);
AuthoringOM\Design\WorkflowLayouts.cs (1)
749
this.scaling = Math.
Min
(scaleFactor.X, scaleFactor.Y);
AuthoringOM\Design\WorkflowPrinting.cs (1)
340
this.scaling = Math.
Min
(xScaling, YScaling);
AuthoringOM\Design\WorkflowView.cs (1)
945
int newZoom = (int)(100.0f / ActiveLayout.Scaling * Math.
Min
((float)ViewPortSize.Width / (float)ActiveLayout.Extent.Width, (float)ViewPortSize.Height / (float)ActiveLayout.Extent.Height));