Properties Readonly anchor NodeDefined in node_modules/typescript/lib/lib.dom.d.ts:14837 Readonly anchor Offsetanchor Offset: number
Defined in node_modules/typescript/lib/lib.dom.d.ts:14838 Readonly focus NodeDefined in node_modules/typescript/lib/lib.dom.d.ts:14839 Readonly focus Offsetfocus Offset: number
Defined in node_modules/typescript/lib/lib.dom.d.ts:14840 Readonly is Collapsedis Collapsed: boolean
Defined in node_modules/typescript/lib/lib.dom.d.ts:14841 Readonly range Countrange Count: number
Defined in node_modules/typescript/lib/lib.dom.d.ts:14842 Readonly typetype: string
Defined in node_modules/typescript/lib/lib.dom.d.ts:14843 Methods add Range add Range( range: Range ) : void Defined in node_modules/typescript/lib/lib.dom.d.ts:14844 Parameters Returns void collapse collapse( node: null | Node , offset?: number ) : void Defined in node_modules/typescript/lib/lib.dom.d.ts:14845 Parameters node: null | Node Optional offset: number Returns void collapse To End Defined in node_modules/typescript/lib/lib.dom.d.ts:14846 Returns void collapse To Start Defined in node_modules/typescript/lib/lib.dom.d.ts:14847 Returns void contains Node contains Node( node: Node , allowPartialContainment?: boolean ) : boolean Defined in node_modules/typescript/lib/lib.dom.d.ts:14848 Parameters Optional allowPartialContainment: boolean Returns boolean delete From Document delete From Document( ) : void Defined in node_modules/typescript/lib/lib.dom.d.ts:14849 Returns void empty Defined in node_modules/typescript/lib/lib.dom.d.ts:14850 Returns void extend extend( node: Node , offset?: number ) : void Defined in node_modules/typescript/lib/lib.dom.d.ts:14851 Parameters Returns void get Range At get Range At( index: number ) : Range Defined in node_modules/typescript/lib/lib.dom.d.ts:14852 Parameters remove All Ranges Defined in node_modules/typescript/lib/lib.dom.d.ts:14853 Returns void remove Range remove Range( range: Range ) : void Defined in node_modules/typescript/lib/lib.dom.d.ts:14854 Parameters Returns void select All Children select All Children( node: Node ) : void Defined in node_modules/typescript/lib/lib.dom.d.ts:14855 Parameters Returns void set Base And Extent set Base And Extent( anchorNode: Node , anchorOffset: number , focusNode: Node , focusOffset: number ) : void Defined in node_modules/typescript/lib/lib.dom.d.ts:14856 Parameters anchorNode: Node anchorOffset: number focusNode: Node focusOffset: number Returns void set Position set Position( node: null | Node , offset?: number ) : void Defined in node_modules/typescript/lib/lib.dom.d.ts:14857 Parameters node: null | Node Optional offset: number Returns void to String Defined in node_modules/typescript/lib/lib.dom.d.ts:14858 Returns string Legend Type alias Type alias with type parameter Class Class 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().