Method SelectTextRangeInElement
SelectTextRangeInElement(ElementReference, int?, int?, JsSelectionRangeDirection)
Selects text range within an HTML element identified by its ID.
Declaration
Task SelectTextRangeInElement(ElementReference elementRef, int? start = null, int? end = null, JsSelectionRangeDirection direction = JsSelectionRangeDirection.Forward)
Parameters
Type | Name | Description |
---|---|---|
ElementReference | elementRef | |
int? | start | The offset into the text field for the start of the selection. |
int? | end | The offset into the text field for the end of the selection. |
JsSelectionRangeDirection | direction | The direction in which the selection is performed. |
Returns
Type | Description |
---|---|
Task | A task representing the asynchronous operation. |