Таблица DocumentAPI.LineProperties
Таблица DocumentAPI.LineProperties предназначена для установки таких параметров линии, как тип, ширина, цвет (см. Рисунок).

| Поле | Тип | Описание |
|---|---|---|
LineProperties.style | LineStyle | Тип линии |
LineProperties.width | number | Толщина линии |
LineProperties.color | Color | Цвет линии |
LineProperties.headLineEndingProperties | LineEndingProperties | Тип начала линии |
LineProperties.tailLineEndingProperties | LineEndingProperties | Тип окончания линии |
Пример
local table = document:getBlocks():getTable(0)
local cell = table:getCell("C3")
lineProperties = DocumentAPI.LineProperties()
lineProperties.style = DocumentAPI.LineStyle_Solid
lineProperties.width = 1.5
lineProperties.color = DocumentAPI.Color(DocumentAPI.ColorRGBA(55, 146, 179, 200))
borders = DocumentAPI.Borders()
borders = borders:setTop(lineProperties)
local brds = cell:setBorders(borders)