------ #### RaUIV4 V4.0.2311.0701 - *.[全新]整合了MyDb、ryControls、MyDb_MySQL等dll文件到RaUI一个项目。 - *.[新增]新增ApkOp类,可以轻松获取APK信息。 - *.[新增]新增JsonExt扩展类,让Json操作更简单。 - *.[新增]新增WebP类,可以支持webp格式的图片。 - *.[改进]ryQuickSQL中的AddField方法改为自动替换已存在的同名值。 - *.[修复]ryQuickSQL中的AddFieldCalc方法无法正常计算的BUG。
48 lines
1.6 KiB
C#
48 lines
1.6 KiB
C#
using System.ComponentModel;
|
|
using System.Drawing;
|
|
using System.Drawing.Drawing2D;
|
|
using System.Windows.Forms;
|
|
|
|
namespace WeifenLuo.WinFormsUI.Docking
|
|
{
|
|
/// <summary>
|
|
/// Dock window of Visual Studio 2012 Light theme.
|
|
/// </summary>
|
|
[ToolboxItem(false)]
|
|
internal class VS2012DockWindow : DockWindow
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="VS2012DockWindow"/> class.
|
|
/// </summary>
|
|
/// <param name="dockPanel">The dock panel.</param>
|
|
/// <param name="dockState">State of the dock.</param>
|
|
public VS2012DockWindow(DockPanel dockPanel, DockState dockState) : base(dockPanel, dockState)
|
|
{
|
|
}
|
|
|
|
public override Rectangle DisplayingRectangle
|
|
{
|
|
get
|
|
{
|
|
Rectangle rect = ClientRectangle;
|
|
if (DockState == DockState.DockLeft)
|
|
rect.Width -= DockPanel.Theme.Measures.SplitterSize;
|
|
else if (DockState == DockState.DockRight)
|
|
{
|
|
rect.X += DockPanel.Theme.Measures.SplitterSize;
|
|
rect.Width -= DockPanel.Theme.Measures.SplitterSize;
|
|
}
|
|
else if (DockState == DockState.DockTop)
|
|
rect.Height -= DockPanel.Theme.Measures.SplitterSize;
|
|
else if (DockState == DockState.DockBottom)
|
|
{
|
|
rect.Y += DockPanel.Theme.Measures.SplitterSize;
|
|
rect.Height -= DockPanel.Theme.Measures.SplitterSize;
|
|
}
|
|
|
|
return rect;
|
|
}
|
|
}
|
|
}
|
|
}
|