Class SearchNodeArray
Collection of search nodes.
Inheritance
System.Object
SearchNodeArray
Implements
System.Collections.ICollection
System.Collections.IEnumerable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Base.dll
Syntax
public sealed class SearchNodeArray : ICollection, IEnumerable
Constructors
SearchNodeArray(SearchNode)
Initializes a new instance of the SearchNodeArray class.
Declaration
public SearchNodeArray(SearchNode node)
Parameters
Type | Name | Description |
---|---|---|
SearchNode | node | The node. |
SearchNodeArray(SearchNode, Int32)
Initializes a new instance of the SearchNodeArray class.
Declaration
public SearchNodeArray(SearchNode node, int capacity)
Parameters
Type | Name | Description |
---|---|---|
SearchNode | node | The node. |
System.Int32 | capacity | The capacity. |
Properties
Capacity
Gets or sets collection capacity.
Declaration
public int Capacity { get; set; }
Property Value
Type |
---|
System.Int32 |
Count
Gets count of elements in collection.
Declaration
public int Count { get; }
Property Value
Type |
---|
System.Int32 |
Item[Int32]
Gets or sets SearchNode by its index.
Declaration
public SearchNode this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index. |
Property Value
Type |
---|
SearchNode |
Methods
Add(SearchNode)
Add SearchNode to collection
Declaration
public int Add(SearchNode item)
Parameters
Type | Name | Description |
---|---|---|
SearchNode | item | SearchNode to add |
Returns
Type | Description |
---|---|
System.Int32 | Index of added SearchNode |
Clear()
Clear collection.
Declaration
public void Clear()
Contains(SearchNode)
Gets value indicates is SearchNode in collection
Declaration
public bool Contains(SearchNode node)
Parameters
Type | Name | Description |
---|---|---|
SearchNode | node | SearchNode to check |
Returns
Type | Description |
---|---|
System.Boolean | TRUE in node belongs to collection otherwise FALSE. |
RemoveAt(Int32)
Remove node by its index in collection
Declaration
public void RemoveAt(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index of node |
Explicit Interface Implementations
ICollection.CopyTo(Array, Int32)
Copies to.
Declaration
void ICollection.CopyTo(Array array, int start)
Parameters
Type | Name | Description |
---|---|---|
System.Array | array | The array. |
System.Int32 | start | The start. |
ICollection.IsSynchronized
Gets a value indicating whether collection is synchronized.
Declaration
bool ICollection.IsSynchronized { get; }
Returns
Type |
---|
System.Boolean |
ICollection.SyncRoot
Gets SyncRoot.
Declaration
object ICollection.SyncRoot { get; }
Returns
Type |
---|
System.Object |
IEnumerable.GetEnumerator()
Gets IEnumerator.
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator | The IEnumerator. |
Implements
System.Collections.ICollection
System.Collections.IEnumerable