In This Topic
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
Syntax
'Declaration
<System.ComponentModel.ToolboxItemAttribute(False)>
<System.ComponentModel.DesignerAttribute(Nevron.Internal.YtSb)>
<System.ComponentModel.DesignerCategoryAttribute("UserControl")>
<System.ComponentModel.DefaultEventAttribute("Load")>
<System.ComponentModel.DefaultPropertyAttribute("Text")>
<System.ComponentModel.Design.Serialization.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")>
<System.ComponentModel.ToolboxItemFilterAttribute("System.Windows.Forms")>
Public Class NBand
Inherits System.Windows.Forms.UserControl
Implements INImageListProvider
'Usage
Dim instance As NBand
[System.ComponentModel.ToolboxItem(false)]
[System.ComponentModel.Designer(Nevron.Internal.YtSb)]
[System.ComponentModel.DesignerCategory("UserControl")]
[System.ComponentModel.DefaultEvent("Load")]
[System.ComponentModel.DefaultProperty("Text")]
[System.ComponentModel.Design.Serialization.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")]
[System.ComponentModel.ToolboxItemFilter("System.Windows.Forms")]
public class NBand : System.Windows.Forms.UserControl, INImageListProvider
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