Leadtools.Dicom Requires Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
GetElementLevel Method
See Also 
Leadtools.Dicom Namespace > DicomDataSet Class : GetElementLevel Method




element
An item in the Data Set.
Returns a value that indicates the level at which the specified element is located within the Data Set.

Syntax

Visual Basic (Declaration) 
Public Function GetElementLevel( _
   ByVal element As DicomElement _
) As Integer
Visual Basic (Usage)Copy Code
Dim instance As DicomDataSet
Dim element As DicomElement
Dim value As Integer
 
value = instance.GetElementLevel(element)
C# 
public int GetElementLevel( 
   DicomElement element
)
Managed Extensions for C++ 
public: int GetElementLevel( 
   DicomElement* element
) 
C++/CLI 
public:
int GetElementLevel( 
   DicomElement^ element
) 

Parameters

element
An item in the Data Set.

Return Value

The level at which the specified element is located within the Data Set.

Example

For an example, refer to Load.

Remarks

This method requires that the Data Set is evaluated as a tree.

The following illustration gives an example:

If the passed object points to:The method returns:
Item 10
Item 21
Item 32

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Leadtools.Dicom requires a Medical toolkit license and unlock key. For more information, refer to: Raster Pro/Document/Medical Features