共用方式為


(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 支援與意見反應