VectorLayer.Add

Add(Feature)

Adds a new feature to the layer, if supported by the VectorLayer’s Driver.

public void Add(Feature feature)
ParameterTypeDescription
featureFeatureThe feature to add.

Exceptions

exceptioncondition
InvalidOperationExceptionis 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)
ParameterTypeDescription
featureFeatureThe feature to add.
styleIFeatureStyleThe feature style. Use null to indicate missing style.

Exceptions

exceptioncondition
InvalidOperationExceptionis thrown if the layer does not support styles or the layer is read-only.
InvalidOperationExceptionis thrown if the the editable layers does not support styles.
ArgumentExceptionis thrown if the style does not match driver type.

See Also