Interface IEditor
A standard Windows multi-line editor.
Inherited Members
Namespace: HP.LFT.SDK.StdWin
Assembly: HP.LFT.SDK.dll
Syntax
public interface IEditor : IUiObjectWithLayoutInfo, IUiObjectBase, IUiObjectBase, IClickable, IDoubleClickable, ILocationInfoProvider, ISupportSendKeys, ISupportDragAndDrop, IEnabledProvider, IVisibleProvider, ITestObject, ITestObjectDescriber
Properties
CursorColumn
The character position where the cursor is located. (zero-based)
Declaration
int CursorColumn { get; }
Property Value
| Type | Description |
|---|---|
| int |
CursorLine
The line where the cursor is located. (0-based)
Declaration
int CursorLine { get; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
Select(int, int, int, int)
Selects text in a multi-line editor.
Declaration
void Select(int fromLine, int fromCharPos, int toLine, int toCharPos)
Parameters
| Type | Name | Description |
|---|---|---|
| int | fromLine | The line at which the selection starts, inclusive. |
| int | fromCharPos | The character position at which the selection starts, inclusive. |
| int | toLine | The line at which the selection ends, inclusive. |
| int | toCharPos | The character position at which the selection ends, inclusive. |
SetCursorPosition(int, int)
Places the cursor at the specified point in the multi-line editor.
Declaration
void SetCursorPosition(int line, int charPos)
Parameters
| Type | Name | Description |
|---|---|---|
| int | line | The line in which the cursor is placed. (0-based) |
| int | charPos | The character position at which the cursor is placed. |