WPF

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

    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
    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: Syncfusion.Windows.Tools.Controls
    Assembly: Syncfusion.Tools.Wpf.dll
    Syntax
    public class LogicalElementCollection : 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 Description
    System.Int32

    Count

    Gets the number of elements contained in the LogicalElementCollection.

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

    IsSynchronized

    Gets a value indicating whether IsSynchronized of the LogicalElementCollection.

    Declaration
    public virtual bool IsSynchronized { get; }
    Property Value
    Type Description
    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 Description
    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()

    Explicit Interface Implementations

    IList.Add(Object)

    Adds an item to the System.Collections.IList.

    Declaration
    int IList.Add(object value)
    Parameters
    Type Name Description
    System.Object value

    The System.Object to add to the System.Collections.IList.

    Returns
    Type Description
    System.Int32

    The position into which the new element was inserted.

    Exceptions
    Type Condition
    System.NotSupportedException

    The System.Collections.IList is read-only.-or- The System.Collections.IList has a fixed size.

    IList.Contains(Object)

    Determines whether the System.Collections.IList contains a specific value.

    Declaration
    bool IList.Contains(object value)
    Parameters
    Type Name Description
    System.Object value

    The System.Object to locate in the System.Collections.IList.

    Returns
    Type Description
    System.Boolean

    true if the System.Object is found in the System.Collections.IList; otherwise, false.

    IList.get_Item(Int32)

    Declaration
    object IList.get_Item(int index)
    Parameters
    Type Name Description
    System.Int32 index
    Returns
    Type Description
    System.Object

    IList.IndexOf(Object)

    Determines the index of a specific item in the System.Collections.IList.

    Declaration
    int IList.IndexOf(object value)
    Parameters
    Type Name Description
    System.Object value

    The System.Object to locate in the System.Collections.IList.

    Returns
    Type Description
    System.Int32

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

    IList.Insert(Int32, Object)

    Inserts an item to the System.Collections.IList at the specified index.

    Declaration
    void IList.Insert(int index, object value)
    Parameters
    Type Name Description
    System.Int32 index

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

    System.Object value

    The System.Object to insert into the System.Collections.IList.

    Exceptions
    Type Condition
    System.ArgumentOutOfRangeException

    index is not a valid index in the System.Collections.IList.

    System.NotSupportedException

    The System.Collections.IList is read-only.-or- The System.Collections.IList has a fixed size.

    System.NullReferenceException

    value is null reference in the System.Collections.IList.

    IList.IsFixedSize

    Gets a value indicating whether the System.Collections.IList has a fixed size.

    Declaration
    bool IList.IsFixedSize { get; }
    Returns
    Type Description
    System.Boolean

    IList.IsReadOnly

    Gets a value indicating whether the System.Collections.IList is read-only.

    Declaration
    bool IList.IsReadOnly { get; }
    Returns
    Type Description
    System.Boolean

    IList.Item[Int32]

    Gets or sets the System.Object at the specified index.

    Declaration
    object IList.this[] { get; set; }
    Parameters
    Type Name Description
    System.Int32 index

    The index.

    Returns
    Type Description
    System.Object

    return list.

    IList.Remove(Object)

    Removes the first occurrence of a specific object from the System.Collections.IList.

    Declaration
    void IList.Remove(object value)
    Parameters
    Type Name Description
    System.Object value

    The System.Object to remove from the System.Collections.IList.

    Exceptions
    Type Condition
    System.NotSupportedException

    The System.Collections.IList is read-only.-or- The System.Collections.IList has a fixed size.

    IList.set_Item(Int32, Object)

    Declaration
    void IList.set_Item(int index, object value)
    Parameters
    Type Name Description
    System.Int32 index
    System.Object value

    Implements

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

    Extension Methods

    FunctionalExtensions.ForEach<T>(IEnumerable, Action<T>)
    FunctionalExtensions.ToList<T>(IEnumerable)
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved