Class SyntaxNodeCollection
Namespace: Aspose.Html.Toolkit.Markdown.Syntax
Assembly: Aspose.HTML.dll (25.2.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 : MarkdownSyntaxNode
Type 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. </t></t></t></t></t></t></t></t></t></t>