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
TitlestringWhat the document is, printed at the top —
Patient record.IssuerNamestringWho issues it, printed in the header and used when the logo cannot be drawn.
SectionsIReadOnlyList<SectionDocumentSection>The content, in order.
CultureNamestringThe culture dates are written in —
pt-BR.SubtitlestringPrinted under the title — the subject of the document, a name — when given.
IssuerLogobyte[]The issuer's logo, PNG, JPEG or SVG; the name is printed instead when it is missing or unreadable.
IssuedAtDateTimeOffset?When it was generated, printed in the footer when given.
IssuedBystringWho generated it, printed in the footer when given.
FooterNotestringA line printed on every page — a confidentiality notice, for instance.
LabelsSectionDocumentLabelsThe fixed words, translated; English when not given.
AccentColorstringThe 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
CultureName
The culture dates are written in — pt-BR.
public string CultureName { get; init; }
Property Value
FooterNote
A line printed on every page — a confidentiality notice, for instance.
public string? FooterNote { get; init; }
Property Value
IssuedAt
When it was generated, printed in the footer when given.
public DateTimeOffset? IssuedAt { get; init; }
Property Value
IssuedBy
Who generated it, printed in the footer when given.
public string? IssuedBy { get; init; }
Property Value
IssuerLogo
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
Labels
The fixed words, translated; English when not given.
public SectionDocumentLabels? Labels { get; init; }
Property Value
Sections
The content, in order.
public IReadOnlyList<SectionDocumentSection> Sections { get; init; }
Property Value
Subtitle
Printed under the title — the subject of the document, a name — when given.
public string? Subtitle { get; init; }
Property Value
Title
What the document is, printed at the top — Patient record.
public string Title { get; init; }