Xceed Chart for WinForms v4.4 Documentation
Band Class
Members  Example 


Xceed.Chart.UIControls.v4.4 Assembly > Xceed.Chart.UIControls Namespace : Band Class
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
 
<DesignerAttribute(DesignerBaseTypeName="System.ComponentModel.Design.IDesigner", DesignerTypeName="Xceed.Chart.UIControls.BandDesigner, Xceed.Chart.UIControls.v4.4, Version=4.4.100.0, Culture=neutral, PublicKeyToken=ba83ff368b7563c6")>

<ToolboxItemAttribute(ToolboxItemType=, ToolboxItemTypeName="")>

Public Class Band 

   Inherits System.Windows.Forms.UserControl
'Usage
 
Dim instance As Band
[Designer(DesignerBaseTypeName="System.ComponentModel.Design.IDesigner", DesignerTypeName="Xceed.Chart.UIControls.BandDesigner, Xceed.Chart.UIControls.v4.4, Version=4.4.100.0, Culture=neutral, PublicKeyToken=ba83ff368b7563c6")]

[ToolboxItem(ToolboxItemType=, ToolboxItemTypeName="")]

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

Reference

Band Members
Xceed.Chart.UIControls Namespace