Defined in node_modules/typescript/lib/lib.dom.d.ts:21010 Defined in node_modules/typescript/lib/lib.dom.d.ts:21058 Properties Readonly
anchor Node Defined in node_modules/typescript/lib/lib.dom.d.ts:21012 Readonly
anchor Offset anchor Offset : number
Defined in node_modules/typescript/lib/lib.dom.d.ts:21014 Readonly
focus Node Defined in node_modules/typescript/lib/lib.dom.d.ts:21016 Readonly
focus Offset focus Offset : number
Defined in node_modules/typescript/lib/lib.dom.d.ts:21018 Readonly
is Collapsed is Collapsed : boolean
Defined in node_modules/typescript/lib/lib.dom.d.ts:21020 Readonly
range Count range Count : number
Defined in node_modules/typescript/lib/lib.dom.d.ts:21022 Readonly
type type : string
Defined in node_modules/typescript/lib/lib.dom.d.ts:21024 Methods add Range add Range ( range ) : void Returns void Defined in node_modules/typescript/lib/lib.dom.d.ts:21026 collapse collapse ( node , offset ? ) : void Parameters node : Node Optional
offset : number Returns void Defined in node_modules/typescript/lib/lib.dom.d.ts:21028 collapse To End collapse To End ( ) : void Returns void Defined in node_modules/typescript/lib/lib.dom.d.ts:21030 collapse To Start collapse To Start ( ) : void Returns void Defined in node_modules/typescript/lib/lib.dom.d.ts:21032 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:21034 delete From Document delete From Document ( ) : void Returns void Defined in node_modules/typescript/lib/lib.dom.d.ts:21036 empty empty ( ) : void Returns void Defined in node_modules/typescript/lib/lib.dom.d.ts:21038 extend extend ( node , offset ? ) : void Parameters node : Node Optional
offset : number Returns void Defined in node_modules/typescript/lib/lib.dom.d.ts:21040 get Range At get Range At ( index ) : Range Defined in node_modules/typescript/lib/lib.dom.d.ts:21042 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:21044 remove All Ranges remove All Ranges ( ) : void Returns void Defined in node_modules/typescript/lib/lib.dom.d.ts:21046 remove Range remove Range ( range ) : void Returns void Defined in node_modules/typescript/lib/lib.dom.d.ts:21048 select All Children select All Children ( node ) : void Returns void Defined in node_modules/typescript/lib/lib.dom.d.ts:21050 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:21052 set Position set Position ( node , offset ? ) : void Parameters node : Node Optional
offset : number Returns void Defined in node_modules/typescript/lib/lib.dom.d.ts:21054 to String to String ( ) : string Returns string Defined in node_modules/typescript/lib/lib.dom.d.ts:21055
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