Defined in node_modules/typescript/lib/lib.dom.d.ts:21217 Defined in node_modules/typescript/lib/lib.dom.d.ts:21265 Properties Readonly
anchor Node Defined in node_modules/typescript/lib/lib.dom.d.ts:21219 Readonly
anchor Offset anchor Offset : number
Defined in node_modules/typescript/lib/lib.dom.d.ts:21221 Readonly
focus Node Defined in node_modules/typescript/lib/lib.dom.d.ts:21223 Readonly
focus Offset focus Offset : number
Defined in node_modules/typescript/lib/lib.dom.d.ts:21225 Readonly
is Collapsed is Collapsed : boolean
Defined in node_modules/typescript/lib/lib.dom.d.ts:21227 Readonly
range Count range Count : number
Defined in node_modules/typescript/lib/lib.dom.d.ts:21229 Readonly
type type : string
Defined in node_modules/typescript/lib/lib.dom.d.ts:21231 Methods add Range add Range ( range : Range ) : void Returns void Defined in node_modules/typescript/lib/lib.dom.d.ts:21233 collapse collapse ( node : null | Node , offset ?: number ) : void Parameters node : null | Node Optional
offset : number Returns void Defined in node_modules/typescript/lib/lib.dom.d.ts:21235 collapse To End collapse To End ( ) : void Returns void Defined in node_modules/typescript/lib/lib.dom.d.ts:21237 collapse To Start collapse To Start ( ) : void Returns void Defined in node_modules/typescript/lib/lib.dom.d.ts:21239 contains Node contains Node ( node : Node , allowPartialContainment ?: boolean ) : boolean Parameters node : Node Optional
allowPartialContainment : boolean Returns boolean Defined in node_modules/typescript/lib/lib.dom.d.ts:21241 delete From Document delete From Document ( ) : void Returns void Defined in node_modules/typescript/lib/lib.dom.d.ts:21243 empty empty ( ) : void Returns void Defined in node_modules/typescript/lib/lib.dom.d.ts:21245 extend extend ( node : Node , offset ?: number ) : void Parameters node : Node Optional
offset : number Returns void Defined in node_modules/typescript/lib/lib.dom.d.ts:21247 get Range At get Range At ( index : number ) : Range Defined in node_modules/typescript/lib/lib.dom.d.ts:21249 modify modify ( alter ?: string , direction ?: string , granularity ?: string ) : void Parameters Optional
alter : string Optional
direction : string Optional
granularity : string Returns void Defined in node_modules/typescript/lib/lib.dom.d.ts:21251 remove All Ranges remove All Ranges ( ) : void Returns void Defined in node_modules/typescript/lib/lib.dom.d.ts:21253 remove Range remove Range ( range : Range ) : void Returns void Defined in node_modules/typescript/lib/lib.dom.d.ts:21255 select All Children select All Children ( node : Node ) : void Returns void Defined in node_modules/typescript/lib/lib.dom.d.ts:21257 set Base And Extent set Base And Extent ( anchorNode : Node , anchorOffset : number , focusNode : Node , focusOffset : number ) : void Parameters anchorNode : Node anchorOffset : number focusNode : Node focusOffset : number Returns void Defined in node_modules/typescript/lib/lib.dom.d.ts:21259 set Position set Position ( node : null | Node , offset ?: number ) : void Parameters node : null | Node Optional
offset : number Returns void Defined in node_modules/typescript/lib/lib.dom.d.ts:21261 to String to String ( ) : string Returns string Defined in node_modules/typescript/lib/lib.dom.d.ts:21262
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