Class FormatsCollection
Represents a class that contains the collection of formats.
Inherited Members
Namespace: Syncfusion.Windows.Forms.Edit.Implementation.Formatting
Assembly: Syncfusion.Edit.Windows.dll
Syntax
public class FormatsCollection : EventBaseCollection
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. |