Class ExcelCommentCollection
- Namespace
- OfficeOpenXml
- Assembly
- EPPlus.dll
Collection of Excel Comment objects
public class ExcelCommentCollection : IEnumerable, IDisposable
- Inheritance
-
ExcelCommentCollection
- Implements
- Inherited Members
Properties
CommentXml
Access to the comment xml document
public XmlDocument CommentXml { get; set; }
Property Value
- XmlDocument
Count
Number of comments in the collection
public int Count { get; }
Property Value
this[ExcelCellAddress]
Indexer for the comments collection
public ExcelComment this[ExcelCellAddress cell] { get; }
Parameters
cellExcelCellAddressThe cell
Property Value
- ExcelComment
The comment
this[int]
Indexer for the comments collection
public ExcelComment this[int Index] { get; }
Parameters
IndexintThe index
Property Value
- ExcelComment
The comment
this[string]
Indexer for the comments collection
public ExcelComment this[string cellAddress] { get; }
Parameters
cellAddressstringThe cell address
Property Value
- ExcelComment
The comment
Worksheet
A reference to the worksheet object
public ExcelWorksheet Worksheet { get; set; }
Property Value
Methods
Add(ExcelRangeBase, string, string)
Adds a comment to the top left cell of the range
public ExcelComment Add(ExcelRangeBase cell, string Text, string author = null)
Parameters
cellExcelRangeBaseThe cell
TextstringThe comment text
authorstringThe author for the comment. If this property is null or blank EPPlus will set it to the identity of the ClaimsPrincipal if available otherwise to "Anonymous"
Returns
- ExcelComment
The comment
Remove(ExcelComment)
Removes the comment
public void Remove(ExcelComment comment)
Parameters
commentExcelCommentThe comment to remove
RemoveAt(int)
Removes the comment at the specified position
public void RemoveAt(int Index)
Parameters
IndexintThe index