Class representing a comment reply.
Name | Type | Description |
Text | string | Returns or sets the comment reply text. |
AuthorName | string | Returns or sets the comment reply author's name. |
UserId | string | Returns or sets the user ID of the comment reply author. |
TimeUTC | number | string | Returns or sets the timestamp of the comment reply creation in UTC format. |
Time | number | string | Returns or sets the timestamp of the comment reply creation in the current time zone format. |
Name | Description |
GetAuthorName | Returns the comment reply author's name. |
GetClassType | Returns a type of the ApiCommentReply class. |
GetText | Returns the comment reply text. |
GetTime | Returns the timestamp of the comment reply creation in the current time zone format. |
GetTimeUTC | Returns the timestamp of the comment reply creation in UTC format. |
GetUserId | Returns the user ID of the comment reply author. |
SetAuthorName | Sets the comment reply author's name. |
SetText | Sets the comment reply text. |
SetTime | Sets the timestamp of the comment reply creation in the current time zone format. |
SetTimeUTC | Sets the timestamp of the comment reply creation in UTC format. |
SetUserId | Sets the user ID to the comment reply author. |
builder.CreateFile("xlsx"); var oWorksheet = Api.GetActiveSheet(); oWorksheet.GetRange("A1").SetValue("1"); var oRange = oWorksheet.GetRange("A1"); var oComment = oRange.AddComment("This is just a number."); oComment.AddReply("Reply 1", "John Smith", "uid-1"); var oReply = oComment.GetReply(); var sType = oReply.GetClassType(); oWorksheet.GetRange("A3").SetValue("Type: " + sType); oReply.SetAuthorName("Mark Potato"); oWorksheet.GetRange("A4").SetValue("Comment's reply author: " + oReply.GetAuthorName()); oReply.SetUserId("uid-2"); oWorksheet.GetRange("A5").SetValue("Comment's reply user Id: " + oReply.GetUserId()); oReply.SetTime(Date.now()); oWorksheet.GetRange("A6").SetValue("Comment's reply timestamp: " + oReply.GetTime()); oReply.SetTimeUTC(Date.now()); oWorksheet.GetRange("A7").SetValue("Comment's reply timestamp UTC: " + oReply.GetTimeUTC()); builder.SaveFile("xlsx", "ApiCommentReply.xlsx"); builder.CloseFile();