Layer Class
Contains elements that define a single layer and its properties for a page.
Inheritance Hierarchy
SystemObject
  Aspose.DiagramLayer

Namespace: Aspose.Diagram
Assembly: Aspose.Diagram (in Aspose.Diagram.dll) Version: 20.2.0.0 (20.2)
Syntax
public class Layer

The Layer type exposes the following members.

Constructors
  NameDescription
Public methodLayer
Constructor.
Properties
  NameDescription
Public propertyActive
Specifies whether a layer is active. Shapes that are not preassigned to layers are assigned to the active layer(s) when dropped on the drawing page.
Public propertyColor
The index of the color in the color table used toThe index of the color in the color table used to display the layer or An RGB value specifying a custom color not in the color table (for example, #ff9900 ). display the layer
Public propertyColorTrans
Determines the degree of transparency for a layer or shape's text color, from 0 (completely opaque) to 1 (completely transparent).
Public propertyDel
A flag indicating whether the element has been deleted locally. A value of 1 indicates that the element was deleted locally.
Public propertyGlue
Specifies whether shapes belonging to the layer can be glued to.
Public propertyIsColorChecked
A flag indicating whether the element has been checked locally. A value of 1 indicates that the element was checked locally.
Public propertyIX
The zero-based index of the element within its parent element.
Public propertyLock
Specifies whether shapes belonging to the layer are locked against being selected or edited.
Public propertyName
Name element specifies the name of a layer.
Public propertyNameUniv
Specifies the universal name of a layer.
Public propertyPrint
Specifies whether shapes belonging to the layer are printed when the drawing is printed.
Public propertySnap
Specifies whether other shapes can snap to shapes assigned to the layer. Shapes assigned to the layer can snap to other shapes, but other shapes cannot snap to them.
Public propertyStatus
Specifies whether the layer is a valid layer for a document.
Public propertyVisible
Specifies whether shapes belonging to the layer are visible on the drawing page.
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 methodGetHashCode
Serves as a hash function for a particular type.
(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 methodToString
Returns a string that represents the current object.
(Inherited from Object.)
See Also