ImageGear Professional v18.2 > API Reference Guide > MD Component API Reference > MD Component Objects > IGMedElemList Object > IGMedElemList Methods > InsertElem Method |
Inserts a Data Element into the Element List. The new Data Element will be placed into the Element List sorted by its Tag value. If the DE already exists, the new one will overwrite it. Specifying a Group Length DE doesn't cause an error, but simply ignored. Your data will be padded to an even length if necessary.
You shall specify the Tag Property of the new element, ValueRepresentation Property, and ItemCount Property. If you are inserting a multi-valued Data Element, or a Data Element of type OB, OW or OF, set ItemCount to the desired number of Items. Otherwise, set ItemCount Property to 1. See description of the IGMedDataElem Object for details on how IG Medical Component works with Data Element values.
Use the CurrentElem Property of the Element List to set the data of the new element.
InsertElem(Tag As Long, VR As enumIGMedVR, ItemCount As Long)
Name | Description |
---|---|
Tag | Tag number of the Data Element being inserted |
VR | Value Representation of the Data Element being inserted |
ItemCount | Item Count of the Data Element being inserted |
N/A
N/A
Med