←Select platform

DicomTagToString(long) Method

Summary

An extension method for converting a DicomTag to a DICOM readable string containing the corresponding hexadecimal representation.

Syntax
C#
VB
C++
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 
   ) 

Parameters

dicomTag

A long representing a DICOM tag.

Return Value

A string containing the corresponding hexadecimal representation of the dicomTag.

Example
C#
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) 
 
} 
Requirements
Target Platforms
Help Version 21.0.2021.3.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Dicom.Common Assembly