10523 : The TimeItem Rectangle

Question

I have userdrawn timeitems that are smaller (shorter in height) than the standard timeitem rectangle (rect). When connecting timeitemlinks, the links attach below the userdrawn timeitem. How do I force the rect dimensions to the same or similar dimensions of the userdrawn timeitem so that timeitemlink attach directly to the timeitem? Thanks

Answer

You can control the “thickness” of a time item by setting the Inset properties of the TimeItemLayout. BottomInset  and TopInset. These values are given in percent, so to make the time item rectangle 10 percent thinner from the top you would set TimeItemLayout.TopInset=10, and to shave 10 percent of the original height from the bottom you set TimeItemLayout.BottomInset=10.

 

 

Leave a Reply