Click or drag to resize

Layer Class

Represents a layer or layer group.
Inheritance Hierarchy
SystemObject
  RootPro.RootProCADLayer

Namespace:  RootPro.RootProCAD
Assembly:  RootPro.RootProCAD.Library (in RootPro.RootProCAD.Library.dll) Version: 12.0.0.0 (12.0.0.0)
Syntax
public abstract class Layer

The Layer type exposes the following members.

Constructors
  NameDescription
Protected methodLayer
Initializes a new instance of the Layer class
Top
Properties
  NameDescription
Public propertyChildLayers
representing the child layer of the layer group Get the LayerCollection .
Public propertyColor
Get or set the color of the layer.
Public propertyDescription
Get or set description of layer or layer group.
Public propertyDisplayOrder
Get the 0 - based display order of the layer.
Public propertyDocument
Get the document associated with the layer.
Public propertyEditable
Get a value indicating whether the layer is editable.
Public propertyHide
Gets or sets a value indicating whether it is a hidden layer.
Public propertyID
Get the ID of the layer.
Public propertyIsCurrent
Get a value indicating whether it is the current layer.
Public propertyIsEmpty
Get a value indicating whether it is an empty layer.
Public propertyIsGroup
Gets a value indicating whether it is a layer group.
Public propertyIsInUse
Gets or sets a value indicating whether this layer is used in the drawing.
Public propertyLinetype
Get or set the line type of the layer.
Public propertyLinewidth
Get or set the line width of the layer.
Public propertyName
Gets or sets the name of the layer or layer group.
Public propertyParentLayer
Get the parent layer group.
Public propertyParetLayer Obsolete.
Get the parent layer group.
Public propertyPrintable
Gets or sets a value indicating whether the layer will be printed.
Public propertyState
Get or set the state of the layer.
Public propertyVisible
Get a value indicating whether the layer is displayed.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetFullName
Get the name of the layer including the group name.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMoveAfter
Move the layer to the location after the specified layer.
Public methodMoveBefore
Moves the layer to the location before the specified layer.
Public methodMoveInto
Moves the layer to the location into the specified layer group.
Public methodMoveLayer
Moves the layer to the specified position.
Public methodSetOtherHide
Set other layers as hidden layers.
Public methodSetOtherState
Set the state of other layers.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Public fieldStatic memberEmptyLayerID
Get the ID representing the empty layer.
Top
Remarks
You can use the Layer class to change layer name, state, color, line style, line width,
See Also