Skip to content

Novis\Spreadsheet\Style

A set of style fields for a cell, a row, a column or a header row. Make one with Style::of. A cell uses each field from its own style first, then from its row, then from its column.

Members

2 members.

MemberSignature
constructorconstructor(Record $fields, string $key): void
ofof(Fields $fields): Style

Enums

Types

Lines

type Lines = {    top?: string,    right?: string,    bottom?: string,    left?: string,};

Fields

type Fields = {    font?: string,    size?: float,    bold?: bool,    italic?: bool,    strike?: bool,    underline?: bool | string,    color?: string,    fill?: string,    border?: string | Lines,    borderColor?: string,    align?: string,    valign?: string,    wrap?: bool,    rotate?: int,    indent?: uint,    format?: string,    locked?: bool,    hideFormula?: bool,};

Record

type Record = {    font: ?string,    size: ?float,    bold: ?bool,    italic: ?bool,    strike: ?bool,    underline: ?Underline,    color: ?string,    fill: ?string,    border: ?{ top: ?Line, right: ?Line, bottom: ?Line, left: ?Line },    borderColor: ?string,    align: ?Align,    valign: ?Valign,    wrap: ?bool,    rotate: ?int,    indent: ?uint,    format: ?string,    locked: ?bool,    hideFormula: ?bool,};

Properties

  • $style->fieldsRecordthe style fields, with null for each field the style does not set
  • $style->keystringa text made from the fields. Two styles with equal fields have the same key.