Wijmo UI for the Web
SetCursorPositionAndSelection Method
Get cursor start and end position according to the specified highlighttext and current text.
Syntax
Javascript (Usage) 
var instance = new wijmo.input.BaseUIProcess();
var value; // Type: any

// Parameters
var highlightText; // Type:  any
var text; // Type:  string
var cursorPos; // Type:  number
var startPos; // Type:  number

value = instance.SetCursorPositionAndSelection(highlightText, text, cursorPos, startPos);
Javascript (Specification) 
function SetCursorPositionAndSelection( 
   highlightText : any,
   text : string,
   cursorPos : number,
   startPos : number
) : any;

Parameters

highlightText
text
cursorPos
startPos
Browser Compatibility
7
5
5

See Also

Reference

BaseUIProcess type

 

 


© 2013 All Rights Reserved.

Send comments on this topic.