AngleSharp by Florian Rappl

<PackageReference Include="AngleSharp" Version="0.8.2" />

.NET API 1,168,384 bytes

 HtmlTextFormControlElement

Represents the base class for all HTML text form controls.
public enum SelectionType

An enumeration with possible selection directions.

public abstract string DefaultValue { get; set; }

Gets or sets the default value of the input field.

public string DirectionName { get; set; }

Gets or sets the dirname HTML attribute.

public bool IsDirty { get; set; }

Gets or sets if the value has been modified.

public bool IsReadOnly { get; set; }

Gets or sets if the textarea field is read-only.

public bool IsRequired { get; set; }

Gets or sets if the field is required.

public int MaxLength { get; set; }

Gets or sets the maxlength HTML attribute, indicating the maximum number of characters the user can enter. This constraint is evaluated only when the value changes.

public int MinLength { get; set; }

Gets or sets the minlength HTML attribute, indicating the minimum number of characters the user can enter. This constraint is evaluated only when the value changes.

public string Placeholder { get; set; }

Gets or sets the placeholder HTML attribute, containing a hint to the user about what to enter in the control.

public string SelectionDirection { get; }

Gets the direction in which selection occurred. This is "forward" if selection was performed in the start-to-end direction of the current locale, or "backward" for the opposite direction.

public int SelectionEnd { get; set; }

Gets or sets the index of the end of selected text. If no text is selected, contains the index of the character that follows the input cursor. On being set, the control behaves as if setSelectionRange() had been called with this as the second argument, and selectionStart as the first argument.

public int SelectionStart { get; set; }

Gets or sets the index of the beginning of selected text. If no text is selected, contains the index of the character that follows the input cursor. On being set, the control behaves as if setSelectionRange() had been called with this as the first argument, and selectionEnd as the second argument.

public string Value { get; set; }

Gets or sets the current value in the control.

public HtmlTextFormControlElement(Document owner, string name, string prefix, NodeFlags flags = 0)

protected void ConstructDataSet(FormDataSet dataSet, string type)

public void Select(int selectionStart, int selectionEnd, string selectionDirection = null)

Selects a range of text, and sets selectionStart and selectionEnd. If either argument is greater than the length of the value, it is treated as pointing to the end of the value. If end is less than start, then both are treated as the value of end.

public void SelectAll()

Selects the contents of the control.