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


In This Topic
    PanelBar Class
    In This Topic
    Represents a panel bar, which contains one or more Band objects.
    Object Model
    PanelBar Class
    Syntax
    'Declaration
     
    <DesignerAttribute(Xceed.Chart.UIControls.PanelBarDesigner)>
    <DefaultPropertyAttribute("Bands")>
    <ToolboxItemAttribute(False)>
    <DesignerCategoryAttribute("UserControl")>
    <DefaultEventAttribute("Load")>
    <DesignerSerializerAttribute("System.Windows.Forms.Design.ControlCodeDomSerializer, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.ComponentModel.Design.Serialization.CodeDomSerializer, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")>
    <ToolboxItemFilterAttribute("System.Windows.Forms")>
    Public Class PanelBar 
       Inherits System.Windows.Forms.UserControl
    'Usage
     
    Dim instance As PanelBar
    [Designer(Xceed.Chart.UIControls.PanelBarDesigner)]
    [DefaultProperty("Bands")]
    [ToolboxItem(false)]
    [DesignerCategory("UserControl")]
    [DefaultEvent("Load")]
    [DesignerSerializer("System.Windows.Forms.Design.ControlCodeDomSerializer, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.ComponentModel.Design.Serialization.CodeDomSerializer, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
    [ToolboxItemFilter("System.Windows.Forms")]
    public class PanelBar : System.Windows.Forms.UserControl 
    Remarks
    Each PanelBar instance holds a collection of Band objects. You can gain access to this collection with the help of the Bands property. You can specify a border type for the panel bar with the Border property.
    Example
    The following example creates a new panel bar with a single band and customizes its most important properties:
    ' create the panel bar and dock it on the left of the form 
    Dim panelbar As PanelBar =  New PanelBar() 
    panelbar.Dock = DockStyle.Left
    Me.Controls.Add(panelbar)
    
    ' customize it
    panelbar.Caption = "My Panel Bar"
    panelbar.CaptionBackColor = SystemColors.ControlDark
    panelbar.BorderStyle = Border.Flat
    
    ' create a simple band
    Dim band As Band =  New Band() 
    band.Caption = "My Band"
    panelbar.Bands.Add(band)
    // create the panel bar and dock it on the left of the form 
    PanelBar panelbar = new PanelBar();
    panelbar.Dock = DockStyle.Left;
    this.Controls.Add(panelbar);
    
    // customize it
    panelbar.Caption = "My Panel Bar";
    panelbar.CaptionBackColor = SystemColors.ControlDark;
    panelbar.BorderStyle = Border.Flat;
    
    // create a simple band
    Band band = new Band();
    band.Caption = "My Band";
    panelbar.Bands.Add(band);
    Inheritance Hierarchy

    System.Object
       System.MarshalByRefObject
          System.ComponentModel.Component
             System.Windows.Forms.Control
                System.Windows.Forms.ScrollableControl
                   System.Windows.Forms.ContainerControl
                      System.Windows.Forms.UserControl
                         Xceed.Chart.UIControls.PanelBar

    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