Clone() Method (DicomPolylineAnnotationData)
Creates a new
DicomPolylineAnnotationData that is a copy of the current instance.
'Declaration
Public Overrides Function Clone() As System.Object
public override System.Object Clone()
public: System.Object Clone(); override
public:
System.Object Clone(); override
Return Value
A new
DicomPolylineAnnotationData that is a copy of this instance.
This C#/VB.NET code shows how to clone one annotation from a collection and add cloned annotation into the same collection:
Private Sub CloneAndAdd(annotationCollection As Vintasoft.Imaging.Annotation.AnnotationDataCollection, index As Integer)
' clone annotation at specified index
Dim clonedAnnotation As Vintasoft.Imaging.Annotation.AnnotationData = DirectCast(annotationCollection(index).Clone(), Vintasoft.Imaging.Annotation.AnnotationData)
' add cloned annotation to the end of the collection
annotationCollection.Add(clonedAnnotation)
End Sub
Target Platforms: .NET9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5