Class ReplySortedCollection
Represents a strongly typed list of SpreadsheetCommentReply objects that can be accessed by index and are sorted by Creation date. Provides methods to search, sort, and manipulate lists.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Spreadsheet.Model.Comments
Assembly: Telerik.Windows.Documents.Spreadsheet.dll
Syntax
public class ReplySortedCollection : IList<SpreadsheetCommentReply>, ICollection<SpreadsheetCommentReply>, IEnumerable<SpreadsheetCommentReply>, IEnumerable
Properties
Count
Gets the number of elements actually contained in the ReplySortedCollection.
Declaration
public int Count { get; }
Property Value
System.
|
Implements
IsReadOnly
Gets a boolean value indicating whether the field is readonly.
Declaration
public bool IsReadOnly { get; }
Property Value
System.
|
Implements
Item[Int32]
Gets or sets the element at the specified index.
Declaration
public SpreadsheetCommentReply this[int index] { get; set; }
Parameters
System.
|
Property Value
Spreadsheet The element at the specified index. |
Implements
Methods
Add(SpreadsheetCommentReply)
Adds a SpreadsheetCommentReply to the ReplySortedCollection. The collection will be re-sorted by SpreadsheetReply`s CreationDate in ascending order after adding an object.
Declaration
public void Add(SpreadsheetCommentReply item)
Parameters
Spreadsheet The object to be added to the ReplySortedCollection. |
Implements
Clear()
Removes all elements from the ReplySortedCollection.
Declaration
public void Clear()
Implements
Contains(SpreadsheetCommentReply)
Determines whether an element is in the ReplySortedCollection.
Declaration
public bool Contains(SpreadsheetCommentReply item)
Parameters
Spreadsheet The object to locate in ReplySortedCollection. |
Returns
System. true if item is found in the ReplySortedCollection; otherwise, false. |
Implements
CopyTo(SpreadsheetCommentReply[], Int32)
Copies the entire ReplySortedCollection to a compatible one-dimensional array, starting at the specified index of the target array.
Declaration
public void CopyTo(SpreadsheetCommentReply[] array, int arrayIndex)
Parameters
Spreadsheet The one-dimensional System.Array that is the destination of the elements copied from ReplySortedCollection. The System.Array must have zero-based indexing. |
System. The zero-based index in array at which copying begins. |
Implements
GetEnumerator()
Returns an enumerator that iterates through the ReplySortedCollection.
Declaration
public IEnumerator<SpreadsheetCommentReply> GetEnumerator()
Returns
System.
|
Implements
IndexOf(SpreadsheetCommentReply)
Searches for the specified object and returns the zero-based index of the first occurrence within the entire ReplySortedCollection.
Declaration
public int IndexOf(SpreadsheetCommentReply item)
Parameters
Spreadsheet The object to locate in the ReplySortedCollection. The value can be null for reference types. |
Returns
System. The zero-based index of the first occurrence of item within the entire ReplySortedCollection, if found; otherwise, –1 |
Implements
OnChanged(ReplySortedCollectionChangedEventArgs)
Raises the Changed event.
Declaration
protected virtual void OnChanged(ReplySortedCollectionChangedEventArgs args)
Parameters
Reply The Reply |
OnChanging(ReplySortedCollectionChangingEventArgs)
Raises the Changing event.
Declaration
protected virtual void OnChanging(ReplySortedCollectionChangingEventArgs args)
Parameters
Reply The Reply |
Remove(SpreadsheetCommentReply)
Removes the first occurrence of a specific object from the ReplySortedCollection.
Declaration
public bool Remove(SpreadsheetCommentReply item)
Parameters
Spreadsheet The object to remove from the ReplySortedCollection. |
Returns
System.
|
Implements
RemoveAt(Int32)
Removes the element at the specified index of the ReplySortedCollection.
Declaration
public void RemoveAt(int index)
Parameters
System. The zero-based index of the element to remove. |
Implements
Events
Changed
Occurs when the collection has changed.
Declaration
public event EventHandler<ReplySortedCollectionChangedEventArgs> Changed
Event Type
System.
|
Changing
Occurs when the collection is changing.
Declaration
public event EventHandler<ReplySortedCollectionChangingEventArgs> Changing
Event Type
System.
|
Explicit Interface Implementations
IList<SpreadsheetCommentReply>.Insert(Int32, SpreadsheetCommentReply)
Declaration
void IList<SpreadsheetCommentReply>.Insert(int index, SpreadsheetCommentReply item)
Parameters
System.
|
Spreadsheet
|
Implements
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
System.
|