177 references to SR
System.Drawing.Common (177)
SRDescriptionAttribute.cs (1)
20DescriptionValue = SR.GetResourceString(base.Description);
System\Drawing\Bitmap.cs (13)
81?? throw new ArgumentException(SR.Format(SR.ResourceNotFound, type, resource)); 169throw new ArgumentException(SR.GdiplusInvalidSize); 191throw new ArgumentException(SR.Format(SR.GdiplusInvalidRectangle, rect.ToString())); 233throw new InvalidOperationException(SR.CantMakeIconTransparent); 301throw new ArgumentOutOfRangeException(nameof(x), SR.ValidRangeX); 306throw new ArgumentOutOfRangeException(nameof(y), SR.ValidRangeY); 319throw new InvalidOperationException(SR.GdiplusCannotSetPixelFromIndexedPixelFormat); 324throw new ArgumentOutOfRangeException(nameof(x), SR.ValidRangeX); 329throw new ArgumentOutOfRangeException(nameof(y), SR.ValidRangeY); 346throw new ArgumentException(SR.Format(SR.GdiplusInvalidRectangle, rect.ToString()));
System\Drawing\BufferedGraphicsContext.cs (5)
54throw new ArgumentException(SR.Format(SR.InvalidArgumentValue, nameof(MaximumBuffer), value), nameof(value)); 211throw new OutOfMemoryException(SR.GraphicsBufferQueryFail); 375throw new ArgumentException(SR.DCTypeInvalid); 466throw new InvalidOperationException(SR.GraphicsBufferCurrentlyBusy);
System\Drawing\Drawing2D\HatchBrush.cs (2)
17throw new ArgumentException(SR.Format(SR.InvalidEnumArgument, nameof(hatchstyle), hatchstyle, nameof(HatchStyle)), nameof(hatchstyle));
System\Drawing\Drawing2D\LinearGradientBrush.cs (8)
35throw new ArgumentException(SR.Format(SR.GdiplusInvalidRectangle, rect.ToString())); 62throw new ArgumentException(SR.Format(SR.GdiplusInvalidRectangle, rect.ToString())); 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\Matrix.cs (1)
187throw new InvalidOperationException(SR.GdiplusObjectBusy);
System\Drawing\Drawing2D\PathGradientBrush.cs (4)
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 (10)
352throw new ArgumentException(SR.Format(SR.GdiplusFontStyleNotFound, _fontFamily.Name, _fontStyle.ToString())); 410throw new ArgumentException(SR.Format(SR.InvalidBoundArgument, nameof(emSize), emSize, 0, "System.Single.MaxValue"), nameof(emSize)); 517throw new ArgumentException(SR.Format(SR.InvalidBoundArgument, nameof(emSize), emSize, 0, "System.Single.MaxValue"), nameof(emSize)); 596throw new ArgumentException(SR.GdiplusNotTrueTypeFont_NoName); 606throw new ArgumentException(SR.Format(SR.GdiplusNotTrueTypeFont, logFont.AsString())); 662throw new ArgumentException(SR.GdiplusNotTrueTypeFont_NoName);
System\Drawing\FontConverter.cs (4)
218throw new ArgumentException(SR.Format(SR.TextParseFailedFormat, font, $"name{separator} size[units[{separator} style=style1[{separator} style2{separator} ...]]]"), nameof(value)); 309_ => throw new ArgumentException(SR.Format(SR.InvalidArgumentValueFontConverter, units), nameof(units)),
System\Drawing\FontFamily.cs (4)
110throw new ArgumentException(SR.Format(SR.GdiplusFontFamilyNotFound, name.ToString())); 114throw new ArgumentException(SR.Format(SR.GdiplusNotTrueTypeFont, name.ToString()));
System\Drawing\Graphics.cs (10)
133throw new ArgumentException(SR.GdiplusCannotCreateGraphicsFromIndexedPixelFormat, nameof(image)); 2062throw new ArgumentException(SR.GdiplusDestPointsInvalidLength); 2079throw new ArgumentException(SR.GdiplusDestPointsInvalidLength); 2135throw new ArgumentException(SR.GdiplusDestPointsInvalidLength); 2180throw new ArgumentException(SR.GdiplusDestPointsInvalidLength); 2233throw new ArgumentException(SR.GdiplusDestPointsInvalidLength); 3006throw new ArgumentException(SR.GdiplusDestPointsInvalidParallelogram); 3035throw new ArgumentException(SR.GdiplusDestPointsInvalidParallelogram); 3141throw new ArgumentException(SR.GdiplusDestPointsInvalidParallelogram); 3174throw new ArgumentException(SR.GdiplusDestPointsInvalidParallelogram);
System\Drawing\Icon.cs (17)
48throw new ArgumentException(SR.Format(SR.InvalidGDIHandle, nameof(Icon))); 100?? throw new ArgumentException(SR.Format(SR.ResourceNotFound, type, resource)); 155throw new ArgumentException(SR.NullOrEmptyPath, nameof(filePath)); 408throw new InvalidOperationException(SR.Format(SR.IllegalState, GetType().Name)); 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))); 785public override string ToString() => SR.toStringIcon; 899throw new IOException(SR.IconCouldNotBeExtracted, ex);
System\Drawing\IconConverter.cs (1)
34return SR.none;
System\Drawing\Image.cs (4)
398throw new DirectoryNotFoundException(SR.Format(SR.TargetDirectoryDoesNotExist, directoryPart, filename)); 809throw new ArgumentException(SR.NativeHandle0, nameof(handle)); 862_ => throw new ArgumentException(SR.InvalidImage),
System\Drawing\ImageConverter.cs (1)
47return SR.none;
System\Drawing\ImageFormatConverter.cs (2)
72throw new FormatException(SR.Format(SR.ConvertInvalidPrimitive, strFormat, nameof(ImageFormat)));
System\Drawing\Pen.cs (38)
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))); 554throw new ArgumentException(SR.GdiplusInvalidParameter); 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))); 779throw new ArgumentException(SR.InvalidDashPattern); 817throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, nameof(Pen)));
System\Drawing\Printing\InvalidPrinterException.cs (6)
25return SR.InvalidPrinterException_NoDefaultPrinter; 31return SR.Format(SR.InvalidPrinterException_InvalidPrinter, settings.PrinterName); 35return SR.Format(SR.InvalidPrinterException_InvalidPrinter, SR.CantTellPrinterName);
System\Drawing\Printing\Margins.cs (2)
172throw new ArgumentOutOfRangeException(name, margin, SR.Format(SR.InvalidLowBoundArgumentEx, name, margin, 0));
System\Drawing\Printing\MarginsConverter.cs (3)
52throw new ArgumentException(SR.Format(SR.TextParseFailedFormat, text, "left, right, top, bottom")); 114? throw new ArgumentException(SR.PropertyValueInvalidEntry)
System\Drawing\Printing\PageSettings.cs (2)
476throw new ArgumentException(SR.Format(SR.InvalidPrinterHandle, hdevmode));
System\Drawing\Printing\PaperSize.cs (3)
60throw new ArgumentException(SR.PSizeNotCustom, nameof(value)); 86throw new ArgumentException(SR.PSizeNotCustom, nameof(value)); 112throw new ArgumentException(SR.PSizeNotCustom, nameof(value));
System\Drawing\Printing\PrintDocument.cs (10)
11[DefaultProperty("DocumentName"), DefaultEvent("PrintPage"), SRDescription(nameof(SR.PrintDocumentDesc))] 39[SRDescription(nameof(SR.PDOCdocumentPageSettingsDescr))] 55[SRDescription(nameof(SR.PDOCdocumentNameDescr))] 68[SRDescription(nameof(SR.PDOCoriginAtMarginsDescr))] 80[SRDescription(nameof(SR.PDOCprintControllerDescr))] 92[SRDescription(nameof(SR.PDOCprinterSettingsDescr))] 112[SRDescription(nameof(SR.PDOCbeginPrintDescr))] 122[SRDescription(nameof(SR.PDOCendPrintDescr))] 132[SRDescription(nameof(SR.PDOCprintPageDescr))] 139[SRDescription(nameof(SR.PDOCqueryPageSettingsDescr))]
System\Drawing\Printing\PrinterSettings.cs (15)
59throw new ArgumentException(SR.Format(SR.InvalidLowBoundArgumentEx, nameof(value), value, 0)); 113throw new ArgumentException(SR.Format(SR.InvalidLowBoundArgumentEx, nameof(value), value, 0)); 218throw new ArgumentException(SR.Format(SR.InvalidLowBoundArgumentEx, nameof(value), value, 0)); 235throw new ArgumentException(SR.Format(SR.InvalidLowBoundArgumentEx, nameof(value), value, 0)); 423throw new ArgumentException(SR.Format(SR.InvalidLowBoundArgumentEx, nameof(value), value, 0)); 561return SR.NoDefaultPrinter; 987throw new ArgumentException(SR.Format(SR.InvalidPrinterHandle, hdevmode)); 1032throw new ArgumentException(SR.Format(SR.InvalidPrinterHandle, hdevnames));
System\Drawing\Printing\TriState.cs (1)
41value.IsDefault ? throw new InvalidCastException(SR.TriStateCompareError) : value == True;
System\Drawing\SolidBrush.cs (4)
54throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, "Brush")); 79throw new ArgumentException(SR.Format(SR.CantChangeImmutableObjects, "Brush"));
System\Drawing\StringFormat.cs (2)
222throw new ArgumentException(SR.Format(SR.InvalidArgumentValue, nameof(firstTabOffset), firstTabOffset));
System\Drawing\SystemBrushes.cs (2)
57throw new ArgumentException(SR.Format(SR.ColorNotSystemColor, c.ToString()));
System\Drawing\SystemPens.cs (2)
58throw new ArgumentException(SR.Format(SR.ColorNotSystemColor, c.ToString()));