[This is preliminary documentation and is subject to change.]
Get or sets a single value given the zero based index. The get converts the actual
Dicom value to the returned string, the set converts the supplied string to the actual
Dicom value.
| C# | Visual Basic | Visual C++ |
public string this[ int zeroBasedIndex ] { get; set; }
Public Default Property Item ( _ zeroBasedIndex As Integer _ ) As String
public: property String^ default[int zeroBasedIndex] { String^ get (int zeroBasedIndex); void set (int zeroBasedIndex, String^ value); }
- zeroBasedIndex (Int32)
When spaces are non-significant according to part 5,
they are left out, when using the get, like specified below.
When the attribute, this instance belongs to, has VR AE, CS, DS, IS, LO or SH, all leading and trailing spaces are removed before returning the String.
When the attribute, this instance belongs to, has VR LT, PN, ST, TM or UT, all trailing spaces are removed before returning the String.
When the attribute, this instance belongs to, has VR DA or DT, all trailing spaces are removed before returning the String although nothing is mentioned in part 5 about non-significant spaces. This is because trailing spaces may be present in queries with range matching.
The set may only be used to replace an existing value. When new values need to be inserted, use one of the Insert methods.
When the attribute, this instance belongs to, has VR AE, CS, DS, IS, LO or SH, all leading and trailing spaces are removed before returning the String.
When the attribute, this instance belongs to, has VR LT, PN, ST, TM or UT, all trailing spaces are removed before returning the String.
When the attribute, this instance belongs to, has VR DA or DT, all trailing spaces are removed before returning the String although nothing is mentioned in part 5 about non-significant spaces. This is because trailing spaces may be present in queries with range matching.
The set may only be used to replace an existing value. When new values need to be inserted, use one of the Insert methods.