Class TagMask
Namespace: Aspose.Medical.Dicom.Tags
Assembly: Aspose.Medical.dll (25.11.0)
A tag mask for checking repeating groups. https://dicom.nema.org/medical/dicom/current/output/chtml/part05/sect_7.8.html#sect_7.8.1 .
public sealed class TagMaskInheritance
Inherited Members
object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Properties
Element
Tag Element. The 2nd 4 numbers in DICOM tag definition (e.g. for DICOM Tag (0028,0010), 0010 - Element). Read-only System.UInt16.
public ushort Element { get; }Property Value
Group
Tag Group. The 1st 4 numbers in DICOM tag definition (e.g. for DICOM Tag (0028,0010), 0028 - Group). Read-only System.UInt16.
public ushort Group { get; }Property Value
Mask
A mask for checking repeating groups. Read-only System.UInt32.
public uint Mask { get; }Property Value
Tag
A private tag that the mask defines. Read / Write Aspose.Medical.Dicom.Tags.TagMask.Tag.
public Tag Tag { get; }Property Value
Methods
IsMatch(Tag)
Returns a value indicating whether the given tag matches this mask.
public bool IsMatch(Tag tag)Parameters
tag Tag
A tag to be tested.
Returns
true if the given tag matches this mask;
otherwise, false.
Parse(string, string, PrivateCreator?)
Converts the string representation of a masked tag in to its typed equivalent.
public static TagMask Parse(string group, string element, PrivateCreator? creator)Parameters
group string
String representation of a group of masked tag.
element string
String representation of an element of masked tag.
creator PrivateCreator
?
DICOM Tag Private Creator element related to this mask.
Returns
A Aspose.Medical.Dicom.Tags.TagMask equivalent to the masked tag specified in group and
element.
Exceptions
Unable to parse group or element.
ToString()
public override string ToString()