37 references to Format
PresentationCore (37)
src\Microsoft.DotNet.Wpf\src\Common\Graphics\wgx_render.cs (6)
911return new System.ArgumentException(SR.Format(SR.Media_InvalidArgument, null), exceptionForHR); 923return new System.Windows.Media.InvalidWmpVersionException(SR.Format(SR.Media_InvalidWmpVersion, null), exceptionForHR); 926return new System.NotSupportedException(SR.Format(SR.Media_InsufficientVideoResources, null), exceptionForHR); 929return new System.NotSupportedException(SR.Format(SR.Media_HardwareVideoAccelerationNotAvailable, null), exceptionForHR); 932return new System.NotSupportedException(SR.Format(SR.Media_PlayerIsClosed, null), exceptionForHR); 935return new System.IO.FileNotFoundException(SR.Format(SR.Media_DownloadFailed, null), exceptionForHR);
System\IO\Packaging\PackWebResponse.cs (1)
901_responseException = new WebException(SR.Format(SR.WebRequestTimeout, null), WebExceptionStatus.Timeout);
System\Windows\Media\Color.cs (12)
80throw new ArgumentException(SR.Format(SR.Color_DimensionMismatch, null)); 85throw new ArgumentException(SR.Format(SR.Color_DimensionMismatch, null)); 390throw new InvalidOperationException(SR.Format(SR.Color_NullColorContext, null)); 500throw new ArgumentException(SR.Format(SR.Color_ColorContextTypeMismatch, null)); 534throw new ArgumentException(SR.Format(SR.Color_ColorContextTypeMismatch, null)); 619throw new ArgumentException(SR.Format(SR.Color_ColorContextTypeMismatch, null)); 841throw new InvalidOperationException(SR.Format(SR.Color_ColorContextNotsRGB_or_scRGB, null)); 865throw new InvalidOperationException(SR.Format(SR.Color_ColorContextNotsRGB_or_scRGB, null)); 889throw new InvalidOperationException(SR.Format(SR.Color_ColorContextNotsRGB_or_scRGB, null)); 943throw new InvalidOperationException(SR.Format(SR.Color_ColorContextNotsRGB_or_scRGB, null)); 968throw new InvalidOperationException(SR.Format(SR.Color_ColorContextNotsRGB_or_scRGB, null)); 993throw new InvalidOperationException(SR.Format(SR.Color_ColorContextNotsRGB_or_scRGB, null));
System\Windows\Media\Effects\BitmapEffect.cs (1)
122throw new InvalidOperationException(SR.Format(SR.Effect_No_ContextInputSource, null));
System\Windows\Media\GeneralTransform.cs (1)
60throw new InvalidOperationException(SR.Format(SR.GeneralTransform_TransformFailed, null));
System\Windows\Media\Imaging\BitmapEncoder.cs (2)
351throw new System.NotSupportedException(SR.Format(SR.Image_NoFrames, null)); 357throw new System.NotSupportedException(SR.Format(SR.Image_NoFrames, null));
System\Windows\Media\Imaging\BitmapInitialize.cs (6)
42throw new InvalidOperationException(SR.Format(SR.Image_OnlyOneInit, null)); 45throw new InvalidOperationException(SR.Format(SR.Image_InInitialize, null)); 53throw new InvalidOperationException(SR.Format(SR.Image_EndInitWithoutBeginInit, null)); 63throw new InvalidOperationException(SR.Format(SR.Image_SetPropertyOutsideBeginEndInit, null)); 86throw new InvalidOperationException(SR.Format(SR.Image_InitializationIncomplete, null)); 89throw new InvalidOperationException(SR.Format(SR.Image_NotInitialized, null));
System\Windows\Media\Imaging\BitmapPalette.cs (2)
54throw new InvalidOperationException(SR.Format(SR.Image_PaletteZeroColors, null)); 323throw new InvalidOperationException(SR.Format(SR.Image_PaletteZeroColors, null));
System\Windows\Media\Imaging\BitmapVisualManager.cs (1)
46throw new ArgumentException(SR.Format(SR.Image_CantBeFrozen, null));
System\Windows\Media\MediaPlayerState.cs (1)
848_mediaEventsHelper.RaiseMediaFailed(new System.NotSupportedException(SR.Format(SR.Media_PackURIsAreNotSupported, null)));
System\Windows\Media3D\GeneralTransform2DTo3D.cs (1)
110throw new InvalidOperationException(SR.Format(SR.GeneralTransform_TransformFailed, null));
System\Windows\Media3D\GeneralTransform3D.cs (1)
66throw new InvalidOperationException(SR.Format(SR.GeneralTransform_TransformFailed, null));
System\Windows\Media3D\GeneralTransform3DTo2D.cs (1)
73throw new InvalidOperationException(SR.Format(SR.GeneralTransform_TransformFailed, null));
System\Windows\Media3D\Matrix3D.cs (1)
666throw new InvalidOperationException(SR.Format(SR.Matrix3D_NotInvertible, null));