LEADTOOLS Medical (Leadtools.Dicom assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
InsertElementAndSetValue(Int64,Object) Method
See Also 
Leadtools.Dicom Namespace > DicomDataSet Class > InsertElementAndSetValue Method : InsertElementAndSetValue(Int64,Object) Method



tag
Tag of the item to find or insert.
value
value to insert
tag
Tag of the item to find or insert.
value
value to insert
Finds or inserts (if not found) an element in the data set and sets the value of the element Supported in Silverlight, Windows Phone 7.

Syntax

Visual Basic (Declaration) 
Overloads Public Function InsertElementAndSetValue( _
   ByVal tag As Long, _
   ByVal value As Object _
) As DicomDataSet
Visual Basic (Usage)Copy Code
Dim instance As DicomDataSet
Dim tag As Long
Dim value As Object
Dim value As DicomDataSet
 
value = instance.InsertElementAndSetValue(tag, value)
C# 
public DicomDataSet InsertElementAndSetValue( 
   long tag,
   object value
)
C++/CLI 
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)

Example

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 Leadtools.Dicom.DicomDataSet.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 Leadtools.Dicom.DicomDataSet.BeginEditSequence

Requirements

Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also

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