Table of Contents

Interface IEditor

A text area object in a SAP GUI for Windows application.

Namespace: HP.LFT.SDK.SAP.GUI
Assembly: HP.LFT.SDK.dll
Syntax
public interface IEditor : IElement, ITestObject, ITestObjectDescriber, ILocationInfoProvider, ISupportsNativeObject, IEnabledProvider

Properties

Text

The text string value of the text area.

Declaration
string Text { get; }
Property Value
Type Description
string

Methods

DoubleClick()

Double-clicks inside the text area at the current cursor position.

Declaration
void DoubleClick()

Select(uint, uint)

Selects the specified section of text in the text area and positions the cursor at the end of the selection.

Declaration
void Select(uint startPos, uint endPos)
Parameters
Type Name Description
uint startPos

The 0-based position of the first character of the text to be selected.

uint endPos

The 0-based position of the character that ends the selection.

Remarks

The text is selected from the character at the start position and up to, but not including, the character at the end position.

The cursor is placed at the end position.

SetCursorPosition(uint)

Positions the cursor at the specified position.

Declaration
void SetCursorPosition(uint pos)
Parameters
Type Name Description
uint pos

The 0-based character position.

SetText(string)

Sets the specified text in the text area.

Declaration
void SetText(string text)
Parameters
Type Name Description
string text

The text.

SetUnprotectedTextPart(uint, string)

Sets the specified text in the unprotected sections of the text area.

Declaration
void SetUnprotectedTextPart(uint sectionNumber, string text)
Parameters
Type Name Description
uint sectionNumber

The 1-based index of the unprotected section in which the text is set. Unprotected sections of the text area are numbered from top to bottom.

string text

The text.

Extension Methods

TestObjectExtensions.WaitUntilEnabled<T>(T)
TestObjectExtensions.WaitUntilEnabled<T>(T, int)
TestObjectExtensions.WaitUntilExists<T>(T)
TestObjectExtensions.WaitUntilExists<T>(T, int)
TestObjectExtensions.WaitUntil<T>(T, Func<T, bool>)
TestObjectExtensions.WaitUntil<T>(T, Func<T, bool>, int)