Hướng dẫn exceljs example
Chuyển đến nội dung chính Show Trình duyệt này không còn được hỗ trợ nữa. Nội dung chính
Hãy nâng cấp lên Microsoft Edge để tận dụng các tính năng mới nhất, bản cập nhật bảo mật và hỗ trợ kỹ thuật.
Represents a comment in the workbook. In this articleExtendsRemarks[ API set: ExcelApi 1.10 ] Properties
Methods
Property DetailsGets the email of the comment's author.
Property ValueRemarks[ API set: ExcelApi 1.10 ] authorNameGets the name of the comment's author.
Property ValueRemarks[ API set: ExcelApi 1.10 ] contentThe comment's content. The string is plain text.
Property ValueRemarks[ API set: ExcelApi 1.10 ] Examples
contentTypeGets the content type of the comment.
Property ValueRemarks[ API set: ExcelApi 1.12 ] contextThe request context associated with the object. This connects the add-in's process to the Office host application's process.
Property ValuecreationDateGets the creation time of the comment. Returns
Property ValueRemarks[ API set: ExcelApi 1.10 ] idmentionsGets the entities (e.g., people) that are mentioned in comments.
Property ValueRemarks[ API set: ExcelApi 1.11 ] repliesRepresents a collection of reply objects associated with the comment.
Property ValueRemarks[ API set: ExcelApi 1.10 ] resolvedThe comment thread status. A value of
Property ValueRemarks[ API set: ExcelApi 1.11 ] Examples
richContentGets the rich comment content (e.g., mentions in comments). This string is not meant to be displayed to end-users. Your add-in should only use this to parse rich comment content.
Property ValueRemarks[ API set: ExcelApi 1.11 ] Method Detailsdelete()Deletes the comment and all the connected replies.
ReturnsRemarks[ API set: ExcelApi 1.10 ] Examples
getLocation()Gets the cell where this comment is located.
ReturnsRemarks[ API set: ExcelApi 1.10 ] load(options)Queues up a command to load the specified properties of
the object. You must call
ParametersReturnsload(propertyNames)Queues up a command to load the specified properties of the object. You must call
ParameterspropertyNames string | string[] A comma-delimited string or an array of strings that specify the properties to load. ReturnsExamples
load(propertyNamesAndPaths)Queues up a command to load the specified properties of the object. You must call
ParameterspropertyNamesAndPaths { select?: string; expand?: string; }
Returnsset(properties, options)Sets multiple properties of an object at the same time. You can pass either a plain object with the appropriate properties, or another API object of the same type.
Parametersproperties Excel.Interfaces.CommentUpdateData A JavaScript object with properties that are structured isomorphically to the properties of the object on which the method is called. Returnsset(properties)Sets multiple properties on the object at the same time, based on an existing loaded object.
ParametersReturnstoJSON()Overrides the JavaScript
ReturnsupdateMentions(contentWithMentions)Updates the comment content with a specially formatted string and a list of mentions.
ParameterscontentWithMentions Excel.CommentRichContent The content for the comment. This contains a specially formatted string and a list of mentions that will be parsed into the string when displayed by Excel. ReturnsRemarks[ API set: ExcelApi 1.11 ] Phản hồiGửi và xem ý kiến phản hồi dành cho |