Class GroupBar
Displays a set of related controls as selectable groups or tabs.
Inheritance
System.Object
GroupBar
Implements
System.IDisposable
System.ComponentModel.ISupportInitialize
Assembly: Syncfusion.Shared.Base.dll
public class GroupBar : ScrollControl, IThemeProvider, IDisposable, IVisualStyle, ICancelModeProvider, ISplitterPaneSupport, IScrollBarWrapperContainer, ISupportUpdating, ISupportIntelliMouse, IQueryFocusInside, INonClientPaintingSupport, IIntegratedScrollContainer, IGroupBarDesignerInvoke, ISupportInitialize
The sample code shows how to create a GroupBar, create and add two GroupBarBarItems, and
assign client controls to each of the GroupBarItems.
private void InitializeGroupBar()
{
// Create the GroupBar control.
this.gbOutlook = new Syncfusion.Windows.Forms.Tools.GroupBar();
// Create and initialize the GroupBarItems that belong to this GroupBar.
this.gbiPersonal = new Syncfusion.Windows.Forms.Tools.GroupBarItem();
// Assign the gvcPersonal client control to this GroupBarItem.
this.gbiPersonal.Client = this.gvcPersonal;
this.gbiPersonal.Text = "Personal";
this.gbiWork = new Syncfusion.Windows.Forms.Tools.GroupBarItem();
// Assign the gvcWork client control to this GroupBarItem.
this.gbiWork.Client = this.gvcWork;
this.gbiWork.Text = "Work";
// Add the GroupBarItems to the GroupBar.
this.gbOutlook.GroupBarItems.Add(this.gbiPersonal);
this.gbOutlook.GroupBarItems.Add(this.gbiWork);
// Set the GroupBar's initially selected index.
this.gbOutlook.SelectedItem = 1;
}
Private Sub InitializeGroupBar()
' Create the GroupBar control.
Me.gbOutlook = New Syncfusion.Windows.Forms.Tools.GroupBar()
' Create and initialize the GroupBarItems that belong to this GroupBar.
Me.gbiPersonal = New Syncfusion.Windows.Forms.Tools.GroupBarItem()
' Assign the gvcPersonal client control to this GroupBarItem.
Me.gbiPersonal.Client = Me.gvcPersonal
Me.gbiPersonal.Text = "Personal"
Me.gbiWork = New Syncfusion.Windows.Forms.Tools.GroupBarItem()
' Assign the gvcWork client control to this GroupBarItem.
Me.gbiWork.Client = Me.gvcWork
Me.gbiWork.Text = "Work"
' Add the GroupBarItems to the GroupBar.
Me.gbOutlook.GroupBarItems.Add(Me.gbiPersonal)
Me.gbOutlook.GroupBarItems.Add(Me.gbiWork)
' Set the GroupBar's initially selected index.
Me.gbOutlook.SelectedItem = 1
End Sub
Constructors
Creates a new instance of the GroupBar class.
Declaration
Fields
Declaration
protected ArrayList activeItemsList
Field Value
Type |
System.Collections.ArrayList |
Declaration
protected ArrayList alNavPaneItems
Field Value
Type |
System.Collections.ArrayList |
Declaration
protected bool bAnimation
Field Value
Declaration
protected bool bBarHighlight
Field Value
Declaration
protected bool bDrawClientBorder
Field Value
Declaration
protected BorderStyle bdrStyle
Field Value
Type |
System.Windows.Forms.BorderStyle |
Declaration
Field Value
Declaration
protected bool bHighlight
Field Value
Declaration
protected bool bIntegratedScrolling
Field Value
Indicates whether to show the chevron button on the Navigation Panel
in the stacked GroupBar.
Declaration
protected bool bShowChevron
Field Value
Declaration
protected bool bStackedMode
Field Value
Declaration
protected bool bThemesEnabled
Field Value
Declaration
protected int c_nIconSize
Field Value
Declaration
protected GroupBar.GroupBarItemCollection cllnGroupBarItems
Field Value
Declaration
protected ToolTip compToolTip
Field Value
Type |
System.Windows.Forms.ToolTip |
Declaration
protected RenameTextBox ctrlRename
Field Value
Declaration
protected ButtonsState eButtonsState
Field Value
Declaration
protected ButtonsState eInScroll
Field Value
Declaration
protected GroupBarItemAccessibleObjectsIndexer gbiAccesibleObjects
Field Value
Declaration
protected Cursor gDefaultCursor
Field Value
Type |
System.Windows.Forms.Cursor |
Declaration
protected Color hdrBackColor
Field Value
Type |
System.Drawing.Color |
Declaration
Field Value
Declaration
protected Color hdrForeColor
Field Value
Type |
System.Drawing.Color |
Declaration
protected Cursor itemCursor
Field Value
Type |
System.Windows.Forms.Cursor |
Declaration
protected bool m_bShowImageInHeader
Field Value
Declaration
protected Office2007Theme m_office2007Theme
Field Value
Declaration
protected Office2010Theme m_office2010Theme
Field Value
Declaration
protected readonly StringFormat m_sfmtHeaderTextFormat
Field Value
Type |
System.Drawing.StringFormat |
m_sfmtTextFormat
Declaration
protected readonly StringFormat m_sfmtTextFormat
Field Value
Type |
System.Drawing.StringFormat |
Declaration
protected IContextMenuProvider menuProvider
Field Value
Declaration
protected TextAlignment nAlignment
Field Value
Declaration
protected int nContextMenuItem
Field Value
Declaration
protected int nDropdownButtonModifiedWidth
Field Value
Declaration
protected int nDropdownButtonWidth
Field Value
Declaration
protected int nHeaderHeight
Field Value
Declaration
protected int nHighlightItem
Field Value
Declaration
protected int nItemHeight
Field Value
Declaration
protected GroupLayout nLayout
Field Value
Declaration
protected int nNavigationButtonWidth
Field Value
Declaration
protected int nNavigationPaneHeight
Field Value
Declaration
protected int nRenameItem
Field Value
Declaration
protected int nScrollThumbWidth
Field Value
Declaration
protected int nSelectedItem
Field Value
Declaration
protected int nSplitterHeight
Field Value
Declaration
protected static int nStartTick
Field Value
Declaration
Field Value
Declaration
protected Color prev_hdrBackColor
Field Value
Type |
System.Drawing.Color |
Declaration
protected Color prev_hdrForeColor
Field Value
Type |
System.Drawing.Color |
Declaration
protected Point ptSplitterDragStart
Field Value
Type |
System.Drawing.Point |
Declaration
protected Rectangle rcClient
Field Value
Type |
System.Drawing.Rectangle |
Declaration
protected Rectangle rcScrollDown
Field Value
Type |
System.Drawing.Rectangle |
Declaration
protected Rectangle rcScrollUp
Field Value
Type |
System.Drawing.Rectangle |
Declaration
protected static ImageList s_ilNavPaneItems
Field Value
Type |
System.Windows.Forms.ImageList |
Declaration
protected static string s_sDropDownToolTip
Field Value
Declaration
protected ThemedControlDrawing tdButton
Field Value
Declaration
protected ThemedControlDrawing tdScrollBar
Field Value
Declaration
protected Timer tmrScrolling
Field Value
Type |
System.Windows.Forms.Timer |
Declaration
protected VisualStyle vStyle
Field Value
Properties
Gets or sets a value indicating whether GroupBar can be collapsed.
Declaration
public bool AllowCollapse { get; set; }
Property Value
Indicates whether switching between different GroupBarItems is animated.
Declaration
public bool AnimatedSelection { get; set; }
Property Value
Type |
Description |
System.Boolean |
True if animated selection is enabled. The default is True.
|
Indicates whether applying the default forecolor for GroupBar as per the visual style
Declaration
public bool ApplyDefaultVisualStyleColor { get; set; }
Property Value
Type |
Description |
System.Boolean |
True if highlighting is enabled. The default is True.
|
Declaration
public override Image BackgroundImage { get; set; }
Property Value
Type |
System.Drawing.Image |
Declaration
public override ImageLayout BackgroundImageLayout { get; set; }
Property Value
Type |
System.Windows.Forms.ImageLayout |
Indicates whether moving the mouse cursor over a GroupBarItem will highlight it.
Declaration
public bool BarHighlight { get; set; }
Property Value
Type |
Description |
System.Boolean |
True if highlighting is enabled. The default is True.
|
Gets/Sets Control size before touch enabled
Declaration
public Size BeforeTouchSize { get; set; }
Property Value
Indicates the color of the 2D border.
Declaration
public Color BorderColor { get; set; }
Property Value
Type |
System.Drawing.Color |
Gets / sets the border style of the GroupBar control.
Declaration
public BorderStyle BorderStyle { get; set; }
Property Value
Type |
Description |
System.Windows.Forms.BorderStyle |
A System.Windows.Forms.BorderStyle value. The default is BorderStyle.Fixed3D.
|
Gets or sets a value indicating whether this GroupBar is collapsed.
Declaration
public bool Collapsed { get; set; }
Property Value
CollapsedText
Gets or sets the text shown in collapsed client area of GroupBar.
Declaration
public string CollapsedText { get; set; }
Property Value
Gets or sets the width of the collapsed GroupBar.
Declaration
public int CollapsedWidth { get; set; }
Property Value
Gets or sets the image of the collapse button in expanded state.
Declaration
public Image CollapseImage { get; set; }
Property Value
Type |
System.Drawing.Image |
Declaration
public int ContextMenuItem { get; }
Property Value
Type |
Description |
System.Int32 |
The zero-based index of the item.
|
Gets / sets the menu provider object that will implement the GroupBar's contextmenu.
Declaration
public IContextMenuProvider ContextMenuProvider { get; set; }
Property Value
Gets / sets the cursor that is displayed when the mouse pointer is over the control.
Declaration
public Cursor Cursor { get; set; }
Property Value
Type |
Description |
System.Windows.Forms.Cursor |
A System.Windows.Forms.Cursor object.
|
Declaration
protected override Size DefaultSize { get; }
Property Value
Indicates whether a border is drawn around the GroupBar's client window.
Declaration
public bool DrawClientBorder { get; set; }
Property Value
Type |
Description |
System.Boolean |
A boolean value; the default is False.
|
Declaration
public bool EnableSplittercolorCustomization { get; set; }
Property Value
Gets or Sets the touchmode
Declaration
public bool EnableTouchMode { get; set; }
Property Value
Gets or sets the tooltip for collapse button, when control is collapsed.
Declaration
public string ExpandButtonToolTip { get; set; }
Property Value
Declaration
public int ExpandedWidth { get; set; }
Property Value
Gets or sets the image of the collapse button in collapsed state.
Declaration
public Image ExpandImage { get; set; }
Property Value
Type |
System.Drawing.Image |
Indicates whether the GroupBar control is displayed with a flat look.
Declaration
public bool FlatLook { get; set; }
Property Value
Type |
Description |
System.Boolean |
True to display in flat mode. The default is False.
|
Gets or sets the tooltip for GroupBarDropDownToolTip.
Declaration
public string GroupBarDropDownToolTip { get; set; }
Property Value
Gets / sets the cursor that is displayed when the mouse pointer is over the GroupBarItems.
Declaration
public Cursor GroupBarItemCursor { get; set; }
Property Value
Type |
Description |
System.Windows.Forms.Cursor |
A System.Windows.Forms.Cursor object.
|
Declaration
public int GroupBarItemHeight { get; set; }
Property Value
Type |
Description |
System.Int32 |
An integer value that specifies the item height.
|
Declaration
public GroupBar.GroupBarItemCollection GroupBarItems { get; }
Property Value
Gets / sets the backcolor for the GroupBar header.
Declaration
public Color HeaderBackColor { get; set; }
Property Value
Type |
Description |
System.Drawing.Color |
A System.Drawing.Color value.
|
Gets / sets the font of the text displayed in the GroupBar header.
Declaration
public Font HeaderFont { get; set; }
Property Value
Type |
Description |
System.Drawing.Font |
A System.Drawing.Font value.
|
Gets / sets the forecolor for the GroupBar header.
Declaration
public Color HeaderForeColor { get; set; }
Property Value
Type |
Description |
System.Drawing.Color |
A System.Drawing.Color value.
|
Gets / sets the height of the GroupBar header.
Declaration
public int HeaderHeight { get; set; }
Property Value
Type |
Description |
System.Int32 |
An integer value that specifies the header height.
|
Returns the string format object for header drawing.
Declaration
protected StringFormat HeaderStringFormat { get; }
Property Value
Type |
System.Drawing.StringFormat |
Returns the index of the GroupBarItem that is currently under the mouse cursor.
Declaration
public int HighlightItem { get; }
Property Value
Type |
Description |
System.Int32 |
An integer value that specifies the zero-based index of the GroupBarItem.
|
Specifies the type of rendering done to icons
Declaration
public IconRenderingMode IconRenderingMode { get; set; }
Property Value
Gets or Sets a value indicating whether selection logic includes visible items alone for SelectedItem calculation.
Declaration
public bool IndexOnVisibleItems { get; set; }
Property Value
Indicates whether integrated scroll buttons are to be used.
Declaration
public bool IntegratedScrolling { get; set; }
Property Value
Type |
Description |
System.Boolean |
True to enable integrated scrolling. The default is False.
|
Indicates, if process of setting client for GroupBarItem is in progress.
Declaration
protected bool IsClientSetting { get; set; }
Property Value
Get is control initializing.
Declaration
public bool IsInitializing { get; }
Property Value
Declaration
protected GroupBarItemAccessibleObjectsIndexer ItemAccessibleObjects { get; }
Property Value
Gets or sets the tooltip for collapse button, when control is expanded.
Declaration
public string MinimizeButtonToolTip { get; set; }
Property Value
Gets / sets the width of the GroupBarItems shown in the navigation pane.
Declaration
public int NavigationPaneButtonWidth { get; set; }
Property Value
Type |
Description |
System.Int32 |
An integer value that specifies the GroupBarItem width.
|
Gets / sets the height of the GroupBar navigation pane.
Declaration
public int NavigationPaneHeight { get; set; }
Property Value
Type |
Description |
System.Int32 |
An integer value that specifies the height.
|
Gets or sets the navigation pane's tooltip.
Declaration
public string NavigationPaneTooltip { get; set; }
Property Value
Indicates the Office2007 theme used for drawing the control.
Declaration
public Office2007Theme Office2007Theme { get; set; }
Property Value
Indicates the Office2010 theme used for drawing the control.
Declaration
public Office2010Theme Office2010Theme { get; set; }
Property Value
Gets or sets a value indicating whether popup is closed after clicking on item.
Declaration
public bool PopupAutoClose { get; set; }
Property Value
Gets or sets the initial size of the popup for GroupBarItem client.
Declaration
public Size PopupClientSize { get; set; }
Property Value
Gets or sets the popup's resize mode.
Declaration
public PopupResizeMode PopupResizeMode { get; set; }
Property Value
Declaration
public bool PopupRightToLeft { get; set; }
Property Value
Declaration
public int ScrollTimerInterval { get; set; }
Property Value
Gets / sets an integer that represents the index of the current selected GroupBarItem.
Declaration
public int SelectedItem { get; set; }
Property Value
Type |
Description |
System.Int32 |
An integer value that specifies the zero-based index of the GroupBarItem.
|
Indicates whether the Chevron button on the
Navigation Panel is shown in the Stacked GroupBar.
Declaration
public bool ShowChevron { get; set; }
Property Value
Indicates whether the selected item's image is shown in header in the Stacked GroupBar.
Declaration
public bool ShowItemImageInHeader { get; set; }
Property Value
Declaration
public bool ShowNavigationPane { get; set; }
Property Value
Gets or sets a value indicating whether to show GroupBarItem popup's gripper.
Declaration
public bool ShowPopupGripper { get; set; }
Property Value
Declaration
public Color Splittercolor { get; set; }
Property Value
Type |
System.Drawing.Color |
Indicates whether the GroupBarItems are displayed in a stack.
Declaration
public bool StackedMode { get; set; }
Property Value
Type |
Description |
System.Boolean |
True to set the stacked mode. The default is False.
|
TextAlign
Gets / sets the alignment of the text displayed on the GroupBarItem.
Declaration
public TextAlignment TextAlign { get; set; }
Property Value
TextStringFormat
Returns the String format for text drawing.
Declaration
protected StringFormat TextStringFormat { get; }
Property Value
Type |
System.Drawing.StringFormat |
Indicates whether XP Themes (visual styles) should be used for drawing the control.
Declaration
public bool ThemesEnabled { get; set; }
Property Value
Type |
Description |
System.Boolean |
True to turn on themes; the default is False.
|
Declaration
public GroupBarVisualStyle ThemeStyle { get; set; }
Property Value
Returns the collection of visible group bar items.
Declaration
public GroupBar.VisibleGroupBarItemsCollection VisibleGroupBarItems { get; }
Property Value
Indicates the style to be used for drawing the GroupBar control.
Declaration
public VisualStyle VisualStyle { get; set; }
Property Value
Methods
Declaration
protected virtual void ActivateSelection(int newselected, int oldselected)
Parameters
Type |
Name |
Description |
System.Int32 |
newselected |
|
System.Int32 |
oldselected |
|
Declaration
public void ApplyScaleToControl(float scaleFactor)
Parameters
Type |
Name |
Description |
System.Single |
scaleFactor |
|
Signals the object that initialization is starting.
Declaration
CalcTextRect(Graphics, GroupBarItem, Rectangle)
Declaration
protected Rectangle CalcTextRect(Graphics gph, GroupBarItem group, Rectangle rcbar)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
gph |
|
GroupBarItem |
group |
|
System.Drawing.Rectangle |
rcbar |
|
Returns
Type |
System.Drawing.Rectangle |
CalcTextRectForIcon(Graphics, GroupBarItem, Rectangle)
Declaration
protected Rectangle CalcTextRectForIcon(Graphics gph, GroupBarItem group, Rectangle rcbar)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
gph |
|
GroupBarItem |
group |
|
System.Drawing.Rectangle |
rcbar |
|
Returns
Type |
System.Drawing.Rectangle |
Cancels an in-place edit that is in progress.
Declaration
public virtual void CancelInplaceRenameItem()
Declaration
protected void CorrectRectForScrollThumbWidth(ref Rectangle rRect)
Parameters
Type |
Name |
Description |
System.Drawing.Rectangle |
rRect |
|
Declaration
protected override AccessibleObject CreateAccessibilityInstance()
Returns
Type |
System.Windows.Forms.AccessibleObject |
Declaration
protected GroupBarItemAccessibleObject CreateGroupBarItemAccessibilityInstance(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Returns
Overridden. See System.Windows.Forms.Control.Dispose(System.Boolean).
Declaration
protected override void Dispose(bool bdispose)
Parameters
Type |
Name |
Description |
System.Boolean |
bdispose |
|
Overrides
Declaration
protected void DoScroll(bool bupscrllbttn)
Parameters
Type |
Name |
Description |
System.Boolean |
bupscrllbttn |
|
Draws the drop down button.
Declaration
protected virtual void DrawDropdownButton(Graphics gph, Rectangle rcbutton, bool bIsMirrored)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
gph |
A System.Drawing.Graphics object.
|
System.Drawing.Rectangle |
rcbutton |
A System.Drawing.Rectangle value specifying the GroupBarItem bounds.
|
System.Boolean |
bIsMirrored |
If set to true button is mirrored for RTL.
|
Declaration
protected virtual void DrawGroupBarIcon(Graphics gph, int nindex, Rectangle rcbar)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
gph |
A System.Drawing.Graphics object.
|
System.Int32 |
nindex |
The zero-based index of the GroupBarItem for which the icon is drawn.
|
System.Drawing.Rectangle |
rcbar |
A System.Drawing.Rectangle value specifying the GroupBarItem bounds.
|
Declaration
protected virtual void DrawGroupBarImage(Graphics gph, int nindex, Rectangle rcbar)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
gph |
A System.Drawing.Graphics object.
|
System.Int32 |
nindex |
The zero-based index of the GroupBarItem for which the icon is drawn.
|
System.Drawing.Rectangle |
rcbar |
A System.Drawing.Rectangle value specifying the GroupBarItem bounds.
|
Declaration
protected virtual void DrawGroupBarItem(Graphics gfxTarget, int nindex, Rectangle rcbar)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
gfxTarget |
A System.Drawing.Graphics object.
|
System.Int32 |
nindex |
The zero-based index of the GroupBarItem to be drawn.
|
System.Drawing.Rectangle |
rcbar |
A System.Drawing.Rectangle value specifying the GroupBarItem bounds.
|
DrawGroupBarText(Graphics, Int32, Rectangle)
Declaration
protected virtual void DrawGroupBarText(Graphics gph, int nindex, Rectangle rcbar)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
gph |
A System.Drawing.Graphics object.
|
System.Int32 |
nindex |
The zero-based index of the GroupBarItem for which the text is drawn.
|
System.Drawing.Rectangle |
rcbar |
A System.Drawing.Rectangle value specifying the GroupBarItem bounds.
|
Declaration
protected virtual void DrawHeader(Graphics gph)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
gph |
A System.Drawing.Graphics object.
|
Declaration
protected void DrawIconStateHelper(Graphics gph, Icon icon, Rectangle rcicon, bool benabled, GroupBarItem item)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
gph |
|
System.Drawing.Icon |
icon |
|
System.Drawing.Rectangle |
rcicon |
|
System.Boolean |
benabled |
|
GroupBarItem |
item |
|
Declaration
protected void DrawImageStateHelper(Graphics gph, Image image, Rectangle destRect, RectangleF srcRect, bool bEnabled)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
gph |
|
System.Drawing.Image |
image |
|
System.Drawing.Rectangle |
destRect |
|
System.Drawing.RectangleF |
srcRect |
|
System.Boolean |
bEnabled |
|
Declaration
protected virtual void DrawNavigationPane(Graphics gph)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
gph |
|
Declaration
protected virtual void DrawNavigationPaneOffice2003(Graphics gph, Rectangle rcbounds)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
gph |
|
System.Drawing.Rectangle |
rcbounds |
|
Declaration
protected virtual void DrawNavigationPaneOffice2007(Graphics gph, Rectangle rcbounds)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
gph |
|
System.Drawing.Rectangle |
rcbounds |
|
Declaration
protected virtual void DrawNavigationPaneOffice2010(Graphics gph, Rectangle rcbounds)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
gph |
|
System.Drawing.Rectangle |
rcbounds |
|
Declaration
protected virtual void DrawNavigationPaneOfficeXP(Graphics gph, Rectangle rcbounds)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
gph |
|
System.Drawing.Rectangle |
rcbounds |
|
Declaration
protected virtual void DrawNavigationPaneThemed(Graphics gph, Rectangle rcbounds)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
gph |
|
System.Drawing.Rectangle |
rcbounds |
|
Draws icon\image in navigation panel.
Declaration
protected virtual void DrawNevigationItemIcon(Graphics gph, GroupBarItem item, Rectangle rcbutton)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
gph |
|
GroupBarItem |
item |
|
System.Drawing.Rectangle |
rcbutton |
|
Draws the group bar control.
Declaration
protected virtual void DrawRegularGroupBar(Graphics gph)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
gph |
A System.Drawing.Graphics object.
|
Declaration
protected virtual void DrawScrollThumb(Graphics gfxTarget, bool bscrollup, Rectangle rectScroll)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
gfxTarget |
|
System.Boolean |
bscrollup |
|
System.Drawing.Rectangle |
rectScroll |
|
Draws a border around the selected client control.
Declaration
protected virtual void DrawSelectedGroupClientBorder(Graphics gph, Rectangle rcclient)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
gph |
A System.Drawing.Graphics object.
|
System.Drawing.Rectangle |
rcclient |
A System.Drawing.Rectangle value specifying the client control bounds.
|
Draws the stacked group bar.
Declaration
protected virtual void DrawStackedGroupBar(Graphics gph)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
gph |
The GPH.
|
Signals the object that initialization is complete.
Declaration
Declaration
protected void FireGroupBarItemAddedEvent(GroupBarItem item)
Parameters
Declaration
protected void FireGroupBarItemRemovedEvent(GroupBarItem item)
Parameters
Declaration
protected Rectangle GetBoundedRectangle()
Returns
Type |
System.Drawing.Rectangle |
Helps to apply the ControlName settings for GroupBar.
Declaration
public override string GetControlName(string controlName)
Parameters
Type |
Name |
Description |
System.String |
controlName |
|
Returns
Overrides
Declaration
public Rectangle GetDropDownButtonRectangle()
Returns
Type |
System.Drawing.Rectangle |
Declaration
protected Rectangle GetGroupBarItemBounds(int nitem)
Parameters
Type |
Name |
Description |
System.Int32 |
nitem |
|
Returns
Type |
System.Drawing.Rectangle |
Gets the GroupBarItem from the corresponding mouse point.
Declaration
protected int GetItemFromPoint(Point pt)
Parameters
Type |
Name |
Description |
System.Drawing.Point |
pt |
|
Returns
Declaration
protected int GetItemIndex(int virtualSelctedItem)
Parameters
Type |
Name |
Description |
System.Int32 |
virtualSelctedItem |
Index of selected item is VisibleGroupBarItems
|
Returns
Type |
Description |
System.Int32 |
Index of selected item is GroupBarItems collection
|
Declaration
protected Rectangle GetNavPaneRectangle()
Returns
Type |
System.Drawing.Rectangle |
Declaration
protected virtual void GroupBar_RenameComplete(object sender, RenameCompleteEventArgs arg)
Parameters
Declaration
protected bool GroupExists(int ngroup)
Parameters
Type |
Name |
Description |
System.Int32 |
ngroup |
|
Returns
Declaration
protected int HandleMouseLButtonDown(Point pt)
Parameters
Type |
Name |
Description |
System.Drawing.Point |
pt |
|
Returns
Declaration
protected int HandleMouseLButtonUp(Point pt)
Parameters
Type |
Name |
Description |
System.Drawing.Point |
pt |
|
Returns
Declaration
protected int HandleMouseMove(Point pt)
Parameters
Type |
Name |
Description |
System.Drawing.Point |
pt |
|
Returns
Declaration
Initializes the navigation button menu.
Declaration
protected virtual void InitializeNavigationButtonMenu(IContextMenuProvider menu)
Parameters
Declaration
public virtual void InplaceRenameItem(int nindex)
Parameters
Type |
Name |
Description |
System.Int32 |
nindex |
The zero-based index of the item to be renamed.
|
Declaration
protected bool IsDownScrollButtonEnabled()
Returns
Declaration
protected bool IsUpScrollButtonEnabled()
Returns
Declaration
protected void NotifyGroupBarOfItemRemoval(GroupBarItem item)
Parameters
Overridden. See System.Windows.Forms.Control.OnControlAdded(System.Windows.Forms.ControlEventArgs).
Declaration
protected override void OnControlAdded(ControlEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ControlEventArgs |
e |
|
Overrides
Overridden. See System.Windows.Forms.Control.OnControlRemoved(System.Windows.Forms.ControlEventArgs).
Declaration
protected override void OnControlRemoved(ControlEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ControlEventArgs |
e |
|
Overrides
Overridden. See System.Windows.Forms.Control.OnDragLeave(System.EventArgs).
Declaration
protected override void OnDragLeave(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Overridden. See System.Windows.Forms.Control.OnDragOver(System.Windows.Forms.DragEventArgs).
Declaration
protected override void OnDragOver(DragEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.DragEventArgs |
e |
|
Overrides
Called when fewer buttons menuitem is clicked.
Declaration
protected void OnFewerButtons_Click(object sender, EventArgs e)
Parameters
Type |
Name |
Description |
System.Object |
sender |
|
System.EventArgs |
e |
An System.EventArgs that contains the event data.
|
Declaration
protected override void OnFontChanged(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Declaration
protected virtual void OnGroupBarItemAdded(GroupBarItemEventArgs arg)
Parameters
Declaration
protected virtual void OnGroupBarItemRemoved(GroupBarItemEventArgs arg)
Parameters
Declaration
protected virtual void OnGroupBarItemRenamed(GroupItemRenamedEventArgs arg)
Parameters
Declaration
protected virtual void OnGroupBarItemSelected(EventArgs arg)
Parameters
Type |
Name |
Description |
System.EventArgs |
arg |
A System.EventArgs value that contains the event data.
|
Declaration
protected virtual void OnGroupBarItemSelectionChanging(GroupBarItemSelectionChangingEventArgs arg)
Parameters
Called when more buttons menuitem is clicked.
Declaration
protected void OnMoreButtons_Click(object sender, EventArgs e)
Parameters
Type |
Name |
Description |
System.Object |
sender |
|
System.EventArgs |
e |
An System.EventArgs that contains the event data.
|
Overridden. See System.Windows.Forms.Control.OnMouseDown(System.Windows.Forms.MouseEventArgs).
Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.MouseEventArgs |
e |
|
Overrides
Overridden. See System.Windows.Forms.Control.OnMouseLeave(System.EventArgs).
Declaration
protected override void OnMouseLeave(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Overrides
Overridden. See System.Windows.Forms.Control.OnMouseMove(System.Windows.Forms.MouseEventArgs).
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.MouseEventArgs |
e |
|
Overrides
Overridden. See System.Windows.Forms.Control.OnMouseUp(System.Windows.Forms.MouseEventArgs).
Declaration
protected override void OnMouseUp(MouseEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.MouseEventArgs |
e |
|
Overrides
Overrides the MouseWheel event
Declaration
protected override void OnMouseWheel(MouseEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.MouseEventArgs |
e |
|
Overrides
Raises the navigation pane button click event.
Declaration
protected void OnNavigationPaneButtonClick(NavigationPaneDropDownClickEventArgs e)
Parameters
Overridden. See System.Windows.Forms.Control.OnPaint(System.Windows.Forms.PaintEventArgs).
Declaration
protected override void OnPaint(PaintEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.PaintEventArgs |
e |
|
Overrides
Declaration
protected virtual void OnProvideGroupBarItemBrush(ProvideGroupBarItemBrushEventArgs arg)
Parameters
Declaration
protected virtual void OnShowContextMenu(EventArgs arg)
Parameters
Type |
Name |
Description |
System.EventArgs |
arg |
A System.EventArgs value that contains the event data.
|
Declaration
protected override void OnSizeChanged(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Overrides
Overridden. See System.Windows.Forms.Control.OnSystemColorsChanged(System.EventArgs).
Declaration
protected override void OnSystemColorsChanged(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Helps to apply the ThemeName settings for the GroupView.
Declaration
public override void OnThemeNameChanged(string themeName)
Parameters
Type |
Name |
Description |
System.String |
themeName |
ThemeName
|
Overrides
Overridden. See System.Windows.Forms.Control.OnVisibleChanged(System.EventArgs).
Declaration
protected override void OnVisibleChanged(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Overrides
Returns GroupBarItem at specified point in client coordinates.
Declaration
public GroupBarItem PointToItem(Point pt)
Parameters
Type |
Name |
Description |
System.Drawing.Point |
pt |
Point to search GroupBarItem at.
|
Returns
Type |
Description |
GroupBarItem |
GroupBarItem, whose area contains the specified point; Null, if nothing is found.
|
Overloaded. Returns the GroupBarItem at the specified point in client coordinates.
Declaration
public GroupBarItem PointToItem(int x, int y)
Parameters
Type |
Name |
Description |
System.Int32 |
x |
X - coordinate of the item.
|
System.Int32 |
y |
Y - coordinate of the item.
|
Returns
Type |
Description |
GroupBarItem |
GroupBarItem, whose area contains the specified point; Null, if nothing is found.
|
Declaration
protected override bool ProcessCmdKey(ref Message msg, Keys keydata)
Parameters
Type |
Name |
Description |
System.Windows.Forms.Message |
msg |
|
System.Windows.Forms.Keys |
keydata |
|
Returns
Declaration
protected void PropChangedHandler(object obj, PropertyChangedEventArgs args)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
System.ComponentModel.PropertyChangedEventArgs |
args |
|
Declaration
protected void RecalculateGroupBarLayout()
Declaration
protected void ResetApplyDefaultVisualStyleColor()
ResetCollapsedText()
Declaration
protected void ResetCollapsedText()
Declaration
protected void ResetCollapseImage()
Resets the EnableSplittercolorCustomization
Declaration
public void ResetEnableSplittercolorCustomization()
Declaration
protected void ResetExpandButtonToolTip()
Declaration
protected void ResetExpandImage()
Declaration
public void ResetGroupBarDropDownToolTip()
Declaration
public void ResetGroupBarItemCursor()
Declaration
public void ResetHeaderBackColor()
Resets the HeaderFont property to its default value.
Declaration
public void ResetHeaderFont()
Declaration
public void ResetHeaderForeColor()
Declaration
protected void ResetMinimizeButtonToolTip()
Declaration
protected void ResetNavigationPaneTooltip()
Declaration
public void ResetSplittercolor()
Declaration
protected void ScrollTimerEventHandler(object obj, EventArgs args)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
System.EventArgs |
args |
|
Declaration
protected virtual int SelectItem(int newselected, int oldselected)
Parameters
Type |
Name |
Description |
System.Int32 |
newselected |
|
System.Int32 |
oldselected |
|
Returns
Declaration
protected void SetActiveClientBounds()
Declaration
protected void SetActiveClientBounds(GroupBarItem group, Rectangle rc1, Rectangle rc2, bool bscrlldown)
Parameters
Type |
Name |
Description |
GroupBarItem |
group |
|
System.Drawing.Rectangle |
rc1 |
|
System.Drawing.Rectangle |
rc2 |
|
System.Boolean |
bscrlldown |
|
Overridden. See System.Windows.Forms.Control.SetBoundsCore(System.Int32,System.Int32,System.Int32,System.Int32,System.Windows.Forms.BoundsSpecified).
Declaration
protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified)
Parameters
Type |
Name |
Description |
System.Int32 |
x |
|
System.Int32 |
y |
|
System.Int32 |
width |
|
System.Int32 |
height |
|
System.Windows.Forms.BoundsSpecified |
specified |
|
Declaration
protected void SetScrollButtonState(bool bupscroll, ButtonsState state)
Parameters
Type |
Name |
Description |
System.Boolean |
bupscroll |
|
ButtonsState |
state |
|
ShouldSerializeCollapsedText()
Declaration
protected bool ShouldSerializeCollapsedText()
Returns
Declaration
protected bool ShouldSerializeCollapseImage()
Returns
Declaration
protected bool ShouldSerializeExpandButtonToolTip()
Returns
Declaration
protected bool ShouldSerializeExpandImage()
Returns
Declaration
protected bool ShouldSerializeGroupBarDropDownToolTip()
Returns
Declaration
protected bool ShouldSerializeGroupBarItemCursor()
Returns
Declaration
protected bool ShouldSerializeHeaderBackColor()
Returns
Declaration
protected bool ShouldSerializeHeaderFont()
Returns
Declaration
protected bool ShouldSerializeHeaderForeColor()
Returns
Declaration
protected bool ShouldSerializeMinimizeButtonToolTip()
Returns
Declaration
protected bool ShouldSerializeNavigationPaneTooltip()
Returns
Declaration
protected bool ShoulSerailizeApplyDefaultVisualStyleColor()
Returns
Creates and displays the drop-down button context menu.
Declaration
protected void ShowDropDownMenu()
Shows the item popup when the Group bar is Collapsed
Declaration
public void ShowItemPopup(GroupBarItem barItem)
Parameters
Type |
Name |
Description |
GroupBarItem |
barItem |
GroupBar Item for which Popup to be shown
|
Declaration
protected override void WndProc(ref Message m)
Parameters
Type |
Name |
Description |
System.Windows.Forms.Message |
m |
|
Overrides
Events
Declaration
public event GroupBar.BeforePopupEventHandler BeforePopup
Event Type
Declaration
public event GroupBarItemEventHandler GroupBarItemAdded
Event Type
Declaration
public event GroupBarItemEventHandler GroupBarItemRemoved
Event Type
Occurs after a GroupBarItem has been renamed by an in-place edit operation.
Declaration
public event GroupItemRenamedEventHandler GroupBarItemRenamed
Event Type
Declaration
public event EventHandler GroupBarItemSelected
Event Type
Declaration
public event GroupBarItemSelectionChangingEventHandler GroupBarItemSelectionChanging
Event Type
Occurs when the user clicks on the GroupBar control's navigation pane drop-down button.
Declaration
public event NavigationPaneDropDownClickEventHandler NavigationPaneDropDownClick
Event Type
Declaration
public event ProvideGroupBarItemBrushEventHandler ProvideGroupBarItemBrush
Event Type
Occurs when the right mouse button is clicked over the GroupBar control.
Declaration
public event EventHandler ShowContextMenu
Event Type
Declaration
public event EventHandler StateChanged
Event Type
Occurs when Collapsed property is about to be changed.
Declaration
public event CancelEventHandler StateChanging
Event Type
Type |
System.ComponentModel.CancelEventHandler |
Explicit Interface Implementations
Declaration
int IGroupBarDesignerInvoke.GetGroupAtLocation(Point pt)
Parameters
Type |
Name |
Description |
System.Drawing.Point |
pt |
|
Returns
Declaration
bool IIntegratedScrollContainer.HandleScrollButtonDown(Point pt)
Parameters
Type |
Name |
Description |
System.Drawing.Point |
pt |
|
Returns
Declaration
bool IIntegratedScrollContainer.HandleScrollButtonUp(Point pt)
Parameters
Type |
Name |
Description |
System.Drawing.Point |
pt |
|
Returns
Declaration
void IIntegratedScrollContainer.InvalidateDownScrollButton()
Declaration
void IIntegratedScrollContainer.InvalidateUpScrollButton()
Implements
System.IDisposable
System.ComponentModel.ISupportInitialize
See Also