menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class VisuallyInheritableList - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class VisuallyInheritableList

    An ArrayListExt derived class that supports creating "visually inheritable lists".

    Inheritance
    System.Object
    System.Collections.ArrayList
    ArrayListExt
    VisuallyInheritableList
    VisuallyInheritableIntList
    BarItems
    Implements
    System.Collections.IList
    System.Collections.ICollection
    System.Collections.IEnumerable
    System.ICloneable
    Inherited Members
    ArrayListExt.Add(Object)
    ArrayListExt.AddHandlers(Object)
    ArrayListExt.Clear()
    ArrayListExt.CollectionChanged
    ArrayListExt.ForceFixedSize
    ArrayListExt.ForceReadOnly
    ArrayListExt.Insert(Int32, Object)
    ArrayListExt.InsertRange(Int32, ICollection)
    ArrayListExt.IsCollectionChangedEventSuspended
    ArrayListExt.IsFixedSize
    ArrayListExt.IsReadOnly
    ArrayListExt.Item[Int32]
    ArrayListExt.ItemPropertyChanged
    ArrayListExt.Move(Int32, Int32, Int32)
    ArrayListExt.OnItemPropertyChanged(Object, SyncfusionPropertyChangedEventArgs)
    ArrayListExt.RaiseCollectionChanged(CollectionChangeEventArgs)
    ArrayListExt.ReleaseHandler(Object)
    ArrayListExt.RemoveAt(Int32)
    ArrayListExt.RemoveRange(Int32, Int32)
    ArrayListExt.ResumeEvents(Boolean)
    ArrayListExt.Reverse(Int32, Int32)
    ArrayListExt.Sort(Int32, Int32, IComparer)
    ArrayListExt.SuspendEvents()
    System.Collections.ArrayList.Adapter(System.Collections.IList)
    System.Collections.ArrayList.AddRange(System.Collections.ICollection)
    System.Collections.ArrayList.BinarySearch(System.Int32, System.Int32, System.Object, System.Collections.IComparer)
    System.Collections.ArrayList.BinarySearch(System.Object)
    System.Collections.ArrayList.BinarySearch(System.Object, System.Collections.IComparer)
    System.Collections.ArrayList.Capacity
    System.Collections.ArrayList.Clone()
    System.Collections.ArrayList.Contains(System.Object)
    System.Collections.ArrayList.CopyTo(System.Array)
    System.Collections.ArrayList.CopyTo(System.Array, System.Int32)
    System.Collections.ArrayList.CopyTo(System.Int32, System.Array, System.Int32, System.Int32)
    System.Collections.ArrayList.Count
    System.Collections.ArrayList.FixedSize(System.Collections.ArrayList)
    System.Collections.ArrayList.FixedSize(System.Collections.IList)
    System.Collections.ArrayList.GetEnumerator()
    System.Collections.ArrayList.GetEnumerator(System.Int32, System.Int32)
    System.Collections.ArrayList.GetRange(System.Int32, System.Int32)
    System.Collections.ArrayList.IndexOf(System.Object)
    System.Collections.ArrayList.IndexOf(System.Object, System.Int32)
    System.Collections.ArrayList.IndexOf(System.Object, System.Int32, System.Int32)
    System.Collections.ArrayList.IsSynchronized
    System.Collections.ArrayList.LastIndexOf(System.Object)
    System.Collections.ArrayList.LastIndexOf(System.Object, System.Int32)
    System.Collections.ArrayList.LastIndexOf(System.Object, System.Int32, System.Int32)
    System.Collections.ArrayList.ReadOnly(System.Collections.ArrayList)
    System.Collections.ArrayList.ReadOnly(System.Collections.IList)
    System.Collections.ArrayList.Remove(System.Object)
    System.Collections.ArrayList.Repeat(System.Object, System.Int32)
    System.Collections.ArrayList.Reverse()
    System.Collections.ArrayList.SetRange(System.Int32, System.Collections.ICollection)
    System.Collections.ArrayList.Sort()
    System.Collections.ArrayList.Sort(System.Collections.IComparer)
    System.Collections.ArrayList.Synchronized(System.Collections.ArrayList)
    System.Collections.ArrayList.Synchronized(System.Collections.IList)
    System.Collections.ArrayList.SyncRoot
    System.Collections.ArrayList.ToArray()
    System.Collections.ArrayList.ToArray(System.Type)
    System.Collections.ArrayList.TrimToSize()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.Collections
    Assembly: Syncfusion.Shared.Base.dll
    Syntax
    public class VisuallyInheritableList : ArrayListExt, IList, ICollection, IEnumerable, ICloneable
    Remarks

    A "visually inheritable list" is one that keeps track of and persists in code, the incremental changes applied on the list in a derived class's designer.

    You should typically not use the methods and properties exposed by this class in your code. The properties are meant to be used during design-time to store the incremental changes done at design-time.

    Constructors

    VisuallyInheritableList()

    Overloaded. Creates a new instance of the VisuallyInheritableList without any support for visual inheritance.

    Declaration
    public VisuallyInheritableList()

    VisuallyInheritableList(IDesignable)

    Creates a new instance of the VisuallyInheritableList with support for visual inheritance provided based on the specified parent's design state.

    Declaration
    public VisuallyInheritableList(IDesignable parent)
    Parameters
    Type Name Description
    IDesignable parent

    A reference to the IDesignable interface that typically contains this collection.

    Remarks

    This list keeps track of the incremental changes happening in a designer by following the parent's DesignMode property.

    VisuallyInheritableList(Object[])

    Creates a new instance of the VisuallyInheritableList class and inserts the items specified in the array into the VisuallyInheritableList without any support for visual inheritance.

    Declaration
    public VisuallyInheritableList(object[] items)
    Parameters
    Type Name Description
    System.Object[] items

    An array of objects.

    Properties

    DesignTimeChanges

    Gets / sets the incremental changes done at design-time.

    Declaration
    public IntListDesignTime DesignTimeChanges { get; set; }
    Property Value
    Type
    IntListDesignTime

    Parent

    Gets / sets the associated parent.

    Declaration
    public IDesignable Parent { get; set; }
    Property Value
    Type
    IDesignable

    Methods

    GetDesignTimeChanges()

    Returns a list representing the incremental changes made at design-time.

    Declaration
    protected virtual IntListDesignTime GetDesignTimeChanges()
    Returns
    Type Description
    IntListDesignTime

    A list representing the new position of the items based on the position of the items in the base class.

    Remarks

    This list will be provided in a call to SetDesignTimeChanges(ArrayList) to reapply the changes done during this design-time.

    IsIdenticalObjects(Object, Object)

    Compares two objects for equality.

    Declaration
    protected virtual bool IsIdenticalObjects(object item1, object item2)
    Parameters
    Type Name Description
    System.Object item1

    Object 1.

    System.Object item2

    Object 2.

    Returns
    Type Description
    System.Boolean

    True if identical; False otherwise.

    Remarks

    The base class version uses the "==" operator to perform the comparison. This could be overridden to support boxed types (int, for example), where 2 integers should be compared based on their value rather than the boxed object instance.

    OnCollectionChanged(CollectionChangeEventArgs)

    Declaration
    protected override void OnCollectionChanged(CollectionChangeEventArgs args)
    Parameters
    Type Name Description
    System.ComponentModel.CollectionChangeEventArgs args
    Overrides
    ArrayListExt.OnCollectionChanged(CollectionChangeEventArgs)

    OnCollectionChanging()

    Overridden. See Syncfusion.Collections.ArrayListExt.OnCollectionChanged.

    Declaration
    protected override void OnCollectionChanging()
    Overrides
    ArrayListExt.OnCollectionChanging()

    ReinitBaseClassCopy()

    Declaration
    public void ReinitBaseClassCopy()

    SetDesignTimeChanges(ArrayList)

    Called to apply the changes made in the previous design-time invoke.

    Declaration
    protected virtual void SetDesignTimeChanges(ArrayList newPositionList)
    Parameters
    Type Name Description
    System.Collections.ArrayList newPositionList

    A list specifying the new positions based on the positions of the exisiting items set in the base class.

    ShouldContinueIfItemsCountChanged()

    Indicates whether to continue applying incremental-changes done in the previous design-time invocation.

    Declaration
    protected virtual bool ShouldContinueIfItemsCountChanged()
    Returns
    Type Description
    System.Boolean

    True to continue; False otherwise.

    Remarks

    This method is called if it seems like items were removed in the base class since the last invoke of this design-time.

    Implements

    System.Collections.IList
    System.Collections.ICollection
    System.Collections.IEnumerable
    System.ICloneable

    Extension Methods

    EnumerableExtensions.GetElementType(IEnumerable)
    EnumerableExtensions.GetItemPropertyInfo(IEnumerable)
    FunctionalExtensions.ForEach<T>(IEnumerable, Action<T>)
    FunctionalExtensions.ToList<T>(IEnumerable)
    FunctionalExtensions.MoveTo(IList, Int32, Int32)
    QueryableExtensions.OfQueryable(IEnumerable)
    QueryableExtensions.OfQueryable(IEnumerable, Type)
    QueryableExtensions.GroupByMany<TElement>(IEnumerable, Type, List<Func<TElement, Object>>)
    QueryableExtensions.GroupByMany(IEnumerable, Type, Func<String, Expression>, String[])
    QueryableExtensions.GroupByMany(IEnumerable, Type, List<SortDescriptor>, Dictionary<String, IComparer<Object>>, Func<String, Expression>, String[])
    QueryableExtensions.GroupByMany(IEnumerable, Type, List<SortDescriptor>, Func<String, Expression>, String[])
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved