Source/DocumentDock/DocumentBaseContainer.cs

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.ComponentModel;
using System.Drawing;

namespace DevComponents.DotNetBar
{
	/// <summary>
	/// Represents Document container base class.
	/// </summary>
	public abstract class DocumentBaseContainer
	{
		#region Private Variables and Constructor
		private Rectangle m_LayoutBounds=Rectangle.Empty;
		private Rectangle m_DisplayBounds=Rectangle.Empty;
		private DocumentBaseContainer m_Parent=null;
		/// <summary>
		/// Creates new instance of the class.
		/// </summary>
		public DocumentBaseContainer()
		{
		}
		#endregion

		#region Internal Implementation

		/// <summary>
		/// Returns actual display bounds of the document.
		/// </summary>
		[Browsable(false)]
		public virtual Rectangle DisplayBounds
		{
			get {return m_DisplayBounds;}
		}

		/// <summary>
		/// Returns layout bounds of the document. Layout bounds are proposed bounds of the layout and might not be the same
		/// as DisplayBounds.
		/// </summary>
		[Browsable(false)]
		public virtual Rectangle LayoutBounds
		{
			get {return m_LayoutBounds;}
		}

		/// <summary>
		/// Gets the parent container.
		/// </summary>
		public virtual DocumentBaseContainer Parent
		{
			get {return m_Parent;}
		}

		/// <summary>
		/// Resizes the document within specified bounds.
		/// </summary>
		/// <param name="bounds">Area available for the document.</param>
		public abstract void Layout(Rectangle bounds);

		/// <summary>
		/// Sets the display bounds.
后面还有 106 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。