InsertKey method

Delphi Example

C++ Builder Example

 

Builder Syntax

int __fastcall InsertKey (AnsiString szKey, bool bOptional);

Delphi Syntax

Function InsertKey (szKey: String; bOptional: Boolean): Integer;

Overview

Refer to Working with Key Elements.

Remarks

Inserts a new key element in the Dicom Dir Data Set.

If the CurrentElement property is not 0, then the key element will be inserted as a child of the element specified in the CurrentElement property.

If the new key element is successfully inserted, the CurrentElement property will be updated with the new key element.

See Also

Elements:

GetKeyValue method, DeleteKey method, MoveRootKey method, MoveParentKey method, MoveChildKey method, MoveFirstKey method, MoveLastKey method, MovePrevKey method, MoveNextKey method, FindFirstKey method, FindLastKey method, FindPrevKey method, FindNextKey method