VisioAutomation
  • Introduction
  • Related projects
  • Compiling
  • Stencils and masters
  • Extension methods
  • ShapeSheet
    • SRC structs
    • Query the ShapeSheet
    • Modify the ShapeSheet
  • User-defined cells
  • Convert values
  • Custom properties
  • Resources
    • Stencils and Masters
  • Namespaces
  • Classes
Powered by GitBook
On this page
  • Get the user-defined cells
  • Add a new cell
  • Find out how many user defined cells exist
  • Check if a cell exists
  • Delete a cell

Was this helpful?

User-defined cells

Get the user-defined cells

// For a Single shape
var udcell1s = VA.Shapes.UserDefinedCellsHelper.Get(shape1);

// For multiple shapes
var props = VA.Shapes.UserDefinedCellsHelper.Get (page1, shapes);

Add a new cell

VA.Shapes.UserDefinedCellsHelper.Set (s1, prop.Name, prop.Value, prop.Prompt);

Find out how many user defined cells exist

int count = VA.Shapes.UserDefinedCellsHelper.GetCount(s1);

Check if a cell exists

bool exists = VA.Shapes.UserDefinedCellsHelper.Contains(s1, "FOO1");

Delete a cell

VA.Shapes.UserDefinedCellsHelper.Delete(s1, "FOO3");
PreviousModify the ShapeSheetNextConvert values

Last updated 3 years ago

Was this helpful?