Class
ElementNodeCollection

Represents a collection of ElementNode object

Definition

Namespace:ArtOfTest.Common.Design.ProjectModel

Assembly:ArtOfTest.WebAii.Design.dll

Syntax:

cs-api-definition
public class ElementNodeCollection : IEnumerable<ElementNode>, IEnumerable

Inheritance: objectElementNodeCollection

Implements: IEnumerableIEnumerable<ElementNode>

Constructors

ElementNodeCollection()

Create a new collection

Declaration

cs-api-definition
public ElementNodeCollection()

Properties

Count

Gets the number of elements in the collection.

Declaration

cs-api-definition
public int Count { get; }

Property Value

int

this[int]

Access a node by index

Declaration

cs-api-definition
public ElementNode this[int index] { get; }

Parameters

index

int

Property Value

ElementNode

Methods

Add(ElementNode)

Add an element node.

Declaration

cs-api-definition
public ElementNode Add(ElementNode node)

Parameters

node

ElementNode

Returns

ElementNode

GetEnumerator()

Declaration

cs-api-definition
public IEnumerator<ElementNode> GetEnumerator()

Returns

IEnumerator<ElementNode>

Implements IEnumerable<ElementNode>.GetEnumerator()

GetNodeNames()

Get the list node names.

Declaration

cs-api-definition
public List<string> GetNodeNames()

Returns

List<string>

The list of names

Insert(int, ElementNode)

Add an element node.

Declaration

cs-api-definition
public ElementNode Insert(int index, ElementNode node)

Parameters

index

int

node

ElementNode

Returns

ElementNode

Remove(ElementNode)

Remove an element node.

Declaration

cs-api-definition
public ElementNode Remove(ElementNode node)

Parameters

node

ElementNode

Returns

ElementNode

Events

NodeAdded

Triggered when a node is added.

Declaration

cs-api-definition
public event EventHandler<ElementNodeEventArgs> NodeAdded

Event Value

EventHandler<ElementNodeEventArgs>

NodeRemoved

Triggered when a node is removed

Declaration

cs-api-definition
public event EventHandler<ElementNodeEventArgs> NodeRemoved

Event Value

EventHandler<ElementNodeEventArgs>