76 references to Format
PresentationCore (76)
MS\Internal\FontFace\CompositeFontParser.cs (3)
902Fail(SR.Format( 914Fail(SR.Format( 925Fail(SR.Format(
MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (3)
824throw new ArgumentException(SR.Format(SR.InvalidValueType1, typeof(StylusTip), typeof(int)), "value"); 828throw new ArgumentException(SR.Format(SR.InvalidValueOfType, value, typeof(StylusTip)), "value"); 839throw new ArgumentException(SR.Format(SR.InvalidValueType1, typeof(String), typeof(Matrix)), "value");
MS\Internal\PartialArray.cs (2)
153SR.Format( 163SR.Format(
MS\Internal\TextFormatting\TextRunCacheImp.cs (3)
133throw new ArgumentException(SR.Format(SR.PropertyOfClassMustBeGreaterThanZero, "FontRenderingEmSize", "TextRunProperties")); 143throw new ArgumentException(SR.Format(SR.PropertyOfClassCannotBeNull, "CultureInfo", "TextRunProperties")); 146throw new ArgumentException(SR.Format(SR.PropertyOfClassCannotBeNull, "Typeface", "TextRunProperties"));
MS\Internal\TextFormatting\ThousandthOfEmRealDoubles.cs (2)
195SR.Format( 205SR.Format(
MS\Internal\TextFormatting\ThousandthOfEmRealPoints.cs (2)
138SR.Format( 148SR.Format(
System\Windows\CoreCompatibilityPreferences.cs (3)
70throw new InvalidOperationException(SR.Format(SR.CompatibilityPreferencesSealed, "IsAltKeyRequiredInAccessKeyDefaultScope", "CoreCompatibilityPreferences")); 110throw new InvalidOperationException(SR.Format(SR.CompatibilityPreferencesSealed, "IncludeAllInkInBoundingBox", "CoreCompatibilityPreferences")); 151throw new InvalidOperationException(SR.Format(SR.CompatibilityPreferencesSealed, "DisableMultimonDisplayClipping", "CoreCompatibilityPreferences"));
System\Windows\EventManager.cs (1)
77throw new ArgumentException(SR.Format(SR.DuplicateEventName, name, ownerType));
System\Windows\Generated\ContentElement.cs (4)
80throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), "dp"); 99throw new InvalidOperationException(SR.Format(SR.IAnimatable_CantAnimateSealedDO, dp, this.GetType())); 149throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), "dp"); 166throw new InvalidOperationException(SR.Format(SR.IAnimatable_CantAnimateSealedDO, dp, this.GetType()));
System\Windows\Generated\UIElement.cs (4)
80throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), "dp"); 99throw new InvalidOperationException(SR.Format(SR.IAnimatable_CantAnimateSealedDO, dp, this.GetType())); 149throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), "dp"); 166throw new InvalidOperationException(SR.Format(SR.IAnimatable_CantAnimateSealedDO, dp, this.GetType()));
System\Windows\Ink\Events.cs (2)
44throw new ArgumentException(SR.Format(SR.CannotBothBeNull, "added", "removed")); 110throw new ArgumentException(SR.Format(SR.CannotBothBeNull, "newValue", "previousValue"));
System\Windows\Input\Command\KeyGesture.cs (1)
104throw new NotSupportedException(SR.Format(SR.KeyGesture_Invalid, modifiers, key));
System\Windows\Media\Animation\AnimationStorage.cs (2)
347SR.Format( 1022SR.Format(
System\Windows\Media\Animation\Generated\Animatable.cs (4)
86throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), "dp"); 105throw new InvalidOperationException(SR.Format(SR.IAnimatable_CantAnimateSealedDO, dp, this.GetType())); 155throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), "dp"); 172throw new InvalidOperationException(SR.Format(SR.IAnimatable_CantAnimateSealedDO, dp, this.GetType()));
System\Windows\Media\Animation\KeySpline.cs (4)
69throw new ArgumentException(SR.Format( 77throw new ArgumentException(SR.Format( 179throw new ArgumentException(SR.Format( 211throw new ArgumentException(SR.Format(
System\Windows\Media\CharacterMetrics.cs (1)
177throw new ArgumentException(SR.Format(SR.CannotConvertStringToType, field.ToString(), "double"));
System\Windows\Media\CharacterMetricsDictionary.cs (8)
139throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array")); 157throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array")); 196throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array")); 199throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array")); 219throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(SC.DictionaryEntry), elementType)); 510throw new ArgumentException(SR.Format(SR.CannotConvertStringToType, s, "int"), "key"); 518throw new ArgumentException(SR.Format(SR.CannotConvertType, key.GetType(), "int"), "key"); 535throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(CharacterMetrics), value.GetType()));
System\Windows\Media\CultureSpecificStringDictionary.cs (7)
128throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array")); 131throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array")); 162throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array")); 165throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array")); 185throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(SC.DictionaryEntry), elementType)); 327throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(string)), "value"); 340throw new ArgumentException(SR.Format(SR.CannotConvertType, key.GetType(), typeof(XmlLanguage)), "key");
System\Windows\Media\FamilyMapCollection.cs (6)
90throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array")); 93throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array")); 108throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(FamilyTypeface), elementType)); 111throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array")); 114throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array")); 380throw new ArgumentException(SR.Format(SR.CannotConvertType, obj.GetType(), typeof(FontFamilyMap)));
System\Windows\Media\FamilyTypefaceCollection.cs (4)
373throw new ArgumentException(SR.Format(SR.CannotConvertType, obj.GetType(), typeof(FamilyTypeface))); 387throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(FamilyTypeface[]), elementType)); 390throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array")); 393throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array"));
System\Windows\Media\Fonts.cs (1)
116throw new ArgumentNullException("baseUri", SR.Format(SR.NullBaseUriParam, "baseUri", "location"));
System\Windows\Media\Imaging\BitmapImage.cs (1)
93throw new InvalidOperationException(SR.Format(SR.Image_NeitherArgument, "UriSource", "StreamSource"));
System\Windows\Media\ParsersCommon.cs (2)
208throw new System.FormatException(SR.Format(SR.Parser_UnexpectedToken, _pathString, _curIndex - 1)); 447throw new System.FormatException(SR.Format(SR.Parser_UnexpectedToken, _pathString, start), except);
System\Windows\Media3D\Generated\Visual3D.cs (4)
86throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), "dp"); 105throw new InvalidOperationException(SR.Format(SR.IAnimatable_CantAnimateSealedDO, dp, this.GetType())); 155throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), "dp"); 172throw new InvalidOperationException(SR.Format(SR.IAnimatable_CantAnimateSealedDO, dp, this.GetType()));
System\Windows\Media3D\Viewport3DVisual.cs (1)
515throw new NotSupportedException(SR.Format(SR.HitTest_Invalid, typeof(GeometryHitTestParameters).Name, this.GetType().Name));
System\Windows\UIElement.cs (1)
810SR.Format(