alexa
menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class LogicalElementCollection

    Specify the LogicalElementCollection class.

    Inheritance
    System.Object
    LogicalElementCollection
    Implements
    System.Collections.IList
    System.Collections.ICollection
    System.Collections.IEnumerable
    Namespace: Syncfusion.Windows.Tools.Controls
    Assembly: Syncfusion.Tools.Wpf.dll
    Syntax
    public class LogicalElementCollection : Object, IList, ICollection, IEnumerable

    Constructors

    LogicalElementCollection(DockingManager)

    Initializes a new instance of the LogicalElementCollection class.

    Declaration
    public LogicalElementCollection(DockingManager logicalParent)
    Parameters
    Type Name Description
    DockingManager logicalParent

    The logical parent.

    Properties

    Capacity

    Gets or sets Capacity of the LogicalElementCollection.

    Declaration
    public virtual int Capacity { get; set; }
    Property Value
    Type
    System.Int32

    Count

    Gets the number of elements contained in the LogicalElementCollection.

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

    IsSynchronized

    Gets a value indicating whether IsSynchronized of the LogicalElementCollection.

    Declaration
    public virtual bool IsSynchronized { get; }
    Property Value
    Type
    System.Boolean

    Item[Int32]

    Gets or sets the element at the specified index.

    Declaration
    public virtual FrameworkElement this[int index] { get; set; }
    Parameters
    Type Name Description
    System.Int32 index

    The zero-based index of the element to get or set.

    Property Value
    Type Description
    System.Windows.FrameworkElement

    The element at the specified index.

    SyncRoot

    Gets SyncRoot of the LogicalElementCollection.

    Declaration
    public virtual object SyncRoot { get; }
    Property Value
    Type
    System.Object

    Methods

    Add(FrameworkElement)

    Adds an item to the LogicalElementCollection children.

    Declaration
    public virtual int Add(FrameworkElement element)
    Parameters
    Type Name Description
    System.Windows.FrameworkElement element

    The object to add to the LogicalElementCollection children.

    Returns
    Type Description
    System.Int32

    Index of the added item.

    Clear()

    Removes all items from the LogicalElementCollection children.

    Declaration
    public virtual void Clear()

    ClearCollection()

    Method invokes to Clears the collection.

    Declaration
    public void ClearCollection()

    Contains(FrameworkElement)

    Determines whether the LogicalElementCollection children contains a specific value.

    Declaration
    public virtual bool Contains(FrameworkElement element)
    Parameters
    Type Name Description
    System.Windows.FrameworkElement element

    The object to locate in the LogicalElementCollection children.

    Returns
    Type Description
    System.Boolean

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

    CopyTo(Array, Int32)

    Copies the elements of the LogicalElementCollection children to an array, starting at a particular array index.

    Declaration
    public virtual void CopyTo(Array array, int index)
    Parameters
    Type Name Description
    System.Array array

    The one-dimensional array that is the destination of the elements copied from LogicalElementCollection children. The array must have zero-based indexing.

    System.Int32 index

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

    CopyTo(FrameworkElement[], Int32)

    Copies the elements of the LogicalElementCollection children to an array, starting at a particular array index.

    Declaration
    public virtual void CopyTo(FrameworkElement[] array, int index)
    Parameters
    Type Name Description
    System.Windows.FrameworkElement[] array

    The one-dimensional array that is the destination of the elements copied from LogicalElementCollection children. The array must have zero-based indexing.

    System.Int32 index

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

    ForEach(Action<FrameworkElement>)

    Method used to iterate the child using Foreach.

    Declaration
    public void ForEach(Action<FrameworkElement> action)
    Parameters
    Type Name Description
    System.Action<System.Windows.FrameworkElement> action

    The action.

    GetEnumerator()

    Returns an enumerator that iterates through the collection.

    Declaration
    public virtual IEnumerator GetEnumerator()
    Returns
    Type Description
    System.Collections.IEnumerator

    A list of items that can be used to iterate through the collection.

    IndexOf(FrameworkElement)

    Determines the index of a specific item in the LogicalElementCollection children.

    Declaration
    public virtual int IndexOf(FrameworkElement element)
    Parameters
    Type Name Description
    System.Windows.FrameworkElement element

    The object to locate in the LogicalElementCollection children.

    Returns
    Type Description
    System.Int32

    The index of item if found in the list; otherwise, -1.

    Insert(Int32, FrameworkElement)

    Inserts an item to the LogicalElementCollection children at the specified index.

    Declaration
    public virtual void Insert(int index, FrameworkElement element)
    Parameters
    Type Name Description
    System.Int32 index

    The zero-based index at which item should be inserted.

    System.Windows.FrameworkElement element

    The object to insert into the LogicalElementCollection children.

    Remove(FrameworkElement)

    Removes the first occurrence of a specific object from the LogicalElementCollection children.

    Declaration
    public virtual void Remove(FrameworkElement element)
    Parameters
    Type Name Description
    System.Windows.FrameworkElement element

    The object to remove from the LogicalElementCollection children.

    RemoveAt(Int32)

    Removes the LogicalElementCollection children item at the specified index.

    Declaration
    public virtual void RemoveAt(int index)
    Parameters
    Type Name Description
    System.Int32 index

    The zero-based index of the item to remove.

    RemoveRange(Int32, Int32)

    Removes range of items from the LogicalElementCollection children.

    Declaration
    public virtual void RemoveRange(int index, int count)
    Parameters
    Type Name Description
    System.Int32 index

    The zero-based index from which removing starts.

    System.Int32 count

    The number of items to remove.

    VerifyWriteAccess()

    Used for writing access verification in the LogicalElementCollection.

    Declaration
    protected virtual void VerifyWriteAccess()

    Implements

    System.Collections.IList
    System.Collections.ICollection
    System.Collections.IEnumerable
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved