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


In This Topic
    Band Class
    In This Topic
    Represents a band in a PanelBar object. The band is actually a panel, which can be collapsed or expanded. When the band is collapsed only its caption is visible.
    Object Model
    Band Class
    Syntax
    'Declaration
     
    <ToolboxItemAttribute(False)>
    <DesignerAttribute(Xceed.Chart.UIControls.BandDesigner)>
    <DesignerCategoryAttribute("UserControl")>
    <DefaultEventAttribute("Load")>
    <DefaultPropertyAttribute("Text")>
    <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 Band 
       Inherits System.Windows.Forms.UserControl
    'Usage
     
    Dim instance As Band
    [ToolboxItem(false)]
    [Designer(Xceed.Chart.UIControls.BandDesigner)]
    [DesignerCategory("UserControl")]
    [DefaultEvent("Load")]
    [DefaultProperty("Text")]
    [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 Band : System.Windows.Forms.UserControl 
    Remarks
    You can use the Controls property to add controls to a band.
    Example
    The following example demonstrates how to add controls to a Band object and add that band to a PanelBar object:
    ' create the band
    Dim band As Band =  New Band() 
    
    ' create a label
    Dim testLabel As Label =  New Label() 
    testLabel.Dock = DockStyle.Top
    testLabel.Text = "This is test label"
    
    ' add the label to the band
    band.Controls.Add(testLabel)
    
    ' assume that we have an existing PanelBar object named nPanelBar1
    nPaneBar1.Bands.Add(band)
    // create the band
    Band band = new Band();
    
    // create a label
    Label testLabel = new Label();
    testLabel.Dock = DockStyle.Top;
    testLabel.Text = "This is test label";
    
    // add the label to the band
    band.Controls.Add(testLabel);
    
    // assume that we have an existing PanelBar object named nPanelBar1
    nPaneBar1.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.Band

    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