Method SetEnabled
SetEnabled<T>(T, Boolean)
Set if the control is enabled.
Declaration
public static T SetEnabled<T>(this T control, bool enabled)
where T : SimpleControl
Parameters
| Type | Name | Description |
|---|---|---|
| T | control | The control this extension method is used on. |
| Boolean | enabled | If the control is enabled. |
Returns
| Type | Description |
|---|---|
| T | The control modified. |
Type Parameters
| Name | Description |
|---|---|
| T | Type of the control. Has to be child of SimpleControl. |