DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomGlobal Class / KeywordElement Method
Example

In This Topic
    KeywordElement Method
    In This Topic
    Returns the "element" number for a keyword
    Syntax
    'Declaration
     
    
    Public Shared Function KeywordElement( _
       ByVal keyword As Keyword _
    ) As System.UShort
    public static System.ushort KeywordElement( 
       Keyword keyword
    )

    Parameters

    keyword

    Return Value

    The unsigned element number
    Example
    // Examples
    var element = DicomGlobal.KeywordElement(Keyword.PatientName); // 16
    var element = DicomGlobal.KeywordElement(Keyword.SOPClassUID); // 22
    var element = DicomGlobal.KeywordElement(Keyword.PlaneOrientationSequence); // 37142
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also