CurrentElement property

Delphi example

C++Builder example

 

Builder Syntax

TDICOMDSElement* CurrentElement

Delphi Syntax

CurrentElement: TDICOMDSElement

Overview

Refer to Working with Data Sets.

Remarks

Holds the currently selected Data Set Element.

The TDICOMDSElement class has the following Read-Only properties:

Property

Type

Description

hElement

Cardinal

Memory handle that can be used to uniquely identify a Data Element.

Length

Integer

Length of the value stored in the data element. If the stored value is a sequence, this value will be ELEMENT_LENGTH_MAX ($FFFFFFFF).

Tag

Cardinal

Data element tag. For a list of default values, refer to Data Element Tag Constants.

VR

Word

Value representation. For a list of default values supported by DICOM, refer to Value Representation Constants.

When a data set is loaded from a DICOM file, only the tag, the value representation and the length of the stored value data are actually loaded. This information is stored in the CurrentElement property. You can access and modify this data set information, add to the data set, or delete items from the data set.

Note: The CurrentElement property is read only, except that you can explicitly set it to Nil in Pascal or NULL in C++.

See Also

Elements:

InsertElement method, InsertModule method, DeleteElement method, DeleteModule method, MoveRootElement method, MoveParentElement method, MoveChildElement method, MoveFirstElement method, MoveLastElement method, MoveNextElement method, MovePrevElement method, FindFirstElement method, FindLastElement method, FindPrevElement method, FindNextElement method, SetCurrentElement method, GetValueCount method, GetBinaryValue method, GetCharValue method, GetShortValue method, GetLongValue method, GetFloatValue method, GetDoubleValue method, GetStringValue method, GetAgeValue method, GetTimeValue method, GetDateTimeValue method, SetBinaryValue method, SetCharValue method, SetShortValue method, SetLongValue method, SetFloatValue method, SetDoubleValue method, SetStringValue method, SetAgeValue method, SetTimeValue method, SetDateTimeValue method