XLSXComposer.ExcelCoords (xlsx_composer v0.4.0)

View Source

Elixir.XLSXComposer.ExcelCoords represent excel coords where the x denotes the column (represented as integer, A = 1) and y denotes the row.

Both values start from 1 (to mimic the Excel notation and interchangeability)!

Summary

Types

area_t()

@type area_t() :: {t(), t()}

t()

@type t() :: %XLSXComposer.ExcelCoords{pretty: String.t(), x: x(), y: y()}

x()

@type x() :: pos_integer()

y()

@type y() :: pos_integer()

Functions

column(excel_coords)

@spec column(t()) :: pos_integer()

displace(excel_coords, section_cords)

@spec displace(t(), XLSXComposer.SectionCoords.t()) :: t()

new(arg)

@spec new({x(), y()}) :: t()

new(x \\ 1, y \\ 1)

@spec new(x(), y()) :: t()

to_pretty(excel_coords)

@spec to_pretty(t()) :: String.t()

to_pretty(x, y)

@spec to_pretty(integer(), integer()) :: String.t()