AngleSharp by Florian Rappl

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

.NET API 521,216 bytes

 HTMLTextFormControlElement

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

An enumeration with possible selection directions.

public string AccessKey { get; set; }

Gets or sets the accesskey HTML attribute.

public abstract string DefaultValue { get; set; }

Gets or sets the default value of the input field.

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 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 bool Readonly { get; set; }

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

public bool Required { get; set; }

Gets or sets if the field is required.

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 uint 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 uint 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 void Select()

Selects the contents of the control.

public void SetSelectionRange(uint selectionStart, uint selectionEnd, SelectionType selectionDirection = 0)

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.