Source/AdvTree/ElementStyleCollection.cs

(开头部分) 4KB

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

using System;
using System.Collections;
using DevComponents.DotNetBar;

namespace DevComponents.AdvTree
{
	/// <summary>
	/// Represents collection for Node objects.
	/// </summary>
	public class ElementStyleCollection:CollectionBase 
	{
		#region Private Variables
		private AdvTree m_TreeControl=null;
		//private Hashtable m_InnerHashtable=new Hashtable();
		#endregion

		#region Internal Implementation
		/// <summary>Creates new instance of the object.</summary>
		public ElementStyleCollection()
		{
		}
		internal AdvTree TreeControl
		{
			get {return m_TreeControl;}
			set {m_TreeControl=value;}
		}

		/// <summary>
		/// Adds new object to the collection.
		/// </summary>
		/// <param name="tab">Object to add.</param>
		/// <returns>Index of newly added object.</returns>
		public int Add(ElementStyle style)
		{
			return List.Add(style);
		}
		/// <summary>
		/// Returns reference to the object in collection based on it's index.
		/// </summary>
		public ElementStyle this[int index]
		{
			get {return (ElementStyle)(List[index]);}
			set {List[index] = value;}
		}

		/// <summary>
		/// Returns reference to the object in collection based on it's name.
		/// </summary>
		public ElementStyle this[string name]
		{
			get
			{
				foreach(ElementStyle style in this.List)
				{
					if(style.Name==name)
						return style;
				}
				return null;
			}
		}
后面还有 109 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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