menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class TabGroupBehavior - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class TabGroupBehavior

    Behavior for ribbon tab group.

    Inheritance
    System.Object
    TabGroupBehavior
    Namespace: Syncfusion.Windows.Forms.Tools.Design
    Assembly: Syncfusion.Tools.Windows.dll
    Syntax
    public class TabGroupBehavior : Behavior

    Constructors

    TabGroupBehavior(RibbonTabGroup, BehaviorService)

    Initializes a new instance of the TabGroupBehavior class.

    Declaration
    public TabGroupBehavior(RibbonTabGroup control, BehaviorService behaviorService)
    Parameters
    Type Name Description
    RibbonTabGroup control

    Design time instance of RibbonTabGroup.

    System.Windows.Forms.Design.Behavior.BehaviorService behaviorService

    Behavior Service

    Properties

    DragDropCloserToRight

    Gets a value indicating whether mouse pointer during drag drop operation is situated closer to the right edge of the underlying item.

    Declaration
    public bool DragDropCloserToRight { get; }
    Property Value
    Type
    System.Boolean

    ItemUnderMouse

    Gets item under mouse pointer.

    Declaration
    public ToolStripItem ItemUnderMouse { get; }
    Property Value
    Type
    System.Windows.Forms.ToolStripItem

    SelectedItem

    Gets selected item.

    Declaration
    public ToolStripItem SelectedItem { get; }
    Property Value
    Type
    System.Windows.Forms.ToolStripItem

    UnderDragDrop

    Gets a value indicating whether drag drop operation is being currently performed.

    Declaration
    public bool UnderDragDrop { get; }
    Property Value
    Type
    System.Boolean

    UnderMouse

    Gets a value indicating whether group is situated under mouse pointer.

    Declaration
    public bool UnderMouse { get; }
    Property Value
    Type
    System.Boolean

    Methods

    M_control_ItemAdded(Object, ToolStripItemEventArgs)

    Makes new item selected.

    Declaration
    public void M_control_ItemAdded(object sender, ToolStripItemEventArgs e)
    Parameters
    Type Name Description
    System.Object sender

    Sender object

    System.Windows.Forms.ToolStripItemEventArgs e

    EventArgs that contains the event data.

    OnDragDrop(Glyph, DragEventArgs)

    Processes drag drop operation.

    Declaration
    public override void OnDragDrop(Glyph g, DragEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.Design.Behavior.Glyph g

    Graphics Object

    System.Windows.Forms.DragEventArgs e

    EventArgs that contains the event data.

    OnDragEnter(Glyph, DragEventArgs)

    Marks group as group under mouse pointer.

    Declaration
    public override void OnDragEnter(Glyph g, DragEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.Design.Behavior.Glyph g

    Graphics Object

    System.Windows.Forms.DragEventArgs e

    DrawEventArgs that contains the event data.

    OnDragLeave(Glyph, EventArgs)

    Unmarks group as group under mouse pointer.

    Declaration
    public override void OnDragLeave(Glyph g, EventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.Design.Behavior.Glyph g

    Graphics Object

    System.EventArgs e

    EventArgs that contains the event data.

    OnDragOver(Glyph, DragEventArgs)

    Processes drag drop operation.

    Declaration
    public override void OnDragOver(Glyph g, DragEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.Design.Behavior.Glyph g

    Graphics Object

    System.Windows.Forms.DragEventArgs e

    EventArgs that contains the event data.

    OnMouseDown(Glyph, MouseButtons, Point)

    Processes mouse click. Highlights selected item.

    Declaration
    public override bool OnMouseDown(Glyph g, MouseButtons button, Point mouseLoc)
    Parameters
    Type Name Description
    System.Windows.Forms.Design.Behavior.Glyph g

    Graphics Object

    System.Windows.Forms.MouseButtons button

    Mouse button

    System.Drawing.Point mouseLoc

    Mouse Location

    Returns
    Type Description
    System.Boolean

    Returns bool value

    OnMouseEnter(Glyph)

    Marks group as group under mouse pointer.

    Declaration
    public override bool OnMouseEnter(Glyph g)
    Parameters
    Type Name Description
    System.Windows.Forms.Design.Behavior.Glyph g

    Graphics Object

    Returns
    Type Description
    System.Boolean

    Returns bool value

    OnMouseLeave(Glyph)

    Unmarks group as group under mouse pointer.

    Declaration
    public override bool OnMouseLeave(Glyph g)
    Parameters
    Type Name Description
    System.Windows.Forms.Design.Behavior.Glyph g

    Graphics Object

    Returns
    Type Description
    System.Boolean

    Returns bool value

    OnMouseMove(Glyph, MouseButtons, Point)

    Processes drag drop operation.

    Declaration
    public override bool OnMouseMove(Glyph g, MouseButtons button, Point mouseLoc)
    Parameters
    Type Name Description
    System.Windows.Forms.Design.Behavior.Glyph g

    Graphics Object

    System.Windows.Forms.MouseButtons button

    Mouse button

    System.Drawing.Point mouseLoc

    Mouse location

    Returns
    Type Description
    System.Boolean

    Returns bool value

    OnMouseUp(Glyph, MouseButtons)

    Cancels drag drop operation.

    Declaration
    public override bool OnMouseUp(Glyph g, MouseButtons button)
    Parameters
    Type Name Description
    System.Windows.Forms.Design.Behavior.Glyph g

    Graphics object

    System.Windows.Forms.MouseButtons button

    Mouse button

    Returns
    Type Description
    System.Boolean

    Returns bool value

    Events

    GroupClicked

    Raised when group is clicked.

    Declaration
    public event ToolStripItemEventHandler GroupClicked
    Event Type
    Type
    System.Windows.Forms.ToolStripItemEventHandler

    NewItemDroppedAtSingleItemGroup

    Raised when new single item has to be added.

    Declaration
    public event NewItemDroppedAtSingleItemGroupEventHandler NewItemDroppedAtSingleItemGroup
    Event Type
    Type
    NewItemDroppedAtSingleItemGroupEventHandler
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved