DicomObjects Reference
DicomObjects Reference / DicomAttributes Collection / Item Property
The Group number (even for official elements) of the attribute to retrieve
The Element number of the attribute to retrieve
Item Property
Description
Provides access to the individual DicomAttribute items of a DicomAttributes collection
Property type
Read-only property
Syntax
Visual Basic
Public Property Item( _
   ByVal Group As Long, _
   ByVal Element As Long _
) As DicomAttribute
Parameters
Group
The Group number (even for official elements) of the attribute to retrieve
Element
The Element number of the attribute to retrieve
Remarks

Use of this property allows direct access to any of the Attributes of a DicomImage or DicomDataSet
Attempts to access a non-existent attribute will not produce an error, but the attribute returned will have a value of Null, and it’s Exists property will be false.

As this is the default property, the term "Item" is rarely used in languages which support default items, as Image.Attributes.Item(3),  may rather more concisely be written in VB as Image.Attributes(3)

This property is used primarily to access a known specific item in a collection.  To iterate through all items, either the language’s iterator (such as “for each” in Visual Basic) should be used, or the ItemByIndex property may be used.

See Also