IncrementCompoundGraphicInstanceId Method

Summary

Increments the CompoundGraphicInstanceId to a new,unused value that can be assigned to the next DICOM Compound Graphic.

Syntax
C#
VB
C++
public int IncrementCompoundGraphicInstanceId() 
  
Public Function IncrementCompoundGraphicInstanceId() As Integer 
public: 
int IncrementCompoundGraphicInstanceId();  

Return Value

The new value for CompoundGraphicInstanceId.

Remarks

When a LEAD Leadtools.Annotations.Engine.AnnObject is converted to a Leadtools.Dicom.DicomCompoundGraphic, it will be assigned a unique CompoundGraphicInstanceId. The DicomAnnotationsUtilities class maintains a CompoundGraphicInstanceId that is used for each DICOM Compound Graphic. Once a CompoundGraphicInstanceId is assigned to a DICOM Compound Graphic, it must no longer be used. The IncrementCompoundGraphicInstanceId function is used to increment to the next unused value. The default behavior of this function is to add one to the previous CompoundGraphicInstanceId, but this behavior can be changed by subscribing to the OnIncrementCompoundGraphicInstanceId event, and changing the value of CompoundGraphicInstanceId.

Example

For an example, refer to FromAnnContainerToDataSet(DicomDataSet,AnnContainer).

Requirements

Target Platforms

Help Version 20.0.2020.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.