Skip to main content

Таблица DocumentAPI.LineEndingStyle

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

ЗначениеОписание
DocumentAPI.LineEndingStyle_Arrow
DocumentAPI.LineEndingStyle_Diamond
DocumentAPI.LineEndingStyle_Oval
DocumentAPI.LineEndingStyle_Stealth
DocumentAPI.LineEndingStyle_Triangle
DocumentAPI.LineEndingStyle_None

Пример​


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

lineProperties = DocumentAPI.LineProperties()
lineProperties.headLineEndingProperties = DocumentAPI.LineEndingProperties()
lineProperties.headLineEndingProperties.style = DocumentAPI.LineEndingStyle_Oval

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