## VectorLayer.ReplaceAt method

Replace the [`Feature`](../../feature/) at the specified index.

```csharp
public virtual void ReplaceAt(int index, Feature feature)
```

| Parameter | Type | Description |
| --- | --- | --- |
| index | Int32 | The index of the feature. |
| feature | Feature | The feature to set. |

### Exceptions

| exception | condition |
| --- | --- |
| InvalidOperationException | is thrown if the layer is not editable. |
| ArgumentOutOfRangeException | Index is out of range. |
| IOException | An I/O error occurred. |

### See Also

* class [Feature](../../feature/)
* class [VectorLayer](../)
* namespace [Aspose.Gis](../../vectorlayer/)
* assembly [Aspose.GIS](../../../)


