# SuggestionProviders
Class
## About
`SuggestionProviders` holds the editor's `Suggestions.Provider` objects, keyed by `Provider.Identifier`. Each `Editor` creates one holding a `Suggestions.EmojiProvider`, which inserts emoji by shortcode such as `:smile`; read it from the editor's read-only `SuggestionProviders` property, and remove "emoji" to turn emoji off.
```xojo
Var people As New GraffitiProEditor.Suggestions.Provider("people", "@")
Editor.SuggestionProviders.Add(people)
Editor.SuggestionProviders.Remove("people")
```
The order is the order the editor asks providers in when text is typed, so `AddAt(0, provider)` gives a provider priority. `Add` replaces a provider with the same identifier in place. A node's own `Node.SuggestionProvider` takes priority over every provider in this list.
## Methods
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| Add | item As GraffitiProEditor.Suggestions.Provider | (None) | Adds a suggestion provider to the end of the list. A suggestion provider with the same identifier is replaced in place. |
| AddAt | index As Integer <br> item As GraffitiProEditor.Suggestions.Provider | (None) | Inserts a suggestion provider at a zero-based position, removing any suggestion provider with the same identifier first. |
| IndexOf | item As GraffitiProEditor.Suggestions.Provider | Integer | Returns the position of the supplied suggestion provider, or -1 when it is not in the list. |
| Item | identifier As String | GraffitiProEditor.Suggestions.Provider | Returns the suggestion provider with the supplied identifier, or Nil. |
| ItemAt | index As Integer | GraffitiProEditor.Suggestions.Provider | Returns the suggestion provider at a zero-based position, or Nil when the position is out of range. |
| Items | (None) | GraffitiProEditor.Suggestions.Provider | Returns a copy of the list of suggestion providers, in order. |
| LastIndex | (None) | Integer | Returns the position of the last suggestion provider, or -1 when the list is empty. |
| Remove | item As GraffitiProEditor.Suggestions.Provider | (None) | Removes the supplied suggestion provider, if it is in the list. |
| Remove | identifier As String | (None) | Removes the suggestion provider with the supplied identifier, if there is one. |
| RemoveAll | (None) | (None) | Removes every suggestion provider. |
| RemoveAt | index As Integer | (None) | Removes the suggestion provider at a zero-based position. A position out of range does nothing. |
## Properties
| Name | Type | Default Value | Description |
| --- | :---: | :---: | --- |
| Owner | GraffitiProEditor.Editor | (None) | Returns the editor this list belongs to. |