Class MultiValueDateTextElement

Class MultiValueDateTextElement

Namespace: Aspose.Medical.Dicom.Elements
Assembly: Aspose.Medical.dll (25.11.0)

Encapsulates basic functionality for date related VR types (DA - date, DT - date time, TM - time).

public abstract class MultiValueDateTextElement<t> : MultiValueTextElement, IElement where T : struct

Type Parameters

T

Inheritance

object TextElement MultiValueTextElement MultiValueDateTextElement<t>

Implements

IElement

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

MultiValueDateTextElement(Tag, ValueRepresentation, Span<string>, bool)

Initializes a new instance of the Aspose.Medical.Dicom.Elements.MultiValueDateTextElement`1.

protected MultiValueDateTextElement(Tag tag, ValueRepresentation vr, Span<string> data, bool skipValidation)

Parameters

tag Tag

Element’s tag.

vr ValueRepresentation

Value Representation of a Value Element.

data Span < string &gt;

Element’s values.

skipValidation bool

Indicates whether the validation should be skipped (if true) or not.

Exceptions

DicomValidationException

The provided data are invalid.

Properties

AvailableFormats

Supported date formats. Read-only System.String[].

protected abstract string[] AvailableFormats { get; }

Property Value

string []

FormatProvider

Default format provider used to parse T. Read-only System.Globalization.CultureInfo.

protected abstract CultureInfo FormatProvider { get; }

Property Value

CultureInfo

Methods

Get()

Returns T stored in the element. Supplements the data property.

public IEnumerable<t> Get()

Returns

IEnumerable <t>

The collection of T.

GetRanges()

Returns Aspose.Medical.Dicom.Elements.DateRange stored in the element. Supplements the data property.

public IEnumerable<daterange> GetRanges()

Returns

IEnumerable < DateRange &gt;

The collection of Aspose.Medical.Dicom.Elements.DateRange.

TryParse(string, out T)

Converts the string representation of a T to its typed 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 T to convert.

result T

When this method returns, contains the T value equivalent of the T contained in input, if the conversion succeeded, or a default value if the conversion failed.

Returns

bool

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>