System.Drawing.Common
Indicates that the specified method requires dynamic access to code that is not referenced
statically, for example through .
This allows tools to understand which methods are unsafe to call when removing unreferenced
code from an application.
Initializes a new instance of the class
with the specified message.
A message that contains information about the usage of unreferenced code.
Gets a message that contains information about the usage of unreferenced code.
Gets or sets an optional URL that contains more information about the method,
why it requires unreferenced code, and what options a consumer has to deal with it.
Suppresses reporting of a specific rule violation, allowing multiple suppressions on a
single code artifact.
is different than
in that it doesn't have a
. So it is always preserved in the compiled assembly.
Initializes a new instance of the
class, specifying the category of the tool and the identifier for an analysis rule.
The category for the attribute.
The identifier of the analysis rule the attribute applies to.
Gets the category identifying the classification of the attribute.
The property describes the tool or tool analysis category
for which a message suppression attribute applies.
Gets the identifier of the analysis tool rule to be suppressed.
Concatenated together, the and
properties form a unique check identifier.
Gets or sets the scope of the code that is relevant for the attribute.
The Scope property is an optional argument that specifies the metadata scope for which
the attribute is relevant.
Gets or sets a fully qualified path that represents the target of the attribute.
The property is an optional argument identifying the analysis target
of the attribute. An example value is "System.IO.Stream.ctor():System.Void".
Because it is fully qualified, it can be long, particularly for targets such as parameters.
The analysis tool user interface should be capable of automatically formatting the parameter.
Gets or sets an optional argument expanding on exclusion criteria.
The property is an optional argument that specifies additional
exclusion where the literal metadata target is not sufficiently precise. For example,
the cannot be applied within a method,
and it may be desirable to suppress a violation against a statement in the method that will
give a rule violation, but not against all statements in the method.
Gets or sets the justification for suppressing the code analysis message.
Specifies that null is allowed as an input even if the corresponding type disallows it.
Specifies that null is disallowed as an input even if the corresponding type allows it.
Specifies that an output may be null even if the corresponding type disallows it.
Specifies that an output will not be null even if the corresponding type allows it. Specifies that an input argument was not null when the call returns.
Specifies that when a method returns , the parameter may be null even if the corresponding type disallows it.
Initializes the attribute with the specified return value condition.
The return value condition. If the method returns this value, the associated parameter may be null.
Gets the return value condition.
Specifies that when a method returns , the parameter will not be null even if the corresponding type allows it.
Initializes the attribute with the specified return value condition.
The return value condition. If the method returns this value, the associated parameter will not be null.
Gets the return value condition.
Specifies that the output will be non-null if the named parameter is non-null.
Initializes the attribute with the associated parameter name.
The associated parameter name. The output will be non-null if the argument to the parameter specified is non-null.
Gets the associated parameter name.
Applied to a method that will never return under any circumstance.
Specifies that the method will not return if the associated Boolean parameter is passed the specified value.
Initializes the attribute with the specified parameter value.
The condition parameter value. Code after the method will be considered unreachable by diagnostics if the argument to
the associated parameter matches this value.
Gets the condition parameter value.
Specifies that the method or property will ensure that the listed field and property members have not-null values.
Initializes the attribute with a field or property member.
The field or property member that is promised to be not-null.
Initializes the attribute with the list of field and property members.
The list of field and property members that are promised to be not-null.
Gets field or property member names.
Specifies that the method or property will ensure that the listed field and property members have not-null values when returning with the specified return value condition.
Initializes the attribute with the specified return value condition and a field or property member.
The return value condition. If the method returns this value, the associated parameter will not be null.
The field or property member that is promised to be not-null.
Initializes the attribute with the specified return value condition and list of field and property members.
The return value condition. If the method returns this value, the associated parameter will not be null.
The list of field and property members that are promised to be not-null.
Gets the return value condition.
Gets field or property member names.
(printer name protected due to security restrictions)
Changes cannot be made to {0} because permissions are not valid.
Bitmaps that are icons cannot be made transparent. Icons natively support transparency. Use the Icon constructor to create an icon.
The color {0} is not a system color.
Function was ended.
File access is denied.
A Graphics object cannot be created from an image that has an indexed pixel format.
SetPixel is not supported for images with indexed pixel formats.
Destination points define a parallelogram which must have a length of 3. These points will represent the upper-left, upper-right, and lower-left coordinates (defined in that order).
Destination points must be an array with a length of 3 or 4. A length of 3 defines a parallelogram with the upper-left, upper-right, and lower-left corners. A length of 4 defines a quadrilateral with the fourth element of the array specifying the lower-rig ...
File not found.
Font '{0}' cannot be found.
Font '{0}' does not support style '{1}'.
A generic error occurred in GDI+.
Buffer is too small (internal GDI+ error).
Parameter is not valid.
Rectangle '{0}' cannot have a width or height equal to 0.
Operation requires a transformation of the image from GDI+ to GDI. GDI does not support images with a width or height greater than 32767.
Out of memory.
Not implemented.
GDI+ is not properly initialized (internal GDI+ error).
Only TrueType fonts are supported. '{0}' is not a TrueType font.
Only TrueType fonts are supported. This is not a TrueType font.
Object is currently in use elsewhere.
Overflow error.
Property cannot be found.
Property is not supported.
Unknown GDI+ error occurred.
Image format is unknown.
Current version of GDI+ does not support this feature.
Bitmap region is already locked.
(Global Assembly Cache)
BufferedGraphicsContext cannot be disposed of because a buffer operation is currently in progress.
Screen-compatible bitmap cannot be created. The screen bitmap format cannot be determined.
'{0}' data length expected {1}, read {2}
Internal state of the {0} class is invalid.
Property must be set to a valid ColorBlend object to use interpolation colors.
{0}{1} ColorBlend objects must be constructed with the same number of positions and color values. Positions must be between 0.0 and 1.0, 1.0 indicating the last element in the array.
ColorBlend object that was set is not valid.
Position's first element must be equal to 0.
Position's last element must be equal to 1.0.
Array of colors and positions must contain at least two elements.
Colors and positions do not have the same number of elements.
Value of '{1}' is not valid for '{0}'.
Value of '{0}' is not valid for font size unit.
Value of '{1}' is not valid for '{0}'. '{0}' should be greater than {2} and less than or equal to {3}.
Color '{0}' is not valid.
DashPattern value is not valid.
Value of '{1}' is not valid for '{0}'. '{0}' should be greater than or equal to {2} and less than or equal to {3}.
Win32 handle that was passed to {0} is not valid or is the wrong type.
Image type is unknown.
Value of '{1}' is not valid for '{0}'. '{0}' must be greater than or equal to {2}.
Permission state is not valid.
Argument '{0}' must be a picture that can be used as a {1}.
Settings to access printer '{0}' are not valid.
No printers are installed.
Handle {0} is not valid.
Parameter must be positive and < Width.
Parameter must be positive and < Height.
Native handle is 0.
Default printer is not set.
Not implemented.
Occurs when the document is about to be printed.
The name of the document shown to the user.
The page settings of the page currently being printed.
Occurs after the document has been printed.
Indicates that the graphics origin is located at the user-specified page margins.
Retrieves the print controller for this document.
Occurs once for each page to be printed.
Retrieves the settings for the printer the document is currently being printed to.
Occurs before each page is printed. Useful for changing PageSettings for a particular page.
System.Drawing.Common is not supported on non-Windows platforms. See https://aka.ms/systemdrawingnonwindows for more information.
Defines an object that sends output to a printer.
IDictionary parameter contains at least one entry that is not valid. Ensure all values are consistent with the object's properties.
PaperSize cannot be changed unless the Kind property is set to Custom.
Resource '{1}' cannot be found in class '{0}'.
Text "{0}" cannot be parsed. The expected text format is "{1}".
TriState.Default cannot be converted into a Boolean.
(Icon)
(none)
GetObjectType on this dc returned an invalid value.
The value of argument '{0}' ({1}) is invalid for Enum type '{2}'.
{0} is not a valid value for {1}.
Invalid Blend object. It should have at least 2 elements in each of the factors and positions arrays.
Invalid Blend object. The positions array must have 0.0 as its first element.
Invalid Blend object. The positions array must have 1.0 as its last element.
{0} only available on WMF files.
Cannot create Graphics from an indexed bitmap.
Could not open display (X-Server required. Check your DISPLAY environment variable)
Couldn't find specified file.
Icon instance was disposed.
Invalid GraphicsUnit
Invalid thumbnail size
No codec available for format:{0}
Operation not implemented under X11
(none)
No valid icon image found
Null or empty path.
Invalid parameter passed. Number of points and types must be same.
Object has been disposed.
The value of the {0} property is less than zero.
The value of the {0} property is not one of the {1} values
The directory {0} of the filename {1} does not exist.
System.Drawing.Common is not supported on this platform.
Attribute used to indicate a source generator should create a function for marshalling
arguments instead of relying on the runtime to generate an equivalent marshalling function at run-time.
This attribute is meaningless if the source generator associated with it is not enabled.
The current built-in source generator only supports C# and only supplies an implementation when
applied to static, partial, non-generic methods.
Initializes a new instance of the .
Name of the library containing the import.
Gets the name of the library containing the import.
Gets or sets the name of the entry point to be called.
Gets or sets how to marshal string arguments to the method.
If this field is set to a value other than ,
must not be specified.
Gets or sets the used to control how string arguments to the method are marshalled.
If this field is specified, must not be specified
or must be set to .
Gets or sets whether the callee sets an error (SetLastError on Windows or errno
on other platforms) before returning from the attributed method.
Specifies how strings should be marshalled for generated p/invokes
Indicates the user is suppling a specific marshaller in .
Use the platform-provided UTF-8 marshaller.
Use the platform-provided UTF-16 marshaller.
Base type for all platform-specific API attributes.
Records the platform that the project targeted.
Records the operating system (and minimum version) that supports an API. Multiple attributes can be
applied to indicate support on multiple operating systems.
Callers can apply a
or use guards to prevent calls to APIs on unsupported operating systems.
A given platform should only be specified once.
Marks APIs that were removed in a given operating system version.
Primarily used by OS bindings to indicate APIs that are only available in
earlier versions.
Marks APIs that were obsoleted in a given operating system version.
Primarily used by OS bindings to indicate APIs that should not be used anymore.
Annotates a custom guard field, property or method with a supported platform name and optional version.
Multiple attributes can be applied to indicate guard for multiple supported platforms.
Callers can apply a to a field, property or method
and use that field, property or method in a conditional or assert statements in order to safely call platform specific APIs.
The type of the field or property should be boolean, the method return type should be boolean in order to be used as platform guard.
Annotates the custom guard field, property or method with an unsupported platform name and optional version.
Multiple attributes can be applied to indicate guard for multiple unsupported platforms.
Callers can apply a to a field, property or method
and use that field, property or method in a conditional or assert statements as a guard to safely call APIs unsupported on those platforms.
The type of the field or property should be boolean, the method return type should be boolean in order to be used as platform guard.