VintaSoft Imaging .NET SDK 15.1: Документация для .NET разработчика
Vintasoft.Imaging.Annotation.Dicom Namespace / DicomPolylineAnnotationData Class / Clone() Method
Синтаксис Example Требования Смотрите также
В этом разделе
Clone() Метод (DicomPolylineAnnotationData)
В этом разделе
Создает новый файл DicomPolylineAnnotationData, который является копией текущего экземпляра.
Синтаксис
'Declaration

Public Overrides Function Clone() As System.Object

public override System.Object Clone()

Return Value

Новый DicomPolylineAnnotationData, который является копией этого экземпляра.
Пример

Вот C#/VB.NET код, который демонстрирует, как клонировать одну аннотацию из коллекции и добавлять клонированную аннотацию в ту же коллекцию:

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
void CloneAndAdd(Vintasoft.Imaging.Annotation.AnnotationDataCollection annotationCollection, int index)
            {
                // clone annotation at specified index
                Vintasoft.Imaging.Annotation.AnnotationData clonedAnnotation = 
                    (Vintasoft.Imaging.Annotation.AnnotationData)annotationCollection[index].Clone();
                // add cloned annotation to the end of the collection
                annotationCollection.Add(clonedAnnotation);
            }

Требования

Целевые платформы: .NET 10; .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

Смотрите также