XY Chart NET 3 Control Reference
CustomToolbar Class

CustomToolbar Class consists of the following properties:

Property Parameters Description Data Type Default
BackColor Not applicable Determines the background color for the custom toolbar. Color Color.LightGray
ButtonsHeight Not applicable Returns the height of all visible buttons in the Custom Toolbar. This is a read-only property. Integer Not applicable
ButtonsWidth Not applicable Returns the width of all visible buttons in the Custom Toolbar. This is a read-only property. Integer Not applicable
Count Not applicable Read-only property. Returns the number of items in the Custom Toolbar collection. Integer Not applicable
Dock Not applicable Determines the Custom Toolbar's docking position. Enumerated type consisting of the following options:
  • cpTop (=0)
  • cpLeft (=1)
  • cpRight (=2)
  • cpBottom (=3)
  • cpNextToMain (=4)
cpNextToMain
Height Not applicable Read-only property. Returns the custom toolbar's height. Integer Not applicable
Left Not applicable Read-only property. Returns the custom toolbar's left position. Integer Not applicable
ToolTipBackColor Not applicable Determines the background color the toolbar button's tooltip will be displayed in. Color Color.LightYellow
ToolTipForeColor Not applicable Determines the color the toolbar button's tooltip will be displayed in. Color Color.Black
Top Not applicable Read-only property. Returns the custom toolbar's top position. Integer Not applicable
Type index - an Integer which specifies the zero-based index of the Custom Toolbar item within the collection. Read-only property.  Returns the type of the Custom Toolbar item at the passed in index. Enumerated type consisting of the following options:
  • tbSeparator (=0)
  • tbButton (=1)
  • tbCheckButton (=2)
Not applicable
Visible Not applicable Determines whether or not the custom toolbar is displayed. Boolean True
Width Not applicable Read-only property. Returns the custom toolbar's width. Integer Not applicable

 

CustomToolbar Class also consists of the following methods:

Method Parameters Description
Add tbItemType - an enumerated type consisting of the following options:
  • tbSeparator (=0)
  • tbButton (=1)
  • tbCheckButton (=2)

CheckButtonPressedState - (Applicable to tbCheckButton items only) Optional boolean parameter determines the initial pressed state of the tbCheckButton item. If boolean value is not specified, the tbCheckButton item will initially be displayed in the unpressed state.

Creates a custom toolbar item of type tbItemType and adds it to the Custom Toolbar collection.  The custom toolbar's item object is returned.
Item index - an Integer which specifies the zero-based index of the Custom Toolbar item within the collection. Retrieves the custom toolbar item at the specified index.   The custom toolbar's item object is returned if the index is valid.
Remove index - an Integer which specifies the zero-based index of the Custom Toolbar item within the collection. Deletes the custom toolbar item at the specified index from the Custom Toolbar collection.
RemoveAll None. Deletes all items from the Custom Toolbar collection.

 

See Also

 

 


© 2003 - 2013 ControlEng Corporation. All rights reserved.