Defined in ../node_modules/typescript/lib/lib.dom.d.ts:20842 Defined in ../node_modules/typescript/lib/lib.dom.d.ts:20892 PropertiesReadonly
anchor Node Defined in ../node_modules/typescript/lib/lib.dom.d.ts:20844 Readonly
anchor Offset anchor Offset : number
Defined in ../node_modules/typescript/lib/lib.dom.d.ts:20846 Readonly
direction direction : string
Defined in ../node_modules/typescript/lib/lib.dom.d.ts:20848 Readonly
focus Node Defined in ../node_modules/typescript/lib/lib.dom.d.ts:20850 Readonly
focus Offset focus Offset : number
Defined in ../node_modules/typescript/lib/lib.dom.d.ts:20852 Readonly
is Collapsed is Collapsed : boolean
Defined in ../node_modules/typescript/lib/lib.dom.d.ts:20854 Readonly
range Count range Count : number
Defined in ../node_modules/typescript/lib/lib.dom.d.ts:20856 Readonly
type type : string
Defined in ../node_modules/typescript/lib/lib.dom.d.ts:20858 Methodsadd Range add Range ( range ) : void Returns void Defined in ../node_modules/typescript/lib/lib.dom.d.ts:20860 collapse collapse ( node , offset ? ) : void Parameters node : null | Node Optional
offset : number Returns void Defined in ../node_modules/typescript/lib/lib.dom.d.ts:20862 collapse To End collapse To End ( ) : void Returns void Defined in ../node_modules/typescript/lib/lib.dom.d.ts:20864 collapse To Start collapse To Start ( ) : void Returns void Defined in ../node_modules/typescript/lib/lib.dom.d.ts:20866 contains Node contains Node ( node , allowPartialContainment ? ) : boolean Parameters node : Node Optional
allowPartialContainment : boolean Returns boolean Defined in ../node_modules/typescript/lib/lib.dom.d.ts:20868 delete From Document delete From Document ( ) : void Returns void Defined in ../node_modules/typescript/lib/lib.dom.d.ts:20870 empty empty ( ) : void Returns void Defined in ../node_modules/typescript/lib/lib.dom.d.ts:20872 extend extend ( node , offset ? ) : void Parameters node : Node Optional
offset : number Returns void Defined in ../node_modules/typescript/lib/lib.dom.d.ts:20874 get Range At get Range At ( index ) : Range Defined in ../node_modules/typescript/lib/lib.dom.d.ts:20876 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:20878 remove All Ranges remove All Ranges ( ) : void Returns void Defined in ../node_modules/typescript/lib/lib.dom.d.ts:20880 remove Range remove Range ( range ) : void Returns void Defined in ../node_modules/typescript/lib/lib.dom.d.ts:20882 select All Children select All Children ( node ) : void Returns void Defined in ../node_modules/typescript/lib/lib.dom.d.ts:20884 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:20886 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:20888 to String to String ( ) : string Returns string Defined in ../node_modules/typescript/lib/lib.dom.d.ts:20889
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