ValueRepresentation

ValueRepresentation class

Encapsulates DICOM VR (value representation). https://dicom.nema.org/medical/dicom/current/output/chtml/part05/sect_6.2.html

public sealed class ValueRepresentation : IEquatable<ValueRepresentation>, IStructuralEquatable

Properties

NameDescription
ByteSwap { get; }Number of bytes to swap when changing endian representation of value. Usually equal to the UnitSize. Read-only Int32.
Code { get; set; }Code used to represent VR. Read-only String.
Is16BitLength { get; }Specifies that length field of value is a 16-bit short integer. Read-only Boolean.
IsMultiValue { get; }Specifies whether the value can contain multiple items. Read-only Boolean.
IsString { get; }Specifies that the value is a string. Read-only Boolean.
MaximumLength { get; }Maximum length of a single value. Read-only UInt32.
Name { get; set; }Descriptive name of VR. Read-only String.
PaddingValue { get; }Byte value used to pad value to even length. Read-only Byte.
UnitSize { get; }Size of each individual value unit for fixed length value types. Read-only Int32.
ValueType { get; set; }Type used to represent VR value. Read-only Type.

Methods

NameDescription
static Parse(string)Converts the string representation of a VR to its typed equivalent.
override Equals(object)
Equals(ValueRepresentation)
Equals(object?, IEqualityComparer)
override GetHashCode()
GetHashCode(IEqualityComparer)
override ToString()
operator ==Determines whether two specified objects have the same value.
operator !=Determines whether two specified objects have different values.

Fields

NameDescription
static readonly AgeStringAge String (AS).
static readonly ApplicationEntityApplication Entity (AE).
static readonly AttributeTagAttribute Tag (AT).
static readonly CodeStringCode String (CS).
static readonly DateDate (DA).
static readonly DateTimeDate Time (DT).
static readonly DecimalStringDecimal String (DS).
static readonly FloatingPointDoubleFloating Point Double (FD).
static readonly FloatingPointSingleFloating Point Single (FL).
static readonly IntegerStringInteger String (IS).
static readonly ItemsSequenceItems sequence (SQ).
static readonly LongStringLong String (LO).
static readonly LongTextLong Text (LT).
static readonly NoneNo Value Representation.
static readonly OtherByteOther Byte (OB).
static readonly OtherDoubleOther Double (OD).
static readonly OtherFloatOther Float (OF).
static readonly OtherLongOther Long (OL).
static readonly OtherVeryLongOther Very Long (OV).
static readonly OtherWordOther Word (OW).
static readonly PersonNamePerson Name (PN).
static readonly ShortStringShort String (SH).
static readonly ShortTextShort Text (ST).
static readonly SignedLongSigned Long (SL).
static readonly SignedShortSigned Short (SS).
static readonly SignedVeryLongSigned Very Long (SV).
static readonly TimeTime (TM).
static readonly UniqueIdentifierUnique Identifier (UI).
static readonly UniversalResourceIdentifierUniversal Resource Identifier (URI) or Universal Resource Locator (URI) (UR).
static readonly UnknownUnknown (UN).
static readonly UnlimitedCharactersUnlimited Characters (UC).
static readonly UnlimitedTextUnlimited Text (UT).
static readonly UnsignedLongUnsigned Long (UL).
static readonly UnsignedShortUnsigned Short (US).
static readonly UnsignedVeryLongUnsigned Very Long (UV).

See Also