Items can be assigned to layers, and layers can be hidden, locked or moved up/down in the Z order as a group. Layer objects provide Visible, Locked and ZIndex properties, which will affect all items in the respective layer. Layers also expose a Title property shown in the LayerListView control. Newly drawn items are added to the layer specified via Diagram.ActiveLayer.
Set the LayerIndex property of items to associate them with layers in the Diagram.Layers collection. If LayerIndex has the default value of -1, the item is not associated with any layer and its visibility depends only on the item's own Visible property.
The LayerListView control provides user interface for working with Layer objects. The control presents a list of the specified Diagram's layers, showing their title and an overview image of the objects in each layer, and also allows editing of layer's Visible and Locked properties and choosing the Diagram's currently active layer. New layers can be added to the Diagram by clicking the + button and removed by clicking the - button.
The image below illustrates a LayerListView with several layers.