Inserts a new element in the Data Set.
public DicomElement InsertElement(
DicomElement neighbor,
bool child,
long tag,
DicomVRType vr,
bool sequence,
int index
)
Public Function InsertElement( _
ByVal neighbor As Leadtools.Dicom.DicomElement, _
ByVal child As Boolean, _
ByVal tag As Long, _
ByVal vr As Leadtools.Dicom.DicomVRType, _
ByVal sequence As Boolean, _
ByVal index As Integer _
) As Leadtools.Dicom.DicomElement
public Leadtools.Dicom.DicomElement InsertElement(
Leadtools.Dicom.DicomElement neighbor,
bool child,
long tag,
Leadtools.Dicom.DicomVRType vr,
bool sequence,
int index
)
public DicomElement insertElement(DicomElement neighbor, boolean child, long tag, DicomVrType vr, boolean sequence, int index )
function Leadtools.Dicom.DicomDataSet.InsertElement(
neighbor ,
child ,
tag ,
vr ,
sequence ,
index
)
public:
Leadtools.Dicom.DicomElement^ InsertElement(
Leadtools.Dicom.DicomElement^ neighbor,
bool child,
int64 tag,
Leadtools.Dicom.DicomVRType vr,
bool sequence,
int index
)
neighbor
An item in the Data Set. The inserted item will be inserted as a neighbor to this item, or as a child, depending on the value of child.
child
true to insert the new item as the last child of neighbor; false to insert the new item as the last sibling of neighbor.
tag
Tag value for the inserted element. For a list of default values, refer to Data Element Tag Values.
vr
Value representation code that indicates the type of value stored in the data element.
sequence
true if the new item is a sequence; otherwise, false.
index
The index at which the data element should be inserted in a sequence. The index is zero-based, so if you want to insert a data element as the first item in the sequence, set this to 0. The value -1 indicates to add the data element to the end of the sequence.
A sequence may consist of one or more items. This parameter lets you insert a data element as any item within the sequence, not just at the end. In addition, it lets you insert multiple data elements within a sequence.
If neighbor points to the parent of a sequence and child is true, the index will pertain to the children of neighbor. If neighbor points to a member of a sequence and child is false, the index pertains to the siblings of neighbor.
The newly inserted item.
The illustrations below show how items are added to the Data Set (internally maintained as a tree), based on the value of child. For the sake of these illustrations, the order of siblings is top to bottom. Therefore, since added items become the last sibling or the last child, these are drawn at the bottom of the appropriate group of items.
In this illustration, neighbor points to Item 1 and child is false. The new item is added as the last sibling of Item 1.
In this illustration, neighbor points to Item 1 and child is true. The new item is added as the last child of Item 1.
For an example, refer to Load.
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET