activities
latest
false
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath logo, featuring letters U and I in white

用户界面自动化活动

上次更新日期 2026年3月13日

MobileOptions.TypeTextOptions 类

使用此类可进一步配置TypeText API。

定义

命名空间:UiPath.MobileAutomation.API.Models

程序集:UiPath.MobileAutomation.API(在 UiPath.MobileAutomation.API.dll 中)

语法

public class TypeTextOptions : TargetOptions, 
	IGenericTextInputOptions
public class TypeTextOptions : TargetOptions, 
	IGenericTextInputOptions

MobileOptions.TypeTextOptions类型公开以下成员。

构造函数

public TypeTextOptions()
public TypeTextOptions()

MobileOptions.TypeTextOptions :初始化MobileOptions.TypeTextOptions类的新实例。

属性

ContinueOnError Boolean - 指定在方法引发错误时是否应继续自动化。此参数仅支持布尔值,例如truefalse 。默认值为false 。因此,如果该参数为空且活动引发错误,系统将停止执行项目。如果该值设为true ,则无论出现何种错误,系统都将继续执行项目。

DelayAfter :执行方法之后的延迟时间(以秒为单位)。默认值为0.3秒。

DelayBefore :方法开始执行任何操作之前的延迟时间(以秒为单位)。默认值为0.2秒。

SendNewLine “发送新行” :在文本中添加一个新行。与在移动设备键盘上按“确定”按钮类似。

Timeout :指定等待时间(以秒为单位),如果超出该时间后活动并未运行,系统便会抛出错误。默认值为30秒。

SendNewLine

语法

属性值布尔值

在文本中添加一个新行。与按“确定”按钮或移动设备键盘上的Enter键类似。

public bool SendNewLine { get; set; }
public bool SendNewLine { get; set; }
  • 定义
  • 语法
  • 构造函数
  • 属性
  • SendNewLine
  • 语法

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新