DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomGlobal Class / Keyword Method / Keyword(String,String) Method
The Group value represented in hexadecimal string
The Element value represented in hexadecimal string
Example

In This Topic
    Keyword(String,String) Method
    In This Topic
    Construct a keyword from arbitrary group and element hex string (not the integer values)
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function Keyword( _
       ByVal group As System.String, _
       ByVal element As System.String _
    ) As Keyword
    public static Keyword Keyword( 
       System.string group,
       System.string element
    )

    Parameters

    group
    The Group value represented in hexadecimal string
    element
    The Element value represented in hexadecimal string

    Return Value

    A keyword
    Remarks
    Note that the keyword generated does not need to exist within the pre-defined values of the DicomObjects.Enums.Keyword enumeration, so this method may be used to generate keyword for private elements etc.
    Example
    string group = "0x0010";
    string element = "0x0010";
    var keyword = DicomGlobal.Keyword(group, element); // keyword = (DicomObjects.Enums.)Keyword.PatientName
                        
    // Alternatives 
    string group = "0010" // or "10"
    string element = "0010" // or "10"
    var keyword = DicomGlobal.Keyword(group, element); // keyword = (DicomObjects.Enums.)Keyword.PatientName
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also