Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

89fd2f97 f718 9401 27af 8535ee07d505

haplokuon edited this page May 6, 2023 · 1 revision

Remove(String) Method

netDxf 3.0.0 Library

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

Definition

Namespace: netDxf.Collections
Assembly: netDxf (in netDxf.dll) Version: 3.0.0

C#

public override bool Remove(
	string name
)

VB

Public Overrides Function Remove ( 
	name As String
) As Boolean

C++

public:
virtual bool Remove(
	String^ name
) override

F#

abstract Remove : 
        name : string -> bool 
override Remove : 
        name : string -> bool 

Parameters

  String
Layout name to remove from the document.

Return Value

Boolean
True if the layout has been successfully removed, or false otherwise.

Remarks

The ModelSpace layout cannot be removed. 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

Reference

Layouts Class
Remove Overload
netDxf.Collections Namespace

Clone this wiki locally