Class ExcelThreadedCommentPersonCollection¶
Namespace: OfficeOpenXml.ThreadedComments
Assembly: EPPlus.dll
Represents a collection of ExcelThreadedCommentPersons in a workbook.
public class ExcelThreadedCommentPersonCollection : IEnumerable<ExcelThreadedCommentPerson>, IEnumerable
Inheritance¶
object ← ExcelThreadedCommentPersonCollection
Implements¶
IEnumerable
IEnumerable<ExcelThreadedCommentPerson>
Inherited Members¶
object.Equals(object?, object?)
object.Equals(object?)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object?, object?)
object.ToString()
Constructors¶
ExcelThreadedCommentPersonCollection(ExcelWorkbook)¶
Constructor
Parameters¶
workbook ExcelWorkbook
The workbook where the ExcelThreadedCommentPerson occurs
Properties¶
Count¶
Number of ExcelThreadedCommentPersons in the collection
Property Value¶
PersonsXml¶
The xml document defining the threaded comments persons collection.
Property Value¶
XmlDocument
this[int]¶
Returns the ExcelThreadedCommentPerson by its index
Property Value¶
this[string]¶
Returns a ExcelThreadedCommentPerson by its id
Property Value¶
Methods¶
Add(string)¶
Creates and adds a new ExcelThreadedCommentPerson to the workbooks list of persons. A unique Id for the person will be generated and set.
The userId will be the same as the displayName and identityProvider will be set to NoProvider
Parameters¶
displayName string
The display name of the added ExcelThreadedCommentPerson
Returns¶
Add(string, string, IdentityProvider)¶
Creates and adds a new ExcelThreadedCommentPerson to the workbooks list of persons. A unique Id for the person will be generated and set.
public ExcelThreadedCommentPerson Add(string displayName, string userId, IdentityProvider identityProvider)
Parameters¶
displayName string
The display name of the added ExcelThreadedCommentPerson
userId string
A string representing the userId of the identityProvider
identityProvider IdentityProvider
The IdentityProvider from which the ExcelThreadedCommentPerson originates
Returns¶
The added ExcelThreadedCommentPerson
Add(string, string, IdentityProvider, string)¶
Creates and adds a new ExcelThreadedCommentPerson to the workbooks list of persons
public ExcelThreadedCommentPerson Add(string displayName, string userId, IdentityProvider identityProvider, string id)
Parameters¶
displayName string
The display name of the added ExcelThreadedCommentPerson
userId string
A string representing the userId of the identityProvider
identityProvider IdentityProvider
The IdentityProvider from which the ExcelThreadedCommentPerson originates
id string
Id of the ExcelThreadedCommentPerson
Returns¶
The added ExcelThreadedCommentPerson
Clear()¶
Removes all persons from the collection
Find(Predicate<ExcelThreadedCommentPerson>)¶
Finds a ExcelThreadedCommentPerson that match a certain criteria
Parameters¶
match Predicate<ExcelThreadedCommentPerson>
The criterias
Returns¶
A matching ExcelThreadedCommentPerson
FindAll(Predicate<ExcelThreadedCommentPerson>)¶
Finds a number of ExcelThreadedCommentPerson's that matches a certain criteria.
Parameters¶
match Predicate<ExcelThreadedCommentPerson>
The criterias
Returns¶
IEnumerable<ExcelThreadedCommentPerson>
An enumerable of matching ExcelThreadedCommentPerson's
GetEnumerator()¶
Returns an enumerator that iterates through the collection.
Returns¶
IEnumerator<ExcelThreadedCommentPerson>
An enumerator that can be used to iterate through the collection.
Remove(ExcelThreadedCommentPerson)¶
Removes a ExcelThreadedCommentPerson from the collection
Parameters¶
person ExcelThreadedCommentPerson
ToString()¶
Returns a string that represents the current object.
Returns¶
A string that represents the current object.