SiDicomDataSetGetElementStringValue Method |
Shortcut to extract a STRING element's value.
Namespace: OIV.VolumeViz.Readers.DicomAssembly: OIV.VolumeViz (in OIV.VolumeViz.dll) Version: 10.12.3.0 (10.12.3.0)
Syntax public string GetElementStringValue(
SoDicomTag tag,
ulong idx,
string defaultValue
)
Public Function GetElementStringValue (
tag As SoDicomTag,
idx As ULong,
defaultValue As String
) As String
public:
String^ GetElementStringValue(
SoDicomTag^ tag,
unsigned long long idx,
String^ defaultValue
)
member GetElementStringValue :
tag : SoDicomTag *
idx : uint64 *
defaultValue : string -> string
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:
StringThe 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