New to Telerik UI for WinFormsStart a free 30-day trial

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

Definition

Properties

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

C#
public override FloatingShapeType ShapeType { get; }

Overrides: FilteredShapeCollection<SpreadsheetComment>.ShapeType

Methods

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

C#
public SpreadsheetComment Add(CellIndex relatedCellIndex, string author, string text, DateTime? creationDate = null)
Parameters:relatedCellIndexCellIndex

Index of the cell assigned to the comment.

authorstring

The author.

textstring

The text.

creationDateDateTime?

The date the comment is created.

Returns:

SpreadsheetComment

The new comment.

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

C#
public override bool Remove(SpreadsheetComment item)
Parameters:itemSpreadsheetComment

The comment.

Returns:

bool

The value indicating whether the specified comment was found.

Overrides: FilteredShapeCollection<SpreadsheetComment>.Remove(SpreadsheetComment)