

| Type | Description |
The following VB sample removes the selected links only:
With G2antt1
.BeginUpdate
With .Items
For Each l In .SelectedObjects(exSelectLinksOnly)
G2antt1.Template = "Items.RemoveLink(" & l & ")"
Next
End With
.EndUpdate
End With
The following VB sample removes the selected bars only:
With G2antt1
.BeginUpdate
With .Items
For Each b In .SelectedObjects(exSelectBarsOnly)
G2antt1.Template = "Items.RemoveBar(" & b & ")"
Next
End With
.EndUpdate
End With
When a bar is removed, any link related to it will be removed.