module Xlsxrb::Elements
High-level domain model layer. Provides immutable Data classes representing Excel concepts.
Immutable value objects that describe workbook content and metadata.
Constants
- Alignment
-
Alignmentstyle definition in stylesheet (<alignment>). @api public - AppProperties
-
Application document properties (docProps/app.xml). @api public
- BackgroundImage
-
Worksheetbackground image (<picture>). @api public - Border
-
Borderstyle definition in stylesheet (<border>). @api public - CellError
- CellStyle
-
Named cell style in stylesheet (<cellStyle> in <cellStyles>). @api public
- CellXf
-
Cellformat record in stylesheet (<xf> in <cellXfs> or <cellStyleXfs>). @api public - Chart
-
Drawing chart entry (<c:chart>). @api public
- Color
-
Colordefinition in stylesheet (<color>). @api public - Colors
-
Colorspalette configuration in stylesheet (<colors>). @api public - Comment
-
Cellcomment or note (<comment>).anchorplaces the comment box: the eight integers of the VML note’s <x:Anchor>, that is the left column, x offset, top row, y offset, right column, x offset, bottom row, and y offset (0-based columns and rows, offsets in pixels). Without it, the box is placed next to the cell. @api public - ConditionalFormat
-
Conditional format definition (<conditionalFormatting> and <cfRule>). @api public
- ConditionalFormatRule
-
Conditional formatting rule (<cfRule>). @api public
- CoreProperties
-
Core document properties (docProps/core.xml). @api public
- CustomProperty
-
User-defined custom document property (<property>). @api public
- DataValidation
-
Data validation rule (<dataValidation>). @api public
- DefinedName
-
Workbookdefined name (<definedName>). @api public - Dxf
-
Differential format in stylesheet (<dxf> in <dxfs>). @api public
- EMPTY_ARRAY
- EMPTY_CELLS
- EMPTY_ERRORS
- EMPTY_HASH
- Fill
-
Fillstyle definition in stylesheet (<fill>).gradientdescribes a <gradientFill> in place of a pattern: { type:, degree:, left:, right:, top:, bottom:, stops: [{ position:, color: { rgb: | theme:, tint: } }] }. @api public - FilterColumn
-
AutoFilter column configuration (<filterColumn>). @api public
- Font
-
Fontstyle definition in stylesheet (<font>). @api public rubocop:disable Lint/DataDefineOverride - 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)")
- FreezePane
-
Worksheetfreeze pane settings (<pane>). @api publictop_left_cellis the first visible cell of the bottom-right pane (the topLeftCell attribute). When nil, the writer uses the cell just past the frozen rows and columns. -
Worksheetheader and footer (<headerFooter>). @api public -
Header or footer embedded image. @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
- IgnoredError
-
Ignored error rule (<ignoredError>). @api public
- PageBreak
-
Explicit page row or column break (<brk>). @api public
- PageMargins
-
Worksheetpage margins (<pageMargins>). @api public - PageSetup
-
Worksheetpage setup properties (<pageSetup>). @api public - PhoneticProperties
-
Phonetic text properties (<phoneticPr>). @api public
- PivotTable
-
Pivot table entry (<pivotTableDefinition>). @api public
- PrintOptions
-
Worksheetprint options (<printOptions>). @api public - PrintTitles
-
Worksheetrepeating print titles. @api public - ProtectedRange
-
Protected range configuration (<protectedRange>). @api public
- Protection
-
Protectionstyle definition in stylesheet (<protection>). @api public - RichText
-
Represents a rich text string with multiple formatting runs.
@example
rt = Elements::RichText.new(runs: [{ text: "Hello ", font: { bold: true } }, { text: "World" }])
- RichTextRun
-
Represents a formatted text run within a rich text string.
@example
run = Elements::RichTextRun.new(text: "Hello", font: { bold: true })
- Selection
-
Worksheetselection / active cell (<selection>). @api public - Shape
-
Drawing shape entry (<xdr:sp>). @api public
- SheetCalcProperties
-
Worksheetcalculation properties (<sheetCalcPr>). @api public - SheetFormat
-
Worksheetformat properties (<sheetFormatPr>). @api public - SheetProperties
-
Worksheetproperties (<sheetPr>). @api public - SheetProtection
-
Worksheetprotection options (<sheetProtection>). @api public - SheetView
-
Worksheetview configuration (<sheetView>). @api public - SortState
-
Sort state configuration (<sortState>). @api public
- Sparkline
-
Single sparkline definition (<x14:sparkline>). @api public
- SparklineGroup
-
Sparklinegroup (<x14:sparklineGroup>). @api public - SplitPane
-
Worksheetsplit pane settings (<pane>). @api publictop_left_cellis the first visible cell of the bottom-right pane (the topLeftCell attribute). - Table
-
OpenXML
Table(<table id=… ref=…>). @api public - TableColumn
-
Columndefinition in an OpenXML table (<tableColumn>). @api public - TableStyleInfo
-
Tablestyle information (<tableStyleInfo>). @api public - TableStyles
-
Tablestyles configuration in stylesheet (<tableStyles>). @api public - ThreadedComment
-
Threaded comment (<threadedComment>). @api public
- VALID_ERROR_CODES
-
Represents a cell error value (e.g. #N/A, #REF!, #DIV/0!). @api public
- WorkbookProperties
-
Workbook-level properties (<workbookPr> and <workbookView>). @api public
- WorkbookProtection
-
Workbookprotection settings (<workbookProtection>). @api public