Nevron .NET Vision Documentation
NBand Class
Members  Example 


Represents a band in a NPanelBar 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
NBand Class
Syntax
'Declaration
 
<System.ComponentModel.ToolboxItemAttribute(ToolboxItemType=, ToolboxItemTypeName="")>
<System.ComponentModel.DesignerAttribute(DesignerBaseTypeName="System.ComponentModel.Design.IDesigner", DesignerTypeName="Nevron.UI.WinForm.Controls.lII1IllI, Nevron.Presentation, Version=19.5.8.12, Culture=neutral, PublicKeyToken=6656c5d1103e75cc")>
Public Class NBand 
   Inherits System.Windows.Forms.UserControl
   Implements INImageListProvider 
'Usage
 
Dim instance As NBand
[System.ComponentModel.ToolboxItem(ToolboxItemType=, ToolboxItemTypeName="")]
[System.ComponentModel.Designer(DesignerBaseTypeName="System.ComponentModel.Design.IDesigner", DesignerTypeName="Nevron.UI.WinForm.Controls.lII1IllI, Nevron.Presentation, Version=19.5.8.12, Culture=neutral, PublicKeyToken=6656c5d1103e75cc")]
public class NBand : System.Windows.Forms.UserControl, INImageListProvider  
Remarks
You can use the Controls property to add controls to a band.
Example
The following example demonstrates how to add controls to a NBand object and add that band to a NPanelBar object:
' create the band
Dim band As NBand =  New NBand() 
            
' 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 NPanelBar object named nPanelBar1
nPaneBar1.Bands.Add(band)
// create the band
NBand band = new NBand();
            
// 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 NPanelBar 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
                     Nevron.UI.WinForm.Controls.NBand

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

NBand Members
Nevron.UI.WinForm.Controls Namespace

Send Feedback