Nevron .NET Vision
Nevron.UI.WinForm.Controls Namespace / NPanelBar Class
Members Example


In This Topic
    NPanelBar Class
    In This Topic
    Represents a panel bar, which contains one or more NBand objects.
    Object Model
    NPanelBar Class
    Syntax
    'Declaration
     
    
    <System.ComponentModel.DesignerAttribute(Nevron.Internal.nxsb)>
    <System.ComponentModel.DefaultPropertyAttribute("Bands")>
    <System.Drawing.ToolboxBitmapAttribute(Nevron.Presentation.NToolboxBitmapResolver, "UI.WinForm.Controls.Resources.ToolboxBitmaps.NPanelBar.bmp")>
    <System.ComponentModel.LicenseProviderAttribute(Nevron.UI.WinForm.Controls.NUILicenseProvider)>
    <System.ComponentModel.DesignerCategoryAttribute("UserControl")>
    <System.ComponentModel.DefaultEventAttribute("Load")>
    <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 NPanelBar 
       Inherits System.Windows.Forms.UserControl
       Implements INControlBorderProvider, INImageListProvider, INPaletteProvider, INRendererProvider 
    'Usage
     
    
    Dim instance As NPanelBar
    [System.ComponentModel.Designer(Nevron.Internal.nxsb)]
    [System.ComponentModel.DefaultProperty("Bands")]
    [System.Drawing.ToolboxBitmap(Nevron.Presentation.NToolboxBitmapResolver, "UI.WinForm.Controls.Resources.ToolboxBitmaps.NPanelBar.bmp")]
    [System.ComponentModel.LicenseProvider(Nevron.UI.WinForm.Controls.NUILicenseProvider)]
    [System.ComponentModel.DesignerCategory("UserControl")]
    [System.ComponentModel.DefaultEvent("Load")]
    [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 NPanelBar : System.Windows.Forms.UserControl, INControlBorderProvider, INImageListProvider, INPaletteProvider, INRendererProvider  
    Remarks
    Each NPanelBar instance holds a collection of NBand 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 NPanelBar =  New NPanelBar() 
    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 NBand =  New NBand() 
    band.Caption = "My Band"
    panelbar.Bands.Add(band)
    // create the panel bar and dock it on the left of the form 
    NPanelBar panelbar = new NPanelBar();
    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
    NBand band = new NBand();
    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
                         Nevron.UI.WinForm.Controls.NPanelBar

    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