Table of Contents

Interface IEditor

Namespace
HP.LFT.SDK.StdWin
Assembly
HP.LFT.SDK.dll

A standard Windows multi-line editor.

public interface IEditor : IUiObjectWithLayoutInfo, IUiObjectBase, IUiObjectBase, IClickable, IDoubleClickable, ILocationInfoProvider, ISupportSendKeys, ISupportDragAndDrop, IEnabledProvider, IVisibleProvider, ITestObject, ITestObjectDescriber
Inherited Members
Extension Methods

Properties

CursorColumn

The character position where the cursor is located. (zero-based)

int CursorColumn { get; }

Property Value

int

CursorLine

The line where the cursor is located. (0-based)

int CursorLine { get; }

Property Value

int

Methods

Select(int, int, int, int)

Selects text in a multi-line editor. All positions are 0-based.

void Select(int fromLine, int fromCharPos, int toLine, int toCharPos)

Parameters

fromLine int

The line at which the selection starts, inclusive.

fromCharPos int

The character position at which the selection starts, inclusive.

toLine int

The line at which the selection ends, inclusive.

toCharPos int

The character position at which the selection ends, inclusive.

SetCursorPosition(int, int)

Places the cursor at the specified point in the multi-line editor.

void SetCursorPosition(int line, int charPos)

Parameters

line int

The line in which the cursor is placed. (0-based)

charPos int

The character position at which the cursor is placed.