Class ExcelThreadedComment¶
Namespace: OfficeOpenXml.ThreadedComments
Assembly: EPPlus.dll
Represents a comment in a thread of ThreadedComments
Inheritance¶
object ← XmlHelper ← ExcelThreadedComment
Inherited Members¶
object.Equals(object?, object?)
object.Equals(object?)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object?, object?)
object.ToString()
Properties¶
Author¶
Author of the comment
Property Value¶
CellAddress¶
The location of the threaded comment
Property Value¶
ContainsMentions¶
Indicates whether the Text contains mentions. If so the Mentions property will contain data about those mentions.
Property Value¶
DateCreated¶
Timestamp for when the comment was created
Property Value¶
Id¶
Unique id
Property Value¶
Mentions¶
Mentions in this comment. Will return null if no mentions exists.
Property Value¶
ExcelThreadedCommentMentionCollection
ParentId¶
Id of the first comment in the thread
Property Value¶
PersonId¶
Id of the ExcelThreadedCommentPerson who wrote the comment
Property Value¶
Text¶
Text of the comment. To edit the text on an existing comment, use the EditText function.
Property Value¶
Methods¶
EditText(string)¶
Edit the Text of an existing comment
Parameters¶
newText string
EditText(string, params ExcelThreadedCommentPerson[])¶
Edit the Text of an existing comment with mentions
public void EditText(string newTextWithFormats, params ExcelThreadedCommentPerson[] personsToMention)
Parameters¶
newTextWithFormats 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.