Skip to main content

Метод Comment:getInfo

Метод предоставляет доступ к информации о комментарии DocumentAPI.TrackedChangeInfo (автор изменения, дата и т. д).

Пример​


local commentsList = document:getRange():getComments()
for comment in commentsList:enumerate() do
local commentInfo = comment:getInfo()
local name = commentInfo.author.name
print("Автор комментария:", name)
end