NoteCollection
Collection of notes attached to worksheet cells, supporting visibility control and conversion to threaded comments.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.Model
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public class NoteCollection : FilteredShapeCollection<SpreadsheetNote>, IEnumerable<SpreadsheetNote>, IEnumerable
Inheritance: objectFilteredShapeCollection<SpreadsheetNote>NoteCollection
Implements:
Inherited Members
Constructors
Initializes a new note collection for the specified worksheet.
Events
Raised when the visibility of all notes is changed together via ShowAll or HideAll.
public event EventHandler NotesVisibilityChanged
Methods
Adds a note to the specified cell with custom positioning and returns the created note.
public SpreadsheetNote Add(CellIndex relatedCellIndex, CellIndex cellIndex, string author, string text)
Index of the cell assigned to the note.
cellIndexCellIndexIndex of the cell where the top left corner of the note is visualized.
authorstringThe author.
textstringThe text.
Returns:The new note.
Adds a note to the specified cell with default positioning and returns the created note.
Converts all non-fallback notes to threaded SpreadsheetComment instances.
public void ConvertToComments()
Hides the specified note from view without removing it from the collection.
Hides all notes in the collection from view as a single operation.
public void HideAll()
Raises the NotesVisibilityChanged event when all notes' visibility changes.
protected virtual void OnNotesVisibilityChanged()
Makes the specified note visible in the worksheet.
Makes all notes in the collection visible as a single operation.
public void ShowAll()
Properties
Returns FloatingShapeType.Note to identify notes within the shape collection.
public override FloatingShapeType ShapeType { get; }
Overrides: