Working with Layers
Configuring Shape Objects with Layers
Aspose.Diagram for Java allows to configure shape objects with layers in Microsoft Office Visio diagram. Each shape can belong to multiple layers so developers can manage shapes to suit end user needs.
The Shape class object offers LayerMember property which allows to add / remove shape objects to / from the layers in Visio drawing. Users can manage these properties programmatically using Aspose.Diagram API as follows:
Add, remove and move shape objects to / from layers of the diagram.
The following piece of code helps to add, remove and move shape objects properties.
Add a Layer in the Visio PageSheet
Aspose.Diagram for Java allows developers to add new layers to organize custom categories of shapes, and then assign shapes to those layers programmatically.
The following piece of code helps to add Layer objects.
Get All Available Layers
The following piece of code helps to get list of Layers.