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
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class BaseCollection<T>

An observable collection which splits the System.Collections.ObjectModel.ObservableCollection`1.CollectionChanged event into separate events.

Inheritance
System.Object
BaseCollection<T>
Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.WinControls.RadDiagram.dll

Syntax

public class BaseCollection<T> : ObservableCollection<T>
Type Parameters
T

The type on which the collection is based.

Constructors

BaseCollection()

Initializes a new instance of the BaseCollection<T> class.

Declaration
public BaseCollection()

BaseCollection(Boolean)

Initializes a new instance of the BaseCollection<T> class.

Declaration
public BaseCollection(bool raiseEventsByDefault)
Parameters
System.Boolean raiseEventsByDefault

The raise events by default.

BaseCollection(IEnumerable<T>)

Initializes a new instance of the BaseCollection<T> class. Initializes a new instance of the BaseCollection<T> class.

Declaration
public BaseCollection(IEnumerable<T> collection)
Parameters
System.Collections.Generic.IEnumerable<T> collection

The collection.

Methods

Add(T)

Adds an item to the collection.

Declaration
public void Add(T item)
Parameters
T item

The item to be added.

Add(T, Boolean)

Adds and new item to the collection and specifies whether to raise the ItemAdded event.

Declaration
public void Add(T item, bool raise)
Parameters
T item

The item to add to the collection.

System.Boolean raise

Whether to raise the ItemAdded event.

Clear()

Clears this collection.

Declaration
public void Clear()

Clear(Boolean)

Clears this collection.

Declaration
public void Clear(bool raise)
Parameters
System.Boolean raise

Whether to raise the Cleared event.

Insert(Int32, T)

Inserts an item to this collection.

Declaration
public void Insert(int index, T item)
Parameters
System.Int32 index

The index at which the item should be inserted.

T item

The item to insert.

Insert(Int32, T, Boolean)

Inserts an item to this collection.

Declaration
public void Insert(int index, T item, bool raise)
Parameters
System.Int32 index

The index at which the item should be inserted.

T item

The item to insert.

System.Boolean raise

Whether to raise the ItemInserted event.

Remove(T)

Removes an item from this collection.

Declaration
public void Remove(T item)
Parameters
T item

The item to remove.

Remove(T, Boolean)

Removes an item from this collection.

Declaration
public void Remove(T item, bool raise)
Parameters
T item

The item to remove.

System.Boolean raise

Whether to raise the ItemRemoved event.

Events

Cleared

Occurs when the collection is cleared.

Declaration
public event EventHandler Cleared
Event Type
System.EventHandler

ItemAdded

Occurs when an item is added.

Declaration
public event EventHandler<GenericEventArgs<T>> ItemAdded
Event Type
System.EventHandler<GenericEventArgs<T>>

ItemInserted

Occurs when an item is inserted.

Declaration
public event EventHandler<GenericEventArgs<T>> ItemInserted
Event Type
System.EventHandler<GenericEventArgs<T>>

ItemRemoved

Occurs when an item is removed.

Declaration
public event EventHandler<GenericEventArgs<T>> ItemRemoved
Event Type
System.EventHandler<GenericEventArgs<T>>

Extension Methods

SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • 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.