Create a new IFeature, and add it to this IFeatureHolder. This method will generally only work on ISequences, and on some IFeatures which have been attached to ISequences.

Namespace:  BioSharp.Core.Bio.Seq
Assembly:  BioSharp.Core (in BioSharp.Core.dll) Version: 0.1.3191.26120 (0.1.0.0)

Syntax

C#
IFeature CreateFeature(
	Feature..::.Template ft
)

Parameters

ft
Type: BioSharp.Core.Bio.Seq..::.Feature..::.Template
The template to use to create the feature

Return Value

The added feature

Exceptions

ExceptionCondition
BioSharp.Core.Bio..::.BioExceptionif something went wrong during creating the feature
BioSharp.Core.Utils..::.ChangeVetoExceptionif this FeatureHolder does not support creation of new features, or if the change was vetoed

See Also