An extension method for converting a DicomTag to a DICOM readable string containing the corresponding hexadecimal representation.
public static string DicomTagToString(
this long dicomTag
)
<ExtensionAttribute()>
Public Shared Function DicomTagToString(
ByVal dicomTag As Long
) As String
public:
[ExtensionAttribute]
static String^ DicomTagToString(
Int64 dicomTag
)
dicomTag
A long representing a DICOM tag.
A string containing the corresponding hexadecimal representation of the dicomTag.
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;
public void TestDicomTagToString()
{
// returns a DICOM readable string containing the hexadecimal representation
string result1 = DicomTag.PatientID.DicomTagToString();
// result1: 0010,0020
string 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