162 references to IsInfinity
PresentationCore (20)
Core\CSharp\MS\Internal\AnimatedTypeHelpers.cs (1)
843
return Double.
IsInfinity
(value)
Core\CSharp\MS\Internal\Ink\StylusShape.cs (3)
51
if (Double.IsNaN(width) || Double.
IsInfinity
(width) || width < DrawingAttributes.MinWidth || width > DrawingAttributes.MaxWidth)
56
if (Double.IsNaN(height) || Double.
IsInfinity
(height) || height < DrawingAttributes.MinHeight || height > DrawingAttributes.MaxHeight)
61
if (Double.IsNaN(rotation) || Double.
IsInfinity
(rotation))
Core\CSharp\MS\Internal\TextFormatting\TextFormatterImp.cs (1)
488
if (double.
IsInfinity
(paragraphWidth))
Core\CSharp\System\Windows\Ink\Stroke.cs (6)
1160
if (Double.
IsInfinity
(matrix.M11) ||
1161
Double.
IsInfinity
(matrix.M12) ||
1162
Double.
IsInfinity
(matrix.M21) ||
1163
Double.
IsInfinity
(matrix.M22) ||
1164
Double.
IsInfinity
(matrix.OffsetX) ||
1165
Double.
IsInfinity
(matrix.OffsetY))
Core\CSharp\System\Windows\Input\InertiaExpansionBehavior.cs (1)
55
if (Double.
IsInfinity
(value) || Double.IsNaN(value))
Core\CSharp\System\Windows\Input\InertiaRotationBehavior.cs (2)
55
if (Double.
IsInfinity
(value) || Double.IsNaN(value))
75
if (Double.
IsInfinity
(value) || Double.IsNaN(value))
Core\CSharp\System\Windows\Input\InertiaTranslationBehavior.cs (2)
55
if (Double.
IsInfinity
(value) || Double.IsNaN(value))
75
if (Double.
IsInfinity
(value) || Double.IsNaN(value))
Core\CSharp\System\Windows\Media\Animation\RepeatBehavior.cs (1)
51
if ( Double.
IsInfinity
(count)
Core\CSharp\System\Windows\Media3D\MeshGeometry3D.cs (2)
419
Debug.Assert(!double.
IsInfinity
(pz / pw) && !double.IsNaN(pz / pw),
505
Debug.Assert(!double.
IsInfinity
(pz / pw) && !double.IsNaN(pz / pw),
Core\CSharp\System\Windows\UIElement.cs (1)
1106
Double.
IsInfinity
(newValue) ||
PresentationFramework (60)
src\Framework\MS\Internal\AnimatedTypeHelpers.cs (1)
165
return Double.
IsInfinity
(value)
src\Framework\MS\Internal\Annotations\Anchoring\AttachedAnnotation.cs (2)
206
if (!Double.
IsInfinity
(pt.X) && !Double.
IsInfinity
(pt.Y))
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (2)
1033
if (double.
IsInfinity
(anchor.X) || double.
IsInfinity
(anchor.Y))
src\Framework\MS\Internal\Documents\DocumentGrid.cs (2)
1064
if (double.
IsInfinity
(constraint.Width) || double.
IsInfinity
(constraint.Height))
src\Framework\MS\Internal\Helper.cs (1)
578
return !(Double.
IsInfinity
(value) || Double.IsNaN(value));
src\Framework\MS\Internal\PtsHost\FloaterParagraph.cs (1)
220
if (Double.
IsInfinity
(StructuralCache.CurrentFormatContext.PageHeight))
src\Framework\System\Windows\Automation\Peers\GridSplitterAutomationPeer.cs (2)
51
if (double.
IsInfinity
(x) || double.IsNaN(x))
54
if (double.
IsInfinity
(y) || double.IsNaN(y))
src\Framework\System\Windows\Controls\DataGridCellsPanel.cs (1)
2029
if (!DoubleUtil.IsNaN(rowPresenterAvailableSize.Width) && !Double.
IsInfinity
(rowPresenterAvailableSize.Width))
src\Framework\System\Windows\Controls\DataGridLength.cs (3)
80
if (DoubleUtil.IsNaN(value) || Double.
IsInfinity
(value))
98
if (Double.
IsInfinity
(desiredValue))
105
if (Double.
IsInfinity
(displayValue))
src\Framework\System\Windows\Controls\DataGridLengthConverter.cs (1)
100
if (!Double.
IsInfinity
(doubleValue))
src\Framework\System\Windows\Controls\DocumentViewer.cs (1)
2419
(double.
IsInfinity
(checkValue)))
src\Framework\System\Windows\Controls\FlowDocumentReader.cs (1)
1837
return (!Double.IsNaN(value) && !Double.
IsInfinity
(value) && DoubleUtil.GreaterThan(value, 0d));
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1728
return (!Double.IsNaN(value) && !Double.
IsInfinity
(value) && DoubleUtil.GreaterThan(value, 0d));
src\Framework\System\Windows\Controls\Grid.cs (2)
1651
Debug.Assert( !double.
IsInfinity
(totalRemainingSize)
1654
&& !double.
IsInfinity
(sizeToDistribute)
src\Framework\System\Windows\Controls\GridViewColumn.cs (1)
426
if (Double.IsNaN(value) || Double.
IsInfinity
(value) || value < 0.0)
src\Framework\System\Windows\Controls\InkCanvas.cs (2)
1916
Double.
IsInfinity
(point.X)||
1917
Double.
IsInfinity
(point.Y) )
src\Framework\System\Windows\Controls\Primitives\DocumentPageView.cs (5)
241
if (!Double.
IsInfinity
(availableSize.Width) || !Double.
IsInfinity
(availableSize.Height))
244
if (Double.
IsInfinity
(availableSize.Width))
250
else if (Double.
IsInfinity
(availableSize.Height))
600
Invariant.Assert(!DoubleUtil.LessThanOrClose(pageZoom, 0d) && !Double.
IsInfinity
(pageZoom));
src\Framework\System\Windows\Controls\Primitives\RangeBase.cs (1)
273
return !(DoubleUtil.IsNaN(d) || double.
IsInfinity
(d));
src\Framework\System\Windows\Controls\Primitives\ScrollContentPresenter.cs (2)
820
if (Double.
IsInfinity
(viewport.Width)) viewport.Width = extent.Width;
821
if (Double.
IsInfinity
(viewport.Height)) viewport.Height = extent.Height;
src\Framework\System\Windows\Controls\Primitives\TabPanel.cs (1)
141
if (double.
IsInfinity
(contentSize.Width) || DoubleUtil.IsNaN(contentSize.Width) || maxRowWidth < constraint.Width)
src\Framework\System\Windows\Controls\ScrollViewer.cs (1)
1625
!double.
IsInfinity
(doubleValue));
src\Framework\System\Windows\Controls\SinglePageViewer.cs (1)
1457
return (!Double.IsNaN(value) && !Double.
IsInfinity
(value) && DoubleUtil.GreaterThan(value, 0d));
src\Framework\System\Windows\Controls\Slider.cs (1)
1370
return !(DoubleUtil.IsNaN(d) || double.
IsInfinity
(d));
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (2)
2970
if (double.
IsInfinity
(viewport.Width))
2974
if (double.
IsInfinity
(viewport.Height))
src\Framework\System\windows\Documents\CaretElement.cs (2)
174
double.
IsInfinity
(availableSize.Width) ? double.MaxValue/2 : availableSize.Width,
175
double.
IsInfinity
(availableSize.Height) ? double.MaxValue/2 : availableSize.Height);
src\Framework\System\Windows\Documents\FixedTextView.cs (1)
916
if (Double.
IsInfinity
(suggestedX))
src\Framework\System\Windows\Documents\ZoomPercentageConverter.cs (1)
92
if ((double.IsNaN(percent)) || (double.
IsInfinity
(percent)))
src\Framework\System\Windows\FigureLength.cs (1)
110
if (double.
IsInfinity
(value))
src\Framework\System\Windows\FrameworkElement.cs (3)
4140
bool xConstrInfinite = Double.
IsInfinity
(xConstr);
4141
bool yConstrInfinite = Double.
IsInfinity
(yConstr);
4290
&& !Double.
IsInfinity
(expandFactor))
src\Framework\System\Windows\GridLength.cs (1)
100
if (double.
IsInfinity
(value))
src\Framework\System\Windows\Shapes\Ellipse.cs (4)
95
if (Double.
IsInfinity
(width) && Double.
IsInfinity
(height))
99
else if (Double.
IsInfinity
(width) || Double.
IsInfinity
(height))
src\Framework\System\Windows\Shapes\Rectangle.cs (4)
147
if (Double.
IsInfinity
(width) && Double.
IsInfinity
(height))
151
else if (Double.
IsInfinity
(width) || Double.
IsInfinity
(height))
src\Framework\System\Windows\Shapes\Shape.cs (3)
532
return !(Double.
IsInfinity
(d) || DoubleUtil.IsNaN(d) || d < 0.0);
537
return !(Double.
IsInfinity
(d) || DoubleUtil.IsNaN(d));
542
return !(Double.
IsInfinity
(d));
src\Framework\System\Windows\Standard\DoubleUtil.cs (1)
118
return !double.IsNaN(value) && !double.
IsInfinity
(value);
src\Framework\System\Windows\Standard\Utilities.cs (1)
333
if (double.IsNaN(d) || double.
IsInfinity
(d) || d < 0)
PresentationFramework.Aero (12)
Microsoft\Windows\Themes\ProgressBarHighlightConverter.cs (2)
58
if (width <= 0.0 || Double.
IsInfinity
(width) || Double.IsNaN(width) ||
59
height <= 0.0 || Double.
IsInfinity
(height) || Double.IsNaN(height) )
Microsoft\Windows\Themes\ScrollChrome.cs (4)
741
if (double.IsNaN(widthScale) || double.
IsInfinity
(widthScale) || double.IsNaN(heightScale) || double.
IsInfinity
(heightScale) ||
742
double.IsNaN(x) || double.
IsInfinity
(x) || double.IsNaN(y) || double.
IsInfinity
(y))
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
193
if (!Double.
IsInfinity
(childWidth))
198
if (!Double.
IsInfinity
(childHeight))
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (4)
79
double.
IsInfinity
(cr.TopLeft) || double.
IsInfinity
(cr.TopRight) || double.
IsInfinity
(cr.BottomLeft) || double.
IsInfinity
(cr.BottomRight));
PresentationFramework.Classic (8)
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
193
if (!Double.
IsInfinity
(childWidth))
198
if (!Double.
IsInfinity
(childHeight))
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (2)
72
if (width <= 0.0 || Double.
IsInfinity
(width) || Double.IsNaN(width) ||
73
height <= 0.0 || Double.
IsInfinity
(height) || Double.IsNaN(height) )
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (4)
79
double.
IsInfinity
(cr.TopLeft) || double.
IsInfinity
(cr.TopRight) || double.
IsInfinity
(cr.BottomLeft) || double.
IsInfinity
(cr.BottomRight));
PresentationFramework.Luna (12)
Microsoft\Windows\Themes\ScrollChrome.cs (4)
600
if (double.IsNaN(widthScale) || double.
IsInfinity
(widthScale) || double.IsNaN(heightScale) || double.
IsInfinity
(heightScale) ||
601
double.IsNaN(x) || double.
IsInfinity
(x) || double.IsNaN(y) || double.
IsInfinity
(y))
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
193
if (!Double.
IsInfinity
(childWidth))
198
if (!Double.
IsInfinity
(childHeight))
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (2)
72
if (width <= 0.0 || Double.
IsInfinity
(width) || Double.IsNaN(width) ||
73
height <= 0.0 || Double.
IsInfinity
(height) || Double.IsNaN(height) )
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (4)
79
double.
IsInfinity
(cr.TopLeft) || double.
IsInfinity
(cr.TopRight) || double.
IsInfinity
(cr.BottomLeft) || double.
IsInfinity
(cr.BottomRight));
PresentationFramework.Royale (12)
Microsoft\Windows\Themes\ScrollChrome.cs (4)
560
if (double.IsNaN(widthScale) || double.
IsInfinity
(widthScale) || double.IsNaN(heightScale) || double.
IsInfinity
(heightScale) ||
561
double.IsNaN(x) || double.
IsInfinity
(x) || double.IsNaN(y) || double.
IsInfinity
(y))
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
193
if (!Double.
IsInfinity
(childWidth))
198
if (!Double.
IsInfinity
(childHeight))
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (2)
72
if (width <= 0.0 || Double.
IsInfinity
(width) || Double.IsNaN(width) ||
73
height <= 0.0 || Double.
IsInfinity
(height) || Double.IsNaN(height) )
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (4)
79
double.
IsInfinity
(cr.TopLeft) || double.
IsInfinity
(cr.TopRight) || double.
IsInfinity
(cr.BottomLeft) || double.
IsInfinity
(cr.BottomRight));
System.Activities.Presentation (5)
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionSurface.cs (1)
182
Func<double, bool> IsInvalid = x => (double.
IsInfinity
(x) || double.IsNaN(x) || double.Epsilon > x);
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionWindow.cs (4)
465
if ((double.IsNaN(MinWidth) || double.
IsInfinity
(MinWidth) || bottomRight.X - absolutePosition.X >= MinWidth) &&
466
(double.IsNaN(MaxWidth) || double.
IsInfinity
(MaxWidth) || bottomRight.X - absolutePosition.X <= MaxWidth))
484
if ((double.IsNaN(MinHeight) || double.
IsInfinity
(MinHeight) || bottomRight.Y - absolutePosition.Y >= MinHeight) &&
485
(double.IsNaN(MaxHeight) || double.
IsInfinity
(MaxHeight) || bottomRight.Y - absolutePosition.Y <= MaxHeight))
System.Data (7)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ExtensionSurface.cs (1)
182
Func<double, bool> IsInvalid = x => (double.
IsInfinity
(x) || double.IsNaN(x) || double.Epsilon > x);
fx\src\data\System\Data\SqlClient\TdsParser.cs (1)
1715
if (Double.
IsInfinity
(v) || Double.IsNaN(v)) {
fx\src\data\System\Data\SQLTypes\SQLDouble.cs (5)
64
if (Double.
IsInfinity
(value) || Double.IsNaN(value))
148
if (Double.
IsInfinity
(value))
163
if (Double.
IsInfinity
(value))
178
if (Double.
IsInfinity
(value))
196
if (Double.
IsInfinity
(value))
System.Data.Services (3)
System\Data\Services\Parsing\WebConvert.cs (1)
179
if (!Double.
IsInfinity
(d) && !Double.IsNaN(d))
System\Data\Services\Serializers\JsonWriter.cs (2)
183
if (double.
IsInfinity
(value) || double.IsNaN(value))
221
if (double.
IsInfinity
(value) || double.IsNaN(value))
System.Data.SqlXml (1)
System\Xml\Xsl\XPathConvert.cs (1)
2541
Debug.Assert(Double.
IsInfinity
(dbl));
System.Numerics (3)
System\Numerics\BigInteger.cs (1)
488
if (Double.
IsInfinity
(value))
System\Numerics\Complex.cs (2)
152
if(Double.
IsInfinity
(value.m_real) || Double.
IsInfinity
(value.m_imaginary)) {
System.Runtime.Serialization (2)
System\Xml\ValueHandle.cs (1)
331
if ((value >= Single.MinValue && value <= Single.MaxValue) || double.
IsInfinity
(value) || double.IsNaN(value))
System\Xml\XmlConverter.cs (1)
1003
if (double.
IsInfinity
(value))
System.Web.DataVisualization (8)
Common\ChartTypes\LineChart.cs (8)
1806
double.
IsInfinity
(intersectionPoint.xPosition) ||
1808
double.
IsInfinity
(intersectionPoint.yPosition) )
1837
double.
IsInfinity
(intersectionPoint2.xPosition) ||
1839
double.
IsInfinity
(intersectionPoint2.yPosition) )
2133
double.
IsInfinity
(intersectionPoint.xPosition) ||
2135
double.
IsInfinity
(intersectionPoint.yPosition) )
2170
double.
IsInfinity
(intersectionPoint2.xPosition) ||
2172
double.
IsInfinity
(intersectionPoint2.yPosition) )
System.Windows.Forms.DataVisualization (8)
Common\ChartTypes\LineChart.cs (8)
1806
double.
IsInfinity
(intersectionPoint.xPosition) ||
1808
double.
IsInfinity
(intersectionPoint.yPosition) )
1837
double.
IsInfinity
(intersectionPoint2.xPosition) ||
1839
double.
IsInfinity
(intersectionPoint2.yPosition) )
2133
double.
IsInfinity
(intersectionPoint.xPosition) ||
2135
double.
IsInfinity
(intersectionPoint.yPosition) )
2170
double.
IsInfinity
(intersectionPoint2.xPosition) ||
2172
double.
IsInfinity
(intersectionPoint2.yPosition) )
System.Xml (1)
System\Xml\Schema\DataTypeImplementation.cs (1)
3438
if (double.
IsInfinity
(value) || double.IsNaN(value)) {