Class DicomItem
Abstract base class for representing one DICOM item.
Inherited Members
Namespace: Dicom
Assembly: cs.temp.dll.dll
Syntax
public abstract class DicomItem : IComparable<DicomItem>, IComparable
Constructors
DicomItem(DicomTag)
Initializes an instance of the DicomItem class.
Declaration
protected DicomItem(DicomTag tag)
Parameters
| Type | Name | Description |
|---|---|---|
| DicomTag | tag | Tag associated with the item. |
Properties
Tag
Gets the DICOM tag associated with the item.
Declaration
public DicomTag Tag { get; }
Property Value
| Type | Description |
|---|---|
| DicomTag |
ValueRepresentation
Gets the Value Representation of the item.
Declaration
public abstract DicomVR ValueRepresentation { get; }
Property Value
| Type | Description |
|---|---|
| DicomVR |
Methods
CompareTo(DicomItem)
Compare this DicomItem with the other.
Comparison is purely based on the item's tag.
Declaration
public int CompareTo(DicomItem other)
Parameters
| Type | Name | Description |
|---|---|---|
| DicomItem | other | DICOM item to compare against. |
Returns
| Type | Description |
|---|---|
| Int32 | Value less than zero if this item's tag is less than |
CompareTo(Object)
Compare this DicomItem with obj.
Comparison will only succeed if obj also is a DicomItem. Otherwise method throws.
Declaration
public int CompareTo(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| Object | obj | Object to compare against, required to be a DicomItem. |
Returns
| Type | Description |
|---|---|
| Int32 | If |
ToString()
Returns a string summary of the DICOM item.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| String |
Overrides
Validate()
Declaration
public virtual void Validate()