37 references to Format
System.Drawing.Common (37)
System\Drawing\Bitmap.cs (2)
191throw new ArgumentException(SR.Format(SR.GdiplusInvalidRectangle, rect.ToString())); 346throw new ArgumentException(SR.Format(SR.GdiplusInvalidRectangle, rect.ToString()));
System\Drawing\Drawing2D\LinearGradientBrush.cs (2)
35throw new ArgumentException(SR.Format(SR.GdiplusInvalidRectangle, rect.ToString())); 62throw new ArgumentException(SR.Format(SR.GdiplusInvalidRectangle, rect.ToString()));
System\Drawing\Font.cs (1)
606throw new ArgumentException(SR.Format(SR.GdiplusNotTrueTypeFont, logFont.AsString()));
System\Drawing\FontConverter.cs (1)
309_ => throw new ArgumentException(SR.Format(SR.InvalidArgumentValueFontConverter, units), nameof(units)),
System\Drawing\FontFamily.cs (2)
110throw new ArgumentException(SR.Format(SR.GdiplusFontFamilyNotFound, name.ToString())); 114throw new ArgumentException(SR.Format(SR.GdiplusNotTrueTypeFont, name.ToString()));
System\Drawing\Icon.cs (2)
48throw new ArgumentException(SR.Format(SR.InvalidGDIHandle, nameof(Icon))); 408throw new InvalidOperationException(SR.Format(SR.IllegalState, GetType().Name));
System\Drawing\Pen.cs (18)
116throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen))); 148throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen))); 163throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen))); 209throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen))); 251throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen))); 275throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen))); 300throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen))); 330throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen))); 359throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen))); 383throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen))); 412throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen))); 436throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen))); 570throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen))); 630throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen))); 668throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen))); 721throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen))); 774throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen))); 817throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen)));
System\Drawing\Printing\InvalidPrinterException.cs (2)
31return SR.Format(SR.InvalidPrinterException_InvalidPrinter, settings.PrinterName); 35return SR.Format(SR.InvalidPrinterException_InvalidPrinter, SR.CantTellPrinterName);
System\Drawing\Printing\PageSettings.cs (1)
476throw new ArgumentException(SR.Format(SR.InvalidPrinterHandle, hdevmode));
System\Drawing\Printing\PrinterSettings.cs (2)
987throw new ArgumentException(SR.Format(SR.InvalidPrinterHandle, hdevmode)); 1032throw new ArgumentException(SR.Format(SR.InvalidPrinterHandle, hdevnames));
System\Drawing\SolidBrush.cs (2)
54throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, "Brush")); 79throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, "Brush"));
System\Drawing\SystemBrushes.cs (1)
57throw new ArgumentException(SR.Format(SR.ColorNotSystemColor, c.ToString()));
System\Drawing\SystemPens.cs (1)
58throw new ArgumentException(SR.Format(SR.ColorNotSystemColor, c.ToString()));