This documentation is for the old version. Go to the latest Graphics Mill docs

LayerCollection.Add Method (Layer)

Adds a layer to the end of the collection.

Namespace: Aurigma.GraphicsMill.WinControls
Assembly: Aurigma.GraphicsMill.WinControls.VectorObjects (in Aurigma.GraphicsMill.WinControls.VectorObjects.dll)

Syntax

Visual Basic
Public Function Add ( _
	layer As Layer _
) As Integer
C#
public int Add(
	Layer layer
)

Parameters

layer

Type: Aurigma.GraphicsMill.WinControls.Layer

A layer to be added. Cannot be a null reference.

Return Value

The index at which the layer has been added.

Remarks

Newly added layer will be the topmost in the control.

See Also

Reference