Source/AdvTree/HeadersCollection.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.ComponentModel;
namespace DevComponents.AdvTree
{
/// <summary>
/// Represents collection for HeaderDefinition objects.
/// </summary>
public class HeadersCollection:CollectionBase
{
#region Private Variables
private AdvTree m_Parent=null;
#endregion
#region Internal Implementation
/// <summary>
/// Gets or sets the node this collection is associated with.
/// </summary>
[Browsable(false),DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public AdvTree Parent
{
get {return m_Parent;}
}
/// <summary>
/// Sets the node collection belongs to.
/// </summary>
/// <param name="parent">HeaderDefinition that is parent of this collection.</param>
internal void SetParent(AdvTree parent)
{
m_Parent=parent;
}
/// <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(HeaderDefinition ch)
{
return List.Add(ch);
}
/// <summary>
/// Returns reference to the object in collection based on it's index.
/// </summary>
public HeaderDefinition this[int index]
{
get {return (HeaderDefinition)(List[index]);}
set {List[index] = value;}
}
/// <summary>
/// Inserts new object into the collection.
/// </summary>
/// <param name="index">Position of the object.</param>
/// <param name="value">Object to insert.</param>
public void Insert(int index, HeaderDefinition value)
{
List.Insert(index, value);
}
后面还有 75 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。