WinForms

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

    Show / Hide Table of Contents

    Class FieldDefinitionCollection

    A collection that stores FieldDefinition objects.

    Inheritance
    System.Object
    System.Collections.CollectionBase
    FieldDefinitionCollection
    Implements
    System.Collections.IList
    System.Collections.ICollection
    System.Collections.IEnumerable
    Inherited Members
    System.Collections.CollectionBase.Clear()
    System.Collections.CollectionBase.RemoveAt(System.Int32)
    System.Collections.CollectionBase.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
    System.Collections.CollectionBase.System.Collections.IList.get_Item(System.Int32)
    System.Collections.CollectionBase.System.Collections.IList.set_Item(System.Int32, System.Object)
    System.Collections.CollectionBase.System.Collections.IList.Contains(System.Object)
    System.Collections.CollectionBase.System.Collections.IList.Add(System.Object)
    System.Collections.CollectionBase.System.Collections.IList.Remove(System.Object)
    System.Collections.CollectionBase.System.Collections.IList.IndexOf(System.Object)
    System.Collections.CollectionBase.System.Collections.IList.Insert(System.Int32, System.Object)
    System.Collections.CollectionBase.OnSet(System.Int32, System.Object, System.Object)
    System.Collections.CollectionBase.OnInsert(System.Int32, System.Object)
    System.Collections.CollectionBase.OnClear()
    System.Collections.CollectionBase.OnRemove(System.Int32, System.Object)
    System.Collections.CollectionBase.OnValidate(System.Object)
    System.Collections.CollectionBase.OnSetComplete(System.Int32, System.Object, System.Object)
    System.Collections.CollectionBase.OnInsertComplete(System.Int32, System.Object)
    System.Collections.CollectionBase.OnClearComplete()
    System.Collections.CollectionBase.OnRemoveComplete(System.Int32, System.Object)
    System.Collections.CollectionBase.InnerList
    System.Collections.CollectionBase.List
    System.Collections.CollectionBase.Capacity
    System.Collections.CollectionBase.Count
    System.Collections.CollectionBase.System.Collections.IList.IsReadOnly
    System.Collections.CollectionBase.System.Collections.IList.IsFixedSize
    System.Collections.CollectionBase.System.Collections.ICollection.IsSynchronized
    System.Collections.CollectionBase.System.Collections.ICollection.SyncRoot
    System.Collections.CollectionBase.System.Collections.IList.Item[System.Int32]
    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.Forms.Tools
    Assembly: Syncfusion.Tools.Windows.dll
    Syntax
    public class FieldDefinitionCollection : CollectionBase, IList, ICollection, IEnumerable

    Constructors

    FieldDefinitionCollection()

    Initializes a new instance of the FieldDefinitionCollection class.

    Declaration
    public FieldDefinitionCollection()

    FieldDefinitionCollection(FieldDefinition[])

    Initializes a new instance of the FieldDefinitionCollection class.

    Declaration
    public FieldDefinitionCollection(FieldDefinition[] value)
    Parameters
    Type Name Description
    FieldDefinition[] value

    An array of FieldDefinition objects with which to intialize the collection

    FieldDefinitionCollection(FieldDefinitionCollection)

    Initializes a new instance of the FieldDefinitionCollection class.

    Declaration
    public FieldDefinitionCollection(FieldDefinitionCollection value)
    Parameters
    Type Name Description
    FieldDefinitionCollection value

    A FieldDefinitionCollection from which the contents are copied

    Properties

    Item[Int32]

    Gets / sets the field definition at the specified index of the FieldDefinition.

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

    The zero-based index of the entry to locate in the collection.

    Property Value
    Type Description
    FieldDefinition

    The entry at the specified index of the collection.

    Exceptions
    Type Condition
    System.ArgumentOutOfRangeException

    index is outside the valid range of indexes for the collection.

    Methods

    Add(FieldDefinition)

    Adds a FieldDefinition with the specified value to the FieldDefinitionCollection .

    Declaration
    public int Add(FieldDefinition value)
    Parameters
    Type Name Description
    FieldDefinition value

    The FieldDefinition to add.

    Returns
    Type Description
    System.Int32

    The index at which the new element was inserted.

    See Also
    AddRange(FieldDefinition[])

    AddRange(FieldDefinition[])

    Copies the elements of an array to the end of the FieldDefinitionCollection.

    Declaration
    public void AddRange(FieldDefinition[] value)
    Parameters
    Type Name Description
    FieldDefinition[] value

    An array of type FieldDefinition containing the objects to add to the collection.

    See Also
    Add(FieldDefinition)

    AddRange(FieldDefinitionCollection)

    Adds the contents of another FieldDefinitionCollection to the end of the collection.

    Declaration
    public void AddRange(FieldDefinitionCollection value)
    Parameters
    Type Name Description
    FieldDefinitionCollection value

    A FieldDefinitionCollection containing the objects to add to the collection.

    See Also
    Add(FieldDefinition)

    Contains(FieldDefinition)

    Indicates whether the FieldDefinitionCollection contains the specified FieldDefinition.

    Declaration
    public bool Contains(FieldDefinition value)
    Parameters
    Type Name Description
    FieldDefinition value

    The FieldDefinition to locate.

    Returns
    Type Description
    System.Boolean

    true if the FieldDefinition is contained in the collection; false otherwise.

    See Also
    IndexOf(FieldDefinition)

    CopyTo(FieldDefinition[], Int32)

    Copies the FieldDefinitionCollection values to a one-dimensional System.Array instance at the specified index.

    Declaration
    public void CopyTo(FieldDefinition[] array, int index)
    Parameters
    Type Name Description
    FieldDefinition[] array

    The one-dimensional System.Array that is the destination of the values copied from FieldDefinitionCollection .

    System.Int32 index

    The index in array where copying begins.

    Exceptions
    Type Condition
    System.ArgumentException

    array is multidimensional.

    -or-

    The number of elements in the FieldDefinitionCollection is greater than the available space between arrayIndex and the end of array.

    System.ArgumentNullException

    array is null.

    System.ArgumentOutOfRangeException

    arrayIndex is less than array's lowbound.

    See Also
    System.Array

    GetEnumerator()

    Returns an enumerator that can iterate through the FieldDefinitionCollection .

    Declaration
    public FieldDefinitionCollection.FieldDefinitionEnumerator GetEnumerator()
    Returns
    Type Description
    FieldDefinitionCollection.FieldDefinitionEnumerator

    Returns FieldDefenition

    See Also
    System.Collections.IEnumerator

    IndexOf(FieldDefinition)

    Returns the index of a FieldDefinition in the FieldDefinitionCollection .

    Declaration
    public int IndexOf(FieldDefinition value)
    Parameters
    Type Name Description
    FieldDefinition value

    The FieldDefinition to locate.

    Returns
    Type Description
    System.Int32

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

    See Also
    Contains(FieldDefinition)

    Insert(Int32, FieldDefinition)

    Inserts a FieldDefinition into the FieldDefinitionCollection at the specified index.

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

    The zero-based index where value should be inserted.

    FieldDefinition value

    The FieldDefinition to insert.

    Remove(FieldDefinition)

    Removes a specific FieldDefinition from the FieldDefinitionCollection .

    Declaration
    public void Remove(FieldDefinition value)
    Parameters
    Type Name Description
    FieldDefinition value

    The FieldDefinition to remove from the FieldDefinitionCollection .

    Exceptions
    Type Condition
    System.ArgumentException

    value is not found in the Collection.

    Implements

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

    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[])

    See Also

    FieldDefinitionCollection
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved