Click or drag to resize
SiDicomDataSetGetElementStringValue Method

Shortcut to extract a STRING element's value.

Namespace: OIV.VolumeViz.Readers.Dicom
Assembly: OIV.VolumeViz (in OIV.VolumeViz.dll) Version: 2024.1.1.0 (2024.1.1)
Syntax
public string GetElementStringValue(
	SoDicomTag tag,
	ulong idx,
	string defaultValue
)

Parameters

tag
Type: OIV.VolumeViz.Readers.DicomSoDicomTag

The tag of the element to find.

idx
Type: SystemUInt64

The index of the scalar value to extract.

defaultValue
Type: SystemString

The value returned if the extraction fails.

Return Value

Type: String

The string stored at the given index in the element with the given tag, or the default value if the extraction fails.

Remarks

If the stored value if not of type STRING, this method will return a string representation of the value. currently works for INT, UINT, and DOUBLE.

See Also