Table of contents
TOC
折叠目录
展开目录

WebTextBox 对象 (发布服务器)WebTextBox Object (Publisher)

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

表示 Web 文本框控件。WebTextBox对象是图形对象的一个成员。Represents a Web text box control. The WebTextBox object is a member of the Shape object.

示例Example

使用AddWebControl方法来创建新的 Web 选项按钮。使用WebTextBox属性来访问 Web 文本框控件形状。此示例创建一个新的 Web 文本框,指定默认文字,指出该条目是必需的并将条目限制为 50 个字符。Use the AddWebControl method to create new Web option button. Use the WebTextBox property to access a Web text box control shape. This example creates a new Web text box, specifies default text, indicates that entry is required, and limits entry to 50 characters.

Sub CreateWebTextBox() 
 With ActiveDocument.Pages(1).Shapes 
 With .AddWebControl(Type:=pbWebControlSingleLineTextBox, _ 
 Left:=100, Top:=100, Width:=150, Height:=15).WebTextBox 
 .DefaultText = "Please Enter Your Full Name" 
 .RequiredControl = msoTrue 
 .Limit = 50 
 End With 
 End With 
End Sub

属性Properties

名称Name
ApplicationApplication
DefaultTextDefaultText
EchoAsterisksEchoAsterisks
限制Limit
ParentParent
RequiredControlRequiredControl
ReturnDataLabelReturnDataLabel
© 2018 Microsoft