Source/TabControlPanel.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Windows.Forms;
using System.Windows.Forms.Design;
using System.Collections;
using System.Drawing;
using System.ComponentModel.Design;
using System.ComponentModel;
using DevComponents.DotNetBar.Design;
namespace DevComponents.DotNetBar
{
/// <summary>
/// Represents Panel for the Tab Control.
/// </summary>
[ToolboxItem(false),Designer(typeof(TabControlPanelDesigner))]
public class TabControlPanel:PanelEx
{
#region Private Variables
private const string INFO_TEXT="Drop controls on this panel to associate them with currently selected tab.";
private TabItem m_Tab=null;
private bool m_UseCustomStyle=false;
#endregion
#region Internal Implementation
/// <summary>
/// Default constructor.
/// </summary>
public TabControlPanel():base()
{
DockPadding.All = 1;
this.BackColor=SystemColors.Control;
}
private Rectangle GetThemedRect(Rectangle r)
{
const int offset=6;
switch(m_Tab.Parent.TabAlignment)
{
case eTabStripAlignment.Top:
{
r.Y-=offset;
r.Height+=offset;
break;
}
case eTabStripAlignment.Left:
{
r.X-=offset;
r.Width+=offset;
break;
}
case eTabStripAlignment.Right:
{
r.Width+=offset;
break;
}
case eTabStripAlignment.Bottom:
{
r.Height+=offset;
break;
后面还有 111 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。