skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class ReplySortedCollection

Collection of comment replies automatically sorted by creation date in ascending order, supporting add, remove, and enumeration operations.

Inheritance
System.Object
ReplySortedCollection
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
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

Returns the number of replies currently in the collection.

Declaration
public int Count { get; }
Property Value
System.Int32

Implements
System.Collections.Generic.ICollection<T>.Count

IsReadOnly

Returns false as the collection supports modification operations.

Declaration
public bool IsReadOnly { get; }
Property Value
System.Boolean

Implements
System.Collections.Generic.ICollection<T>.IsReadOnly

Item[Int32]

Accesses the reply at the specified position in the sorted collection.

Declaration
public SpreadsheetCommentReply this[int index] { get; set; }
Parameters
System.Int32 index

Property Value
SpreadsheetCommentReply

The element at the specified index.

Implements
System.Collections.Generic.IList<T>.Item[System.Int32]

Methods

Add(SpreadsheetCommentReply)

Adds a reply to the collection and re-sorts all replies by creation date in ascending order.

Declaration
public void Add(SpreadsheetCommentReply item)
Parameters
SpreadsheetCommentReply item

The object to be added to the ReplySortedCollection.

Implements
System.Collections.Generic.ICollection<T>.Add(T)

Clear()

Removes all replies from the collection.

Declaration
public void Clear()
Implements
System.Collections.Generic.ICollection<T>.Clear()

Contains(SpreadsheetCommentReply)

Checks whether the specified reply exists in the collection.

Declaration
public bool Contains(SpreadsheetCommentReply item)
Parameters
SpreadsheetCommentReply item

The object to locate in ReplySortedCollection.

Returns
System.Boolean

true if item is found in the ReplySortedCollection; otherwise, false.

Implements
System.Collections.Generic.ICollection<T>.Contains(T)

CopyTo(SpreadsheetCommentReply[], Int32)

Copies all replies to the specified array starting at the given array index.

Declaration
public void CopyTo(SpreadsheetCommentReply[] array, int arrayIndex)
Parameters
SpreadsheetCommentReply[] array

The one-dimensional System.Array that is the destination of the elements copied from ReplySortedCollection. The System.Array must have zero-based indexing.

System.Int32 arrayIndex

The zero-based index in array at which copying begins.

Implements
System.Collections.Generic.ICollection<T>.CopyTo(T[], System.Int32)

GetEnumerator()

Returns an enumerator for iterating through replies in creation date order.

Declaration
public IEnumerator<SpreadsheetCommentReply> GetEnumerator()
Returns
System.Collections.Generic.IEnumerator<SpreadsheetCommentReply>

Implements
System.Collections.Generic.IEnumerable<T>.GetEnumerator()

IndexOf(SpreadsheetCommentReply)

Finds the position of the specified reply in the sorted collection and returns its index, or -1 if not found.

Declaration
public int IndexOf(SpreadsheetCommentReply item)
Parameters
SpreadsheetCommentReply item

The object to locate in the ReplySortedCollection. The value can be null for reference types.

Returns
System.Int32

The zero-based index of the first occurrence of item within the entire ReplySortedCollection, if found; otherwise, –1

Implements
System.Collections.Generic.IList<T>.IndexOf(T)

OnChanged(ReplySortedCollectionChangedEventArgs)

Raises the Changed event after the collection has been modified.

Declaration
protected virtual void OnChanged(ReplySortedCollectionChangedEventArgs args)
Parameters
ReplySortedCollectionChangedEventArgs args

The ReplySortedCollectionChangedEventArgs instance containing the event data.

OnChanging(ReplySortedCollectionChangingEventArgs)

Raises the Changing event before modifying the collection.

Declaration
protected virtual void OnChanging(ReplySortedCollectionChangingEventArgs args)
Parameters
ReplySortedCollectionChangingEventArgs args

The ReplySortedCollectionChangingEventArgs instance containing the event data.

Remove(SpreadsheetCommentReply)

Removes the specified reply from the collection and returns whether the operation succeeded.

Declaration
public bool Remove(SpreadsheetCommentReply item)
Parameters
SpreadsheetCommentReply item

The object to remove from the ReplySortedCollection.

Returns
System.Boolean

Implements
System.Collections.Generic.ICollection<T>.Remove(T)

RemoveAt(Int32)

Removes the reply at the specified position in the collection.

Declaration
public void RemoveAt(int index)
Parameters
System.Int32 index

The zero-based index of the element to remove.

Implements
System.Collections.Generic.IList<T>.RemoveAt(System.Int32)

Events

Changed

Raised after a reply has been successfully added or removed from the collection.

Declaration
public event EventHandler<ReplySortedCollectionChangedEventArgs> Changed
Event Type
System.EventHandler<ReplySortedCollectionChangedEventArgs>

Changing

Raised before a reply is added or removed, allowing cancellation of the operation.

Declaration
public event EventHandler<ReplySortedCollectionChangingEventArgs> Changing
Event Type
System.EventHandler<ReplySortedCollectionChangingEventArgs>

Explicit Interface Implementations

IList<SpreadsheetCommentReply>.Insert(Int32, SpreadsheetCommentReply)

Declaration
void IList<SpreadsheetCommentReply>.Insert(int index, SpreadsheetCommentReply item)
Parameters
System.Int32 index

SpreadsheetCommentReply item

Implements
System.Collections.Generic.IList<T>.Insert(System.Int32, T)

IEnumerable.GetEnumerator()

Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
System.Collections.IEnumerator

Implements
System.Collections.IEnumerable.GetEnumerator()
Getting Started
  • Getting Started
Support Resources
  • Documentation
Community
  • Forums
  • Blogs
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.