PdfSharp.System
Helper class for code migration to nullable reference types.
Throws an InvalidOperationException because an expression which must not be null is null.
The message.
Throws InvalidOperationException. Use this function during the transition from older C# code
to new code that uses nullable reference types.
The type this function must return to be compiled correctly.
An optional message used for the exception.
Nothing, always throws.
Throws InvalidOperationException. Use this function during the transition from older C# code
to new code that uses nullable reference types.
The type this function must return to be compiled correctly.
The type of the object that is null.
An optional message used for the exception.
Nothing, always throws.
Experimental throw helper.
URLs used in PDFsharp are maintained only here.
URL for missing assets error message.
"https://docs.pdfsharp.net/link/download-assets.html"
URL for missing font resolver.
"https://docs.pdfsharp.net/link/font-resolving.html"
Defines the logging categories of PDFsharp.
Default category for standard logger.
Provides a single global logger factory used for logging in PDFsharp.
Gets or sets the current global logger factory singleton for PDFsharp.
Every logger used in PDFsharp code is created by this factory.
You can change the logger factory at any one time you want.
If no factory is provided the NullLoggerFactory is used as the default.
Gets the global PDFsharp default logger.
Creates a logger with a given category name.
Creates a logger with the full name of the given type as category name.
Resets the logging host to the state it has immediately after loading the PDFsharp library.
This function is only useful in unit test scenarios and not intended to be called from application code.
Required to compile init-only setters in .NET Standard and .NET Framework 4.71.
Slices the specified array using the specified range.
Represent a type can be used to index a collection either from the start or the end.
Index is used by the C# compiler to support the new index syntax
int[] someArray = new int[5] { 1, 2, 3, 4, 5 } ;
int lastElement = someArray[^1]; // lastElement = 5
Construct an Index using a value and indicating if the index is from the start or from the end.
The index value. it has to be zero or positive number.
Indicating if the index is from the start or from the end.
If the Index constructed from the end, index value 1 means pointing at the last element and index value 0 means pointing at beyond last element.
Create an Index pointing at first element.
Create an Index pointing at beyond last element.
Create an Index from the start at the position indicated by the value.
The index value from the start.
Create an Index from the end at the position indicated by the value.
The index value from the end.
Returns the index value.
Indicates whether the index is from the start or the end.
Calculate the offset from the start using the giving collection length.
The length of the collection that the Index will be used with. length has to be a positive value
For performance reason, we don’t validate the input length parameter and the returned offset value against negative values.
we don’t validate either the returned offset is greater than the input length.
It is expected Index will be used with collections which always have non-negative length/count. If the returned offset is negative and
then used to index a collection will get out of range exception which will be same affect as the validation.
Indicates whether the current Index object is equal to another object of the same type.
An object to compare with this object
Indicates whether the current Index object is equal to another Index object.
An object to compare with this object
Returns the hash code for this instance.
Converts integer number to an Index.
Converts the value of the current Index object to its equivalent string representation.
Represent a range has start and end indexes.
Range is used by the C# compiler to support the range syntax.
int[] someArray = new int[5] { 1, 2, 3, 4, 5 };
int[] subArray1 = someArray[0..2]; // { 1, 2 }
int[] subArray2 = someArray[1..^0]; // { 2, 3, 4, 5 }
Represent the inclusive start index of the Range.
Represent the exclusive end index of the Range.
Construct a Range object using the start and end indexes.
Represent the inclusive start index of the range.
Represent the exclusive end index of the range.
Indicates whether the current Range object is equal to another object of the same type.
An object to compare with this object
Indicates whether the current Range object is equal to another Range object.
An object to compare with this object
Returns the hash code for this instance.
Converts the value of the current Range object to its equivalent string representation.
Create a Range object starting from start index to the end of the collection.
Create a Range object starting from first element in the collection to the end Index.
Create a Range object starting from first element to the end.
Calculate the start offset and length of range object using a collection length.
The length of the collection that the range will be used with. length has to be a positive value.
For performance reason, we don’t validate the input length parameter against negative values.
It is expected Range will be used with collections which always have non-negative length/count.
We validate the range is inside the length scope though.
String.Contains implementation for .NET Framework and .NET Standard as an extension method.