Table of Contents

Class SectionDocumentModel

Namespace
NuvTools.Report.Documents
Assembly
NuvTools.Report.dll

A document read top to bottom in sections — a record, a dossier, a report — each made of fields, paragraphs and images. The application fills it in; the layout (A4, header with the issuer, page numbers) is the package's.

public record SectionDocumentModel : IEquatable<SectionDocumentModel>
Inheritance
SectionDocumentModel
Implements
Inherited Members

Constructors

SectionDocumentModel(string, string, IReadOnlyList<SectionDocumentSection>, string, string?, byte[]?, DateTimeOffset?, string?, string?, SectionDocumentLabels?, string)

A document read top to bottom in sections — a record, a dossier, a report — each made of fields, paragraphs and images. The application fills it in; the layout (A4, header with the issuer, page numbers) is the package's.

public SectionDocumentModel(string Title, string IssuerName, IReadOnlyList<SectionDocumentSection> Sections, string CultureName = "en-US", string? Subtitle = null, byte[]? IssuerLogo = null, DateTimeOffset? IssuedAt = null, string? IssuedBy = null, string? FooterNote = null, SectionDocumentLabels? Labels = null, string AccentColor = "#1F2937")

Parameters

Title string

What the document is, printed at the top — Patient record.

IssuerName string

Who issues it, printed in the header and used when the logo cannot be drawn.

Sections IReadOnlyList<SectionDocumentSection>

The content, in order.

CultureName string

The culture dates are written in — pt-BR.

Subtitle string

Printed under the title — the subject of the document, a name — when given.

IssuerLogo byte[]

The issuer's logo, PNG, JPEG or SVG; the name is printed instead when it is missing or unreadable.

IssuedAt DateTimeOffset?

When it was generated, printed in the footer when given.

IssuedBy string

Who generated it, printed in the footer when given.

FooterNote string

A line printed on every page — a confidentiality notice, for instance.

Labels SectionDocumentLabels

The fixed words, translated; English when not given.

AccentColor string

The colour of the title and the section headings, as #RRGGBB.

Properties

AccentColor

The colour of the title and the section headings, as #RRGGBB.

public string AccentColor { get; init; }

Property Value

string

CultureName

The culture dates are written in — pt-BR.

public string CultureName { get; init; }

Property Value

string

FooterNote

A line printed on every page — a confidentiality notice, for instance.

public string? FooterNote { get; init; }

Property Value

string

IssuedAt

When it was generated, printed in the footer when given.

public DateTimeOffset? IssuedAt { get; init; }

Property Value

DateTimeOffset?

IssuedBy

Who generated it, printed in the footer when given.

public string? IssuedBy { get; init; }

Property Value

string

The issuer's logo, PNG, JPEG or SVG; the name is printed instead when it is missing or unreadable.

public byte[]? IssuerLogo { get; init; }

Property Value

byte[]

IssuerName

Who issues it, printed in the header and used when the logo cannot be drawn.

public string IssuerName { get; init; }

Property Value

string

Labels

The fixed words, translated; English when not given.

public SectionDocumentLabels? Labels { get; init; }

Property Value

SectionDocumentLabels

Sections

The content, in order.

public IReadOnlyList<SectionDocumentSection> Sections { get; init; }

Property Value

IReadOnlyList<SectionDocumentSection>

Subtitle

Printed under the title — the subject of the document, a name — when given.

public string? Subtitle { get; init; }

Property Value

string

Title

What the document is, printed at the top — Patient record.

public string Title { get; init; }

Property Value

string