menu

WinForms

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

    Show / Hide Table of Contents

    Class ToolCollection

    A collection of Tool objects.

    Inheritance
    System.Object
    CollectionEx
    ToolCollection
    Implements
    System.Collections.IList
    System.Collections.ICollection
    System.Collections.IEnumerable
    System.ICloneable
    System.Runtime.Serialization.ISerializable
    IServiceReferenceHolder
    IServiceReferenceProvider
    Inherited Members
    CollectionEx.AddRange(ICollection)
    CollectionEx.AddValue(Object)
    CollectionEx.Clear()
    CollectionEx.CopyTo(Array, Int32)
    CollectionEx.Count
    CollectionEx.EventSink
    CollectionEx.GetObjectData(SerializationInfo, StreamingContext)
    CollectionEx.IEnumerable.GetEnumerator()
    CollectionEx.IList.Add(Object)
    CollectionEx.IList.Clear()
    CollectionEx.IList.Contains(Object)
    CollectionEx.IList.get_Item(Int32)
    CollectionEx.IList.IndexOf(Object)
    CollectionEx.IList.Insert(Int32, Object)
    CollectionEx.IList.IsFixedSize
    CollectionEx.IList.IsReadOnly
    CollectionEx.IList.Item[Int32]
    CollectionEx.IList.Remove(Object)
    CollectionEx.IList.RemoveAt(Int32)
    CollectionEx.IList.set_Item(Int32, Object)
    CollectionEx.InsertValue(Int32, Object)
    CollectionEx.IsEmpty
    CollectionEx.IsSynchronized
    CollectionEx.Members
    CollectionEx.OnChangesComplete(CollectionExEventArgs)
    CollectionEx.OnChanging(CollectionExEventArgs)
    CollectionEx.Owner
    CollectionEx.ProvideServiceReference(RuntimeTypeHandle)
    CollectionEx.QuietMode
    CollectionEx.RaiseChangesCompleteEvent(CollectionExEventArgs)
    CollectionEx.RaiseChangingEvent(CollectionExEventArgs)
    CollectionEx.RemoveAt(Int32)
    CollectionEx.RemoveRange(ICollection)
    CollectionEx.RemoveValue(Object)
    CollectionEx.Set(Int32, Object)
    CollectionEx.Sort(IComparer)
    CollectionEx.SyncRoot
    CollectionEx.UpdateReferences
    CollectionEx.UpdateServiceReferences(CollectionExEventArgs)
    CollectionEx.UpdateServiceReferences(IServiceReferenceProvider)
    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.Windows.Forms.Diagram
    Assembly: Syncfusion.Diagram.Windows.dll
    Syntax
    public class ToolCollection : CollectionEx, IList, ICollection, IEnumerable, ICloneable, ISerializable, IServiceReferenceHolder, IServiceReferenceProvider
    Remarks

    Tool

    Constructors

    ToolCollection()

    Initializes a new instance of the ToolCollection class.

    Declaration
    public ToolCollection()

    ToolCollection(ToolCollection)

    Initializes a new instance of the ToolCollection class.

    Declaration
    public ToolCollection(ToolCollection src)
    Parameters
    Type Name Description
    ToolCollection src

    The source instance.

    Properties

    Item[Int32]

    Gets or sets the Tool at the specified index.

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

    The index of the tool.

    Property Value
    Type Description
    Tool

    The tool.

    Methods

    Add(Tool)

    Adds the specified tool.

    Declaration
    public int Add(Tool tool)
    Parameters
    Type Name Description
    Tool tool

    The tool.

    Returns
    Type Description
    System.Int32

    The tool index.

    Clone()

    Creates a new object that is a copy of the current instance.

    Declaration
    public override object Clone()
    Returns
    Type Description
    System.Object

    A new object that is a copy of this instance.

    Overrides
    CollectionEx.Clone()

    Contains(Tool)

    Determines whether collection contains the specified tool.

    Declaration
    public bool Contains(Tool tool)
    Parameters
    Type Name Description
    Tool tool

    The tool.

    Returns
    Type Description
    System.Boolean

    true if collection contains the specified tool; otherwise, false.

    CopyTo(Tool[], Int32)

    Copies all collection member to array.

    Declaration
    public void CopyTo(Tool[] tools, int index)
    Parameters
    Type Name Description
    Tool[] tools

    The tools.

    System.Int32 index

    The index.

    GetEnumerator()

    Gets the enumerator.

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

    The tool enumerator.

    Overrides
    CollectionEx.GetEnumerator()

    IndexOf(Tool)

    Gets the specified tool index in current collection.

    Declaration
    public int IndexOf(Tool tool)
    Parameters
    Type Name Description
    Tool tool

    The tool.

    Returns
    Type Description
    System.Int32

    The index.

    Insert(Int32, Tool)

    Inserts the specified index.

    Declaration
    public void Insert(int index, Tool tool)
    Parameters
    Type Name Description
    System.Int32 index

    The index.

    Tool tool

    The tool.

    OnValidate(ICollection)

    Validates given values.

    Declaration
    protected override void OnValidate(ICollection values)
    Parameters
    Type Name Description
    System.Collections.ICollection values

    values to validate

    Overrides
    CollectionEx.OnValidate(ICollection)
    Exceptions
    Type Condition
    System.InvalidCastException

    OnValidate(Object)

    Validates given value.

    Declaration
    protected override void OnValidate(object value)
    Parameters
    Type Name Description
    System.Object value

    value to validate

    Overrides
    CollectionEx.OnValidate(Object)
    Exceptions
    Type Condition
    System.InvalidCastException

    Remove(Tool)

    Removes the specified tool.

    Declaration
    public void Remove(Tool tool)
    Parameters
    Type Name Description
    Tool tool

    The tool.

    Implements

    System.Collections.IList
    System.Collections.ICollection
    System.Collections.IEnumerable
    System.ICloneable
    System.Runtime.Serialization.ISerializable
    IServiceReferenceHolder
    IServiceReferenceProvider

    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