ImageGear Professional for Windows ActiveX
InsertElem Method

Description:

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.

Syntax:

      InsertElem(Tag As Long, VR As enumIGMedVR, ItemCount As Long)

Parameters:

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

Return Value:

N/A

Bits Per Pixel:

N/A

Sample:

Med

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback