Table of contents

WebListBox.ReturnDataLabel 属性 (发布服务器)WebListBox.ReturnDataLabel Property (Publisher)

office 365 dev account|上次更新日期: 2018/3/13
2 参与人员

返回或设置一个字符串,表示网页标签指定的 Web 对象在提交页面时所用的文字。读/写。Returns or sets a String that represents the text used by the Web page to label the specified Web object when the page is submitted. Read/write.


表达式ReturnDataLabelexpression. ReturnDataLabel

_expression_A 表示WebListBox对象的变量。_expression_A variable that represents a WebListBox object.


以下示例创建新的 Web 文本框,并指定提交页面时文本框中的文字标签。This example creates a new Web text box and specifies the label for the text in the text box when the page is submitted.

Sub LabelWebTextBoxControl() 
 With ActiveDocument.Pages(1).Shapes _ 
 .AddWebControl(Type:=pbWebControlSingleLineTextBox, _ 
 Left:=100, Top:=100, Width:=300, Height:=15).WebTextBox 
 .DefaultText = "Please enter your name here" 
 .Limit = 70 
 .RequiredControl = msoTrue 
 .ReturnDataLabel = "Full_Name" 
 End With 
End Sub
© 2018 Microsoft