Publisher) (WebCheckBox 物件

代表 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 支援與意見反應。