Working with User-defined Cells
Read User-defined Cells of the Visio Shapes
Users insert text fields into shapes to display additional information. User-defined Cells is the one branch of these fields and this branch uses information entered in the Value cell of the User-defined Cells section in the shape’s ShapeSheet. Developers can insert and read all user defined cells using Aspose.Diagram for .NET API.
Retrieve the User-defined Cells Fields
Users collection exposed by Shape class supports the Aspose.Diagram.User object. This property can be used to read the user defined cells of a Visio shape as available in the User-defined Cells section of the shape’s ShapeSheet.
Retrieve Cells Programming Sample
The following piece of code allows developers to read the user defined cells fields.
This image shows the output after running the above code:
Create User-defined Cell in the ShapeSheet
Aspose.Diagram for .NET API allows to create user-defined cell in the shapesheet. This example topic describes the way, developers can add as many User.name rows as they need, assign meaningful names to the rows, and set cell values.
Create User-defined Cell
The Add method exposed by the Users Collection can be used to create a user-defined cell in the shapesheet. It takes a single parameter.
Create Cell Programming Sample
Use the following code example in your .NET application to create user-defined cell in the shapesheet using Aspose.Diagram for .NET.
Retrieve User-defined Cells from Shapesheet
Aspose.Diagram for .NET API allows to retrieve user-defined cells from shapesheet. This example topic describes the way, developers can retrieve all User.name for all shapes in a drawing.
Retrieve User-defined Cells
The NameU, Value.Val and Prompt.Value properties exposed by the User class can be used to retrieve user-defined cells from shapesheet.
Retrieve Cells from Shapesheet Programming Samples
Use the following code in your .NET application to retrieve all user-defined cells from shapesheet using Aspose.Diagram for .NET.