[Root] / Xceed.Wpf.DataGrid Assembly / Xceed.Wpf.DataGrid Namespace / ContentElementCollection<T> Class


In This Topic
    ContentElementCollection<T> Class
    In This Topic
    Represents a collection of content elements.
    Syntax
    'Declaration
     
    <DefaultMemberAttribute("Item")>
    <DebuggerTypeProxyAttribute(System.Collections.Generic.Mscorlib_CollectionDebugView`1)>
    <DebuggerDisplayAttribute("Count = {Count}")>
    Public Class ContentElementCollection(Of T As ContentElement) 
       Inherits System.Collections.ObjectModel.Collection(Of T)
    'Usage
     
    Dim instance As ContentElementCollection(Of T)
    [DefaultMember("Item")]
    [DebuggerTypeProxy(System.Collections.Generic.Mscorlib_CollectionDebugView`1)]
    [DebuggerDisplay("Count = {Count}")]
    public class ContentElementCollection<T> : System.Collections.ObjectModel.Collection<T> 
    where T: ContentElement
    Type Parameters
    T
    Remarks
    The elements added to the collection must be, or derive from, ContentElement.
    Inheritance Hierarchy
    Public Properties
    Protected Properties
     NameDescription
    Protected Property (Inherited from System.Collections.ObjectModel.Collection<T>)
    Top
    Public Methods
    Protected Methods
     NameDescription
    Protected MethodOverridden. Clears the items from the collection.  
    Protected MethodOverridden. Inserts an item in the collection.  
    Protected MethodMoves an item in the collection.  
    Protected MethodRaises the CollectionChanged event using the specified NotifyCollectionChangedEventArgs.  
    Protected MethodInvoked after an item is added.  
    Protected MethodInvoked before an item is added.  
    Protected MethodInvoked after an item is removed.  
    Protected MethodInvoked before an item is removed.  
    Protected MethodRaises the PropertyChanged event using the specified PropertyChangedEventArgs.  
    Protected MethodOverridden. Removes an item from the collection.  
    Protected MethodOverridden.   
    Top
    Public Events
     NameDescription
    Public EventRaised when a change occurs in the collection.  
    Public EventRaised when the value of a property is changed.  
    Top
    Supported Frameworks

    .NET: net5.0, net5.0-windows, net6.0, net6.0-macos, net6.0-windows, net7.0, net7.0-macos, net7.0-windows, net8.0, net8.0-browser, net8.0-macos, net8.0-windows, net9.0, net9.0-browser, net9.0-macos, net9.0-windows, net10.0, net10.0-browser, net10.0-macos, net10.0-windows.

    .NET Framework: net20, net35, net40, net403, net45, net451, net452, net46, net461, net462, net463, net47, net471, net472, net48, net481.

    See Also