Search Results for

    Show / Hide Table of Contents

    Class DicomItem

    Abstract base class for representing one DICOM item.

    Inheritance
    Object
    DicomItem
    DicomElement
    DicomFragmentSequence
    DicomSequence
    Implements
    IComparable<DicomItem>
    IComparable
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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 other's, zero if the items' tags are equal and value greater than zero if this item's tag is greater than other's.

    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 obj is a DicomItem, value less than zero if this item's tag is less than obj's, zero if the items' tags are equal and value greater than zero if this item's tag is greater than obj's.

    ToString()

    Returns a string summary of the DICOM item.

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    Object.ToString()

    Validate()

    Declaration
    public virtual void Validate()

    Implements

    System.IComparable<T>
    System.IComparable
    In This Article
    Back to top Copyright (c) 2012-2021 fo-dicom contributors