Method Insert
Insert(Int32, T)
Inserts an item to the collection at the specified index.
Declaration
public void Insert(int index, T item)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | The zero-based index at which item should be inserted. |
| T | item | The object to insert into the collection. |
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 100.13 |
| .NET Framework | 100.0 - 100.8 |
| .NET 5 | 100.11 |
| .NET Core 3.1 | 100.7 - 100.8 |
| Xamarin.Android | 100.0 - 100.13 |
| Xamarin.iOS | 100.0 - 100.8 |
| UWP | 100.0 - 100.15 |
Relevant samples
Manage operational layers: Add, remove, and reorder operational layers in a map.