Class HeaderControlBehavior
Behavior for ribbon header control.
Inheritance
Namespace: Syncfusion.Windows.Forms.Tools.Design
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class HeaderControlBehavior : Behavior
Constructors
HeaderControlBehavior(RibbonHeaderControl, BehaviorService)
Initializes a new instance of the HeaderControlBehavior class.
Declaration
public HeaderControlBehavior(RibbonHeaderControl control, BehaviorService behaviorService)
Parameters
Type | Name | Description |
---|---|---|
RibbonHeaderControl | 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 group.
Declaration
public bool DragDropCloserToRight { get; }
Property Value
Type |
---|
System.Boolean |
GroupUnderDragDrop
Gets group under drag drop operation.
Declaration
public RibbonTabGroup GroupUnderDragDrop { get; }
Property Value
Type |
---|
RibbonTabGroup |
Methods
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. |
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 | Graphic object |
System.Windows.Forms.DragEventArgs | e | EventArgs that contains the event data. |
OnMouseDown(Glyph, MouseButtons, Point)
Overrides the MouseDown event.
Declaration
public override bool OnMouseDown(Glyph g, MouseButtons button, Point mouseLoc)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Design.Behavior.Glyph | g | Glyph |
System.Windows.Forms.MouseButtons | button | MouseButtons |
System.Drawing.Point | mouseLoc | The mouse down point |
Returns
Type |
---|
System.Boolean |
OnMouseMove(Glyph, MouseButtons, Point)
Called when any mouse-move message enters the adorner window of the System.Windows.Forms.Design.Behavior.BehaviorService.
Declaration
public override bool OnMouseMove(Glyph g, MouseButtons button, Point mouseLoc)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Design.Behavior.Glyph | g | A System.Windows.Forms.Design.Behavior.Glyph. |
System.Windows.Forms.MouseButtons | button | A System.Windows.Forms.MouseButtons value indicating which button was clicked. |
System.Drawing.Point | mouseLoc | The location at which the move occurred. |
Returns
Type | Description |
---|---|
System.Boolean | true if the message was handled; otherwise, false. |
OnMouseUp(Glyph, MouseButtons)
Overrides the MouseUp event.
Declaration
public override bool OnMouseUp(Glyph g, MouseButtons button)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Design.Behavior.Glyph | g | Glyph |
System.Windows.Forms.MouseButtons | button | MouseButtons |
Returns
Type |
---|
System.Boolean |