interfaces.cs
来自「全功能c#编译器」· CS 代码 · 共 68 行
CS
68 行
// *****************************************************************************
//
// Copyright 2004, Weifen Luo
// All rights reserved. The software and associated documentation
// supplied hereunder are the proprietary information of Weifen Luo
// and are supplied subject to licence terms.
//
// WinFormsUI Library Version 1.0
// *****************************************************************************
using System;
using System.Drawing;
namespace WeifenLuo.WinFormsUI
{
public interface IDockListContainer
{
DockState DockState { get; }
Rectangle DisplayingRectangle { get; }
DockList DockList { get; }
DisplayingDockList DisplayingList { get; }
}
public interface IDockPaneFactory
{
DockPane CreateDockPane(DockContent content, DockState visibleState, bool isHidden);
DockPane CreateDockPane(DockContent content, DockState visibleState, bool isHidden, FloatWindow floatWindow);
DockPane CreateDockPane(DockContent content, Rectangle floatWindowBounds);
}
internal class DefaultDockPaneFactory : IDockPaneFactory
{
public DockPane CreateDockPane(DockContent content, DockState visibleState, bool isHidden)
{
return new DockPane(content, visibleState, isHidden);
}
public DockPane CreateDockPane(DockContent content, DockState visibleState, bool isHidden, FloatWindow floatWindow)
{
return new DockPane(content, visibleState, isHidden, floatWindow);
}
public DockPane CreateDockPane(DockContent content, Rectangle floatWindowBounds)
{
return new DockPane(content, floatWindowBounds);
}
}
public interface IFloatWindowFactory
{
FloatWindow CreateFloatWindow(DockPanel dockPanel, DockPane pane);
FloatWindow CreateFloatWindow(DockPanel dockPanel, DockPane pane, Rectangle bounds);
}
internal class DefaultFloatWindowFactory : IFloatWindowFactory
{
public FloatWindow CreateFloatWindow(DockPanel dockPanel, DockPane pane)
{
return new FloatWindow(dockPanel, pane);
}
public FloatWindow CreateFloatWindow(DockPanel dockPanel, DockPane pane, Rectangle bounds)
{
return new FloatWindow(dockPanel, pane, bounds);
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?