Error processing SSI file
LEADTOOLS Medical (Leadtools.Dicom assembly)

Show in webframe

RemoveLayerByIndex Method








The zero-based index of the layer to remove.
true to remove the items, under the "Graphic Annotation Sequence", that reference the layer; false to remove only the layer.
Deletes all the elements that describe a layer.
Syntax
public void RemoveLayerByIndex( 
   int layerIndex,
   bool annSequence
)
'Declaration
 
Public Sub RemoveLayerByIndex( _
   ByVal layerIndex As Integer, _
   ByVal annSequence As Boolean _
) 
'Usage
 
Dim instance As DicomDataSet
Dim layerIndex As Integer
Dim annSequence As Boolean
 
instance.RemoveLayerByIndex(layerIndex, annSequence)
public void RemoveLayerByIndex( 
   int layerIndex,
   bool annSequence
)
 function Leadtools.Dicom.DicomDataSet.RemoveLayerByIndex( 
   layerIndex ,
   annSequence 
)
public:
void RemoveLayerByIndex( 
   int layerIndex,
   bool annSequence
) 

Parameters

layerIndex
The zero-based index of the layer to remove.
annSequence
true to remove the items, under the "Graphic Annotation Sequence", that reference the layer; false to remove only the layer.
Remarks
This method removes the item, which represents a layer under the "Graphic Layer Sequence"(0070,0060).

If annSequence is set to true then the method will clean any elements under the "Graphic Annotation Sequence" which correspond to the layer being removed.

Example
For an example, refer to CreateLayer.
Requirements

Target Platforms

See Also

Reference

DicomDataSet Class
DicomDataSet Members
CreateLayer Method
GetLayerInformation Method
SetLayerInformation Method
RemoveLayerByName Method
RemoveAllLayers Method
LayerCount Property
GetLayerIndex Method
GetLayerGraphicObjectCount Method
RemoveLayerGraphicObjects Method
GetLayerTextObjectCount Method
RemoveLayerTextObjects Method
GetLayerElementByIndex Method
GetLayerElementByName Method

Error processing SSI file
Leadtools.Dicom requires a Medical toolkit server license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features