Class Layer
Represents a layer.
Implements
Inherited Members
Namespace: netDxf.Tables
Assembly: CADability.dll
Syntax
public class Layer : TableObject, IHasXData, ICloneable, IComparable, IComparable<TableObject>, IEquatable<TableObject>
Constructors
| Improve this Doc View SourceLayer(String)
Initializes a new instance of the Layer class.
Declaration
public Layer(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Layer name. |
Fields
| Improve this Doc View SourceDefaultName
Default layer name.
Declaration
public const string DefaultName = "0"
Field Value
| Type | Description |
|---|---|
| System.String |
Properties
| Improve this Doc View SourceColor
Gets or sets the layer AciColor.
Declaration
public AciColor Color { get; set; }
Property Value
| Type | Description |
|---|---|
| AciColor |
Default
Gets the default Layer 0.
Declaration
public static Layer Default { get; }
Property Value
| Type | Description |
|---|---|
| Layer |
IsFrozen
Gets or sets if the layer is frozen; otherwise layer is thawed.
Declaration
public bool IsFrozen { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
IsLocked
Gets or sets if the layer is locked.
Declaration
public bool IsLocked { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
IsVisible
Gets or sets the layer visibility.
Declaration
public bool IsVisible { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Linetype
Gets or sets the layer Linetype.
Declaration
public Linetype Linetype { get; set; }
Property Value
| Type | Description |
|---|---|
| Linetype |
Lineweight
Gets or sets the layer line weight, one unit is always 1/100 mm (default = Default).
Declaration
public Lineweight Lineweight { get; set; }
Property Value
| Type | Description |
|---|---|
| Lineweight |
Owner
Gets the owner of the actual layer.
Declaration
public Layers Owner { get; }
Property Value
| Type | Description |
|---|---|
| Layers |
Plot
Gets or sets if the plotting flag.
Declaration
public bool Plot { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Remarks
If set to false, do not plot this layer.
Transparency
Gets or sets layer transparency (default: 0, opaque).
Declaration
public Transparency Transparency { get; set; }
Property Value
| Type | Description |
|---|---|
| Transparency |
Methods
| Improve this Doc View SourceClone()
Creates a new Layer that is a copy of the current instance.
Declaration
public override object Clone()
Returns
| Type | Description |
|---|---|
| System.Object | A new Layer that is a copy of this instance. |
Overrides
| Improve this Doc View SourceClone(String)
Creates a new Layer that is a copy of the current instance.
Declaration
public override TableObject Clone(string newName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | newName | Layer name of the copy. |
Returns
| Type | Description |
|---|---|
| TableObject | A new Layer that is a copy of this instance. |
Overrides
| Improve this Doc View SourceOnLinetypeChangedEvent(Linetype, Linetype)
Declaration
protected virtual Linetype OnLinetypeChangedEvent(Linetype oldLinetype, Linetype newLinetype)
Parameters
| Type | Name | Description |
|---|---|---|
| Linetype | oldLinetype | |
| Linetype | newLinetype |
Returns
| Type | Description |
|---|---|
| Linetype |
Events
| Improve this Doc View SourceLinetypeChanged
Declaration
public event Layer.LinetypeChangedEventHandler LinetypeChanged
Event Type
| Type | Description |
|---|---|
| Layer.LinetypeChangedEventHandler |