WebOptionButton 对象 (Publisher)
表示 Web 选项按钮控件。 WebOptionButton 对象是 Shape 对象的成员。
备注
使用 Shapes.AddWebControl 方法创建新的 Web 选项按钮。
使用 Shape.WebOptionButton 属性访问 Web 选项按钮控件形状。
示例
此示例创建新的 Web 选项按钮,并指定其默认状态处于选中状态;然后,它会在旁边添加一个文本框来描述它。
Sub CreateNewWebOptionButton()
With ActiveDocument.Pages(1).Shapes
With .AddWebControl(Type:=pbWebControlOptionButton, Left:=100, _
Top:=123, Width:=16, Height:=10).WebOptionButton
.Selected = msoTrue
End With
With .AddTextbox(Orientation:=pbTextOrientationHorizontal, _
Left:=120, Top:=120, Width:=70, Height:=15)
.TextFrame.TextRange.Text = "Advanced User"
End With
End With
End Sub
属性
另请参阅
支持和反馈
有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈