Class AngleSharpDocument
An implementation of IDocument which is based upon an AngleSharp AngleSharp.Html.Dom.IHtmlDocument.
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: ZptSharp.Dom
Assembly: ZptSharp.AngleSharp.dll
Syntax
public class AngleSharpDocument : DocumentBase, IDocument, IHasDocumentSourceInfo, IHasNodes
Constructors
| Improve this Doc View SourceAngleSharpDocument(IHtmlDocument, IDocumentSourceInfo)
Initializes a new instance of the AngleSharpDocument class.
Declaration
public AngleSharpDocument(IHtmlDocument document, IDocumentSourceInfo source)
Parameters
Type | Name | Description |
---|---|---|
AngleSharp.Html.Dom.IHtmlDocument | document | The native document object. |
IDocumentSourceInfo | source | The source info for the document. |
Properties
| Improve this Doc View SourceNativeDocument
Gets the native AngleSharp document object.
Declaration
public IHtmlDocument NativeDocument { get; }
Property Value
Type | Description |
---|---|
AngleSharp.Html.Dom.IHtmlDocument | The native document. |
RootNode
Gets the root node for the current document.
Declaration
public override INode RootNode { get; }
Property Value
Type | Description |
---|---|
INode | The root node. |
Overrides
Methods
| Improve this Doc View SourceAddCommentToBeginningOfDocument(String)
Where-supported, adds a comment before the first node in the document. In cases where the underlying document implementation does not support this, a workaround is acceptable (such as commenting immediately inside the first node).
Declaration
public override void AddCommentToBeginningOfDocument(string commentText)
Parameters
Type | Name | Description |
---|---|---|
System.String | commentText |