VintaSoft Imaging .NET SDK 12.4: Documentation for .NET developer
Vintasoft.Imaging.Annotation.Dicom Namespace / DicomPolylineAnnotationData Class / Clone() Method
Syntax Example Requirements SeeAlso
In This Topic
    Clone() Method (DicomPolylineAnnotationData)
    In This Topic
    Creates a new DicomPolylineAnnotationData that is a copy of the current instance.
    Syntax
    '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.
    Example

    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
    

    Requirements

    Target Platforms: .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also