예제 #1
0
 /// <summary>
 /// The reverse of posFromIndex.
 /// </summary>
 /// <param name="pos"></param>
 /// <returns></returns>
 public JsNumber indexFromPos(PosConfig pos) { return null; }
예제 #2
0
 /// <summary>
 /// Get the text between the given points in the editor, which should be {line, ch} objects
 /// An optional third argument can be given to indicate the line separator string to use (defaults to "\n").
 /// </summary>
 /// <param name="from"></param>
 /// <param name="to"></param>
 /// <param name="separator"></param>
 /// <returns></returns>
 public JsString getRange(PosConfig from, PosConfig to, JsString separator) { return null; }
예제 #3
0
 /// <summary>
 /// Replace the part of the document between from and to with the given string.
 /// from and to must be {line, ch} objects. to can be left off to simply insert the string at position from.
 /// </summary>
 /// <param name="string"></param>
 /// <param name="from"></param>
 public void replaceRange(JsString @string, PosConfig from) { }
예제 #4
0
 /// <summary>
 /// Set the selection range. start and end should be {line, ch} objects.
 /// </summary>
 /// <param name="start"></param>
 /// <param name="end"></param>
 public void setSelection(PosConfig start, PosConfig end) { }
예제 #5
0
 /// <summary>
 /// Get the text between the given points in the editor, which should be {line, ch} objects
 /// An optional third argument can be given to indicate the line separator string to use (defaults to "\n").
 /// </summary>
 /// <param name="from"></param>
 /// <param name="to"></param>
 /// <returns></returns>
 public JsString getRange(PosConfig from,PosConfig to) { return null; }
예제 #6
0
 /// <summary>
 /// Puts node, which should be an absolutely positioned DOM node, into the editor, positioned right below the given {line, ch} position.
 /// When scrollIntoView is true, the editor will ensure that the entire node is visible (if possible).
 /// To remove the widget again, simply use DOM methods (move it somewhere else, or call removeChild on its parent).
 /// </summary>
 /// <param name="pos"></param>
 /// <param name="node"></param>
 /// <param name="scrollIntoView"></param>
 public void addWidget(PosConfig pos, HtmlElement node, bool scrollIntoView) { }
예제 #7
0
 /// <summary>
 /// Set the cursor position. You can either pass a single {line, ch} object, or the line and the character as two separate parameters.
 /// </summary>
 /// <param name="pos"></param>
 public void setCursor(PosConfig pos) { }
예제 #8
0
 /// <summary>
 /// Returns an array of all the bookmarks and marked ranges present at the given position.
 /// </summary>
 /// <param name="pos"></param>
 /// <returns></returns>
 public JsArray<Range> findMarksAt(PosConfig pos) { return null; }
예제 #9
0
 /// <summary>
 /// Inserts a bookmark, a handle that follows the text around it as it is being edited, at the given position. A bookmark has two methods find() and clear().
 /// The first returns the current position of the bookmark, if it is still in the document, and the second explicitly removes the bookmark.
 /// </summary>
 /// <param name="pos"></param>
 /// <returns></returns>
 public MarkTextResult setBookmark(PosConfig pos) { return null; }
예제 #10
0
 /// <summary>
 /// Can be used to mark a range of text with a specific CSS class name. from and to should be {line, ch} objects.
 /// The method will return an object with two methods, clear(), which removes the mark, and find(), which returns a {from, to} (both document positions),
 /// indicating the current position of the marked range.
 /// </summary>
 /// <param name="from"></param>
 /// <param name="to"></param>
 /// <param name="className"></param>
 /// <returns></returns>
 public MarkTextResult markText(PosConfig from, PosConfig to, JsString className) { return null; }
예제 #11
0
 /// <summary>
 /// Retrieves information about the token the current mode found before the given position (a {line, ch} object)
 /// </summary>
 /// <param name="pos"></param>
 /// <returns></returns>
 public TokenAt getTokenAt(PosConfig pos) { return null; }
예제 #12
0
 /// <summary>
 /// Like cursorCoords, but returns the position of an arbitrary characters. pos should be a {line, ch} object.
 /// </summary>
 /// <param name="pos"></param>
 /// <param name="mode"></param>
 /// <returns></returns>
 public object charCoords(PosConfig pos, object mode) { return null; }