VectorLayer.Add
Add(Feature)
Adds a new feature to the layer, if supported by the VectorLayer
’s Driver
.
public void Add(Feature feature)
Parameter | Type | Description |
---|
feature | Feature | The feature to add. |
Exceptions
exception | condition |
---|
InvalidOperationException | is thrown if the layer is read-only. |
See Also
Add(Feature, IFeatureStyle)
Adds a new feature with the specified style to the layer, if supported by the VectorLayer
’s Driver
.
public virtual void Add(Feature feature, IFeatureStyle style)
Parameter | Type | Description |
---|
feature | Feature | The feature to add. |
style | IFeatureStyle | The feature style. Use null to indicate missing style. |
Exceptions
exception | condition |
---|
InvalidOperationException | is thrown if the layer does not support styles or the layer is read-only. |
InvalidOperationException | is thrown if the the editable layers does not support styles. |
ArgumentException | is thrown if the style does not match driver type. |
See Also