Enabled (Property)

Applies To:

Control object, ControlsCheckBox object, ControlsCommandButton object, ControlsDropDown object, ControlsListBox object, ControlsRadioButton object, ControlsTextBox object, EmbeddedBrowser object

Description:

Returns or sets the current state of a control object. If a control is disabled, you cannot access it using the Dashboard section. The control is shown in the Dashboard section in a grayed out or disabled state.

Action:

Read-write, Boolean

Example:

This examples enables every shape and control object in an Dashboard section named Dashboard:

var DashboardSection = ActiveDocument.Sections["Dashboard"]
var ShapeCount = DashboardSection.Shapes.Count
for (j=1;j <= ShapeCount ;j++)
{
DashboardSection.Shapes[j].Enable = true
}