How do I get multiple rows on my timeline?
I'm making a timeline and using the Shape.AddTimeline() method, but it always comes out as a single row. Is there a way to add more rows?
-
Official comment
The default arrangement for a timeline object is the single row with bubble events.
To create a grid-like timeline with multiple rows, you can override the default in AddTimeline().
myTimeline=Shape.AddTimeline(VS.Timeline_Arrangements.Row1);
Then add rows using the Timeline method AddGridRow(Name). This labels the first row. Use additional calls to add more rows labeled with a name you specify.
The label will be shown in the left column of the grid. Here's a quick code snippet that may help:
{ var myDocument=new VS.Document(); var rootShape=myDocument.GetTheShape(); var myTimeline=rootShape.AddTimeline(VS.Timeline_Arrangements.Grid1); myTimeline.AddGridRow("IT Department"); myTimeline.AddGridRow("Software"); }The timeline will look like this.

Hope this helps.
Comment actions
Please sign in to leave a comment.
Comments
1 comment