Class NoteCollection
Represents a collection of notes.
Inherited Members
Namespace: Telerik.Windows.Documents.Spreadsheet.Model
Assembly: Telerik.Windows.Documents.Spreadsheet.dll
Syntax
public class NoteCollection : FilteredShapeCollection<SpreadsheetNote>, IEnumerable<SpreadsheetNote>, IEnumerable
Constructors
NoteCollection(Worksheet)
Initializes a new instance of the Note
Declaration
public NoteCollection(Worksheet worksheet)
Parameters
Worksheet
worksheet
The worksheet. |
Properties
ShapeType
Gets the type of the shape.
Declaration
public override FloatingShapeType ShapeType { get; }
Property Value
Overrides
Methods
Add(CellIndex, String, String)
Adds a new note to the collection with a default topLeftCellIndex.
Declaration
public SpreadsheetNote Add(CellIndex relatedCellIndex, string author, string text)
Parameters
Cell Index of the cell assigned to the note. |
System. The author. |
System. The text. |
Returns
Spreadsheet The new note. |
Add(CellIndex, CellIndex, String, String)
Adds a new note to the collection.
Declaration
public SpreadsheetNote Add(CellIndex relatedCellIndex, CellIndex cellIndex, string author, string text)
Parameters
Cell Index of the cell assigned to the note. |
Cell Index of the cell where the top left corner of the note is visualized. |
System. The author. |
System. The text. |
Returns
Spreadsheet The new note. |
ConvertToComments()
Converts all notes in the collection to Spreadsheet
Declaration
public void ConvertToComments()
Hide(SpreadsheetNote)
Hides the specified note from the collection.
Declaration
public void Hide(SpreadsheetNote note)
Parameters
Spreadsheet The note. |
HideAll()
Hides all notes in the collection.
Declaration
public void HideAll()
OnNotesVisibilityChanged()
Called when [changed].
Declaration
protected virtual void OnNotesVisibilityChanged()
Show(SpreadsheetNote)
Shows the specified note from the collection.
Declaration
public void Show(SpreadsheetNote note)
Parameters
Spreadsheet The note. |
ShowAll()
Shows all notes in the collection.
Declaration
public void ShowAll()
Events
NotesVisibilityChanged
Occurs when the visibility of all notes has been changed in the same time.
Declaration
public event EventHandler NotesVisibilityChanged
Event Type
System.
|