Class DicomItem
- Namespace
- FellowOakDicom
- Assembly
- fo-dicom.core.dll
Abstract base class for representing one DICOM item.
public abstract class DicomItem : IComparable<DicomItem>, IComparable
- Inheritance
-
DicomItem
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
DicomItem(DicomTag)
Initializes an instance of the DicomItem class.
protected DicomItem(DicomTag tag)
Parameters
tag
DicomTagTag associated with the item.
Properties
Tag
Gets the DICOM tag associated with the item.
public DicomTag Tag { get; }
Property Value
ValueRepresentation
Gets the Value Representation of the item.
public abstract DicomVR ValueRepresentation { get; }
Property Value
Methods
CompareTo(DicomItem)
Compare this DicomItem with the other
.
Comparison is purely based on the item's tag.
public int CompareTo(DicomItem other)
Parameters
other
DicomItemDICOM item to compare against.
Returns
- int
Value less than zero if this item's tag is less than
other
's, zero if the items' tags are equal and value greater than zero if this item's tag is greater thanother
's.
CompareTo(object)
Compare this DicomItem with obj
.
Comparison will only succeed if obj
also is a DicomItem. Otherwise method throws.
public int CompareTo(object obj)
Parameters
Returns
- int
If
obj
is a DicomItem, value less than zero if this item's tag is less thanobj
's, zero if the items' tags are equal and value greater than zero if this item's tag is greater thanobj
's.
ToString()
Returns a string summary of the DICOM item.
public override string ToString()
Returns
Validate()
public virtual void Validate()