←Select platform

ValueLength Property

Summary

Gets the byte offset of the value of the element

Syntax

C#
VB
WinRT C#
C++
public long ValueLength { get; } 
Public ReadOnly Property ValueLength As Long 
public long ValueLength {get;} 
 get_ValueLength();  
public: 
property int64 ValueLength { 
   int64 get(); 
} 

Property Value

The byte offset of the value of the element

Remarks

Depending on the transfer syntax and value representation, a DICOM Element is stored in a file as one of the following

  • Tag(4 bytes), VR(4 bytes), Value Length (4 bytes), Value
  • Tag(4 bytes), VR(2 bytes), Value Length (2 bytes), Value
  • Tag(4 bytes), Value Length (4 bytes), Value

The ValueOffset property returns the byte offset for the Value DicomElement in the file. If you seek to this offset in the DICOM file, the next ValueLength bytes will be the value of the DICOM element. Note that for sequences, ValueLength also includes the length of all the items and DICOM Elements in each items. This means that if you seek to (ValueOffset + ValueLength), you will be at the next element at the end of the sequence.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Dicom Assembly