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




element
An item in the Data Set.
Returns the number of values stored in the Value Field of the specified element.

Syntax

Visual Basic (Declaration) 
Public Function GetElementValueCount( _
   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.GetElementValueCount(element)
C# 
public int GetElementValueCount( 
   DicomElement element
)
Managed Extensions for C++ 
public: int GetElementValueCount( 
   DicomElement* element
) 
C++/CLI 
public:
int GetElementValueCount( 
   DicomElement^ element
) 

Parameters

element
An item in the Data Set.

Return Value

The number of values stored in the Value Field of the specified element.

Example

For an example, refer to SetIntValue.

Remarks

For more information on retrieving multiple values from the Value Field, refer to the DicomDataSet.GetxxxValue or DicomDataSet.GetxxxValuePtr methods.

To minimize memory use in your application, you can free the memory allocated for this method to return the value by calling FreeElementValue following the call to this method.

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