HtmlElement AfterStartTagPosition Property C# API
Gets the character offset into the HTML document at which the 1st character (not including < > tag characters) in this HTML element appears.

Namespace: Facilita.Web
Assembly: clrWebBrowser (in clrWebBrowser.dll) Version: 9.4.0.26 (1.0.0.0)
Syntax

public int AfterStartTagPosition { get; }

Field Value

The character offset into the HTML document at which the 1st character in this HTML element appears.
Examples

The following example demonstrates getting the AfterStartTagPosition of a SelectElement.

The content of the HTTP Response object:

<html><body><form name="myForm">Select: <select name="mySelect"><option value="1">1</option><option value="2">2</option></select></form></body></html>
Form form = response.ExtractForm("myForm");
SelectElement select = form.GetSelectElement("mySelect");

// This outputs 47, i.e. the offset of the space after the opening '<select'
WriteMessage("AfterStartTagPosition : " + select.AfterStartTagPosition);
See Also