Xceed Chart for WinForms v4.4 Documentation
Xceed.Chart.UIControls.v4.4 Assembly / Xceed.Chart.UIControls Namespace / ToolBarButton Class
Members Example


In This Topic
    ToolBarButton Class
    In This Topic
    Represents a button on a ToolBar object. May have one of the five predefined styles. See ToolBarButtonStyle for more information.
    Object Model
    ToolBarButton Class
    Syntax
    'Declaration
     
    <ToolboxItemAttribute(False)>
    <DesignTimeVisibleAttribute(False)>
    <DesignerCategoryAttribute("Component")>
    Public Class ToolBarButton 
       Inherits System.ComponentModel.Component
    'Usage
     
    Dim instance As ToolBarButton
    [ToolboxItem(false)]
    [DesignTimeVisible(false)]
    [DesignerCategory("Component")]
    public class ToolBarButton : System.ComponentModel.Component 
    Remarks
    To add buttons to an existing Toolbar object use its Buttons property.
    Example
    The following example creates new ToolBarButton object, sets its properties and adds it to an existing toolbar:
    'use the default constructor
    Dim tbb As ToolBarButton =  New ToolBarButton() 
    tbb.Style = ToolBarButtonStyle.Toggle
    tbb.Pushed = True
    
    nToolBar1.Buttons.Add(tbb)
    //use the default constructor
    ToolBarButton tbb = new ToolBarButton();
    tbb.Style = ToolBarButtonStyle.Toggle;
    tbb.Pushed = true;
    
    nToolBar1.Buttons.Add(tbb);
    Inheritance Hierarchy

    System.Object
       System.MarshalByRefObject
          System.ComponentModel.Component
             Xceed.Chart.UIControls.ToolBarButton

    Public Constructors
     NameDescription
    Public ConstructorOverloaded.   
    Top
    Public Properties
     NameDescription
    Public PropertyGets or sets the Command object for the button.  
    Public Property (Inherited from System.ComponentModel.Component)
    Public PropertyGets or sets the PopupWindow the button will display. Only works if Style is set to ToolBarButtonStyle.DropDown.  
    Public PropertyGest or sets the control this button will display. Only works with Style set to ToolBarButtonStyle.Control.  
    Public PropertyGets or sets a value indicating if the button is currently enabled.  
    Public PropertyGets or sets the image index for the button.  
    Public PropertyGets the ToolBar object that owns the button.  
    Public PropertyGets or sets a value indicating whether the state of the button is pushed. Only works with Style set to ToolBarButtonStyle.Toggle.  
    Public PropertyGets the bounds of the button relative to its parent toolbar.  
    Public Property (Inherited from System.ComponentModel.Component)
    Public PropertyGets or sets the ToolBarButtonStyle field of the button.  
    Public PropertyGets or sets the additional data associated with the button.  
    Public PropertyGets or sets the tooltip this button will display.  
    Top
    Protected Properties
    Public Methods
     NameDescription
    Public Method (Inherited from System.MarshalByRefObject)
    Public MethodOverloaded. Overridden. Overriden. Releases all the resources used by the button.  
    Public Method (Inherited from System.MarshalByRefObject)
    Public Method (Inherited from System.MarshalByRefObject)
    Public MethodOverridden. Overriden. The human readable representation of the button.  
    Public MethodDepending on the Command object assigned, the toolbar button sets its Style and depending on this style gets additional data such as ContextMenu or Control  
    Top
    Protected Methods
     NameDescription
    Protected MethodThis member is reserved for internal use and is not intended to be used directly from your code.  
    Protected MethodThis member is reserved for internal use and is not intended to be used directly from your code.  
    Protected MethodThis member is reserved for internal use and is not intended to be used directly from your code.  
    Protected MethodThis member is reserved for internal use and is not intended to be used directly from your code.  
    Protected MethodThis member is reserved for internal use and is not intended to be used directly from your code.  
    Protected Method (Inherited from System.ComponentModel.Component)
    Protected Method (Inherited from System.ComponentModel.Component)
    Protected MethodOverloaded.  (Inherited from System.MarshalByRefObject)
    Top
    Public Events
     NameDescription
    Public Event (Inherited from System.ComponentModel.Component)
    Top
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also