Share via


Shape.WebCheckBox Property (Publisher)

Returns the WebCheckBox object associated with the specified shape.

Syntax

expression .WebCheckBox

expression A variable that represents a Shape object.

Return Value

WebCheckBox

Example

This example creates a new Web check box and specifies that its default state is checked.

Dim shpNew As Shape 
Dim wcbTemp As WebCheckBox 
 
Set shpNew = ActiveDocument.Pages(1).Shapes _ 
 .AddWebControl(Type:=pbWebControlCheckBox, Left:=100, _ 
 Top:=123, Width:=17, Height:=12) 
 
Set wcbTemp = shpNew.WebCheckBox 
 
wcbTemp.Selected = msoTrue