Leadtools.Dicom Requires Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
Insert(DicomIod,Boolean,DicomModuleType,String,DicomIodType,DicomIodUsageType,String) Method
See Also 
Leadtools.Dicom Namespace > DicomIodTable Class > Insert Method : Insert(DicomIod,Boolean,DicomModuleType,String,DicomIodType,DicomIodUsageType,String) Method



neighbor
contains an item in the IOD Structure. 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.
code
The Module Information Object Definitions.
name
The name of the inserted item
type
The type of Information Object Definition you are working with.
usage
Indicates whether the Information Object is mandatory, conditional or optional, and the type of usage. For more information on mandatory, conditional and optional usage, refer to An Overview of the DICOM File Format or the DICOM Standard.
description
The description of the inserted Module Information Object Definition.
neighbor
contains an item in the IOD Structure. 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.
code
The Module Information Object Definitions.
name
The name of the inserted item
type
The type of Information Object Definition you are working with.
usage
Indicates whether the Information Object is mandatory, conditional or optional, and the type of usage. For more information on mandatory, conditional and optional usage, refer to An Overview of the DICOM File Format or the DICOM Standard.
description
The description of the inserted Module Information Object Definition.
Inserts a new item in the IOD Structure.

Syntax

Visual Basic (Declaration) 
Overloads Public Function Insert( _
   ByVal neighbor As DicomIod, _
   ByVal child As Boolean, _
   ByVal code As DicomModuleType, _
   ByVal name As String, _
   ByVal type As DicomIodType, _
   ByVal usage As DicomIodUsageType, _
   ByVal description As String _
) As DicomIod
Visual Basic (Usage)Copy Code
Dim instance As DicomIodTable
Dim neighbor As DicomIod
Dim child As Boolean
Dim code As DicomModuleType
Dim name As String
Dim type As DicomIodType
Dim usage As DicomIodUsageType
Dim description As String
Dim value As DicomIod
 
value = instance.Insert(neighbor, child, code, name, type, usage, description)
C# 
public DicomIod Insert( 
   DicomIod neighbor,
   bool child,
   DicomModuleType code,
   string name,
   DicomIodType type,
   DicomIodUsageType usage,
   string description
)
C++/CLI 
public:
DicomIod^ Insert( 
   DicomIod^ neighbor,
   bool child,
   DicomModuleType code,
   String^ name,
   DicomIodType type,
   DicomIodUsageType usage,
   String^ description
) 

Parameters

neighbor
contains an item in the IOD Structure. 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.
code
The Module Information Object Definitions.
name
The name of the inserted item
type
The type of Information Object Definition you are working with.
usage
Indicates whether the Information Object is mandatory, conditional or optional, and the type of usage. For more information on mandatory, conditional and optional usage, refer to An Overview of the DICOM File Format or the DICOM Standard.
description
The description of the inserted Module Information Object Definition.

Return Value

DicomIod class containing the newly inserted item.

Example

For an example, refer to DicomIodTable.Reset.

Remarks

  • The illustrations below show how items are added to the IOD Structure (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.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

Leadtools.Dicom requires a Medical toolkit server license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features