Skip to main content

Таблица DocumentAPI.LineStyle

В таблице приведены типы линий. Используется в поле style таблицы DocumentAPI.LineProperties.

ЗначениеОписание
DocumentAPI.LineStyle_NoLineНет линии
DocumentAPI.LineStyle_Solid
DocumentAPI.LineStyle_Dot
DocumentAPI.LineStyle_Dash
DocumentAPI.LineStyle_LongDash
DocumentAPI.LineStyle_DashDot
DocumentAPI.LineStyle_DotDotDash
DocumentAPI.LineStyle_Double
DocumentAPI.LineStyle_Wave

Пример​


local table = document:getBlocks():getTable(0)
local cell = table:getCell("C3")

lineProperties = DocumentAPI.LineProperties()
lineProperties.style = DocumentAPI.LineStyle_Wave

borders = DocumentAPI.Borders()
borders = borders:setTop(lineProperties)
cell:setBorders(borders)