Table of Contents

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

int

Doc

Gets the Document

public MixedCodeDocument Doc { get; }

Property Value

MixedCodeDocument

this[int]

Gets a fragment from the list using its index.

public MixedCodeDocumentFragment this[int index] { get; }

Parameters

index int

Property Value

MixedCodeDocumentFragment

Methods

Append(MixedCodeDocumentFragment)

Appends a fragment to the list of fragments.

public void Append(MixedCodeDocumentFragment newFragment)

Parameters

newFragment MixedCodeDocumentFragment

The fragment to append. May not be null.

GetEnumerator()

Gets an enumerator that can iterate through the fragment list.

public MixedCodeDocumentFragmentList.MixedCodeDocumentFragmentEnumerator GetEnumerator()

Returns

MixedCodeDocumentFragmentList.MixedCodeDocumentFragmentEnumerator

Prepend(MixedCodeDocumentFragment)

Prepends a fragment to the list of fragments.

public void Prepend(MixedCodeDocumentFragment newFragment)

Parameters

newFragment MixedCodeDocumentFragment

The 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

fragment MixedCodeDocumentFragment

The 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

index int

The index of the fragment to remove.