Class GuiTextField
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
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
IsReadOnly
Whether the field is read-only.
public bool IsReadOnly { get; }
Property Value
IsRequired
Returns true if the field is mandatory
(marked with a ? in SAP GUI).
public bool IsRequired { get; }
Property Value
MaxLength
Maximum allowed input length.
public int MaxLength { get; }
Property Value
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
Methods
CaretPosition(int)
Sets the caret position within the field.
public void CaretPosition(int pos)
Parameters
posint
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.