17 references to Format
System.Drawing.Common (17)
System\Drawing\Bitmap.cs (1)
81?? throw new ArgumentException(SR.Format(SR.ResourceNotFound, type, resource));
System\Drawing\BufferedGraphicsContext.cs (1)
54throw new ArgumentException(SR.Format(SR.InvalidArgumentValue, nameof(MaximumBuffer), value), nameof(value));
System\Drawing\Drawing2D\LinearGradientBrush.cs (2)
185throw new ArgumentException(SR.Format(SR.InvalidArgumentValue, "value.Positions", value.Positions), nameof(value)); 249throw new ArgumentException(SR.Format(SR.InvalidArgumentValue, "value.Positions", value.Positions), nameof(value));
System\Drawing\Drawing2D\PathGradientBrush.cs (2)
232throw new ArgumentException(SR.Format(SR.InvalidArgumentValue, "value.Positions", value.Positions), nameof(value)); 297throw new ArgumentException(SR.Format(SR.InvalidArgumentValue, "value.Positions", value.Positions), nameof(value));
System\Drawing\Font.cs (1)
352throw new ArgumentException(SR.Format(SR.GdiplusFontStyleNotFound, _fontFamily.Name, _fontStyle.ToString()));
System\Drawing\FontConverter.cs (1)
218throw new ArgumentException(SR.Format(SR.TextParseFailedFormat, font, $"name{separator} size[units[{separator} style=style1[{separator} style2{separator} ...]]]"), nameof(value));
System\Drawing\Icon.cs (5)
100?? throw new ArgumentException(SR.Format(SR.ResourceNotFound, type, resource)); 417throw new ArgumentException(SR.Format(SR.InvalidPictureType, "picture", nameof(Icon))); 451throw new ArgumentException(SR.Format(SR.InvalidPictureType, "picture", nameof(Icon))); 516throw new ArgumentException(SR.Format(SR.InvalidPictureType, "picture", nameof(Icon))); 536throw new ArgumentException(SR.Format(SR.InvalidPictureType, "picture", nameof(Icon)));
System\Drawing\Image.cs (1)
398throw new DirectoryNotFoundException(SR.Format(SR.TargetDirectoryDoesNotExist, directoryPart, filename));
System\Drawing\ImageFormatConverter.cs (1)
72throw new FormatException(SR.Format(SR.ConvertInvalidPrimitive, strFormat, nameof(ImageFormat)));
System\Drawing\Printing\MarginsConverter.cs (1)
52throw new ArgumentException(SR.Format(SR.TextParseFailedFormat, text, "left, right, top, bottom"));
System\Drawing\StringFormat.cs (1)
222throw new ArgumentException(SR.Format(SR.InvalidArgumentValue, nameof(firstTabOffset), firstTabOffset));