Defined in node_modules/typescript/lib/lib.dom.d.ts:13595
Defined in node_modules/typescript/lib/lib.dom.d.ts:13621
Properties
Readonly
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
Methods
add Range
add Range( range: Range ) : void
Returns void
Defined in node_modules/typescript/lib/lib.dom.d.ts:13603
collapse
collapse( node: Node , offset?: number ) : void
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: Node , allowPartialContainment?: boolean ) : boolean
Parameters
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: Node , offset?: number ) : void
Returns void
Defined in node_modules/typescript/lib/lib.dom.d.ts:13610
get Range At
get Range At( index: number ) : Range
Defined in node_modules/typescript/lib/lib.dom.d.ts:13611
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: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: Range ) : void
Returns void
Defined in node_modules/typescript/lib/lib.dom.d.ts:13614
select All Children
select All Children( node: Node ) : void
Returns void
Defined in node_modules/typescript/lib/lib.dom.d.ts:13615
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:13616
set Position
set Position( node: Node , offset?: number ) : void
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().