Class NodeContentCollection
- Assembly
- MonoGame.Framework.Content.Pipeline.dll
Provides a collection of child NodeContent objects for a content item.
public class NodeContentCollection : ChildCollection<NodeContent, NodeContent>, IList<NodeContent>, ICollection<NodeContent>, IReadOnlyList<NodeContent>, IReadOnlyCollection<NodeContent>, IEnumerable<NodeContent>, IList, ICollection, IEnumerable
- Inheritance
-
NodeContentCollection
- Implements
- Inherited Members
Remarks
Links from a child object to its parent are maintained as the collection contents are modified.
Methods
GetParent(NodeContent)
Gets the parent of a child object.
protected override NodeContent GetParent(NodeContent child)
Parameters
child
NodeContentThe child of the parent being retrieved.
Returns
- NodeContent
The parent of the child object.
SetParent(NodeContent, NodeContent)
Modifies the value of the parent object of the specified child object.
protected override void SetParent(NodeContent child, NodeContent parent)
Parameters
child
NodeContentThe child of the parent being modified.
parent
NodeContentThe new value for the parent object.