dcmNET Class Library

DicomElement.GetValueAsString Method 

Retrieve the index value of the dicom element as an String.

[Visual Basic]
Public Function GetValueAsString( _
   ByVal index As Integer _
) As String
[C#]
public string GetValueAsString(
   int index
);

Parameters

index
The index.

Return Value

The value if VR is equals to AE,AS,CS,DS,IS,LO,LT,PN,SH,SS,ST,UI,UN,UT,DT,DA,TM otherwise "".

See Also

DicomElement Class | dcmNET Namespace