DockStyleFromDockEdge() public static method

Convert from DockEdge to DockStyle enumeration value.
public static DockStyleFromDockEdge ( DockingEdge edge, bool opposite ) : DockStyle
edge DockingEdge DockEdge value to convert.
opposite bool Should the separator be docked against the opposite edge.
return DockStyle
 /// <summary>
 /// Initialize a new instance of the KryptonDockingDockspace class.
 /// </summary>
 /// <param name="name">Initial name of the element.</param>
 /// <param name="edge">Docking edge this dockspace is against.</param>
 /// <param name="size">Initial size of the dockspace.</param>
 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        += OnDockspaceCellCountChanged;
     DockspaceControl.CellVisibleCountChanged += OnDockspaceCellVisibleCountChanged;
     DockspaceControl.CellPageInserting       += OnSpaceCellPageInserting;
     DockspaceControl.PageCloseClicked        += OnDockspacePageCloseClicked;
     DockspaceControl.PageAutoHiddenClicked   += OnDockspacePageAutoHiddenClicked;
     DockspaceControl.PagesDoubleClicked      += OnDockspacePagesDoubleClicked;
     DockspaceControl.PageDropDownClicked     += OnDockspaceDropDownClicked;
     DockspaceControl.BeforePageDrag          += OnDockspaceBeforePageDrag;
 }
 /// <summary>
 /// Initialize a new instance of the KryptonDockingDockspace class.
 /// </summary>
 /// <param name="name">Initial name of the element.</param>
 /// <param name="edge">Docking edge this dockspace is against.</param>
 /// <param name="size">Initial size of the dockspace.</param>
 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);
 }