Пример #1
0
 /// <summary>
 /// Determines whether the <see cref="DicomTagVrCollection"/> contains a specific element.
 /// </summary>
 /// <param name="value">The <see cref="DicomTagVr"/> to locate in the <see cref="DicomTagVrCollection"/>.</param>
 /// <returns>
 /// <c>true</c> if the <see cref="DicomTagVrCollection"/> contains the specified value;
 /// otherwise, <c>false</c>.
 /// </returns>
 public bool Contains(DicomTagVr value)
 {
     // If value is not of type Code, this will return false.
     return(List.Contains(value));
 }
Пример #2
0
 /// <summary>
 /// Removes the first occurrence of a specific <see cref="DicomTagVr"/> from the <see cref="DicomTagVrCollection"/>.
 /// </summary>
 /// <param name="value">The <see cref="DicomTagVr"/> to remove from the <see cref="DicomTagVrCollection"/>.</param>
 public void Remove(DicomTagVr value)
 {
     List.Remove(value);
 }
Пример #3
0
 /// <summary>
 /// Searches for the specified <see cref="DicomTagVr"/> and
 /// returns the zero-based index of the first occurrence within the entire <see cref="DicomTagVrCollection"/>.
 /// </summary>
 /// <param name="value">The <see cref="DicomTagVr"/> to locate in the <see cref="DicomTagVrCollection"/>.</param>
 /// <returns>
 /// The zero-based index of the first occurrence of value within the entire <see cref="DicomTagVrCollection"/>,
 /// if found; otherwise, -1.
 /// </returns>
 public int IndexOf(DicomTagVr value)
 {
     return(List.IndexOf(value));
 }
Пример #4
0
 /// <summary>
 /// Inserts an <see cref="DicomTagVr"/> element into the <see cref="DicomTagVrCollection"/> at the specified index.
 /// </summary>
 /// <param name="index">The zero-based index at which value should be inserted.</param>
 /// <param name="value">The <see cref="DicomTagVrCollection"/> to insert.</param>
 public void Insert(int index, DicomTagVr value)
 {
     List.Insert(index, value);
 }
Пример #5
0
 /// <summary>
 /// Adds an object to the end of the <see cref="DicomTagVrCollection"/>.
 /// </summary>
 /// <param name="value">The <see cref="DicomTagVr"/> to be added to the end of the <see cref="DicomTagVrCollection"/>.</param>
 /// <returns>The <see cref="DicomTagVrCollection"/> index at which the value has been added.</returns>
 public int Add(DicomTagVr value)
 {
     return(List.Add(value));
 }