CheckboxState Property

Microsoft Word Visual Basic

CheckboxState Property

Returns or sets a Boolean that indicates whether a check box in a smart document is selected. True marks the check box as selected. False clears the check box.

expression.CheckboxState

expression    Required. An expression that returns a SmartTagAction object.

Remarks

For more information on smart documents, see the Smart Document Software Development Kit on the Microsoft Developer Network (MSDN) Web site.

Example

The following example marks the specified check box as selected. This example assumes that the first action for the first smart tag in the active document is a check box control. If the specified smart tag action is not a check box, a run-time error occurs.

    ActiveDocument.SmartTags(1).SmartTagActions(1) _
    .CheckboxState = True