Class NumericMultiValueTextElement
Namespace: Aspose.Medical.Dicom.Elements
Assembly: Aspose.Medical.dll (25.11.0)
Encapsulates basic functionality for multivalued text VRs that holds a number.
public abstract class NumericMultiValueTextElement<t> : MultiValueTextElement, IElement where T : unmanagedType Parameters
T
Type of numeric value.
Inheritance
object ← TextElement ← MultiValueTextElement ← NumericMultiValueTextElement<t>
Implements
Inherited Members
MultiValueTextElement.Add(string) , MultiValueTextElement.AddRange(IEnumerable<string>) , MultiValueTextElement.Get<t>(int) , MultiValueTextElement.Get<t>(Index) , MultiValueTextElement.GetOrDefault<t>(int) , MultiValueTextElement.GetOrDefault<t>(Index) , MultiValueTextElement.GetValues<t>() , MultiValueTextElement.GetValues<t>(Range) , MultiValueTextElement.Insert(int, string) , MultiValueTextElement.Remove(string) , MultiValueTextElement.RemoveAt(int) , MultiValueTextElement.Replace(IEnumerable<string>) , MultiValueTextElement.ToString() , MultiValueTextElement.TryGetValue<t>(int, out T?) , MultiValueTextElement.TryGetValue<t>(Index, out T?) , MultiValueTextElement.GetUntypedData() , MultiValueTextElement.Data , MultiValueTextElement.Count , TextElement.Get<t>(int) , TextElement.Get<t>(Index) , TextElement.GetOrDefault<t>(int) , TextElement.GetOrDefault<t>(Index) , TextElement.GetValues<t>() , TextElement.GetValues<t>(Range) , TextElement.TryGetValue<t>(int, out T?) , TextElement.TryGetValue<t>(Index, out T?) , TextElement.Accept(Walker) , TextElement.AcceptAsync(AsyncWalker) , TextElement.GetUntypedData() , TextElement.ParseAs<t>(string, out T?) , TextElement.Count , TextElement.Tag , TextElement.ValueRepresentation , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
NumericMultiValueTextElement(Tag, ValueRepresentation, Span<string>, bool)
Initializes a new instance of the Aspose.Medical.Dicom.Elements.NumericMultiValueTextElement`1.
protected NumericMultiValueTextElement(Tag tag, ValueRepresentation vr, Span<string> data, bool skipValidation)Parameters
tag Tag
Element’s tag.
Value Representation of a Value Element.
Element’s values.
skipValidation bool
Indicates whether the validation should be skipped (if true) or not.
Exceptions
The provided data are invalid.
Methods
GetNumbers()
Returns numbers stored in the element. Supplements the data property.
public IEnumerable<t> GetNumbers()Returns
IEnumerable <t>
The collection of T.
TryParse(string, out T)
Converts the string representation of a number to its number equivalent. A return value indicates whether the conversion succeeded.
protected abstract bool TryParse(string input, out T result)Parameters
input string
A text containing a number to convert.
result T
When this method returns, contains the number value equivalent of the number contained in input,
if the conversion succeeded, or a default value if the conversion failed.
Returns
true if input was converted successfully;
otherwise, false.
</t></string></t></t></t></t></t></t></t></t></t></t></t></string></t></t></t></t></t></t></string></t>