Deletes a layer from the container
public void DeleteLayer(
AnnLayer layer,
bool deleteChildren
)
Public Sub DeleteLayer( _
ByVal layer As AnnLayer, _
ByVal deleteChildren As Boolean _
)
-(void)deleteLayer:(LTAnnLayer)layer deleteChildren:(BOOL)deleteChildren;
public void deleteLayer(AnnLayer layer, bool deleteChildren);
public:
void DeleteLayer(
AnnLayer^ layer,
bool deleteChildren
)
layer
The layer to delete. This parameter cannot be null since you cannot delete the default root layer of the container.
deleteChildren
true to also delete the layer children (objects and layers).
Use this method to delete a layer from the container as follows:
If deleteChildren is false, then only the layer is deleted and its children (objects and any child layer) will be added one level up in the container. For example, if this layer is a child of the root container, the layer children will be added to the container. If this layer has a parent layer, its children are added to the parent layer.
If deleteChildren is true, then the layer and its children (objects and any child layer) are completely removed from the container.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document