Class WarningItem
Represents a warning item.
public record WarningItem : IEquatable<WarningItem>
- Inheritance
-
WarningItem
- Implements
- Inherited Members
Examples
Logs all warnings of a page.
foreach (WarningItem w in page.GetWarnings() ?? []) {
Console.WriteLine(w.Message);
}
Constructors
WarningItem(RepObject, int, string)
Represents a warning item.
public WarningItem(RepObject RepObject, int WarningNumber, string Message)
Parameters
RepObject
RepObjectThe report object that caused the warning.
WarningNumber
intThe number of the warning.
Message
stringThe message that describes the warning.
Examples
Logs all warnings of a page.
foreach (WarningItem w in page.GetWarnings() ?? []) {
Console.WriteLine(w.Message);
}
Fields
RepStringFontSizeReduced
The font size has been reduced to fit the given width.
public const int RepStringFontSizeReduced = 1000
Field Value
Properties
Message
The message that describes the warning.
public string Message { get; init; }
Property Value
RepObject
The report object that caused the warning.
public RepObject RepObject { get; init; }
Property Value
WarningNumber
The number of the warning.
public int WarningNumber { get; init; }