CodeString

CodeString class

Encapsulates the Code String (CS) VR type. https://dicom.nema.org/medical/dicom/current/output/chtml/part05/sect_6.2.html#:~:text=CS-,Code%20String,-A%20string%20of.

public sealed class CodeString : MultiValueTextElement

Constructors

NameDescription
CodeString(Tag, Span<string>)

Properties

NameDescription
override Count { get; }The number of elements contained in this element. Read-only Int32.
Data { get; }Multivalued Data Element value. Read-only IReadOnlyCollection of String.
Tag { get; }
override ValueRepresentation { get; }

Methods

NameDescription
Add(string)Adds the given value to the collection of values of this element.
AddRange(IEnumerable<string>)Adds the given values to the collection of values of this element.
override Get<T>(Index)
override Get<T>(int)
override GetOrDefault<T>(Index)
override GetOrDefault<T>(int)
override GetValues<T>()
override GetValues<T>(Range)
Insert(int, string)Inserts the given value into this element at a given index. The size of the list is increased by one.
Remove(string)Removes the first occurrence of a specific value from the element.
RemoveAt(int)Removes the value at the specified index of the element.
Replace(IEnumerable<string>)Replaces the current values by the collection of the given values.
override ToString()
override TryGetValue<T>(Index, out T)
override TryGetValue<T>(int, out T)

See Also