Table of Contents

Class GuiTextField

Namespace
SapGui.Wrapper
Assembly
SapGui.Wrapper.dll

Wraps a SAP GUI text field (GuiTextField, GuiCTextField, GuiPasswordField, GuiOkCodeField).

public class GuiTextField : GuiComponent
Inheritance
GuiTextField
Inherited Members

Properties

DisplayedText

The formatted display value of the field as shown to the user. May differ from Text on amount or date fields where SAP applies locale-specific formatting.

public string DisplayedText { get; }

Property Value

string

IsOField

Returns true if the field is an output-only field (type O in the ABAP Dictionary screen field definition).

public bool IsOField { get; }

Property Value

bool

IsReadOnly

Whether the field is read-only.

public bool IsReadOnly { get; }

Property Value

bool

IsRequired

Returns true if the field is mandatory (marked with a ? in SAP GUI).

public bool IsRequired { get; }

Property Value

bool

MaxLength

Maximum allowed input length.

public int MaxLength { get; }

Property Value

int

Text

Gets or sets the Text property of this component. Works on text fields, buttons, labels, combo boxes, status bars, etc. Equivalent to VBA: session.findById("...").Text = "value"

public override string Text { get; set; }

Property Value

string

Methods

CaretPosition(int)

Sets the caret position within the field.

public void CaretPosition(int pos)

Parameters

pos int

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.