Table of Contents

Interface IEditor

Namespace
HP.LFT.SDK.WinForms
Assembly
HP.LFT.SDK.dll

A .NET Windows Forms multi-line edit box.

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

Properties

CursorColumn

The character the cursor is on in the line the cursor is on (0-based).

int CursorColumn { get; }

Property Value

int

CursorLine

The line the cursor is on in this object (0-based).

int CursorLine { get; }

Property Value

int

ErrorText

Returns the tooltip text of the error icon associated with this object.

string ErrorText { get; }

Property Value

string

SelectedText

The selected text in this control.

string SelectedText { get; }

Property Value

string

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 this multi-line editor.

void SetCursorPosition(int line, int charPos)

Parameters

line int

The zero-based row position at which the insertion point is placed.

charPos int

The zero-based character position at which the insertion point is placed.