10446 : Deleting time items and links


I have two time items linked together. When either one is moved by the user, I would like to delete both time items as well as the link and redraw the time items at the new location. What is the correct method I should use to delete the time items and links (in GTP.NET)? Thank you.


You can delete a Time item by aTimeItem.Layer.Remove(aTimeItem);

You can remove the a link by first getting a reference aTimeItemLink=aTimeItem.LinkTarget(0); and then dropping it aTimeItemLink.Drop();

Leave a Reply