Partilhar via


FormDataObject.enabled Method

Definition

Overloads

enabled()

Determines whether the object is enabled or disabled.

enabled(Boolean)

enabled()

Determines whether the object is enabled or disabled.

public:
 virtual bool enabled();
public virtual bool enabled ();
abstract member enabled : unit -> bool
override this.enabled : unit -> bool
Public Overridable Function enabled () As Boolean

Returns

true if the object is enabled; otherwise, false.

Remarks

The enabled property lets you enable or disable a control at run time. For example, you can disable objects that do not apply to the current state of the application. You can also disable a control that is used only for display purposes, such as an error message that provides read-only information.

The following example shows how to retrieve and set the enabled property for a control.

// Return the value of the enabled property. 
info(strfmt("enabled: %1", this.enabled())); 
// Set the enabled property. 
this.enabled(false);

Applies to

enabled(Boolean)

public:
 virtual bool enabled(bool _value);
public virtual bool enabled (bool _value);
abstract member enabled : bool -> bool
override this.enabled : bool -> bool
Public Overridable Function enabled (_value As Boolean) As Boolean

Parameters

_value
Boolean

A Boolean value that specifies whether the control is enabled.

Returns

Applies to