NativeEdit

Class Overview
Provides operations on windows of WindowClass type Edit, RichEdit20A, and RichEdit20W.



public NativeEdit(WindowControl src)
Explanation
Constructor.

Parameter
        src                
                The original window control



public NativeEdit(WindowsAppFriend app, IntPtr windowHandle)
Explanation
Constructor.

Parameters
app
Application manipulation object
windowHandle
Window handle



public int FirstVisibleLine{ get; }
Explanation
Returns the number of the first visible line.



public int LineCount{ get; }
Explanation
Returns the number of lines of text.



public string Text{get;}
Explanation
Returns the contained text.



public void EmulateChangeSelection(int startChar, int endChar)
Explanation
Changes the text selection.
Selects all text when startChar is 0 and endChar is -1. Cancels the current selection when startChar is -1.
For RichEdit20A and RichEdit20W, notifies EN_SELCHANGE if the event mask is set.

Parameters
startChar
Character index of the beginning of the selection.
endChar
Character index of the end of the selection.



public void EmulateChangeSelection(int startChar, int endChar,*Async*async)
Explanation
Changes the text selection.
Selects all text when startChar is 0 and endChar is -1. Cancels the current selection when startChar is -1.
For RichEdit20A and RichEdit20W, notifies EN_SELCHANGE if the event mask is set.
Parameters
startChar
Character index of the beginning of the selection.
endChar
Character index of the end of the selection.
async
Asynchronous execution object



public void EmulateChangeText(string newText)
Explanation
Changes the control's text.
Notifies EN_CHANGE and EN_UPDATE.
For RichEdit20A and RichEdit20W, notice only occurs when the event mask is set..

Parameter
newText
New text



public void EmulateChangeText(string newTextAsync async)
Explanation
Changes the control's text.
Notifies EN_CHANGE and EN_UPDATE.
For RichEdit20A and RichEdit20W, notice only occurs when the event mask is set..
Executes asynchronously.

Parameters
newText
New text
async
Asynchronous execution object



public void GetSelection(ref int startChar, ref int endChar)
Explanation
Returns the current selection range.

Parameters
startChar
Starting character index of the current selection.
endChar
Ending character index of the current selection.



JR