AngleSharp by AngleSharp

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

.NET API 1,224,192 bytes

 IHtmlTextAreaElement

Represents the textarea HTML element.
bool Autofocus { get; set; }

Gets or sets the autofocus HTML attribute, which indicates whether the control should have input focus when the page loads.

int Columns { get; set; }

Gets or sets the cols HTML attribute, indicating the visible width of the text area.

string DefaultValue { get; set; }

Gets or sets the default value.

string DirectionName { get; set; }

Gets or sets the directionality of the form element.

Gets the associated HTML form element.

bool IsDisabled { get; set; }

Gets or sets if the textarea is enabled or disabled.

bool IsReadOnly { get; set; }

Gets or sets if the field is read-only.

bool IsRequired { get; set; }

Gets or sets if the field is required.

INodeList Labels { get; }

Gets the list of assigned labels.

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.

string Name { get; set; }

Gets or sets the name of the element.

string Placeholder { get; set; }

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

int Rows { get; set; }

Gets or sets the rows HTML attribute, indicating the number of visible text lines for the control.

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.

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.

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.

int TextLength { get; }

Gets the codepoint length of the control's value.

string Type { get; }

Gets the type (textarea).

string Value { get; set; }

Gets or sets the value.

string Wrap { get; set; }

Gets or sets the wrap HTML attribute, indicating how the control wraps text.

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.

void SelectAll()

Selects the contents of the textarea.