public GetSH ( Dicom.Data.DicomTag tag ) : DcmShortString | ||
tag | Dicom.Data.DicomTag | |
Résultat | DcmShortString |
public DcmShortString GetSH(DicomTag tag)
{
DcmElement elem = GetElement(tag);
if (elem is DcmShortString)
return elem as DcmShortString;
if (elem != null)
throw new DicomDataException("Tried to access element with incorrect VR");
return null;
}