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

用户界面自动化活动

上次更新日期 2026年4月24日

MobileOptions.SetTextOptions 类

使用此类以进一步配置“设置文本” API。

定义

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

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

语法

public class SetTextOptions : MobileOptions.SetTextWithTapOptions, 
	IGenericTextInputOptions
public class SetTextOptions : MobileOptions.SetTextWithTapOptions, 
	IGenericTextInputOptions

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

构造函数

public SetTextOptions()
public SetTextOptions()

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

属性

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

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

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

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

ClearText清除文本:在输入要设置的文本之前,清除目标中的所有文本。默认情况下,此项设置为“True”。此参数适用于所有目标类型。

TapBeforeType TapBeforeType :在输入文本之前执行单击操作。

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

ClearText

语法

属性值布尔值

public bool ClearText { get; set; }
public bool ClearText { get; set; }

TapBeforeType

语法

属性值: Nullable<TapTypeEnum>

public TapTypeEnum? TapBeforeType { get; set; }
public TapTypeEnum? TapBeforeType { get; set; }

SendNewLine

语法

属性值布尔值

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

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新