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

    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