DVTk API
Getitem Method (tagSequence, oneBasedIndex)
DVTkDvtkHighLevelInterface.Dicom.OtherAttributeSetGetitem(String, Int32)
DVTk API

[This is preliminary documentation and is subject to change.]

Get a SequenceItem by specifying a tagSequence tagSequence.
Declaration Syntax
C#Visual BasicVisual C++
public SequenceItem Getitem(
	string tagSequence,
	int oneBasedIndex
)
Public Function Getitem ( _
	tagSequence As String, _
	oneBasedIndex As Integer _
) As SequenceItem
public:
SequenceItem^ Getitem(
	String^ tagSequence, 
	int oneBasedIndex
)
Parameters
tagSequence (String)
The (tag)Sequence of which you want a SequenceItem.
oneBasedIndex (Int32)
Specify which SequenceItem is requested. (1 for the first SequenceItem in the sequence)
Return Value
A Values Object containing a list of all values the attribute contains.
Remarks
If the attribute requested by the tagSequence is non existent or invalid an empty SequenceItem will be returned.
Examples
VB .NET
CopyC#
'Get a SequenceItem by specifying a tagSequence

'DataSet is inherited from AttributeSet
Dim myDataSet As DvtkHighLevelInterface.Dicom.Other.DataSet

myDataSet.Read("c:\Somefile.dcm")    

'Get the first Sequence item from the specified Sequence
Dim mySequenceItem As DvtkHighLevelInterface.Dicom.Other.SequenceItem 

    If myDataSet.Exists("0x00080096") Then
        If myDataSet.GetitemCount("0x00080096") > 0 Then
        mySequenceItem = myDataSet.Getitem("0x00080096", 1)
    End If
End If
Exceptions
ExceptionCondition
HliException Tag sequence supplied invalid for this operation.

Assembly: DvtkHighLevelInterface (Module: DvtkHighLevelInterface) Version: 0.0.0.0