DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomImage Class / Add Method / Add(DicomAttribute) Method
An existing DicomAttribute to add
Example

In This Topic
    Add(DicomAttribute) Method
    In This Topic
    Add an existing attribute to the underlying DicomDataSet
    Syntax
    'Declaration
     
    
    Public Overloads Sub Add( _
       ByVal attribute As DicomAttribute _
    ) 
    public void Add( 
       DicomAttribute attribute
    )

    Parameters

    attribute
    An existing DicomAttribute to add
    Example
    DicomImage image = new DicomImage();
    DicomDataSet ds = new DicomDataSet("your_dicom_dataset.dcm");
    foreach (DicomAttribute attr in ds)
    {
       image.Add(attr);
    }
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also