Defined in node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:21385 Defined in node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:21433 PropertiesReadonly
anchor Node Defined in node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:21387 Readonly
anchor Offset anchor Offset : number
Defined in node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:21389 Readonly
focus Node Defined in node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:21391 Readonly
focus Offset focus Offset : number
Defined in node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:21393 Readonly
is Collapsed is Collapsed : boolean
Defined in node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:21395 Readonly
range Count range Count : number
Defined in node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:21397 Readonly
type type : string
Defined in node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:21399 Methodsadd Range add Range ( range ) : void Returns void Defined in node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:21401 collapse collapse ( node , offset ? ) : void Parameters node : null | Node Optional
offset : number Returns void Defined in node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:21403 collapse To End collapse To End ( ) : void Returns void Defined in node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:21405 collapse To Start collapse To Start ( ) : void Returns void Defined in node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:21407 contains Node contains Node ( node , allowPartialContainment ? ) : boolean Parameters node : Node Optional
allowPartialContainment : boolean Returns boolean Defined in node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:21409 delete From Document delete From Document ( ) : void Returns void Defined in node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:21411 empty empty ( ) : void Returns void Defined in node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:21413 extend extend ( node , offset ? ) : void Parameters node : Node Optional
offset : number Returns void Defined in node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:21415 get Range At get Range At ( index ) : Range Defined in node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:21417 modify modify ( alter ? , direction ? , granularity ? ) : void Parameters Optional
alter : string Optional
direction : string Optional
granularity : string Returns void Defined in node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:21419 remove All Ranges remove All Ranges ( ) : void Returns void Defined in node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:21421 remove Range remove Range ( range ) : void Returns void Defined in node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:21423 select All Children select All Children ( node ) : void Returns void Defined in node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:21425 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/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:21427 set Position set Position ( node , offset ? ) : void Parameters node : null | Node Optional
offset : number Returns void Defined in node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:21429 to String to String ( ) : string Returns string Defined in node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:21430
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