DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomImageCollection Class / Add Method / Add(IEnumerable<DicomImage>) Method

The DicomImageCollection to be added to the collection

Example

In This Topic
    Add(IEnumerable<DicomImage>) Method
    In This Topic
    Syntax
    'Declaration
     
    
    Public Overloads Sub Add( _
       ByVal value As System.Collections.Generic.IEnumerable(Of DicomImage) _
    ) 
    public void Add( 
       System.Collections.Generic.IEnumerable<DicomImage> value
    )

    Parameters

    value

    The DicomImageCollection to be added to the collection

    Remarks
    Adds a DicomImageCollection to the end of another DicomImageCollection
    Example
    DicomImageCollection imageCollection = new DicomImageCollection();
                        
    DicomImage image1 = new DicomImage("your_dicom_image1.dcm");
    DicomImage image2 = new DicomImage("your_dicom_image2.dcm");
    DicomImage image3 = new DicomImage("your_dicom_image3.dcm");
                        
    DicomImageCollection anotherCollection = new DicomImageCollection();
    anotherCollection.Add(image1);
    anotherCollection.Add(image2);
    anotherCollection.Add(image3);
                        
    imageCollection.Add(anotherCollection);
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also