method Items.RemoveBar (Item as HITEM, [Key as Variant])
Removes a bar from an item.

 TypeDescription 
   Item as HITEM A long expression that indicates the the handle of the item where the bar is removed.  
   Key as Variant Optional. A String expression that indicates the key of the bar being removed.  
Use the RemoveBar method to remove a bar from an item. Use the ClearBars method to remove all bars in the item. Use the AddBar method to add new bars to the item. Use the Remove method to remove a type of bar from the Bars collection. Use the Add method to add new types of bars to the Bars collection. Use the FirstVisibleDate property to specify the first visible date in the chart area. Use the Key parameter to identify a bar inside an item. Use the ItemBar property to access a bar inside the item. Use the PaneWidth property to specify the width of the chart. Use the NonworkingDays property to specify the non-working days. The RemoveBar method removes the links related to bar. Use the RemoveSelection method to remove the objects ( bars, links ) in the chart's selection. Use the ItemBar(exBarSelected) property to select or unselect programmatically a bar.

Use the ItemBar(exBarItemParent) property to move a bar from an item to another item. The ItemBar(exBarItemParent) property indicates the handle of the item that displays the bar. For instance, a bar can be moved from an item to another, only if in the second item there is no another bar with the same key ( ItemBar(exBarKey) property ), as an item can contains two bars with the same key. The control fires the BarParentChange event just before moving the bar to another item. Use this event to control the items where your bar can be moved. A bar can be moved to another item, ONLY if the second item does not contain a bar with the same key. The exBarKey property specifies the key of the bar.

 


Send comments on this topic.
© 1999-2008 Exontrol Inc, Software. All rights reserved.