Class ExcelThreadedCommentThread¶
Namespace: OfficeOpenXml.ThreadedComments
Assembly: EPPlus.dll
Represents a thread of ExcelThreadedComments in a cell on a worksheet. Contains functionality to add and modify these comments.
Inheritance¶
object ← ExcelThreadedCommentThread
Inherited Members¶
object.Equals(object?, object?)
object.Equals(object?)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object?, object?)
object.ToString()
Properties¶
CellAddress¶
The address of the cell of the comment thread
Property Value¶
Comments¶
A collection of comments in the thread.
Property Value¶
ExcelThreadedCommentCollection
IsResolved¶
If true the thread is resolved, i.e. closed for edits or further comments.
Property Value¶
ThreadedCommentsXml¶
The raw xml representing this comment thread.
Property Value¶
XmlDocument
Worksheet¶
The worksheet where this comment thread resides
Property Value¶
Methods¶
AddComment(string, string)¶
Adds a ExcelThreadedComment to the thread
Parameters¶
personId string
Id of the author, see ExcelThreadedCommentPerson
text string
Text of the comment
Returns¶
AddComment(string, string, params ExcelThreadedCommentPerson[])¶
Adds a ExcelThreadedComment with mentions in the text to the thread.
public ExcelThreadedComment AddComment(string personId, string textWithFormats, params ExcelThreadedCommentPerson[] personsToMention)
Parameters¶
personId string
Id of the ExcelThreadedCommentPerson?text=autor
textWithFormats string
A string with format placeholders - same as in string.Format. Index in these should correspond to an index in the personsToMention array.
personsToMention ExcelThreadedCommentPerson[]
A params array of ExcelThreadedCommentPerson. Their DisplayName property will be used to replace the format placeholders.
Returns¶
The added ExcelThreadedComment
DeleteThread()¶
Deletes all ExcelThreadedComments in the thread and the legacy ExcelComment in the cell.
Remove(ExcelThreadedComment)¶
Removes a ExcelThreadedComment from the thread.
Parameters¶
comment ExcelThreadedComment
The comment to remove
Returns¶
true if the comment was removed, otherwise false
ReopenThread()¶
Re-opens a resolved thread.
ResolveThread()¶
Closes the thread, only the author can re-open it.
ToString()¶
Returns a string that represents the current object.
Returns¶
A string that represents the current object.