Table of Contents

Interface IEditor

Namespace
HP.LFT.SDK.SAP.GUI
Assembly
HP.LFT.SDK.dll

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

public interface IEditor : IElement, ITestObject, ITestObjectDescriber, ILocationInfoProvider, ISupportsNativeObject, IEnabledProvider
Inherited Members
Extension Methods

Properties

Text

The text string value of the text area.

string Text { get; }

Property Value

string

Methods

DoubleClick()

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

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.

void Select(uint startPos, uint endPos)

Parameters

startPos uint

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

endPos uint

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.

void SetCursorPosition(uint pos)

Parameters

pos uint

The 0-based character position.

SetText(string)

Sets the specified text in the text area.

void SetText(string text)

Parameters

text string

The text.

SetUnprotectedTextPart(uint, string)

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

void SetUnprotectedTextPart(uint sectionNumber, string text)

Parameters

sectionNumber uint

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.

text string

The text.