Source/DocumentDock/DocumentBarContainer.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.ComponentModel;
using System.Drawing;
using System.Xml;
namespace DevComponents.DotNetBar
{
/// <summary>
/// Represents class that is a bar container for document docking.
/// </summary>
[DesignTimeVisible(false),ToolboxItem(false),TypeConverter(typeof(DocumentBarContainerConverter))]
public class DocumentBarContainer:DocumentBaseContainer
{
#region Private Variables and Constructor
private Bar m_Bar=null;
/// <summary>
/// Creates new instance of the class.
/// </summary>
public DocumentBarContainer(){}
/// <summary>
/// Creates new instance of the class and initializes it with the Bar object.
/// </summary>
/// <param name="bar">Bar to contain on document.</param>
public DocumentBarContainer(Bar bar)
{
m_Bar=bar;
if(m_Bar.SplitDockHeight>0 || m_Bar.SplitDockWidth>0)
this.SetLayoutBounds(new Rectangle(0,0,m_Bar.SplitDockWidth,m_Bar.SplitDockHeight));
}
/// <summary>
/// Creates new instance of the class and initializes it with the bar and propesed width and height.
/// </summary>
/// <param name="bar">Bar to contain on document.</param>
/// <param name="proposedWidth">Proposed width of the document in pixels</param>
/// <param name="proposedHeight">Proposed height of the document in pixels</param>
public DocumentBarContainer(Bar bar, int proposedWidth, int proposedHeight)
{
m_Bar=bar;
this.SetLayoutBounds(new Rectangle(0,0,proposedWidth,proposedHeight));
}
#endregion
#region Internal Implementation
/// <summary>
/// Gets or sets the bar that is contained by this document.
/// </summary>
[Browsable(false),DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public Bar Bar
{
get {return m_Bar;}
set {m_Bar=value;}
}
/// <summary>
/// Resizes document object.
/// </summary>
/// <param name="bounds">Available bounds for the document.</param>
后面还有 38 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。