Table of Contents

Class WarningItem

Namespace
Root.ReportNet.Pdf.Tools
Assembly
ReportNet.dll

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 RepObject

The report object that caused the warning.

WarningNumber int

The number of the warning.

Message string

The 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

int

Properties

Message

The message that describes the warning.

public string Message { get; init; }

Property Value

string

RepObject

The report object that caused the warning.

public RepObject RepObject { get; init; }

Property Value

RepObject

WarningNumber

The number of the warning.

public int WarningNumber { get; init; }

Property Value

int