Class
CommentCollection

Manages threaded comments in a worksheet, supporting add, remove, and lookup operations by cell index.

Definition

Namespace:Telerik.Windows.Documents.Spreadsheet.Model.Comments

Assembly:Telerik.Windows.Documents.Spreadsheet.dll

Syntax:

cs-api-definition
public class CommentCollection : FilteredShapeCollection<SpreadsheetComment>, IEnumerable<SpreadsheetComment>, IEnumerable

Inheritance: objectFilteredShapeCollection<SpreadsheetComment>CommentCollection

Implements: IEnumerableIEnumerable<SpreadsheetComment>

Inherited Members FilteredShapeCollection<SpreadsheetComment>.Contains(SpreadsheetComment)FilteredShapeCollection<SpreadsheetComment>.IndexOf(SpreadsheetComment)FilteredShapeCollection<SpreadsheetComment>.Clear()FilteredShapeCollection<SpreadsheetComment>.GetEnumerator()FilteredShapeCollection<SpreadsheetComment>.GetZIndex(SpreadsheetComment)FilteredShapeCollection<SpreadsheetComment>.Add(SpreadsheetComment)FilteredShapeCollection<SpreadsheetComment>.OnItemAdding(SpreadsheetComment, out ShapeCollectionChangingEventArgs<SpreadsheetComment>)FilteredShapeCollection<SpreadsheetComment>.OnItemRemoving(SpreadsheetComment, out ShapeCollectionChangingEventArgs<SpreadsheetComment>)FilteredShapeCollection<SpreadsheetComment>.OnChanging(ShapeCollectionChangingEventArgs<SpreadsheetComment>)FilteredShapeCollection<SpreadsheetComment>.OnChanged(ShapeCollectionChangedEventArgs<SpreadsheetComment>)FilteredShapeCollection<SpreadsheetComment>.CountFilteredShapeCollection<SpreadsheetComment>.this[int]FilteredShapeCollection<SpreadsheetComment>.WorksheetFilteredShapeCollection<SpreadsheetComment>.ChangingFilteredShapeCollection<SpreadsheetComment>.Changed

Properties

ShapeType

The shape type discriminator identifying this collection as containing comment shapes.

Declaration

cs-api-definition
public override FloatingShapeType ShapeType { get; }

Property Value

FloatingShapeType

Overrides FilteredShapeCollection<SpreadsheetComment>.ShapeType

Methods

Add(CellIndex, string, string, DateTime?)

Creates and adds a new comment to the specified cell with author and text content.

Declaration

cs-api-definition
public SpreadsheetComment Add(CellIndex relatedCellIndex, string author, string text, DateTime? creationDate = null)

Parameters

relatedCellIndex

CellIndex

Index of the cell assigned to the comment.

author

string

The author.

text

string

The text.

creationDate

DateTime?

The date the comment is created.

Returns

SpreadsheetComment

The new comment.

Remove(SpreadsheetComment)

Removes the specified comment and its fallback note from the worksheet.

Declaration

cs-api-definition
public override bool Remove(SpreadsheetComment item)

Parameters

item

SpreadsheetComment

The comment.

Returns

bool

The value indicating whether the specified comment was found.

Overrides FilteredShapeCollection<SpreadsheetComment>.Remove(SpreadsheetComment)