Class ValueRepresentation
Namespace: Aspose.Medical.Dicom.ValueRepresentations
Assembly: Aspose.Medical.dll (25.11.0)
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>, IStructuralEquatableInheritance
Implements
IEquatable<valuerepresentation> , IStructuralEquatable
Inherited Members
object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Fields
AgeString
Age String (AS).
public static readonly ValueRepresentation AgeStringField Value
ApplicationEntity
Application Entity (AE).
public static readonly ValueRepresentation ApplicationEntityField Value
AttributeTag
Attribute Tag (AT).
public static readonly ValueRepresentation AttributeTagField Value
CodeString
Code String (CS).
public static readonly ValueRepresentation CodeStringField Value
Date
Date (DA).
public static readonly ValueRepresentation DateField Value
DateTime
Date Time (DT).
public static readonly ValueRepresentation DateTimeField Value
DecimalString
Decimal String (DS).
public static readonly ValueRepresentation DecimalStringField Value
FloatingPointDouble
Floating Point Double (FD).
public static readonly ValueRepresentation FloatingPointDoubleField Value
FloatingPointSingle
Floating Point Single (FL).
public static readonly ValueRepresentation FloatingPointSingleField Value
IntegerString
Integer String (IS).
public static readonly ValueRepresentation IntegerStringField Value
ItemsSequence
Items sequence (SQ).
public static readonly ValueRepresentation ItemsSequenceField Value
LongString
Long String (LO).
public static readonly ValueRepresentation LongStringField Value
LongText
Long Text (LT).
public static readonly ValueRepresentation LongTextField Value
None
No Value Representation.
public static readonly ValueRepresentation NoneField Value
OtherByte
Other Byte (OB).
public static readonly ValueRepresentation OtherByteField Value
OtherDouble
Other Double (OD).
public static readonly ValueRepresentation OtherDoubleField Value
OtherFloat
Other Float (OF).
public static readonly ValueRepresentation OtherFloatField Value
OtherLong
Other Long (OL).
public static readonly ValueRepresentation OtherLongField Value
OtherVeryLong
Other Very Long (OV).
public static readonly ValueRepresentation OtherVeryLongField Value
OtherWord
Other Word (OW).
public static readonly ValueRepresentation OtherWordField Value
PersonName
Person Name (PN).
public static readonly ValueRepresentation PersonNameField Value
ShortString
Short String (SH).
public static readonly ValueRepresentation ShortStringField Value
ShortText
Short Text (ST).
public static readonly ValueRepresentation ShortTextField Value
SignedLong
Signed Long (SL).
public static readonly ValueRepresentation SignedLongField Value
SignedShort
Signed Short (SS).
public static readonly ValueRepresentation SignedShortField Value
SignedVeryLong
Signed Very Long (SV).
public static readonly ValueRepresentation SignedVeryLongField Value
Time
Time (TM).
public static readonly ValueRepresentation TimeField Value
UniqueIdentifier
Unique Identifier (UI).
public static readonly ValueRepresentation UniqueIdentifierField Value
UniversalResourceIdentifier
Universal Resource Identifier (URI) or Universal Resource Locator (URI) (UR).
public static readonly ValueRepresentation UniversalResourceIdentifierField Value
Unknown
Unknown (UN).
public static readonly ValueRepresentation UnknownField Value
UnlimitedCharacters
Unlimited Characters (UC).
public static readonly ValueRepresentation UnlimitedCharactersField Value
UnlimitedText
Unlimited Text (UT).
public static readonly ValueRepresentation UnlimitedTextField Value
UnsignedLong
Unsigned Long (UL).
public static readonly ValueRepresentation UnsignedLongField Value
UnsignedShort
Unsigned Short (US).
public static readonly ValueRepresentation UnsignedShortField Value
UnsignedVeryLong
Unsigned Very Long (UV).
public static readonly ValueRepresentation UnsignedVeryLongField Value
Properties
ByteSwap
Number of bytes to swap when changing endian representation of value. Usually equal to the Aspose.Medical.Dicom.ValueRepresentations.ValueRepresentation.UnitSize. Read-only System.Int32.
public int ByteSwap { get; }Property Value
Code
Code used to represent VR. Read-only System.String.
public required string Code { get; init; }Property Value
Is16BitLength
Specifies that length field of value is a 16-bit short integer. Read-only System.Boolean.
public bool Is16BitLength { get; }Property Value
IsMultiValue
Specifies whether the value can contain multiple items. Read-only System.Boolean.
public bool IsMultiValue { get; }Property Value
IsString
Specifies that the value is a string. Read-only System.Boolean.
public bool IsString { get; }Property Value
MaximumLength
Maximum length of a single value. Read-only System.UInt32.
public uint MaximumLength { get; }Property Value
Name
Descriptive name of VR. Read-only System.String.
public required string Name { get; init; }Property Value
PaddingValue
Byte value used to pad value to even length. Read-only System.Byte.
public byte PaddingValue { get; }Property Value
UnitSize
Size of each individual value unit for fixed length value types. Read-only System.Int32.
public int UnitSize { get; }Property Value
ValueType
Type used to represent VR value. Read-only System.Type.
public required Type ValueType { get; init; }Property Value
Methods
Equals(ValueRepresentation?)
public bool Equals(ValueRepresentation? other)Parameters
other ValueRepresentation
?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
obj object
?
Returns
Equals(object?, IEqualityComparer)
public bool Equals(object? other, IEqualityComparer comparer)Parameters
other object
?
comparer IEqualityComparer
Returns
GetHashCode()
public override int GetHashCode()Returns
GetHashCode(IEqualityComparer)
public int GetHashCode(IEqualityComparer comparer)Parameters
comparer IEqualityComparer
Returns
Parse(string)
Converts the string representation of a VR to its typed equivalent.
public static ValueRepresentation Parse(string vrCode)Parameters
vrCode string
Two-character VR code. See valid codes in https://dicom.nema.org/medical/dicom/current/output/chtml/part05/sect_6.2.html#table_6.2-1 (VR name column).
Returns
A Aspose.Medical.Dicom.ValueRepresentations.ValueRepresentation equivalent to the VR specified in vrCode.
Exceptions
Invalid VR code.
ToString()
public override string ToString()Returns
Operators
operator ==(ValueRepresentation?, ValueRepresentation?)
Determines whether two specified objects have the same value.
public static bool operator ==(ValueRepresentation? left, ValueRepresentation? right)Parameters
left ValueRepresentation
?
Left-hand side object to compare for equivalence.
right ValueRepresentation
?
Right-hand side object to compare for equivalence.
Returns
true if the value of left is the same as the value of right;
otherwise, false.
operator !=(ValueRepresentation?, ValueRepresentation?)
Determines whether two specified objects have different values.
public static bool operator !=(ValueRepresentation? left, ValueRepresentation? right)Parameters
left ValueRepresentation
?
Left-hand side object to compare for non-equivalence.
right ValueRepresentation
?
Right-hand side object to compare for non-equivalence.
Returns
true if the value of left is different from the value of
right;
otherwise, false.
</valuerepresentation>