Next, you can use the text property to enter text into the document.
下面,您可以使用Text属性向文档中输入文本。
For example, instead of simulating individual keystrokes into the textBox1 control the automation sets the text property directly.
例如,自动化并不模拟对textBox 1控件的各次击键,而是直接设置text属性。
It is a plain-text property and can be wired, as indicated, to a wide variety of other actions, although only certain ones make sense.
它是普通文本属性,能够连接到各种其他操作,尽管并不是所有连接都有意义的。
The screen shot below shows how the spy window can be used to specify that the Name field's text property should have a value of "Fred" after a set of actions have been executed.
下面的屏幕截图展示了如何使用spy窗口,来验证一系列操作后Name字段的text属性是否为"Fred"。
Write the text Property into this file.
将文本属性写入该文件。
Read the text Property from the Place Order button (see Figure 1).
读取PlaceOrder按钮的文本属性(参见图1)。
Sets the value of the control's Caption or Text property (if any).
设置了控件的标题或文本属性(如果有)的值。
The Selection object includes the Text property, which is used to pass a string of characters to the document at the current range.
Selection对象包含text属性,该属性用于将一个字符字符串传递到当前文档。
This will open a dialog box that you can use to connect the Text property to the ehEmployee[0]'s FirstName field, as shown in Figure 7.
这将打开一个对话框,可以用该对话框将Text属性连接到 ehEmployee[0] 的FirstName字段,如图 7 中所示。
This will open a dialog box that you can use to connect the Text property to the ehEmployee[0]'s FirstName field, as shown in Figure 7.
这将打开一个对话框,可以用该对话框将Text属性连接到 ehEmployee[0] 的FirstName字段,如图 7 中所示。
应用推荐