CurrentVR property (ILEADDicomDS)

VB.NET example

C# example

Visual Basic example

Visual C++ 6.0 example

 

Syntax

DICOMVRItem CurrentVR

Overview

Refer to Working with Value Representations.

Remarks

Holds the currently selected Value Representation Table item.

CurrentVR has the following Read-Only properties:

Property

Type

Description

Code

short

Code that indicates the type of value stored in the data element. For a list of default values supported by DICOM, refer to Value Representation Constants.

Name

BSTR

Character string that contains the name of the Value Representation. To see the default values for the Value Representation Names, refer to the Default Value Representation Table.

Length

long

The length of the value to be stored in the data element.

Restrict

short

Restrictions on the length. Possible values are given below. For a list of available options, see below.

UnitSize

short

The size of the smallest item that can be stored in the data element.

Internally LEADTOOLS maintains a table or list of available value representations. These value representations can include default value representations available in DICOM, as well as user defined value representations. You can access any of this information, add to the table, or delete items from the table using the XXXVR methods. To see the default values, refer to the Value Representation Table.

Possible values for the Restrict property are given below.

Value

Meaning

DICOM_VR_FIXED

[0x00] Length is a fixed number of bytes.

DICOM_VR_MAXIMUM

[0x01] Length is the maximum number of bytes allowed.

DICOM_VR_MAXIMUM_GROUP

[0x02] Length is the maximum number of bytes allowed per component group

VR_ANY

[0x03] Any length is valid.

VR_NOT_APPLICABLE

[0x04] Length is not applicable

One of the values above may be combined with one of the values below using the bitwise OR ( | ) operator.

DIALOG_VR_BINARY

[0x0100] Binary value.

DIALOG_VR_STRING

[0x0200] String value (The character '\' is used as the delimiter between values for multiple data elements).

DIALOG_VR_TEXT

[0x0400] Text value. (Data elements with this VR cannot be multi-valued).

See Also

Elements:

DefaultVR method, InsertVR method, DeleteVR method, ResetVR method, MoveFirstVR method, MoveLastVR method, MovePrevVR method, MoveNextVR method, GetVRCount method, FindVR method, FindIndexVR method, SetVRName method

Topics:

Value Representations: Maneuvering Through the Value Representation Table

 

Value Representations: Searching the Value Representation Table

 

Value Representations: Inserting and Deleting Value Representations

 

Value Representations: Modifying an Existing Value Representation