An extension method for converting a DicomTag to a DICOM readable string containing the corresponding hexadecimal representation.
public static string DicomTagToString(this long dicomTag,DicomTagToStringOptions options)
public:[ExtensionAttribute]static String^ DicomTagToString(Int64 dicomTag,DicomTagToStringOptions^ options)
dicomTag
A long representing a DICOM tag.
options
One or more flags DicomTagToStringOptions to specify additional formatting options.
A string containing the corresponding hexadecimal representation of the dicomTag.
DicomTagToString(long,DicomTagToStringOptions) is used to converting a DicomTag to a DICOM readable string containing the corresponding hexadecimal representation.
The DicomTagToStringOptions are used to specify additional formatting options.
using Leadtools.Dicom;using Leadtools.Dicom.Common;using Leadtools.Dicom.Common.Extensions;using Leadtools;using Leadtools.Dicom.Common.Linq.BasicDirectory;using Leadtools.Dicom.Common.DataTypes;using Leadtools.Codecs;public void TestDicomTagToString(){// returns a DICOM readable string containing the hexadecimal representationstring result1 = DicomTag.PatientID.DicomTagToString();// result1: 0010,0020string result2 = DicomTag.PatientID.DicomTagToString(DicomTagToStringOptions.Comma | DicomTagToStringOptions.Parenthesis);// result2: (0010,0020)}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
