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