Source/AdvTree/ColumnHeaderCollection.cs

(开头部分) 8KB

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

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

namespace DevComponents.AdvTree 
{
	/// <summary>
	/// Represents collection for ColumnHeader objects.
	/// </summary>
	public class ColumnHeaderCollection:CollectionBase 
	{
		#region Private Variables
		private Node _ParentNode=null;
        private AdvTree _Parent = null;
		#endregion

		#region Internal Implementation
		/// <summary>
		/// Default constructor.
		/// </summary>
		public ColumnHeaderCollection()
		{
		}
		/// <summary>
		/// Gets or sets the node this collection is associated with.
		/// </summary>
		[Browsable(false),DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
		public Node ParentNode
		{
			get {return _ParentNode;}
		}
		/// <summary>
		/// Sets the node collection belongs to.
		/// </summary>
		/// <param name="parent">ColumnHeader that is parent of this collection.</param>
		internal void SetParentNode(Node parent)
		{
			_ParentNode=parent;
		}

        internal AdvTree Parent
        {
            get { return _Parent; }
            set { _Parent = value; }
        }

		/// <summary>
		/// Adds new object to the collection.
		/// </summary>
		/// <param name="ch">Object to add.</param>
		/// <returns>Index of newly added object.</returns>
		public int Add(ColumnHeader ch)
		{
			return List.Add(ch);
		}
		/// <summary>
		/// Returns reference to the object in collection based on it's index.
		/// </summary>
		public ColumnHeader this[int index]
后面还有 217 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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