module Xlsxrb::Elements
High-level domain model layer. Provides immutable Data classes representing Excel concepts.
Constants
- CellError
- EMPTY_CELLS
- EMPTY_ERRORS
- EMPTY_HASH
- Formula
-
Represents an Excel formula with an optional cached value and calculation properties.
@example Create a formula
formula = Elements::Formula.new(expression: "SUM(A1:A10)")
@api public
- Hyperlink
-
Represents a worksheet hyperlink with an optional target URL, display text, tooltip (ScreenTip), and internal location.
@example Create a hyperlink
link = Elements::Hyperlink.new(url: "https://example.com", tooltip: "Visit website")
@api public rubocop:disable Lint/DataDefineOverride – :display represents the hyperlink display text attribute in OOXML
- RichText
-
Represents a rich text string with multiple formatting runs.
@example
rt = Elements::RichText.new(runs: [{ text: "Hello ", font: { bold: true } }, { text: "World" }])
@api public
- RichTextRun
-
Represents a formatted text run within a rich text string.
@example
run = Elements::RichTextRun.new(text: "Hello", font: { bold: true })
@api public
- VALID_ERROR_CODES
-
Represents a cell error value (e.g. #N/A, #REF!, #DIV/0!). @api public