Visual Basic |
---|
Public Property Item( _ ByVal Group As Long, _ ByVal Element As Long _ ) As DicomAttribute |
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.