Class SyntaxNodeCollection
Namespace: Aspose.Html.Toolkit.Markdown.Syntax
Assembly: Aspose.HTML.dll (25.12.0)
Represents a collection of syntax nodes.
[ComVisible(true)]
public class SyntaxNodeCollection<T> : NodeList<T>, IWritable, IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable where T : MarkdownSyntaxNodeType Parameters
T
The type of the collection values.
Inheritance
object ← NodeList<T> ← SyntaxNodeCollection<T>
Implements
IWritable , IList<T> , ICollection<T> , IEnumerable<T> , IEnumerable
Inherited Members
NodeList<T>.GetEnumerator() , NodeList<T>.WriteTo(TextWriter) , NodeList<T>.Get(int) , NodeList<T>.Count , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
SyntaxNodeCollection()
public SyntaxNodeCollection()Properties
Count
Gets the number of values in the collection.
public override int Count { get; }Property Value
IsReadOnly
Get the readonly flag.
public bool IsReadOnly { get; }Property Value
this[int]
Gets or sets the value at the given index.
public T this[int index] { get; set; }Property Value
T
Methods
Add(T)
Adds the given item to the collection.
public void Add(T item)Parameters
item T
The item of T type.
Clear()
Removes all items from the collection.
public void Clear()Contains(T)
Determines whether the given item exists in the collection.
public bool Contains(T item)Parameters
item T
The item to look for.
Returns
True if the item exists in the collection; otherwise, false.
CopyTo(T[], int)
Copy items in this collection to array, starting at arrayIndex
public void CopyTo(T[] array, int arrayIndex)Parameters
array T[]
array to add items to
arrayIndex int
index to start at
Get(int)
Gets the item at the given index.
public override T Get(int index)Parameters
index int
The index of the item to get.
Returns
T
The item at the given index.
GetEnumerator()
Gets the values in the collection.
public override IEnumerator<T> GetEnumerator()Returns
IEnumerator <T>
An enumerator over the values in the collection.
IndexOf(T)
Gets the index of the given item.
public int IndexOf(T item)Parameters
item T
The item to get the index of.
Returns
The index of the item in the collection -or- -1 if the item is not found.
Insert(int, T)
Inserts the given item at the specified index.
public void Insert(int index, T item)Parameters
index int
The index to insert the item.
item T
The item to insert.
Remove(T)
Removes the item from the collection.
public bool Remove(T item)Parameters
item T
The item to remove.
Returns
True if the item was found and removed; otherwise, false.
RemoveAt(int)
Removes the item at the given index.
public void RemoveAt(int index)Parameters
index int
The index of the item to remove.