Source/AdvTree/ConnectorPointsCollection.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
namespace DevComponents.AdvTree
{
/// <summary>
/// Represents collection of connector points for a node.
/// </summary>
public class ConnectorPointsCollection:CollectionBase
{
#region Private Variables
private Node m_ParentNode=null;
#endregion
#region Internal Implementation
/// <summary>
/// Default constructor.
/// </summary>
public ConnectorPointsCollection()
{
}
/// <summary>
/// Gets or sets the node this collection is associated with.
/// </summary>
[Browsable(false),DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public Node ParentNode
{
get {return m_ParentNode;}
}
/// <summary>
/// Sets the node collection belongs to.
/// </summary>
/// <param name="parent">Node that is parent of this collection.</param>
internal void SetParentNode(Node parent)
{
m_ParentNode=parent;
}
/// <summary>
/// Adds new object to the collection.
/// </summary>
/// <param name="p">Object to add.</param>
/// <returns>Index of newly added object.</returns>
public int Add(Point p)
{
return List.Add(p);
}
/// <summary>
/// Adds range of objects to the array.
/// </summary>
/// <param name="ap">Array to add.</param>
public void AddRange(Point[] ap)
{
foreach(Point p in ap)
this.Add(p);
}
后面还有 94 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。