Show / Hide Table of Contents

Class Layer

Represents a layer.

Inheritance
System.Object
DxfObject
TableObject
Layer
Implements
IHasXData
System.ICloneable
System.IComparable
System.IComparable<TableObject>
System.IEquatable<TableObject>
Inherited Members
TableObject.NameChanged
TableObject.OnNameChangedEvent(String, String)
TableObject.XDataAddAppReg
TableObject.OnXDataAddAppRegEvent(ApplicationRegistry)
TableObject.XDataRemoveAppReg
TableObject.OnXDataRemoveAppRegEvent(ApplicationRegistry)
TableObject.Name
TableObject.IsReserved
TableObject.InvalidCharacters
TableObject.XData
TableObject.IsValidName(String)
TableObject.ToString()
TableObject.CompareTo(Object)
TableObject.CompareTo(TableObject)
TableObject.GetHashCode()
TableObject.Equals(Object)
TableObject.Equals(TableObject)
DxfObject.CodeName
DxfObject.Handle
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: netDxf.Tables
Assembly: CADability.dll
Syntax
public class Layer : TableObject, IHasXData, ICloneable, IComparable, IComparable<TableObject>, IEquatable<TableObject>

Constructors

| Improve this Doc View Source

Layer(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 Source

DefaultName

Default layer name.

Declaration
public const string DefaultName = "0"
Field Value
Type Description
System.String

Properties

| Improve this Doc View Source

Color

Gets or sets the layer AciColor.

Declaration
public AciColor Color { get; set; }
Property Value
Type Description
AciColor
| Improve this Doc View Source

Default

Gets the default Layer 0.

Declaration
public static Layer Default { get; }
Property Value
Type Description
Layer
| Improve this Doc View Source

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
| Improve this Doc View Source

IsLocked

Gets or sets if the layer is locked.

Declaration
public bool IsLocked { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

IsVisible

Gets or sets the layer visibility.

Declaration
public bool IsVisible { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Linetype

Gets or sets the layer Linetype.

Declaration
public Linetype Linetype { get; set; }
Property Value
Type Description
Linetype
| Improve this Doc View Source

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
| Improve this Doc View Source

Owner

Gets the owner of the actual layer.

Declaration
public Layers Owner { get; }
Property Value
Type Description
Layers
| Improve this Doc View Source

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.

| Improve this Doc View Source

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 Source

Clone()

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
TableObject.Clone()
| Improve this Doc View Source

Clone(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
TableObject.Clone(String)
| Improve this Doc View Source

OnLinetypeChangedEvent(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 Source

LinetypeChanged

Declaration
public event Layer.LinetypeChangedEventHandler LinetypeChanged
Event Type
Type Description
Layer.LinetypeChangedEventHandler

Implements

IHasXData
System.ICloneable
System.IComparable
System.IComparable<T>
System.IEquatable<T>
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX