menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class FormatsCollection - API Reference

    Show / Hide Table of Contents

    Class FormatsCollection

    Represents a class that contains the collection of formats.

    Inheritance
    System.Object
    System.Collections.CollectionBase
    EventBaseCollection
    FormatsCollection
    Implements
    System.Collections.IList
    System.Collections.ICollection
    System.Collections.IEnumerable
    Inherited Members
    EventBaseCollection.OnClear()
    EventBaseCollection.OnClearComplete()
    EventBaseCollection.OnInsert(Int32, Object)
    EventBaseCollection.OnInsertComplete(Int32, Object)
    EventBaseCollection.OnRemove(Int32, Object)
    EventBaseCollection.OnRemoveComplete(Int32, Object)
    EventBaseCollection.OnSet(Int32, Object, Object)
    EventBaseCollection.OnSetComplete(Int32, Object, Object)
    EventBaseCollection.RaiseOnChangedEvent()
    EventBaseCollection.QuietMode
    EventBaseCollection.OnChanged
    EventBaseCollection.Clearing
    EventBaseCollection.Cleared
    EventBaseCollection.Inserting
    EventBaseCollection.Inserted
    EventBaseCollection.Removing
    EventBaseCollection.Removed
    EventBaseCollection.Setting
    EventBaseCollection.Set
    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.GetEnumerator()
    System.Collections.CollectionBase.OnValidate(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.Edit.Implementation.Formatting
    Assembly: Syncfusion.Edit.Windows.dll
    Syntax
    public class FormatsCollection : EventBaseCollection, IList, ICollection, IEnumerable

    Constructors

    FormatsCollection()

    Declaration
    public FormatsCollection()

    Properties

    Item[Int32]

    Gets or sets the specified index element from snippet format collection.

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

    Methods

    Add(ISnippetFormat)

    Adds an item to the IList.

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

    Value to be added.

    Returns
    Type Description
    System.Int32

    Index of the format in collection.

    AddRange(ICollection)

    Add collection of formats to the list.

    Declaration
    public void AddRange(ICollection collection)
    Parameters
    Type Name Description
    System.Collections.ICollection collection

    Collection of SnippetFormats to be added.

    Contains(ISnippetFormat)

    Determines whether the IList contains a specific value.

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

    Format to be found.

    Returns
    Type Description
    System.Boolean

    True if IList contains a specific value.

    IndexOf(ISnippetFormat)

    Determines the index of a specific item in the IList.

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

    Format to be found.

    Returns
    Type Description
    System.Int32

    Index of the format in collection or -1.

    Insert(Int32, ISnippetFormat)

    Inserts an item to the IList at the specified position.

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

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

    ISnippetFormat value

    Format to be inserted.

    Remove(ISnippetFormat)

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

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

    Format to be removed.

    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[])
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved