Class FormatsCollection
Represents a class that contains the collection of formats.
Implements
System.Collections.IList
System.Collections.ICollection
System.Collections.IEnumerable
Inherited Members
System.Collections.CollectionBase.Capacity
System.Collections.CollectionBase.Clear()
System.Collections.CollectionBase.Count
System.Collections.CollectionBase.GetEnumerator()
System.Collections.CollectionBase.InnerList
System.Collections.CollectionBase.List
System.Collections.CollectionBase.OnValidate(System.Object)
System.Collections.CollectionBase.RemoveAt(System.Int32)
System.Collections.CollectionBase.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
System.Collections.CollectionBase.System.Collections.ICollection.IsSynchronized
System.Collections.CollectionBase.System.Collections.ICollection.SyncRoot
System.Collections.CollectionBase.System.Collections.IList.Add(System.Object)
System.Collections.CollectionBase.System.Collections.IList.Contains(System.Object)
System.Collections.CollectionBase.System.Collections.IList.get_Item(System.Int32)
System.Collections.CollectionBase.System.Collections.IList.IndexOf(System.Object)
System.Collections.CollectionBase.System.Collections.IList.Insert(System.Int32, System.Object)
System.Collections.CollectionBase.System.Collections.IList.IsFixedSize
System.Collections.CollectionBase.System.Collections.IList.IsReadOnly
System.Collections.CollectionBase.System.Collections.IList.Item[System.Int32]
System.Collections.CollectionBase.System.Collections.IList.Remove(System.Object)
System.Collections.CollectionBase.System.Collections.IList.set_Item(System.Int32, System.Object)
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.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 |
---|
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