DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomGlobal Class / KeywordTag Method
Keyword to convert to string value
String to separate Group and Element string representation
Example

In This Topic
    KeywordTag Method
    In This Topic
    Construct a string representation of the Group and Element number of keyword
    Syntax
    'Declaration
     
    
    Public Shared Function KeywordTag( _
       ByVal keyword As Keyword, _
       Optional ByVal separator As System.String _
    ) As System.String
    public static System.string KeywordTag( 
       Keyword keyword,
       System.string separator
    )

    Parameters

    keyword
    Keyword to convert to string value
    separator
    String to separate Group and Element string representation

    Return Value

    String value of the keyword
    Example
    // Examples
    var tag = DicomGlobal.KeywordTag(Keyword.PatientName); // tag = "0010,0010"
    var tag = DicomGlobal.KeywordTag(Keyword.SOPClassUID); // tag = "0008,0016"
                        
    // With the optional parameter
    var tag3 = DicomGlobal.KeywordTag(Keyword.PlaneOrientationSequence, ":"); // tag = "0020:9116"
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also