Class FloatingForm
The floating form control.
Inheritance
System.Object
FloatingForm
Assembly: Syncfusion.Tools.Windows.dll
public class FloatingForm : Form, IDraggable, IDockingManagerDesignerMouseHook, IDockable
Constructors
Constructor of the floating form.
Declaration
public FloatingForm(DockingManager dmgr)
Parameters
Type |
Name |
Description |
DockingManager |
dmgr |
The DockingManager instance.
|
Fields
Declaration
Field Value
Declaration
protected bool bAutoHideButtonVisibility
Field Value
Declaration
protected bool bCloseButtonVisibility
Field Value
Declaration
protected string formCaption
Field Value
Declaration
Field Value
Declaration
protected DockStateControllerBase m_owner
Field Value
Declaration
protected static int nNamingCount
Field Value
Declaration
protected Rectangle rcDrag
Field Value
Type |
System.Drawing.Rectangle |
Properties
Gets/Sets value to display AutoHideButton in Floating Form
Declaration
public bool AutoHideButtonVisibility { get; set; }
Property Value
Gets/Sets value to define AutoHideMode in Floating Form
Declaration
public AutoHideStatus AutoHideMode { get; set; }
Property Value
Gets / Sets the CloseButtonVisibility
Declaration
public bool CloseButtonVisibility { get; set; }
Property Value
Declaration
protected override CreateParams CreateParams { get; }
Property Value
Type |
System.Windows.Forms.CreateParams |
Gets / Sets the DragDockInfo
Declaration
public DockInfo DragDockInfo { get; set; }
Property Value
Gets / Sets the DragRectangle
Declaration
public Rectangle DragRectangle { get; set; }
Property Value
Type |
System.Drawing.Rectangle |
Gets or sets the border style of the form.
Declaration
public FormBorderStyle FormBorderStyle { get; set; }
Property Value
Type |
System.Windows.Forms.FormBorderStyle |
Gets the Image rectangle.
Declaration
public Rectangle ImageRect { get; }
Property Value
Type |
System.Drawing.Rectangle |
Text
Declaration
public override string Text { get; set; }
Property Value
Methods
Cancel the Drag operation.
Declaration
Returns the allowed drag axis.
Declaration
public DragAxis AllowedDragAxis(ref Point ptdrag, Point ptdelta)
Parameters
Type |
Name |
Description |
System.Drawing.Point |
ptdrag |
The mouse point of the drag location.
|
System.Drawing.Point |
ptdelta |
The mouse point.
|
Returns
Type |
Description |
DragAxis |
The dragged axis.
|
Declaration
protected override AccessibleObject CreateAccessibilityInstance()
Returns
Type |
Description |
System.Windows.Forms.AccessibleObject |
A new System.Windows.Forms.AccessibleObject for the FloatingForm, when AccessibilityEnabled for DockingManager is set as true
|
Declaration
Declaration
protected override void Dispose(bool bdisposing)
Parameters
Type |
Name |
Description |
System.Boolean |
bdisposing |
|
Declaration
Returns
DrawWindowTextAndImage(ref Message)
Declaration
protected void DrawWindowTextAndImage(ref Message msg)
Parameters
Type |
Name |
Description |
System.Windows.Forms.Message |
msg |
|
Declaration
Declaration
public void Enable(bool show)
Parameters
Type |
Name |
Description |
System.Boolean |
show |
Indicates whether it needs to be enable or not.
|
Declaration
protected Font GetCaptionFont()
Returns
Declaration
public DockControllerBase GetController()
Returns
Gets the design mode of the FloatingForm.
Declaration
public bool GetDesignMode()
Returns
Declaration
protected Rectangle GetImageRect(Rectangle rcBounds)
Parameters
Type |
Name |
Description |
System.Drawing.Rectangle |
rcBounds |
|
Returns
Type |
System.Drawing.Rectangle |
Declaration
protected Rectangle GetImageRect(RectangleF rcBoundsF)
Parameters
Type |
Name |
Description |
System.Drawing.RectangleF |
rcBoundsF |
|
Returns
Type |
System.Drawing.Rectangle |
GetTextRectFromBounds(RectangleF, ref Rectangle)
Declaration
protected Rectangle GetTextRectFromBounds(RectangleF bounds, ref Rectangle imageRect)
Parameters
Type |
Name |
Description |
System.Drawing.RectangleF |
bounds |
|
System.Drawing.Rectangle |
imageRect |
|
Returns
Type |
System.Drawing.Rectangle |
Handles the double click.
Declaration
public void HandleDoubleClick(Point ptscreen)
Parameters
Type |
Name |
Description |
System.Drawing.Point |
ptscreen |
The mouse point.
|
Declaration
public void HandleMouseDown(MouseButtons button, Point ptscreen)
Parameters
Type |
Name |
Description |
System.Windows.Forms.MouseButtons |
button |
The MouseButtons.
|
System.Drawing.Point |
ptscreen |
The mouse point.
|
Declaration
public void HandleMouseLeave()
Declaration
public void HandleMouseMove(MouseButtons button, Point ptscreen)
Parameters
Type |
Name |
Description |
System.Windows.Forms.MouseButtons |
button |
The MouseButtons.
|
System.Drawing.Point |
ptscreen |
The mouse point.
|
Declaration
public void HandleMouseUp(MouseButtons button, Point ptscreen)
Parameters
Type |
Name |
Description |
System.Windows.Forms.MouseButtons |
button |
The MouseButtons.
|
System.Drawing.Point |
ptscreen |
The mouse point.
|
Declaration
public bool InitiateDrag(MouseAction action, Point ptscreen)
Parameters
Type |
Name |
Description |
MouseAction |
action |
The mouse action.
|
System.Drawing.Point |
ptscreen |
The mouse point
|
Returns
Initiate the FloatingResize.
Declaration
public void InitiateFloatingResize(Point ptscreen, int nchittest)
Parameters
Type |
Name |
Description |
System.Drawing.Point |
ptscreen |
The mouse point
|
System.Int32 |
nchittest |
|
Indicates if the Default//VS2005 style is set with Vista Aero Theme enabled.
Declaration
public bool IsDefaultRendering()
Returns
Implementation of the IDraggable interface methods
Declaration
public bool IsSuitableDockTarget(DockControllerBase dc)
Parameters
Returns
Declaration
protected override void OnControlAdded(ControlEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ControlEventArgs |
e |
|
Declaration
protected override void OnControlRemoved(ControlEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ControlEventArgs |
e |
|
Declaration
protected override void OnHandleDestroyed(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Declaration
protected override void OnLoad(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Declaration
protected override void OnLocationChanged(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Declaration
protected override void OnMouseLeave(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.MouseEventArgs |
e |
|
Declaration
protected override void OnMouseUp(MouseEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.MouseEventArgs |
e |
|
Declaration
protected override void OnVisibleChanged(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Declaration
protected override bool ProcessCmdKey(ref Message m, Keys keydata)
Parameters
Type |
Name |
Description |
System.Windows.Forms.Message |
m |
|
System.Windows.Forms.Keys |
keydata |
|
Returns
Returns the QueryDragProceedWithDock.
Declaration
public bool QueryDragProceedWithDock()
Returns
Declaration
public override void Refresh()
Update the control box visibility.
Declaration
public void UpdateControlBoxVisibility()
Updates Form BorderStyles, Icon and caption text for Vista Aero Themed OS.
Declaration
public void UpdateFormBorderStyle()
Declaration
protected void UpdateFormMinimumSize()
Declaration
protected void UpdateFormPosition(int nScreenWidth, int nScreenHeight)
Parameters
Type |
Name |
Description |
System.Int32 |
nScreenWidth |
|
System.Int32 |
nScreenHeight |
|
Declaration
protected override void WndProc(ref Message msg)
Parameters
Type |
Name |
Description |
System.Windows.Forms.Message |
msg |
|
Implements