ComponentFactory.Krypton.Docking.KryptonDockingDockspace.KryptonDockingDockspace C# (CSharp) Method

KryptonDockingDockspace() public method

Initialize a new instance of the KryptonDockingDockspace class.
public KryptonDockingDockspace ( string name, DockingEdge edge, Size size ) : System
name string Initial name of the element.
edge DockingEdge Docking edge this dockspace is against.
size System.Drawing.Size Initial size of the dockspace.
return System
        public KryptonDockingDockspace(string name, DockingEdge edge, Size size)
            : base(name, "Docked")
        {
            // Create a new dockspace that will be a host for docking pages
            SpaceControl = new KryptonDockspace();
            DockspaceControl.Size = size;
            DockspaceControl.Dock = DockingHelper.DockStyleFromDockEdge(edge, false);
            DockspaceControl.CellCountChanged += new EventHandler(OnDockspaceCellCountChanged);
            DockspaceControl.CellVisibleCountChanged += new EventHandler(OnDockspaceCellVisibleCountChanged);
            DockspaceControl.CellPageInserting += new EventHandler<KryptonPageEventArgs>(OnSpaceCellPageInserting);
            DockspaceControl.PageCloseClicked += new EventHandler<UniqueNameEventArgs>(OnDockspacePageCloseClicked);
            DockspaceControl.PageAutoHiddenClicked += new EventHandler<UniqueNameEventArgs>(OnDockspacePageAutoHiddenClicked);
            DockspaceControl.PagesDoubleClicked += new EventHandler<UniqueNamesEventArgs>(OnDockspacePagesDoubleClicked);
            DockspaceControl.PageDropDownClicked += new EventHandler<CancelDropDownEventArgs>(OnDockspaceDropDownClicked);
            DockspaceControl.BeforePageDrag += new EventHandler<PageDragCancelEventArgs>(OnDockspaceBeforePageDrag);
        }