LEADTOOLS Medical (Leadtools.Dicom assembly)
LEAD Technologies, Inc

BeginReadSequence(DicomElement,Boolean,Int64) Method








an item in the data set
true to evaluate the Data Set as a tree; false to evaluate the Data Set as a list.
tag number of the DICOM element sequence
Used to read values from an existing DICOM sequence .NET support Silverlight support
Syntax
public DicomDataSet BeginReadSequence( 
   DicomElement element,
   bool tree,
   long tag
)
'Declaration
 
Public Overloads Function BeginReadSequence( _
   ByVal element As DicomElement, _
   ByVal tree As Boolean, _
   ByVal tag As Long _
) As DicomDataSet
'Usage
 
Dim instance As DicomDataSet
Dim element As DicomElement
Dim tree As Boolean
Dim tag As Long
Dim value As DicomDataSet
 
value = instance.BeginReadSequence(element, tree, tag)
public DicomDataSet BeginReadSequence( 
   DicomElement element,
   bool tree,
   long tag
)
ObjectiveC Syntax
 function Leadtools.Dicom.DicomDataSet.BeginReadSequence(DicomElement,Boolean,Int64)( 
   element ,
   tree ,
   tag 
)
public:
DicomDataSet^ BeginReadSequence( 
   DicomElement^ element,
   bool tree,
   int64 tag
) 

Parameters

element
an item in the data set
tree
true to evaluate the Data Set as a tree; false to evaluate the Data Set as a list.
tag
tag number of the DICOM element sequence

Return Value

a reference to the DicomDataSet
Remarks

This method is used to begin reading values from an existing DICOM sequence. It is part of a group of four methods that are to be used together. The four methods are listed below:

These methods are part of a fluent interface that are used to easily work with DICOM sequences. The methods can be chained together to create easily human readable code to create a sequence.

Passing null for the parameter element, and true for the parameter tree will attempt to read a sequence from the root of the DICOM data set. To read a sequence that is not at the root, pass the sequence item element for the parameter element, and false for the parameter tree. For more information on the element and tree paramters, see FindFirstElement.

The format of the code for reading a sequence is as follows:

             ds.BeginReadSequence
               .BeginReadItem()
                  .GetValue
                  .GetValue
               .EndReadItem()
               .BeginReadItem()
                  .GetValue
                  .GetValue
               .EndReadItem()
             .EndReadSequence();
             

Example
For an example, refer to DicomDataSet.GetValue{T}(DicomElement, T, out T).
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

DicomDataSet Class
DicomDataSet Members
Overload List
BeginEditSequence(DicomElement,Boolean,Int64) Method
EndEditSequence Method
BeginEditItem(Int32) Method
EndEditItem Method
BeginReadSequence(DicomElement,Boolean,Int64) Method
EndReadSequence Method
BeginReadItem(Int32) Method
EndReadItem Method

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 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