This repository was archived by the owner on Jan 13, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
Visual Studio Project Template C#/PluginInfrastructure Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,11 @@ public interface IScintillaGateway
21
21
void AppendTextAndMoveCursor ( string text ) ;
22
22
void InsertTextAndMoveCursor ( string text ) ;
23
23
24
+ /// <summary>
25
+ /// Get the current line from the current position
26
+ /// </summary>
27
+ int GetCurrentLineNumber ( ) ;
28
+
24
29
25
30
/* ++Autogenerated -- start of section automatically generated from Scintilla.iface */
26
31
/// <summary>Add text to the document at current position. (Scintilla feature 2001)</summary>
Original file line number Diff line number Diff line change @@ -52,6 +52,13 @@ public void InsertTextAndMoveCursor(string text)
52
52
GotoPos ( new Position ( currentPos . Value + text . Length ) ) ;
53
53
}
54
54
55
+ /// <summary>
56
+ /// Get the current line from the current position
57
+ /// </summary>
58
+ public int GetCurrentLineNumber ( )
59
+ {
60
+ return LineFromPosition ( GetCurrentPos ( ) ) ;
61
+ }
55
62
56
63
/* ++Autogenerated -- start of section automatically generated from Scintilla.iface */
57
64
/// <summary>Add text to the document at current position. (Scintilla feature 2001)</summary>
You can’t perform that action at this time.
0 commit comments