Properties Readonly anchor NodeDefined in node_modules/typescript/lib/lib.dom.d.ts:13596 Readonly anchor Offsetanchor Offset: number
Defined in node_modules/typescript/lib/lib.dom.d.ts:13597 Readonly focus NodeDefined in node_modules/typescript/lib/lib.dom.d.ts:13598 Readonly focus Offsetfocus Offset: number
Defined in node_modules/typescript/lib/lib.dom.d.ts:13599 Readonly is Collapsedis Collapsed: boolean
Defined in node_modules/typescript/lib/lib.dom.d.ts:13600 Readonly range Countrange Count: number
Defined in node_modules/typescript/lib/lib.dom.d.ts:13601 Readonly typetype: string
Defined in node_modules/typescript/lib/lib.dom.d.ts:13602 Methods add Range Defined in node_modules/typescript/lib/lib.dom.d.ts:13603 Parameters Returns void collapse Defined in node_modules/typescript/lib/lib.dom.d.ts:13604 Parameters Returns void collapse To End Defined in node_modules/typescript/lib/lib.dom.d.ts:13605 Returns void collapse To Start Defined in node_modules/typescript/lib/lib.dom.d.ts:13606 Returns void contains Node contains Node( node: internal . Node , allowPartialContainment?: boolean ) : boolean Defined in node_modules/typescript/lib/lib.dom.d.ts:13607 Parameters Optional allowPartialContainment: boolean Returns boolean delete From Document delete From Document( ) : void Defined in node_modules/typescript/lib/lib.dom.d.ts:13608 Returns void empty Defined in node_modules/typescript/lib/lib.dom.d.ts:13609 Returns void extend Defined in node_modules/typescript/lib/lib.dom.d.ts:13610 Parameters Returns void get Range At Defined in node_modules/typescript/lib/lib.dom.d.ts:13611 Parameters modify modify( alter?: string , direction?: string , granularity?: string ) : void Defined in node_modules/typescript/lib/lib.dom.d.ts:13612 Parameters Optional alter: string Optional direction: string Optional granularity: string Returns void remove All Ranges Defined in node_modules/typescript/lib/lib.dom.d.ts:13613 Returns void remove Range Defined in node_modules/typescript/lib/lib.dom.d.ts:13614 Parameters Returns void select All Children Defined in node_modules/typescript/lib/lib.dom.d.ts:13615 Parameters Returns void set Base And Extent Defined in node_modules/typescript/lib/lib.dom.d.ts:13616 Parameters anchorOffset: number focusOffset: number Returns void set Position set Position( node: null | internal . Node , offset?: number ) : void Defined in node_modules/typescript/lib/lib.dom.d.ts:13617 Parameters Returns void to String Defined in node_modules/typescript/lib/lib.dom.d.ts:13618 Returns string Legend Namespace Variable Function Function with type parameter Type alias Type alias with type parameter Interface Interface with type parameter Settings Theme OS Light Dark
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().