Defined in node_modules/typescript/lib/lib.dom.d.ts:21075 Defined in node_modules/typescript/lib/lib.dom.d.ts:21123 Properties Readonly
anchor Node Defined in node_modules/typescript/lib/lib.dom.d.ts:21077 Readonly
anchor Offset anchor Offset : number
Defined in node_modules/typescript/lib/lib.dom.d.ts:21079 Readonly
focus Node Defined in node_modules/typescript/lib/lib.dom.d.ts:21081 Readonly
focus Offset focus Offset : number
Defined in node_modules/typescript/lib/lib.dom.d.ts:21083 Readonly
is Collapsed is Collapsed : boolean
Defined in node_modules/typescript/lib/lib.dom.d.ts:21085 Readonly
range Count range Count : number
Defined in node_modules/typescript/lib/lib.dom.d.ts:21087 Readonly
type type : string
Defined in node_modules/typescript/lib/lib.dom.d.ts:21089 Methods add Range add Range ( range ) : void Returns void Defined in node_modules/typescript/lib/lib.dom.d.ts:21091 collapse collapse ( node , offset ? ) : void Parameters node : null | Node Optional
offset : number Returns void Defined in node_modules/typescript/lib/lib.dom.d.ts:21093 collapse To End collapse To End ( ) : void Returns void Defined in node_modules/typescript/lib/lib.dom.d.ts:21095 collapse To Start collapse To Start ( ) : void Returns void Defined in node_modules/typescript/lib/lib.dom.d.ts:21097 contains Node contains Node ( node , allowPartialContainment ? ) : boolean Parameters Optional
allowPartialContainment : boolean Returns boolean Defined in node_modules/typescript/lib/lib.dom.d.ts:21099 delete From Document delete From Document ( ) : void Returns void Defined in node_modules/typescript/lib/lib.dom.d.ts:21101 empty empty ( ) : void Returns void Defined in node_modules/typescript/lib/lib.dom.d.ts:21103 extend extend ( node , offset ? ) : void Returns void Defined in node_modules/typescript/lib/lib.dom.d.ts:21105 get Range At get Range At ( index ) : Range Defined in node_modules/typescript/lib/lib.dom.d.ts:21107 modify modify ( alter ? , direction ? , granularity ? ) : void Parameters Optional
alter : string Optional
direction : string Optional
granularity : string Returns void Defined in node_modules/typescript/lib/lib.dom.d.ts:21109 remove All Ranges remove All Ranges ( ) : void Returns void Defined in node_modules/typescript/lib/lib.dom.d.ts:21111 remove Range remove Range ( range ) : void Returns void Defined in node_modules/typescript/lib/lib.dom.d.ts:21113 select All Children select All Children ( node ) : void Returns void Defined in node_modules/typescript/lib/lib.dom.d.ts:21115 set Base And Extent set Base And Extent ( anchorNode , anchorOffset , focusNode , focusOffset ) : void Parameters anchorNode : Node anchorOffset : number focusNode : Node focusOffset : number Returns void Defined in node_modules/typescript/lib/lib.dom.d.ts:21117 set Position set Position ( node , offset ? ) : void Parameters node : null | Node Optional
offset : number Returns void Defined in node_modules/typescript/lib/lib.dom.d.ts:21119 to String to String ( ) : string Returns string Defined in node_modules/typescript/lib/lib.dom.d.ts:21120
A Selection object represents the range of text selected by the user or the current position of the caret. To obtain a Selection object for examination or modification, call Window.getSelection().
MDN Reference