WebCheckBox 对象 (Publisher)

表示 Web 检查框控件。 WebCheckBox 对象是 Shape 对象的成员。

备注

使用 Shapes.AddWebControl 方法创建 Web 检查框。

使用 Shape.WebCheckBox 属性访问 Web 检查框控件形状。

示例

此示例创建一个新的 Web 检查框,并指定选中其默认状态;然后在其旁边添加一个文本框来描述它。

Sub CreateNewWebCheckBox() 
 With ActiveDocument.Pages(1).Shapes 
 With .AddWebControl(Type:=pbWebControlCheckBox, Left:=100, _ 
 Top:=123, Width:=17, Height:=12).WebCheckBox 
 .Selected = msoTrue 
 End With 
 With .AddTextbox(Orientation:=pbTextOrientationHorizontal, _ 
 Left:=118, Top:=120, Width:=70, Height:=15) 
 .TextFrame.TextRange.Text = "Description text for web check box" 
 End With 
 End With 
End Sub

属性

另请参阅

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。