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