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

2fd4c0ea ddd3 e438 59ee 5c1d4a5d9fd6

haplokuon edited this page May 6, 2023 · 1 revision

Layer Class

netDxf 3.0.0 Library

Represents a layer.

Definition

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

C#

public class Layer : TableObject

VB

Public Class Layer
	Inherits TableObject

C++

public ref class Layer : public TableObject

F#

type Layer = 
    class
        inherit TableObject
    end
Inheritance Object → DxfObjectTableObject → Layer

Constructors

Layer Initializes a new instance of the Layer class.

Properties

CodeName Gets the DXF object name.
(Inherited from DxfObject)
Color Gets or sets the layer color.
Default Gets the default Layer 0.
Description Gets or sets the layer description.
Handle Gets the handle assigned to the DXF object.
(Inherited from DxfObject)
IsFrozen Gets or sets if the layer is frozen; otherwise layer is thawed.
IsLocked Gets or sets if the layer is locked.
IsReserved Gets if the table object is reserved and cannot be deleted.
(Inherited from TableObject)
IsVisible Gets or sets the layer visibility.
Linetype Gets or sets the layer line type.
Lineweight Gets or sets the layer line weight, one unit is always 1/100 mm (default = Default).
Name Gets the name of the table object.
(Inherited from TableObject)
Owner Gets the owner of the actual layer.
Plot Gets or sets if the plotting flag.
Transparency Gets or sets layer transparency (default: 0, opaque).
XData Gets the entity extended data.
(Inherited from DxfObject)

Methods

Clone() Creates a new Layer that is a copy of the current instance.
(Overrides TableObject.Clone())
Clone(String) Creates a new Layer that is a copy of the current instance.
(Overrides TableObject.Clone(String))
CompareTo(Object) Compares the current TableObject with another TableObject of the same type.
(Inherited from TableObject)
CompareTo(TableObject) Compares the current TableObject with another TableObject of the same type.
(Inherited from TableObject)
Equals(Object) Check if two TableObject are equal.
(Inherited from TableObject)
Equals(TableObject) Check if two TableObject are equal.
(Inherited from TableObject)
GetHashCode Returns the hash code for this instance.
(Inherited from TableObject)
GetReferences Gets the list of DxfObjects referenced by this instance.
(Overrides TableObject.GetReferences())
GetType Gets the Type of the current instance.
(Inherited from Object)
HasReferences Checks if this instance has been referenced by other DxfObjects.
(Overrides TableObject.HasReferences())
ToString Converts the value of this instance to its equivalent string representation.
(Inherited from TableObject)

Events

LinetypeChanged  
NameChanged
(Inherited from TableObject)
XDataAddAppReg
(Inherited from DxfObject)
XDataRemoveAppReg
(Inherited from DxfObject)

Fields

DefaultName Default layer name.

See Also

Reference

netDxf.Tables Namespace

Clone this wiki locally