Leadtools.Dicom Requires Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
RemoveLayerByName Method
See Also 
Leadtools.Dicom Namespace > DicomDataSet Class : RemoveLayerByName Method




layerName
The name of the layer to be removed from the Graphic Layer Module.
annSequence
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

Visual Basic (Declaration) 
Public Sub RemoveLayerByName( _
   ByVal layerName As String, _
   ByVal annSequence As Boolean _
) 
Visual Basic (Usage)Copy Code
Dim instance As DicomDataSet
Dim layerName As String
Dim annSequence As Boolean
 
instance.RemoveLayerByName(layerName, annSequence)
C# 
public void RemoveLayerByName( 
   string layerName,
   bool annSequence
)
Managed Extensions for C++ 
public: void RemoveLayerByName( 
   string* layerName,
   bool annSequence
) 
C++/CLI 
public:
void RemoveLayerByName( 
   String^ layerName,
   bool annSequence
) 

Parameters

layerName
The name of the layer to be removed from the Graphic Layer Module.
annSequence
true to remove the items, under the "Graphic Annotation Sequence", that reference the layer; false to remove only the layer.

Example

For an example, refer to CreateLayer.

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.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Leadtools.Dicom requires a Medical toolkit license and unlock key. For more information, refer to: Raster Pro/Document/Medical Features