Class ExcelThreadedCommentPersonCollection
Represents a collection of Excel
Inheritance
Implements
Inherited Members
Namespace: OfficeOpenXml.ThreadedComments
Assembly: EPPlus.dll
Syntax
public class ExcelThreadedCommentPersonCollection : IEnumerable<ExcelThreadedCommentPerson>, IEnumerable
Constructors
ExcelThreadedCommentPersonCollection(ExcelWorkbook)
Constructor
Declaration
public ExcelThreadedCommentPersonCollection(ExcelWorkbook workbook)
Parameters
Type | Name | Description |
---|---|---|
Excel |
workbook | The |
Properties
Count
Number of Excel
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System. |
Item[Int32]
Returns the Excel
Declaration
public ExcelThreadedCommentPerson this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
System. |
index | The requested index |
Property Value
Type | Description |
---|---|
Excel |
The Excel |
Item[String]
Returns a Excel
Declaration
public ExcelThreadedCommentPerson this[string id] { get; }
Parameters
Type | Name | Description |
---|---|---|
System. |
id | The Id of the Person |
Property Value
Type | Description |
---|---|
Excel |
A Excel |
PersonsXml
The xml document defining the threaded comments persons collection.
Declaration
public XmlDocument PersonsXml { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
Add(String)
Creates and adds a new ExceldisplayName
and identityProvider will be set to No
Declaration
public ExcelThreadedCommentPerson Add(string displayName)
Parameters
Type | Name | Description |
---|---|---|
System. |
displayName | The display name of the added Excel |
Returns
Type | Description |
---|---|
Excel |
Add(String, String, IdentityProvider)
Creates and adds a new Excel
Declaration
public ExcelThreadedCommentPerson Add(string displayName, string userId, IdentityProvider identityProvider)
Parameters
Type | Name | Description |
---|---|---|
System. |
displayName | The display name of the added Excel |
System. |
userId | A string representing the userId of the |
Identity |
identityProvider | The Identity |
Returns
Type | Description |
---|---|
Excel |
The added Excel |
Add(String, String, IdentityProvider, String)
Creates and adds a new Excel
Declaration
public ExcelThreadedCommentPerson Add(string displayName, string userId, IdentityProvider identityProvider, string id)
Parameters
Type | Name | Description |
---|---|---|
System. |
displayName | The display name of the added Excel |
System. |
userId | A string representing the userId of the |
Identity |
identityProvider | The Identity |
System. |
id | Id of the Excel |
Returns
Type | Description |
---|---|
Excel |
The added Excel |
Clear()
Removes all persons from the collection
Declaration
public void Clear()
Find(Predicate<ExcelThreadedCommentPerson>)
Finds a Excelmatch
a certain criteria
Declaration
public ExcelThreadedCommentPerson Find(Predicate<ExcelThreadedCommentPerson> match)
Parameters
Type | Name | Description |
---|---|---|
System. |
match | The criterias |
Returns
Type | Description |
---|---|
Excel |
A matching Excel |
FindAll(Predicate<ExcelThreadedCommentPerson>)
Finds a number of Excel
Declaration
public IEnumerable<ExcelThreadedCommentPerson> FindAll(Predicate<ExcelThreadedCommentPerson> match)
Parameters
Type | Name | Description |
---|---|---|
System. |
match | The criterias |
Returns
Type | Description |
---|---|
System. |
An enumerable of matching Excel |
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<ExcelThreadedCommentPerson> GetEnumerator()
Returns
Type | Description |
---|---|
System. |
An enumerator that can be used to iterate through the collection. |
Remove(ExcelThreadedCommentPerson)
Removes a Excel
Declaration
public void Remove(ExcelThreadedCommentPerson person)
Parameters
Type | Name | Description |
---|---|---|
Excel |
person |
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System. |
A string that represents the current object. |
Overrides
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System. |
An enumerator that can be used to iterate through the collection. |