DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomGlobal Class / AddDictionaryElement Method
Integer value, the group index of the data element.
Integer value, the element index of the data element.
String value, the value representation of the new data element.
String value, the value multiplicity of the data element.
String value, the description of the data element.
Example

In This Topic
    AddDictionaryElement Method
    In This Topic
    Adds Non-Private Data Element to the Dictionary.
    Syntax
    'Declaration
     
    
    Public Shared Sub AddDictionaryElement( _
       ByVal Group As System.Integer, _
       ByVal Element As System.Integer, _
       ByVal VR As System.String, _
       ByVal VM As System.String, _
       ByVal Description As System.String _
    ) 
    public static void AddDictionaryElement( 
       System.int Group,
       System.int Element,
       System.string VR,
       System.string VM,
       System.string Description
    )

    Parameters

    Group
    Integer value, the group index of the data element.
    Element
    Integer value, the element index of the data element.
    VR
    String value, the value representation of the new data element.
    VM
    String value, the value multiplicity of the data element.
    Description
    String value, the description of the data element.
    Remarks

    If the specified Group and Element locate an existing data element in the dictionary, that data element will be removed from the dictionary and the new data element will be added to the dictionary. Otherwise, a new dictionary entry for the specified data element will be created.

    Following the link to see more information about Group, Element, VR, VM and Description.

    Example
    DicomGlobal.AddDictionaryElement(0x0018, 0x1001, "DS", "1", "Custom Scanner Paramater");
                        
    // Example Usage
    DicomImage image = new DicomImage("your_dicom_image.dcm");
    image.DataSet.Add(0x0018, 0x1001, "5"); // DicomObjects now sees this tag as Custom Scanner Paramater
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also