217 references to Format
PresentationCore (217)
MS\Internal\Automation\SynchronizedInputAdaptor.cs (1)
49throw new ArgumentException(SR.Format(SR.Automation_InvalidSynchronizedInputType, inputType));
MS\Internal\Automation\TextProviderWrapper.cs (1)
66throw new ArgumentException(SR.Format(SR.TextProvider_InvalidChild, "childElement"));
MS\Internal\Automation\TextRangeProviderWrapper.cs (3)
62throw new ArgumentException(SR.Format(SR.TextRangeProvider_InvalidRangeProvider, "range")); 72throw new ArgumentException(SR.Format(SR.TextRangeProvider_InvalidRangeProvider, "targetRange")); 135throw new ArgumentException(SR.Format(SR.TextRangeProvider_InvalidRangeProvider, "targetRange"));
MS\Internal\FontCache\FontCacheUtil.cs (9)
771throw new FileNotFoundException(SR.Format(SR.FileNotFoundExceptionWithFileName, fileName), fileName); 774throw new DirectoryNotFoundException(SR.Format(SR.DirectoryNotFoundExceptionWithFileName, fileName)); 777throw new UnauthorizedAccessException(SR.Format(SR.UnauthorizedAccessExceptionWithFileName, fileName)); 780throw new PathTooLongException(SR.Format(SR.PathTooLongExceptionWithFileName, fileName)); 783throw new IOException(SR.Format(SR.IOExceptionWithFileName, fileName), NativeMethods.MakeHRFromErrorCode(errorCode)); 799return new IOException(SR.Format(SR.IOExceptionWithFileName, fileName), e); 865throw new IOException(SR.Format(SR.IOExceptionWithFileName, fileName)); 881throw new IOException(SR.Format(SR.IOExceptionWithFileName, fileName)); 885throw new IOException(SR.Format(SR.IOExceptionWithFileName, fileName));
MS\Internal\FontFace\CompositeFontParser.cs (9)
38throw new ArgumentException(SR.Format(SR.PropertyValueCannotBeNaN, propertyName)); 54throw new ArgumentException(SR.Format(SR.PropertyValueCannotBeNaN, propertyName)); 62throw new ArgumentException(SR.Format(SR.PropertyMustBeGreaterThanZero, propertyName)); 70throw new ArgumentException(SR.Format(SR.PropertyValueCannotBeNaN, propertyName)); 78throw new ArgumentException(SR.Format(SR.PropertyCannotBeNegative, propertyName)); 873Fail(SR.Format(SR.CompositeFontMissingElement, FamilyMapElement)); 876Fail(SR.Format(SR.CompositeFontMissingElement, StringElement)); 892Fail(SR.Format( 937Fail(SR.Format(SR.CompositeFontMissingAttribute, name));
MS\Internal\IListConverters.cs (1)
65throw new ArgumentException(SR.Format(SR.General_BadType, "ConvertFrom"), "value");
MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (7)
797throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(System.Windows.Media.Color)), "value"); 805throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(int)), "value"); 813throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(DrawingFlags)), "value"); 862throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(bool)), "value"); 869throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(double)), "value"); 893throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(byte)), "value"); 906throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(byte[])), "value");
MS\Internal\IO\Packaging\ByteRangeDownloader.cs (4)
704throw new ArgumentException(SR.Format(SR.InvalidByteRanges, "byteRanges")); 711throw new ArgumentException(SR.Format(SR.InvalidByteRanges, "byteRanges")); 729throw new ArgumentException(SR.Format(SR.InvalidByteRanges, "byteRanges")); 736throw new ArgumentException(SR.Format(SR.InvalidByteRanges, "byteRanges"));
MS\Internal\Media\VisualTreeUtils.cs (1)
260throw new System.InvalidOperationException(SR.Format(SR.Visual_NotAVisual, element.GetType()));
MS\Internal\TextFormatting\FullTextBreakpoint.cs (2)
120TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.CreateBreaksFailure, lserr), lserr); 262TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.RelievePenaltyResourceFailure, lserr), lserr);
MS\Internal\TextFormatting\FullTextLine.cs (5)
322TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.CreateLineFailure, lserr), lserr); 641TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.CreateLineFailure, lserr), lserr); 2172TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.EnumLineFailure, lserr), lserr); 2477TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.QueryLineFailure, lserr), lserr); 2534TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.QueryLineFailure, lserr), lserr);
MS\Internal\TextFormatting\TextMetrics.cs (1)
311TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.AcquireBreakRecordFailure, lserr), lserr);
MS\Internal\TextFormatting\TextPenaltyModule.cs (2)
50TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.AcquirePenaltyModuleFailure, lserr), lserr); 104TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.GetPenaltyModuleHandleFailure, lserr), lserr);
MS\Internal\WpfWebRequestHelper.cs (2)
212throw new IOException(SR.Format(SR.GetResponseFailed, requestUri.ToString())); 229throw new IOException(SR.Format(SR.GetResponseFailed, requestUri.ToString()));
System\IO\Packaging\PackWebRequestFactory.cs (1)
64throw new ArgumentException(SR.Format(SR.UriSchemeMismatch, PackUriHelper.UriSchemePack), "uri");
System\Windows\clipboard.cs (2)
292throw new ArgumentException(SR.Format(SR.DataObject_FileDropListIsEmpty, fileDropList)); 303throw new ArgumentException(SR.Format(SR.DataObject_FileDropListHasInvalidFileDropPath, fileDropList));
System\Windows\dataobject.cs (3)
489throw new ArgumentException(SR.Format(SR.DataObject_FileDropListIsEmpty, fileDropList)); 500throw new ArgumentException(SR.Format(SR.DataObject_FileDropListHasInvalidFileDropPath, e)); 608throw new ExternalException(SR.Format(SR.DataObject_NotImplementedEnumFormatEtc, dwDirection), NativeMethods.E_NOTIMPL);
System\Windows\DataObjectPastingEventArgs.cs (2)
70throw new ArgumentException(SR.Format(SR.DataObject_DataFormatNotPresentOnDataObject, formatToApply)); 167throw new ArgumentException(SR.Format(SR.DataObject_DataFormatNotPresentOnDataObject, value));
System\Windows\Diagnostics\VisualDiagnostics.cs (3)
219throw new InvalidOperationException(SR.Format(SR.ReentrantVisualTreeChangeError, nameof(VisualTreeChanged))); 260throw new InvalidOperationException(SR.Format(SR.MethodCallNotAllowed, nameof(VisualDiagnostics.EnableVisualTreeChanged))); 294System.Diagnostics.Debug.WriteLine(SR.Format(SR.ReentrantVisualTreeChangeWarning, nameof(VisualTreeChanged)));
System\Windows\DragEventArgs.cs (1)
161throw new ArgumentException(SR.Format(SR.DragDrop_DragDropEffectsInvalid, "value"));
System\Windows\Duration.cs (1)
406throw new InvalidOperationException(SR.Format(SR.Timing_NotTimeSpan, this));
System\Windows\FontStretchConverter.cs (1)
81throw new ArgumentException(SR.Format(SR.General_BadType, "ConvertFrom"), "value");
System\Windows\FontStyleConverter.cs (1)
81throw new ArgumentException(SR.Format(SR.General_BadType, "ConvertFrom"), "value");
System\Windows\FontWeightConverter.cs (1)
81throw new ArgumentException(SR.Format(SR.General_BadType, "ConvertFrom"), "value");
System\Windows\FreezableCollection.cs (2)
524throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e); 854throw new InvalidOperationException(SR.Format(SR.Freezable_CloneInvalidType, typeof(T).Name));
System\Windows\Generated\TextDecorationCollection.cs (1)
425throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Ink\DrawingAttributes.cs (1)
720throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(Matrix)), "propertyData");
System\Windows\Input\AccessKeyManager.cs (1)
138throw new ArgumentException(SR.Format(SR.AccessKeyManager_NotAUnicodeCharacter, "key"));
System\Windows\Input\Command\KeyBinding.cs (1)
97throw new ArgumentException(SR.Format(SR.InputBinding_ExpectedInputGesture, typeof(KeyGesture)));
System\Windows\Input\Command\MouseActionConverter.cs (1)
97throw new NotSupportedException(SR.Format(SR.Unsupported_MouseAction, mouseActionToken));
System\Windows\Input\Command\MouseBinding.cs (1)
114throw new ArgumentException(SR.Format(SR.InputBinding_ExpectedInputGesture, typeof(MouseGesture)));
System\Windows\Input\Command\RoutedCommand.cs (2)
134throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, target.GetType())); 170throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, target.GetType()));
System\Windows\Input\Cursor.cs (4)
41throw new ArgumentException(SR.Format(SR.InvalidCursorType, cursorType)); 72throw new ArgumentException(SR.Format(SR.Cursor_UnsupportedFormat , cursorFile)); 201throw new Win32Exception(errorCode, SR.Format(SR.Cursor_LoadImageFailure, fileName)); 210throw new ArgumentException(SR.Format(SR.Cursor_LoadImageFailure, fileName));
System\Windows\Input\FocusChangedEventArgs.cs (2)
35throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, oldFocus.GetType())); 38throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, newFocus.GetType()));
System\Windows\Input\InputMethod.cs (2)
826throw new ArgumentException(SR.Format(SR.InputMethod_InvalidConversionMode, value)); 1077throw new ArgumentException(SR.Format(SR.InputMethod_InvalidSentenceMode, value));
System\Windows\Input\InputScope.cs (1)
182throw new ArgumentException(SR.Format(SR.InputScope_InvalidInputScopeName, "value"));
System\Windows\Input\KeyboardDevice.cs (3)
147throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, element.GetType())); 442throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, o.GetType())); 468throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, o.GetType()));
System\Windows\Input\MouseDevice.cs (2)
334throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, eltDO.GetType())); 584throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, relativeTo.GetType()));
System\Windows\Input\Stylus\Common\RawStylusInputReport.cs (2)
192throw new InvalidEnumArgumentException(SR.Format(SR.Enum_Invalid, nameof(actions))); 248throw new InvalidEnumArgumentException(SR.Format(SR.Enum_Invalid, nameof(actions)));
System\Windows\Input\Stylus\Common\RawStylusSystemGestureInputReport.cs (1)
162throw new InvalidEnumArgumentException(SR.Format(SR.Enum_Invalid, nameof(systemGesture)));
System\Windows\Input\Stylus\Common\StylusSystemGestureEventArgs.cs (2)
41throw new InvalidEnumArgumentException(SR.Format(SR.Enum_Invalid, "systemGesture")); 83throw new InvalidEnumArgumentException(SR.Format(SR.Enum_Invalid, "systemGesture"));
System\Windows\Input\Stylus\Common\TabletDeviceCollection.cs (1)
77throw new ArgumentException(SR.Format(SR.Stylus_IndexOutOfRange, index.ToString(System.Globalization.CultureInfo.InvariantCulture)), "index");
System\Windows\Input\Stylus\Pointer\PointerLogic.cs (5)
551throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, oldCapture.GetType())); 577throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, _stylusCapture.GetType())); 642throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, oldOver.GetType())); 671throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, _stylusOver.GetType())); 807throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, _stylusCapture.GetType()));
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (1)
577throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, doStylusCapture.GetType()));
System\Windows\Input\Stylus\Wisp\WispLogic.cs (5)
2084throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, oldCapture.GetType())); 2113throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, _stylusCapture.GetType())); 2172throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, oldOver.GetType())); 2201throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, _stylusOver.GetType())); 2441throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, _stylusCapture.GetType()));
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (2)
279throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, doStylusCapture.GetType())); 1194throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, relativeTo.GetType()));
System\Windows\Input\TextCompositionManager.cs (8)
320throw new ArgumentException(SR.Format(SR.TextCompositionManager_NoInputManager, "composition")); 325throw new ArgumentException(SR.Format(SR.TextCompositionManager_TextCompositionHasStarted, "composition")); 341throw new ArgumentException(SR.Format(SR.TextCompositionManager_NoInputManager, "composition")); 346throw new ArgumentException(SR.Format(SR.TextCompositionManager_TextCompositionNotStarted, "composition")); 351throw new ArgumentException(SR.Format(SR.TextCompositionManager_TextCompositionHasDone, "composition")); 366throw new ArgumentException(SR.Format(SR.TextCompositionManager_NoInputManager, "composition")); 371throw new ArgumentException(SR.Format(SR.TextCompositionManager_TextCompositionNotStarted, "composition")); 376throw new ArgumentException(SR.Format(SR.TextCompositionManager_TextCompositionHasDone, "composition"));
System\Windows\Input\TouchDevice.cs (1)
344throw new ArgumentException(SR.Format(SR.Invalid_IInputElement, element.GetType()), "element");
System\Windows\LayoutManager.cs (2)
149throw new InvalidOperationException(SR.Format(SR.LayoutManager_DeepRecursion, s_LayoutRecursionLimit)); 166throw new InvalidOperationException(SR.Format(SR.LayoutManager_DeepRecursion, s_LayoutRecursionLimit));
System\Windows\Markup\XamlSerializerUtil.cs (1)
58throw new ArgumentException(SR.Format(SR.NonWhiteSpaceInAddText, s));
System\Windows\Markup\XmlLanguage.cs (4)
205throw new InvalidOperationException(SR.Format(SR.XmlLangGetCultureFailure, lowerCaseTag), e); 241throw new InvalidOperationException(SR.Format(SR.XmlLangGetSpecificCulture, _lowerCaseTag)); 258throw new InvalidOperationException(SR.Format(SR.XmlLangGetSpecificCulture, _lowerCaseTag), e); 801throw new ArgumentException(SR.Format(SR.XmlLangMalformed, ietfLanguageTag), "ietfLanguageTag");
System\Windows\Media\Animation\Clock.cs (1)
597SR.Format(
System\Windows\Media\Animation\ClockController.cs (2)
170throw new InvalidEnumArgumentException(SR.Format(SR.Enum_Invalid, "TimeSeekOrigin")); 212throw new InvalidEnumArgumentException(SR.Format(SR.Enum_Invalid, "TimeSeekOrigin"));
System\Windows\Media\Animation\Generated\TimelineCollection.cs (1)
435throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media\Animation\KeyTime.cs (2)
40throw new ArgumentOutOfRangeException("percent", SR.Format(SR.Animation_KeyTime_InvalidPercentValue, percent)); 59throw new ArgumentOutOfRangeException("timeSpan", SR.Format(SR.Animation_KeyTime_LessThanZero, timeSpan));
System\Windows\Media\Animation\RepeatBehavior.cs (4)
53throw new ArgumentOutOfRangeException("count", SR.Format(SR.Timing_RepeatBehaviorInvalidIterationCount, count)); 70throw new ArgumentOutOfRangeException("duration", SR.Format(SR.Timing_RepeatBehaviorInvalidRepeatDuration, duration)); 135throw new InvalidOperationException(SR.Format(SR.Timing_RepeatBehaviorNotIterationCount, this)); 154throw new InvalidOperationException(SR.Format(SR.Timing_RepeatBehaviorNotRepeatDuration, this));
System\Windows\Media\Animation\TimeManager.cs (1)
272throw new InvalidEnumArgumentException(SR.Format(SR.Enum_Invalid, "TimeSeekOrigin"));
System\Windows\Media\CharacterMetricsDictionary.cs (3)
373throw new ArgumentOutOfRangeException(SR.Format(SR.CodePointOutOfRange, key)); 381throw new ArgumentException(SR.Format(SR.CollectionDuplicateKey, key)); 522throw new ArgumentException(SR.Format(SR.CodePointOutOfRange, value), "key");
System\Windows\Media\ColorContext.cs (1)
552throw new FileNotFoundException(SR.Format(SR.FileNotFoundExceptionWithFileName, profileUri.AbsolutePath), profileUri.AbsolutePath);
System\Windows\Media\ColorConverter.cs (1)
91throw new ArgumentException(SR.Format(SR.General_BadType, "ConvertFrom"), "value");
System\Windows\Media\Effects\Generated\BitmapEffectCollection.cs (1)
431throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media\Effects\ShaderEffect.cs (1)
361throw new InvalidOperationException(SR.Format(SR.Effect_ShaderConstantType, dp.PropertyType.Name));
System\Windows\Media\EllipseGeometry.cs (1)
48throw new System.ArgumentException(SR.Format(SR.Rect_Empty, "rect"));
System\Windows\Media\FontFamilyConverter.cs (1)
142throw new ArgumentException(SR.Format(SR.General_Expected_Type, "FontFamily"), "value");
System\Windows\Media\FormattedText.cs (2)
1347throw new ArgumentOutOfRangeException("value", SR.Format(SR.PropertyMustBeGreaterThanZero, "MaxTextHeight")); 1350throw new ArgumentOutOfRangeException("value", SR.Format(SR.PropertyValueCannotBeNaN, "MaxTextHeight"));
System\Windows\Media\Generated\BrushConverter.cs (1)
83throw new ArgumentException(SR.Format(SR.General_Expected_Type, "Brush"), "context");
System\Windows\Media\Generated\CacheModeConverter.cs (1)
83throw new ArgumentException(SR.Format(SR.General_Expected_Type, "CacheMode"), "context");
System\Windows\Media\Generated\DoubleCollection.cs (1)
397throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media\Generated\DrawingCollection.cs (1)
447throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media\Generated\GeneralTransformCollection.cs (1)
433throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media\Generated\GeometryCollection.cs (1)
447throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media\Generated\GeometryConverter.cs (1)
83throw new ArgumentException(SR.Format(SR.General_Expected_Type, "Geometry"), "context");
System\Windows\Media\Generated\GradientStopCollection.cs (1)
433throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media\Generated\Int32Collection.cs (1)
397throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media\Generated\PathFigureCollection.cs (1)
434throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media\Generated\PathFigureCollectionConverter.cs (1)
83throw new ArgumentException(SR.Format(SR.General_Expected_Type, "PathFigureCollection"), "context");
System\Windows\Media\Generated\PathSegmentCollection.cs (1)
433throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media\Generated\PointCollection.cs (1)
397throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media\Generated\TextEffectCollection.cs (1)
433throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media\Generated\TransformCollection.cs (1)
447throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media\Generated\TransformConverter.cs (1)
83throw new ArgumentException(SR.Format(SR.General_Expected_Type, "Transform"), "context");
System\Windows\Media\Generated\VectorCollection.cs (1)
397throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media\GlyphRun.cs (6)
427throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsShouldBeEqualTo, characters.Count), "clusterMap"); 433throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsShouldBeEqualTo, GlyphCount), "clusterMap"); 440throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsShouldBeEqualTo, CodepointCount + 1), "caretStops"); 466throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsMustBeLessOrEqualTo, MaxGlyphCount), "glyphIndices"); 472throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsShouldBeEqualTo, glyphIndices.Count), "advanceWidths"); 475throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsShouldBeEqualTo, glyphIndices.Count), "glyphOffsets");
System\Windows\Media\GlyphTypeface.cs (2)
241throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsMustBeLessOrEqualTo, ushort.MaxValue), "glyphs"); 1071throw new ArgumentOutOfRangeException("glyphIndex", SR.Format(SR.GlyphIndexOutOfRange, glyphIndex));
System\Windows\Media\ImageSourceConverter.cs (1)
71throw new ArgumentException(SR.Format(SR.General_Expected_Type, "ImageSource"), "context");
System\Windows\Media\Imaging\BitmapEncoder.cs (1)
95SR.Format(SR.Image_GuidEmpty, "containerFormat"),
System\Windows\Media\Imaging\BitmapPalette.cs (1)
132throw new System.ArgumentException(SR.Format(SR.Image_PaletteFixedType, paletteType));
System\Windows\Media\Imaging\CachedBitmap.cs (1)
417SR.Format(SR.Effect_PixelFormat, pixelFormat),
System\Windows\Media\Imaging\ColorConvertedBitmap.cs (2)
158throw new InvalidOperationException(SR.Format(SR.Image_NoArgument, "Source")); 176throw new InvalidOperationException(SR.Format(SR.Image_NoArgument, "DestinationColorContext"));
System\Windows\Media\Imaging\CroppedBitmap.cs (1)
177throw new InvalidOperationException(SR.Format(SR.Image_NoArgument, "Source"));
System\Windows\Media\Imaging\FormatConvertedBitmap.cs (1)
192throw new InvalidOperationException(SR.Format(SR.Image_NoArgument, "Source"));
System\Windows\Media\Imaging\RenderTargetBitmap.cs (1)
59SR.Format(SR.Effect_PixelFormat, pixelFormat),
System\Windows\Media\Imaging\TransformedBitmap.cs (3)
56throw new InvalidOperationException(SR.Format(SR.Image_NoArgument, "Transform")); 297throw new InvalidOperationException(SR.Format(SR.Image_NoArgument, "Source")); 307throw new InvalidOperationException(SR.Format(SR.Image_NoArgument, "Transform"));
System\Windows\Media\PixelFormat.cs (2)
336throw new System.ArgumentException (SR.Format(SR.Image_BadPixelFormat, pixelFormatString), 430throw new System.ArgumentException (SR.Format(SR.Image_BadPixelFormat, format), "format");
System\Windows\Media\PixelFormatConverter.cs (1)
109throw new ArgumentException(SR.Format(SR.General_Expected_Type,"PixelFormat"));
System\Windows\Media\RequestCachePolicyConverter.cs (1)
85throw new ArgumentException(SR.Format(SR.General_BadType, "ConvertFrom"), "value");
System\Windows\Media\textformatting\TextFormatterContext.cs (4)
148ThrowExceptionFromLsError(SR.Format(SR.CreateContextFailure, lserr), lserr); 288ThrowExceptionFromLsError(SR.Format(SR.SetBreakingFailure, lserr), lserr); 390ThrowExceptionFromLsError(SR.Format(SR.SetDocFailure, lserr), lserr); 410ThrowExceptionFromLsError(SR.Format(SR.SetTabsFailure, lserr), lserr);
System\Windows\Media\textformatting\TextLineBreak.cs (1)
95TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.CloneBreakRecordFailure, lserr), lserr);
System\Windows\Media\textformatting\TextParagraphCache.cs (2)
94throw new InvalidOperationException(SR.Format(SR.CreateParaBreakingSessionFailure, lserr), callbackException); 99TextFormatterContext.ThrowExceptionFromLsError(SR.Format(SR.CreateParaBreakingSessionFailure, lserr), lserr);
System\Windows\Media\textformatting\TextSimpleMarkerProperties.cs (1)
65throw new ArgumentException(SR.Format(SR.Enum_Invalid, typeof(TextMarkerStyle)), "style");
System\Windows\Media\Visual.cs (1)
2756throw new InvalidOperationException(SR.Format(SR.LayoutManager_DeepRecursion, TreeLevelLimit));
System\Windows\Media3D\Generated\GeneralTransform3DCollection.cs (1)
429throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media3D\Generated\MaterialCollection.cs (1)
443throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media3D\Generated\Model3DCollection.cs (1)
443throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media3D\Generated\Point3DCollection.cs (1)
393throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media3D\Generated\Transform3DCollection.cs (1)
443throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media3D\Generated\Vector3DCollection.cs (1)
393throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e);
System\Windows\Media3D\ModelVisual3D.cs (1)
109throw new System.InvalidOperationException(SR.Format(SR.AddText_Invalid, this.GetType().Name));
System\Windows\Media3D\Visual3DCollection.cs (1)
188throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, "Visual3DCollection"), e);
System\Windows\Navigation\BaseUriHelper.cs (1)
395throw new InvalidOperationException(SR.Format(SR.CannotNavigateToApplicationResourcesInWebBrowser, packUri));
System\Windows\OleServicesContext.cs (1)
246throw new SystemException(SR.Format(SR.OleServicesContext_oleInitializeFailure, hr));
System\Windows\PresentationSource.cs (5)
131throw new ArgumentException(SR.Format(SR.Invalid_IInputElement, element.GetType()), nameof(element)); 175throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, o.GetType())); 197throw new ArgumentException(SR.Format(SR.Invalid_IInputElement, e.GetType()), nameof(e)); 256throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, o.GetType())); 733throw new InvalidOperationException(SR.Format(SR.Invalid_IInputElement, doTarget.GetType()));
System\Windows\QueryContinueDragEventArgs.cs (1)
94throw new ArgumentException(SR.Format(SR.DragDrop_DragActionInvalid, "value"));
System\Windows\TextDecorationCollectionConverter.cs (2)
83throw new ArgumentException(SR.Format(SR.General_BadType, "ConvertFrom"), "input"); 166throw new ArgumentException(SR.Format(SR.InvalidTextDecorationCollectionString, text));
System\Windows\UIElement.cs (4)
682throw new InvalidOperationException(SR.Format(SR.UIElement_Layout_PositiveInfinityReturned, this.GetType().FullName)); 686throw new InvalidOperationException(SR.Format(SR.UIElement_Layout_NaNReturned, this.GetType().FullName)); 1916throw new ArgumentException(SR.Format(SR.Invalid_IInputElement, d.GetType())); 1953throw new ArgumentException(SR.Format(SR.Invalid_IInputElement, d.GetType()));