Defined in node_modules/typescript/lib/lib.dom.d.ts:13595 Defined in node_modules/typescript/lib/lib.dom.d.ts:13621 PropertiesReadonly
anchor Node Defined in node_modules/typescript/lib/lib.dom.d.ts:13596 Readonly
anchor Offset anchor Offset : number
Defined in node_modules/typescript/lib/lib.dom.d.ts:13597 Readonly
focus Node Defined in node_modules/typescript/lib/lib.dom.d.ts:13598 Readonly
focus Offset focus Offset : number
Defined in node_modules/typescript/lib/lib.dom.d.ts:13599 Readonly
is Collapsed is Collapsed : boolean
Defined in node_modules/typescript/lib/lib.dom.d.ts:13600 Readonly
range Count range Count : number
Defined in node_modules/typescript/lib/lib.dom.d.ts:13601 Readonly
type type : string
Defined in node_modules/typescript/lib/lib.dom.d.ts:13602 Methodsadd Range add Range ( range ) : void Returns void Defined in node_modules/typescript/lib/lib.dom.d.ts:13603 collapse collapse ( node , offset ? ) : void Parameters node : null | Node Optional
offset : number Returns void Defined in node_modules/typescript/lib/lib.dom.d.ts:13604 collapse To End collapse To End ( ) : void Returns void Defined in node_modules/typescript/lib/lib.dom.d.ts:13605 collapse To Start collapse To Start ( ) : void Returns void Defined in node_modules/typescript/lib/lib.dom.d.ts:13606 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:13607 delete From Document delete From Document ( ) : void Returns void Defined in node_modules/typescript/lib/lib.dom.d.ts:13608 empty empty ( ) : void Returns void Defined in node_modules/typescript/lib/lib.dom.d.ts:13609 extend extend ( node , offset ? ) : void Parameters node : Node Optional
offset : number Returns void Defined in node_modules/typescript/lib/lib.dom.d.ts:13610 get Range At get Range At ( index ) : Range Defined in node_modules/typescript/lib/lib.dom.d.ts:13611 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:13612 remove All Ranges remove All Ranges ( ) : void Returns void Defined in node_modules/typescript/lib/lib.dom.d.ts:13613 remove Range remove Range ( range ) : void Returns void Defined in node_modules/typescript/lib/lib.dom.d.ts:13614 select All Children select All Children ( node ) : void Returns void Defined in node_modules/typescript/lib/lib.dom.d.ts:13615 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:13616 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:13617 to String to String ( ) : string Returns string Defined in node_modules/typescript/lib/lib.dom.d.ts:13618
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().