LEADTOOLS Medical (Leadtools.Dicom assembly)

InsertElementAndSetValue(Int64,Object) Method

Show in webframe







Tag of the item to find or insert.
value to insert
Finds or inserts (if not found) an element in the data set and sets the value of the element
Syntax
public DicomDataSet InsertElementAndSetValue( 
   long tag,
   object value
)
'Declaration
 
Public Overloads Function InsertElementAndSetValue( _
   ByVal tag As Long, _
   ByVal value As Object _
) As DicomDataSet
'Usage
 
Dim instance As DicomDataSet
Dim tag As Long
Dim value As Object
Dim value As DicomDataSet
 
value = instance.InsertElementAndSetValue(tag, value)
public DicomDataSet InsertElementAndSetValue( 
   long tag,
   object value
)

            

            
 function Leadtools.Dicom.DicomDataSet.InsertElementAndSetValue(Int64,Object)( 
   tag ,
   value 
)
public:
DicomDataSet^ InsertElementAndSetValue( 
   int64 tag,
   Object^ value
) 

Parameters

tag
Tag of the item to find or insert.
value
value to insert

Return Value

A reference to the DicomDataSet class (a 'this' pointer)
Remarks

This method is used to set the value of an existing DICOM data set element, or if the existing element does not already exist, to insert the element and then set its value. The value parameter can be any supported DICOM value. For details on the value parameter, see SetValue

This method returns a reference to the DicomDataSet class so that it can be used as part of a 'fluent' interface. For an example of how this can be used efficiently to create a DICOM sequence, see BeginEditSequence(DicomElement,Boolean,Int64)

Example
For an example, refer to InsertElementAndSetValue(DicomElement,Boolean,Int64,Object).
Requirements

Target Platforms

See Also

Reference

DicomDataSet Class
DicomDataSet Members
Overload List
DicomDataSet.SetValue(DicomElement, object)
DicomDataSet.InsertElementAndSetValue(long, object)
DicomDataSet.InsertElementAndSetValue(DicomElement, bool, long, object)
InsertElementAndSetValueResult Property
BeginEditSequence(DicomElement,Boolean,Int64) Method
EndEditSequence Method
BeginEditItem(Int32) Method
EndEditItem Method

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.

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