Click or drag to resize

LayoutsRemove Method (String)

imbVeles Framework: imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Deletes a layout and removes the layout entities from the document.

Namespace:  netDxf.Collections
Assembly:  netDXF.Standard (in netDXF.Standard.dll) Version: 2.1.1
Syntax
C#
public override bool Remove(
	string name
)
Request Example View Source

Parameters

name
Type: SystemString
Layout name to remove from the document.

Return Value

Type: Boolean
True if the layout has been successfully removed, or false otherwise.
Remarks
The ModelSpace layout cannot be remove. If all PaperSpace layouts have been removed a default PaperSpace will be created since it is required by the dxf implementation.
When a Layout is deleted all entities that has been added to it will also be removed.
Removing a Layout will rebuild the PaperSpace block names, to follow the naming rule: Paper_Space, Paper_Space0, Paper_Space1, ...
See Also