Class MixedCodeDocumentFragmentList
- Namespace
- HtmlAgilityPack
- Assembly
- HtmlAgilityPack.dll
Represents a list of mixed code fragments.
public class MixedCodeDocumentFragmentList : IEnumerable
- Inheritance
-
MixedCodeDocumentFragmentList
- Implements
- Inherited Members
Properties
Count
Gets the number of fragments contained in the list.
public int Count { get; }
Property Value
Doc
Gets the Document
public MixedCodeDocument Doc { get; }
Property Value
this[int]
Gets a fragment from the list using its index.
public MixedCodeDocumentFragment this[int index] { get; }
Parameters
indexint
Property Value
Methods
Append(MixedCodeDocumentFragment)
Appends a fragment to the list of fragments.
public void Append(MixedCodeDocumentFragment newFragment)
Parameters
newFragmentMixedCodeDocumentFragmentThe fragment to append. May not be null.
GetEnumerator()
Gets an enumerator that can iterate through the fragment list.
public MixedCodeDocumentFragmentList.MixedCodeDocumentFragmentEnumerator GetEnumerator()
Returns
Prepend(MixedCodeDocumentFragment)
Prepends a fragment to the list of fragments.
public void Prepend(MixedCodeDocumentFragment newFragment)
Parameters
newFragmentMixedCodeDocumentFragmentThe fragment to append. May not be null.
Remove(MixedCodeDocumentFragment)
Remove a fragment from the list of fragments. If this fragment was not in the list, an exception will be raised.
public void Remove(MixedCodeDocumentFragment fragment)
Parameters
fragmentMixedCodeDocumentFragmentThe fragment to remove. May not be null.
RemoveAll()
Remove all fragments from the list.
public void RemoveAll()
RemoveAt(int)
Remove a fragment from the list of fragments, using its index in the list.
public void RemoveAt(int index)
Parameters
indexintThe index of the fragment to remove.