Click or drag to resize

LayoutsRemove Method (String)

Deletes a layout and removes the layout entities from the document.

Namespace:  DXFReaderNET.Collections
Assembly:  DXFReaderNET (in DXFReaderNET.dll) Version: 20.10.54
Syntax
public override bool Remove(
	string name
)

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