/// <summary> /// The default constructor for the class. /// </summary> /// <param name="name">The node name.</param> /// <param name="startPosition">The node start position.</param> internal NppXmlNode(string name, NppXmlNodePosition startPosition) { this.Name = name; this.StartPosition = startPosition; this.ChildNodes = new List<NppXmlNode>(); this.Id = nodeId; nodeId++; }
/// <summary> /// The default constructor for the class. /// </summary> /// <param name="name">The node name.</param> /// <param name="startPosition">The node start position.</param> private NppXmlNode(string name, NppXmlNodePosition startPosition) { Name = name; StartPosition = startPosition; Id = _nodeId; _childNodes = new List <NppXmlNode>(); _nodeId++; }
/// <summary> /// Default struct constructor. /// </summary> /// <param name="startNodePosition">The start node position.</param> /// <param name="endNodePosition">The end index.</param> /// <param name="id">The node id.</param> public TextBoundary(NppXmlNodePosition startNodePosition, NppXmlNodePosition endNodePosition, int id) { this.StartNodePosition = startNodePosition; this.EndNodePosition = endNodePosition; this.Id = id; }